2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mech_eap 0.9.
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'
594 PACKAGE_STRING='mech_eap 0.9'
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
735 INSTALL_STRIP_PROGRAM
787 program_transform_name
800 enable_option_checking
801 enable_dependency_tracking
802 enable_maintainer_mode
821 ac_precious_vars='build_alias
836 # Initialize some variables set by options.
838 ac_init_version=false
839 ac_unrecognized_opts=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name=s,x,x,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
994 -help | --help | --hel | --he | -h)
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1143 -site=* | --site=* | --sit=*)
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1199 eval with_$ac_useropt=no ;;
1202 # Obsolete; use --with-x.
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1340 ac_srcdir_defaulted=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures mech_eap 0.9 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/mech_eap]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of mech_eap 0.9:";;
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --disable-dependency-tracking speeds up one-time build
1453 --enable-dependency-tracking do not reject slow dependency extractors
1454 --enable-maintainer-mode enable make rules and dependencies not useful
1455 (and sometimes confusing) to the casual installer
1456 --enable-static[=PKGS] build static libraries [default=no]
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1462 --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-sysroot=DIR Search for dependent libraries within DIR
1471 (or the compiler's sysroot if not specified).
1472 --with-krb5 Use krb5 (in specified installation directory)
1473 --with-opensaml Use OpenSAML (in specified installation directory)
1474 --with-shibresolver Use Shibboleth resolver (in specified installation
1476 --with-shibsp Use shibspboleth (in specified installation
1478 --with-openssl Use OpenSSL (in specified installation directory)
1479 --with-radsec Use radsec (in specified installation directory)
1480 --with-jansson Use jansson (in specified installation directory)
1481 --with-libmoonshot Use libmoonshot (in specified installation
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1495 CXXCPP C++ preprocessor
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1500 Report bugs to <bugs@project-moonshot.org>.
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1530 .) # We are building in place.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1563 mech_eap configure 0.9
1564 generated by GNU Autoconf 2.69
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_compile
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1657 ac_fn_c_check_header_mongrel ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if eval \${$3+:} false; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1670 # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1681 ac_header_compiler=no
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1697 ac_header_preproc=no
1699 rm -f conftest.err conftest.i conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1703 # So? What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ( $as_echo "## ---------------------------------------- ##
1723 ## Report this to bugs@project-moonshot.org ##
1724 ## ---------------------------------------- ##"
1725 ) | sed "s/^/$as_me: WARNING: /" >&2
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1733 eval "$3=\$ac_header_compiler"
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_header_mongrel
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
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_try") 2>&5
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=$ac_status
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1802 if ac_fn_c_try_compile "$LINENO"; then :
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_header_compile
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1885 # include <limits.h>
1887 # include <assert.h>
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1914 if ac_fn_c_try_link "$LINENO"; then :
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_func
1929 # ac_fn_cxx_try_compile LINENO
1930 # ----------------------------
1931 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_compile ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext
1936 if { { ac_try="$ac_compile"
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_compile") 2>conftest.err
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_cxx_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest.$ac_objext; then :
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1965 } # ac_fn_cxx_try_compile
1967 # ac_fn_cxx_try_cpp LINENO
1968 # ------------------------
1969 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1970 ac_fn_cxx_try_cpp ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { { ac_try="$ac_cpp conftest.$ac_ext"
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1982 if test -s conftest.err; then
1983 grep -v '^ *+' conftest.err >conftest.er1
1984 cat conftest.er1 >&5
1985 mv -f conftest.er1 conftest.err
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } > conftest.i && {
1989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1990 test ! -s conftest.err
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_cxx_try_cpp
2004 # ac_fn_cxx_try_link LINENO
2005 # -------------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_cxx_try_link ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 rm -f conftest.$ac_objext conftest$ac_exeext
2011 if { { ac_try="$ac_link"
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>conftest.err
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_cxx_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest$ac_exeext && {
2030 test "$cross_compiling" = yes ||
2031 test -x conftest$ac_exeext
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2040 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042 # interfere with the next link command; also delete a directory that is
2043 # left behind by Apple's compiler. We do this before executing the actions.
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_link
2049 cat >config.log <<_ACEOF
2050 This file contains any messages produced by compilers while
2051 running configure, to aid debugging if configure makes a mistake.
2053 It was created by mech_eap $as_me 0.9, which was
2054 generated by GNU Autoconf 2.69. Invocation command line was
2066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 $as_echo "PATH: $as_dir"
2106 # Keep a trace of the command line.
2107 # Strip out --no-create and --no-recursion so they do not pile up.
2108 # Strip out --silent because we don't want to record it for future runs.
2109 # Also quote any args containing shell meta-characters.
2110 # Make two passes to allow for proper duplicate-argument suppression.
2114 ac_must_keep_next=false
2120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2122 | -silent | --silent | --silen | --sile | --sil)
2125 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2128 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2130 as_fn_append ac_configure_args1 " '$ac_arg'"
2131 if test $ac_must_keep_next = true; then
2132 ac_must_keep_next=false # Got value, back to normal.
2135 *=* | --config-cache | -C | -disable-* | --disable-* \
2136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2138 | -with-* | --with-* | -without-* | --without-* | --x)
2139 case "$ac_configure_args0 " in
2140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2143 -* ) ac_must_keep_next=true ;;
2146 as_fn_append ac_configure_args " '$ac_arg'"
2151 { ac_configure_args0=; unset ac_configure_args0;}
2152 { ac_configure_args1=; unset ac_configure_args1;}
2154 # When interrupted or exit'd, cleanup temporary files, and complete
2155 # config.log. We remove comments because anyway the quotes in there
2156 # would cause problems or look ugly.
2157 # WARNING: Use '\'' to represent an apostrophe within the trap.
2158 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2159 trap 'exit_status=$?
2160 # Save into config.log some information that might help in debugging.
2164 $as_echo "## ---------------- ##
2165 ## Cache variables. ##
2166 ## ---------------- ##"
2168 # The following way of writing the cache mishandles newlines in values,
2170 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2171 eval ac_val=\$$ac_var
2175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2179 _ | IFS | as_nl) ;; #(
2180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2181 *) { eval $ac_var=; unset $ac_var;} ;;
2186 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2187 *${as_nl}ac_space=\ *)
2189 "s/'\''/'\''\\\\'\'''\''/g;
2190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2193 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200 $as_echo "## ----------------- ##
2201 ## Output variables. ##
2202 ## ----------------- ##"
2204 for ac_var in $ac_subst_vars
2206 eval ac_val=\$$ac_var
2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 $as_echo "$ac_var='\''$ac_val'\''"
2214 if test -n "$ac_subst_files"; then
2215 $as_echo "## ------------------- ##
2216 ## File substitutions. ##
2217 ## ------------------- ##"
2219 for ac_var in $ac_subst_files
2221 eval ac_val=\$$ac_var
2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 $as_echo "$ac_var='\''$ac_val'\''"
2230 if test -s confdefs.h; then
2231 $as_echo "## ----------- ##
2238 test "$ac_signal" != 0 &&
2239 $as_echo "$as_me: caught signal $ac_signal"
2240 $as_echo "$as_me: exit $exit_status"
2242 rm -f core *.core core.conftest.* &&
2243 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2246 for ac_signal in 1 2 13 15; do
2247 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2252 rm -f -r conftest* confdefs.h
2254 $as_echo "/* confdefs.h */" > confdefs.h
2256 # Predefined preprocessor variables.
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_NAME "$PACKAGE_NAME"
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_STRING "$PACKAGE_STRING"
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_URL "$PACKAGE_URL"
2283 # Let the site file select an alternate cache file if it wants to.
2284 # Prefer an explicitly selected file to automatically selected ones.
2287 if test -n "$CONFIG_SITE"; then
2288 # We do not want a PATH search for config.site.
2289 case $CONFIG_SITE in #((
2290 -*) ac_site_file1=./$CONFIG_SITE;;
2291 */*) ac_site_file1=$CONFIG_SITE;;
2292 *) ac_site_file1=./$CONFIG_SITE;;
2294 elif test "x$prefix" != xNONE; then
2295 ac_site_file1=$prefix/share/config.site
2296 ac_site_file2=$prefix/etc/config.site
2298 ac_site_file1=$ac_default_prefix/share/config.site
2299 ac_site_file2=$ac_default_prefix/etc/config.site
2301 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2303 test "x$ac_site_file" = xNONE && continue
2304 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2306 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2307 sed 's/^/| /' "$ac_site_file" >&5
2309 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 as_fn_error $? "failed to load site script $ac_site_file
2312 See \`config.log' for more details" "$LINENO" 5; }
2316 if test -r "$cache_file"; then
2317 # Some versions of bash will fail to source /dev/null (special files
2318 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2319 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2321 $as_echo "$as_me: loading cache $cache_file" >&6;}
2323 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2324 *) . "./$cache_file";;
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2329 $as_echo "$as_me: creating cache $cache_file" >&6;}
2333 # Check that the precious variables saved in the cache have kept the same
2335 ac_cache_corrupted=false
2336 for ac_var in $ac_precious_vars; do
2337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2338 eval ac_new_set=\$ac_env_${ac_var}_set
2339 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2340 eval ac_new_val=\$ac_env_${ac_var}_value
2341 case $ac_old_set,$ac_new_set in
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2344 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2345 ac_cache_corrupted=: ;;
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2349 ac_cache_corrupted=: ;;
2352 if test "x$ac_old_val" != "x$ac_new_val"; then
2353 # differences in whitespace do not lead to failure.
2354 ac_old_val_w=`echo x $ac_old_val`
2355 ac_new_val_w=`echo x $ac_new_val`
2356 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2358 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2359 ac_cache_corrupted=:
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2362 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2363 eval $ac_var=\$ac_old_val
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2366 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2368 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2371 # Pass precious variables to config.status.
2372 if test "$ac_new_set" = set; then
2374 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375 *) ac_arg=$ac_var=$ac_new_val ;;
2377 case " $ac_configure_args " in
2378 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2379 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2383 if $ac_cache_corrupted; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2387 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2388 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2390 ## -------------------- ##
2391 ## Main body of script. ##
2392 ## -------------------- ##
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403 for ac_dir in build-aux "$srcdir"/build-aux; do
2404 if test -f "$ac_dir/install-sh"; then
2406 ac_install_sh="$ac_aux_dir/install-sh -c"
2408 elif test -f "$ac_dir/install.sh"; then
2410 ac_install_sh="$ac_aux_dir/install.sh -c"
2412 elif test -f "$ac_dir/shtool"; then
2414 ac_install_sh="$ac_aux_dir/shtool install -c"
2418 if test -z "$ac_aux_dir"; then
2419 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2422 # These three variables are undocumented and unsupported,
2423 # and are intended to be withdrawn in a future Autoconf release.
2424 # They can cause serious problems if a builder's source tree is in a directory
2425 # whose full name contains unusual characters.
2426 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if ${ac_cv_prog_CC+:} false; then :
2443 $as_echo_n "(cached) " >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468 $as_echo "$CC" >&6; }
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471 $as_echo "no" >&6; }
2476 if test -z "$ac_cv_prog_CC"; then
2478 # Extract the first word of "gcc", so it can be a program name with args.
2479 set dummy gcc; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2483 $as_echo_n "(cached) " >&6
2485 if test -n "$ac_ct_CC"; then
2486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_ac_ct_CC="gcc"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506 if test -n "$ac_ct_CC"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2508 $as_echo "$ac_ct_CC" >&6; }
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2514 if test "x$ac_ct_CC" = x; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521 ac_tool_warned=yes ;;
2529 if test -z "$CC"; then
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}cc; ac_word=$2
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534 $as_echo_n "checking for $ac_word... " >&6; }
2535 if ${ac_cv_prog_CC+:} false; then :
2536 $as_echo_n "(cached) " >&6
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548 ac_cv_prog_CC="${ac_tool_prefix}cc"
2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 if test -n "$CC"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561 $as_echo "$CC" >&6; }
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2570 if test -z "$CC"; then
2571 # Extract the first word of "cc", so it can be a program name with args.
2572 set dummy cc; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if ${ac_cv_prog_CC+:} false; then :
2576 $as_echo_n "(cached) " >&6
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2590 ac_prog_rejected=yes
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 if test $ac_prog_rejected = yes; then
2602 # We found a bogon in the path, so make sure we never use it.
2603 set dummy $ac_cv_prog_CC
2605 if test $# != 0; then
2606 # We chose a different compiler from the bogus one.
2607 # However, it has the same basename, so the bogon will be chosen
2608 # first if we set CC to just the basename; use the full file name.
2610 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2616 if test -n "$CC"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618 $as_echo "$CC" >&6; }
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2626 if test -z "$CC"; then
2627 if test -n "$ac_tool_prefix"; then
2628 for ac_prog in cl.exe
2630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_CC+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 if test -n "$CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2667 test -n "$CC" && break
2670 if test -z "$CC"; then
2672 for ac_prog in cl.exe
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2679 $as_echo_n "(cached) " >&6
2681 if test -n "$ac_ct_CC"; then
2682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_CC="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2702 if test -n "$ac_ct_CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2704 $as_echo "$ac_ct_CC" >&6; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2711 test -n "$ac_ct_CC" && break
2714 if test "x$ac_ct_CC" = x; then
2717 case $cross_compiling:$ac_tool_warned in
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2730 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $? "no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details" "$LINENO" 5; }
2735 # Provide some information about the compiler.
2736 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2739 for ac_option in --version -v -V -qversion; do
2740 { { ac_try="$ac_compiler $ac_option >&5"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746 $as_echo "$ac_try_echo"; } >&5
2747 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2749 if test -s conftest.err; then
2751 ... rest of stderr output deleted ...
2752 10q' conftest.err >conftest.er1
2753 cat conftest.er1 >&5
2755 rm -f conftest.er1 conftest.err
2756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757 test $ac_status = 0; }
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2771 ac_clean_files_save=$ac_clean_files
2772 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2773 # Try to create an executable without -o first, disregard a.out.
2774 # It will help us diagnose broken compilers, and finding out an intuition
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2777 $as_echo_n "checking whether the C compiler works... " >&6; }
2778 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2780 # The possible output files:
2781 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2784 for ac_file in $ac_files
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2788 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793 if { { ac_try="$ac_link_default"
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_link_default") 2>&5
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }; then :
2804 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2805 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2806 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2807 # so that the user can short-circuit this test for compilers unknown to
2809 for ac_file in $ac_files ''
2811 test -f "$ac_file" || continue
2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2816 # We found the default executable, but exeext='' is most
2820 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2822 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824 # We set ac_cv_exeext here because the later test for it is not
2825 # safe: cross compilers may not add the suffix if given an `-o'
2826 # argument, so we may need to know it at that point already.
2827 # Even if this section looks crufty: it has the advantage of
2834 test "$ac_cv_exeext" = no && ac_cv_exeext=
2839 if test -z "$ac_file"; then :
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 $as_echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 as_fn_error 77 "C compiler cannot create executables
2848 See \`config.log' for more details" "$LINENO" 5; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2851 $as_echo "yes" >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2854 $as_echo_n "checking for C compiler default output file name... " >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2856 $as_echo "$ac_file" >&6; }
2857 ac_exeext=$ac_cv_exeext
2859 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2860 ac_clean_files=$ac_clean_files_save
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2862 $as_echo_n "checking for suffix of executables... " >&6; }
2863 if { { ac_try="$ac_link"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869 $as_echo "$ac_try_echo"; } >&5
2870 (eval "$ac_link") 2>&5
2872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2873 test $ac_status = 0; }; then :
2874 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2875 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2876 # work properly (i.e., refer to `conftest.exe'), while it won't with
2878 for ac_file in conftest.exe conftest conftest.*; do
2879 test -f "$ac_file" || continue
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2891 See \`config.log' for more details" "$LINENO" 5; }
2893 rm -f conftest conftest$ac_cv_exeext
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2895 $as_echo "$ac_cv_exeext" >&6; }
2897 rm -f conftest.$ac_ext
2898 EXEEXT=$ac_cv_exeext
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2906 FILE *f = fopen ("conftest.out", "w");
2907 return ferror (f) || fclose (f) != 0;
2913 ac_clean_files="$ac_clean_files conftest.out"
2914 # Check that the compiler produces executables we can run. If not, either
2915 # the compiler is broken, or we cross compile.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2917 $as_echo_n "checking whether we are cross compiling... " >&6; }
2918 if test "$cross_compiling" != yes; then
2919 { { ac_try="$ac_link"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925 $as_echo "$ac_try_echo"; } >&5
2926 (eval "$ac_link") 2>&5
2928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929 test $ac_status = 0; }
2930 if { ac_try='./conftest$ac_cv_exeext'
2931 { { case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 $as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_try") 2>&5
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }; }; then
2943 if test "$cross_compiling" = maybe; then
2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error $? "cannot run C compiled programs.
2949 If you meant to cross compile, use \`--host'.
2950 See \`config.log' for more details" "$LINENO" 5; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2955 $as_echo "$cross_compiling" >&6; }
2957 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2958 ac_clean_files=$ac_clean_files_save
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2960 $as_echo_n "checking for suffix of object files... " >&6; }
2961 if ${ac_cv_objext+:} false; then :
2962 $as_echo_n "(cached) " >&6
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2975 rm -f conftest.o conftest.obj
2976 if { { ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982 $as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_compile") 2>&5
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }; then :
2987 for ac_file in conftest.o conftest.obj conftest.*; do
2988 test -f "$ac_file" || continue;
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996 $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001 as_fn_error $? "cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details" "$LINENO" 5; }
3004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3007 $as_echo "$ac_cv_objext" >&6; }
3008 OBJEXT=$ac_cv_objext
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3011 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3012 if ${ac_cv_c_compiler_gnu+:} false; then :
3013 $as_echo_n "(cached) " >&6
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3029 if ac_fn_c_try_compile "$LINENO"; then :
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3039 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3040 if test $ac_compiler_gnu = yes; then
3045 ac_test_CFLAGS=${CFLAGS+set}
3046 ac_save_CFLAGS=$CFLAGS
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3048 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3049 if ${ac_cv_prog_cc_g+:} false; then :
3050 $as_echo_n "(cached) " >&6
3052 ac_save_c_werror_flag=$ac_c_werror_flag
3053 ac_c_werror_flag=yes
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3067 if ac_fn_c_try_compile "$LINENO"; then :
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3082 if ac_fn_c_try_compile "$LINENO"; then :
3085 ac_c_werror_flag=$ac_save_c_werror_flag
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3098 if ac_fn_c_try_compile "$LINENO"; then :
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3109 $as_echo "$ac_cv_prog_cc_g" >&6; }
3110 if test "$ac_test_CFLAGS" = set; then
3111 CFLAGS=$ac_save_CFLAGS
3112 elif test $ac_cv_prog_cc_g = yes; then
3113 if test "$GCC" = yes; then
3119 if test "$GCC" = yes; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3126 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3127 if ${ac_cv_prog_cc_c89+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 ac_cv_prog_cc_c89=no
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3138 struct buf { int x; };
3139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3140 static char *e (p, i)
3146 static char *f (char * (*g) (char **, int), char **p, ...)
3151 s = g (p, va_arg (v,int));
3156 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3157 function prototypes and stuff, but not '\xHH' hex character constants.
3158 These don't provoke an error unfortunately, instead are silently treated
3159 as 'x'. The following induces an error, until -std is added to get
3160 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3161 array size at least. It's necessary to write '\x00'==0 to get something
3162 that's true only with -std. */
3163 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3165 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3166 inside strings and character constants. */
3168 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3170 int test (int i, double x);
3171 struct s1 {int (*f) (int a);};
3172 struct s2 {int (*f) (double a);};
3173 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3179 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3184 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3185 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3187 CC="$ac_save_CC $ac_arg"
3188 if ac_fn_c_try_compile "$LINENO"; then :
3189 ac_cv_prog_cc_c89=$ac_arg
3191 rm -f core conftest.err conftest.$ac_objext
3192 test "x$ac_cv_prog_cc_c89" != "xno" && break
3194 rm -f conftest.$ac_ext
3199 case "x$ac_cv_prog_cc_c89" in
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3202 $as_echo "none needed" >&6; } ;;
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3205 $as_echo "unsupported" >&6; } ;;
3207 CC="$CC $ac_cv_prog_cc_c89"
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3209 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3211 if test "x$ac_cv_prog_cc_c89" != xno; then :
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3228 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3229 # On Suns, sometimes $CPP names a directory.
3230 if test -n "$CPP" && test -d "$CPP"; then
3233 if test -z "$CPP"; then
3234 if ${ac_cv_prog_CPP+:} false; then :
3235 $as_echo_n "(cached) " >&6
3237 # Double quotes because CPP needs to be expanded
3238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3241 for ac_c_preproc_warn_flag in '' yes
3243 # Use a header file that comes with gcc, so configuring glibc
3244 # with a fresh cross-compiler works.
3245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 # <limits.h> exists even on freestanding compilers.
3247 # On the NeXT, cc -E runs the code through the compiler's parser,
3248 # not just through cpp. "Syntax error" is here to catch this case.
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3252 # include <limits.h>
3254 # include <assert.h>
3258 if ac_fn_c_try_cpp "$LINENO"; then :
3261 # Broken: fails on valid input.
3264 rm -f conftest.err conftest.i conftest.$ac_ext
3266 # OK, works on sane cases. Now check whether nonexistent headers
3267 # can be detected and how.
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3270 #include <ac_nonexistent.h>
3272 if ac_fn_c_try_cpp "$LINENO"; then :
3273 # Broken: success on invalid input.
3276 # Passes both tests.
3280 rm -f conftest.err conftest.i conftest.$ac_ext
3283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284 rm -f conftest.i conftest.err conftest.$ac_ext
3285 if $ac_preproc_ok; then :
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3298 $as_echo "$CPP" >&6; }
3300 for ac_c_preproc_warn_flag in '' yes
3302 # Use a header file that comes with gcc, so configuring glibc
3303 # with a fresh cross-compiler works.
3304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305 # <limits.h> exists even on freestanding compilers.
3306 # On the NeXT, cc -E runs the code through the compiler's parser,
3307 # not just through cpp. "Syntax error" is here to catch this case.
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3311 # include <limits.h>
3313 # include <assert.h>
3317 if ac_fn_c_try_cpp "$LINENO"; then :
3320 # Broken: fails on valid input.
3323 rm -f conftest.err conftest.i conftest.$ac_ext
3325 # OK, works on sane cases. Now check whether nonexistent headers
3326 # can be detected and how.
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3329 #include <ac_nonexistent.h>
3331 if ac_fn_c_try_cpp "$LINENO"; then :
3332 # Broken: success on invalid input.
3335 # Passes both tests.
3339 rm -f conftest.err conftest.i conftest.$ac_ext
3342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3343 rm -f conftest.i conftest.err conftest.$ac_ext
3344 if $ac_preproc_ok; then :
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3350 See \`config.log' for more details" "$LINENO" 5; }
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3361 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3362 if ${ac_cv_path_GREP+:} false; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -z "$GREP"; then
3366 ac_path_GREP_found=false
3367 # Loop through the user's path and test for each of PROGNAME-LIST
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3372 test -z "$as_dir" && as_dir=.
3373 for ac_prog in grep ggrep; do
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3376 as_fn_executable_p "$ac_path_GREP" || continue
3377 # Check for GNU ac_path_GREP and select it if it is found.
3378 # Check for GNU $ac_path_GREP
3379 case `"$ac_path_GREP" --version 2>&1` in
3381 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3384 $as_echo_n 0123456789 >"conftest.in"
3387 cat "conftest.in" "conftest.in" >"conftest.tmp"
3388 mv "conftest.tmp" "conftest.in"
3389 cp "conftest.in" "conftest.nl"
3390 $as_echo 'GREP' >> "conftest.nl"
3391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393 as_fn_arith $ac_count + 1 && ac_count=$as_val
3394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3395 # Best one so far, save it but keep looking for a better one
3396 ac_cv_path_GREP="$ac_path_GREP"
3397 ac_path_GREP_max=$ac_count
3399 # 10*(2^10) chars as input seems more than enough
3400 test $ac_count -gt 10 && break
3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405 $ac_path_GREP_found && break 3
3410 if test -z "$ac_cv_path_GREP"; then
3411 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3414 ac_cv_path_GREP=$GREP
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3419 $as_echo "$ac_cv_path_GREP" >&6; }
3420 GREP="$ac_cv_path_GREP"
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3424 $as_echo_n "checking for egrep... " >&6; }
3425 if ${ac_cv_path_EGREP+:} false; then :
3426 $as_echo_n "(cached) " >&6
3428 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3429 then ac_cv_path_EGREP="$GREP -E"
3431 if test -z "$EGREP"; then
3432 ac_path_EGREP_found=false
3433 # Loop through the user's path and test for each of PROGNAME-LIST
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3438 test -z "$as_dir" && as_dir=.
3439 for ac_prog in egrep; do
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3442 as_fn_executable_p "$ac_path_EGREP" || continue
3443 # Check for GNU ac_path_EGREP and select it if it is found.
3444 # Check for GNU $ac_path_EGREP
3445 case `"$ac_path_EGREP" --version 2>&1` in
3447 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3450 $as_echo_n 0123456789 >"conftest.in"
3453 cat "conftest.in" "conftest.in" >"conftest.tmp"
3454 mv "conftest.tmp" "conftest.in"
3455 cp "conftest.in" "conftest.nl"
3456 $as_echo 'EGREP' >> "conftest.nl"
3457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3459 as_fn_arith $ac_count + 1 && ac_count=$as_val
3460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3461 # Best one so far, save it but keep looking for a better one
3462 ac_cv_path_EGREP="$ac_path_EGREP"
3463 ac_path_EGREP_max=$ac_count
3465 # 10*(2^10) chars as input seems more than enough
3466 test $ac_count -gt 10 && break
3468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3471 $ac_path_EGREP_found && break 3
3476 if test -z "$ac_cv_path_EGREP"; then
3477 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3480 ac_cv_path_EGREP=$EGREP
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3486 $as_echo "$ac_cv_path_EGREP" >&6; }
3487 EGREP="$ac_cv_path_EGREP"
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3491 $as_echo_n "checking for ANSI C header files... " >&6; }
3492 if ${ac_cv_header_stdc+:} false; then :
3493 $as_echo_n "(cached) " >&6
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_cv_header_stdc=yes
3513 ac_cv_header_stdc=no
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 if test $ac_cv_header_stdc = yes; then
3518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3525 $EGREP "memchr" >/dev/null 2>&1; then :
3528 ac_cv_header_stdc=no
3534 if test $ac_cv_header_stdc = yes; then
3535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3542 $EGREP "free" >/dev/null 2>&1; then :
3545 ac_cv_header_stdc=no
3551 if test $ac_cv_header_stdc = yes; then
3552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3553 if test "$cross_compiling" = yes; then :
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3560 #if ((' ' & 0x0FF) == 0x020)
3561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3564 # define ISLOWER(c) \
3565 (('a' <= (c) && (c) <= 'i') \
3566 || ('j' <= (c) && (c) <= 'r') \
3567 || ('s' <= (c) && (c) <= 'z'))
3568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3576 for (i = 0; i < 256; i++)
3577 if (XOR (islower (i), ISLOWER (i))
3578 || toupper (i) != TOUPPER (i))
3583 if ac_fn_c_try_run "$LINENO"; then :
3586 ac_cv_header_stdc=no
3588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3589 conftest.$ac_objext conftest.beam conftest.$ac_ext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3595 $as_echo "$ac_cv_header_stdc" >&6; }
3596 if test $ac_cv_header_stdc = yes; then
3598 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3602 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3604 inttypes.h stdint.h unistd.h
3606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3607 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3610 cat >>confdefs.h <<_ACEOF
3611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3620 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3621 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3628 if test "$MINIX" = yes; then
3630 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3633 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3636 $as_echo "#define _MINIX 1" >>confdefs.h
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3642 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3643 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3649 # define __EXTENSIONS__ 1
3650 $ac_includes_default
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_safe_to_define___extensions__=yes
3662 ac_cv_safe_to_define___extensions__=no
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3667 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3668 test $ac_cv_safe_to_define___extensions__ = yes &&
3669 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3671 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3673 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3675 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3677 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3680 am__api_version='1.11'
3682 # Find a good install program. We prefer a C program (faster),
3683 # so one script is as good as another. But avoid the broken or
3684 # incompatible versions:
3685 # SysV /etc/install, /usr/sbin/install
3686 # SunOS /usr/etc/install
3687 # IRIX /sbin/install
3689 # AmigaOS /C/install, which installs bootblocks on floppy discs
3690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3693 # OS/2's system install, which has a completely different semantic
3694 # ./install, which can be erroneously created by make from ./install.sh.
3695 # Reject install programs that cannot install multiple files.
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3697 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3698 if test -z "$INSTALL"; then
3699 if ${ac_cv_path_install+:} false; then :
3700 $as_echo_n "(cached) " >&6
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir=.
3707 # Account for people who put trailing slashes in PATH elements.
3708 case $as_dir/ in #((
3709 ./ | .// | /[cC]/* | \
3710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3711 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3714 # OSF1 and SCO ODT 3.0 have their own names for install.
3715 # Don't use installbsd from OSF since it installs stuff as root
3717 for ac_prog in ginstall scoinst install; do
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3720 if test $ac_prog = install &&
3721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3722 # AIX install. It has an incompatible calling convention.
3724 elif test $ac_prog = install &&
3725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3726 # program-specific install script used by HP pwplus--don't use.
3729 rm -rf conftest.one conftest.two conftest.dir
3730 echo one > conftest.one
3731 echo two > conftest.two
3733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3734 test -s conftest.one && test -s conftest.two &&
3735 test -s conftest.dir/conftest.one &&
3736 test -s conftest.dir/conftest.two
3738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3751 rm -rf conftest.one conftest.two conftest.dir
3754 if test "${ac_cv_path_install+set}" = set; then
3755 INSTALL=$ac_cv_path_install
3757 # As a last resort, use the slow shell script. Don't cache a
3758 # value for INSTALL within a source directory, because that will
3759 # break other packages using the cache if that directory is
3760 # removed, or if the value is a relative name.
3761 INSTALL=$ac_install_sh
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3765 $as_echo "$INSTALL" >&6; }
3767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3768 # It thinks the first close brace ends the variable substitution.
3769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3776 $as_echo_n "checking whether build environment is sane... " >&6; }
3779 echo timestamp > conftest.file
3780 # Reject unsafe characters in $srcdir or the absolute working directory
3781 # name. Accept space and tab only in the latter.
3785 *[\\\"\#\$\&\'\`$am_lf]*)
3786 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3789 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3790 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3793 # Do `set' in a subshell so we don't clobber the current shell's
3794 # arguments. Must try -L first in case configure is actually a
3795 # symlink; some systems play weird games with the mod time of symlinks
3796 # (eg FreeBSD returns the mod time of the symlink's containing
3799 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3800 if test "$*" = "X"; then
3802 set X `ls -t "$srcdir/configure" conftest.file`
3805 if test "$*" != "X $srcdir/configure conftest.file" \
3806 && test "$*" != "X conftest.file $srcdir/configure"; then
3808 # If neither matched, then we have a broken ls. This can happen
3809 # if, for instance, CONFIG_SHELL is bash and it inherits a
3810 # broken ls alias from the environment. This has actually
3811 # happened. Such a system could not be considered "sane".
3812 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3813 alias in your environment" "$LINENO" 5
3816 test "$2" = conftest.file
3822 as_fn_error $? "newly created file is older than distributed files!
3823 Check your system clock" "$LINENO" 5
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3826 $as_echo "yes" >&6; }
3827 test "$program_prefix" != NONE &&
3828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3829 # Use a double $ so make ignores it.
3830 test "$program_suffix" != NONE &&
3831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3832 # Double any \ or $.
3833 # By default was `s,x,x', remove it if useless.
3834 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3835 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3837 # expand $ac_aux_dir to an absolute path
3838 am_aux_dir=`cd $ac_aux_dir && pwd`
3840 if test x"${MISSING+set}" != xset; then
3843 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3845 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3848 # Use eval to expand $SHELL
3849 if eval "$MISSING --run true"; then
3850 am_missing_run="$MISSING --run "
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3854 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3857 if test x"${install_sh}" != xset; then
3860 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3862 install_sh="\${SHELL} $am_aux_dir/install-sh"
3866 # Installed binaries are usually stripped using `strip' when the user
3867 # run `make install-strip'. However `strip' might not be the right
3868 # tool to use in cross-compilation environments, therefore Automake
3869 # will honor the `STRIP' environment variable to overrule this program.
3870 if test "$cross_compiling" != no; then
3871 if test -n "$ac_tool_prefix"; then
3872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3873 set dummy ${ac_tool_prefix}strip; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_STRIP+:} false; then :
3877 $as_echo_n "(cached) " >&6
3879 if test -n "$STRIP"; then
3880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 STRIP=$ac_cv_prog_STRIP
3900 if test -n "$STRIP"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3902 $as_echo "$STRIP" >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3910 if test -z "$ac_cv_prog_STRIP"; then
3912 # Extract the first word of "strip", so it can be a program name with args.
3913 set dummy strip; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 if test -n "$ac_ct_STRIP"; then
3920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_ac_ct_STRIP="strip"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3940 if test -n "$ac_ct_STRIP"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3942 $as_echo "$ac_ct_STRIP" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3948 if test "x$ac_ct_STRIP" = x; then
3951 case $cross_compiling:$ac_tool_warned in
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3955 ac_tool_warned=yes ;;
3960 STRIP="$ac_cv_prog_STRIP"
3964 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3967 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3968 if test -z "$MKDIR_P"; then
3969 if ${ac_cv_path_mkdir+:} false; then :
3970 $as_echo_n "(cached) " >&6
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in mkdir gmkdir; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3980 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3981 'mkdir (GNU coreutils) '* | \
3982 'mkdir (coreutils) '* | \
3983 'mkdir (fileutils) '4.1*)
3984 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3994 test -d ./--version && rmdir ./--version
3995 if test "${ac_cv_path_mkdir+set}" = set; then
3996 MKDIR_P="$ac_cv_path_mkdir -p"
3998 # As a last resort, use the slow shell script. Don't cache a
3999 # value for MKDIR_P within a source directory, because that will
4000 # break other packages using the cache if that directory is
4001 # removed, or if the value is a relative name.
4002 MKDIR_P="$ac_install_sh -d"
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4006 $as_echo "$MKDIR_P" >&6; }
4010 [\\/$]* | ?:[\\/]*) ;;
4011 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4014 for ac_prog in gawk mawk nawk awk
4016 # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_AWK+:} false; then :
4021 $as_echo_n "(cached) " >&6
4023 if test -n "$AWK"; then
4024 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_AWK="$ac_prog"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 if test -n "$AWK"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4046 $as_echo "$AWK" >&6; }
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4053 test -n "$AWK" && break
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4060 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 cat >conftest.make <<\_ACEOF
4066 @echo '@@@%%%=$(MAKE)=@@@%%%'
4068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4071 eval ac_cv_prog_make_${ac_make}_set=yes;;
4073 eval ac_cv_prog_make_${ac_make}_set=no;;
4077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079 $as_echo "yes" >&6; }
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084 SET_MAKE="MAKE=${MAKE-make}"
4087 rm -rf .tst 2>/dev/null
4088 mkdir .tst 2>/dev/null
4089 if test -d .tst; then
4094 rmdir .tst 2>/dev/null
4096 DEPDIR="${am__leading_dot}deps"
4098 ac_config_commands="$ac_config_commands depfiles"
4101 am_make=${MAKE-make}
4102 cat > confinc << 'END'
4104 @echo this is the am__doit target
4107 # If we don't find an include directive, just comment out the code.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4109 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4113 # First try GNU make style include.
4114 echo "include confinc" > confmf
4115 # Ignore all kinds of additional output from `make'.
4116 case `$am_make -s -f confmf 2> /dev/null` in #(
4117 *the\ am__doit\ target*)
4123 # Now try BSD make style include.
4124 if test "$am__include" = "#"; then
4125 echo '.include "confinc"' > confmf
4126 case `$am_make -s -f confmf 2> /dev/null` in #(
4127 *the\ am__doit\ target*)
4128 am__include=.include
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4137 $as_echo "$_am_result" >&6; }
4138 rm -f confinc confmf
4140 # Check whether --enable-dependency-tracking was given.
4141 if test "${enable_dependency_tracking+set}" = set; then :
4142 enableval=$enable_dependency_tracking;
4145 if test "x$enable_dependency_tracking" != xno; then
4146 am_depcomp="$ac_aux_dir/depcomp"
4150 if test "x$enable_dependency_tracking" != xno; then
4159 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4160 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4161 # is not polluted with repeated "-I."
4162 am__isrc=' -I$(srcdir)'
4163 # test to see if srcdir already configured
4164 if test -f $srcdir/config.status; then
4165 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4169 # test whether we have cygpath
4170 if test -z "$CYGPATH_W"; then
4171 if (cygpath --version) >/dev/null 2>/dev/null; then
4172 CYGPATH_W='cygpath -w'
4179 # Define the identity of the package.
4184 cat >>confdefs.h <<_ACEOF
4185 #define PACKAGE "$PACKAGE"
4189 cat >>confdefs.h <<_ACEOF
4190 #define VERSION "$VERSION"
4193 # Some tools Automake needs.
4195 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4198 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4201 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4204 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4207 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4209 # We need awk for the "check" target. The system "awk" is bad on
4211 # Always define AMTAR for backward compatibility. Yes, it's still used
4212 # in the wild :-( We should find a proper way to deprecate it ...
4215 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4220 depcc="$CC" am_compiler_list=
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4223 $as_echo_n "checking dependency style of $depcc... " >&6; }
4224 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4225 $as_echo_n "(cached) " >&6
4227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4228 # We make a subdir and do the tests there. Otherwise we can end up
4229 # making bogus files that we don't know about and never remove. For
4230 # instance it was reported that on HP-UX the gcc test will end up
4231 # making a dummy file named `D' -- because `-MD' means `put the output
4235 # Copy depcomp to subdir because otherwise we won't find it if we're
4236 # using a relative directory.
4237 cp "$am_depcomp" conftest.dir
4239 # We will build objects and dependencies in a subdirectory because
4240 # it helps to detect inapplicable dependency modes. For instance
4241 # both Tru64's cc and ICC support -MD to output dependencies as a
4242 # side effect of compilation, but ICC will put the dependencies in
4243 # the current directory while Tru64 will put them in the object
4247 am_cv_CC_dependencies_compiler_type=none
4248 if test "$am_compiler_list" = ""; then
4249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4252 case " $depcc " in #(
4253 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4256 for depmode in $am_compiler_list; do
4257 # Setup a source with many dependencies, because some compilers
4258 # like to wrap large dependency lists on column 80 (with \), and
4259 # we should not choose a depcomp mode which is confused by this.
4261 # We need to recreate these files for each test, as the compiler may
4262 # overwrite some of them when testing with obscure command lines.
4263 # This happens at least with the AIX C compiler.
4265 for i in 1 2 3 4 5 6; do
4266 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4267 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4268 # Solaris 8's {/usr,}/bin/sh.
4269 touch sub/conftst$i.h
4271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4273 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4274 # mode. It turns out that the SunPro C++ compiler does not properly
4275 # handle `-M -o', and we need to detect this. Also, some Intel
4276 # versions had trouble with output in subdirs
4277 am__obj=sub/conftest.${OBJEXT-o}
4278 am__minus_obj="-o $am__obj"
4281 # This depmode causes a compiler race in universal mode.
4282 test "$am__universal" = false || continue
4285 # after this tag, mechanisms are not by side-effect, so they'll
4286 # only be used when explicitly requested
4287 if test "x$enable_dependency_tracking" = xyes; then
4293 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4294 # This compiler won't grok `-c -o', but also, the minuso test has
4295 # not run yet. These depmodes are late enough in the game, and
4296 # so weak that their functioning should not be impacted.
4297 am__obj=conftest.${OBJEXT-o}
4302 if depmode=$depmode \
4303 source=sub/conftest.c object=$am__obj \
4304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4306 >/dev/null 2>conftest.err &&
4307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4311 # icc doesn't choke on unknown options, it will just issue warnings
4312 # or remarks (even with -Werror). So we grep stderr for any message
4313 # that says an option was ignored or not supported.
4314 # When given -MP, icc 7.0 and 7.1 complain thusly:
4315 # icc: Command line warning: ignoring option '-M'; no argument required
4316 # The diagnosis changed in icc 8.0:
4317 # icc: Command line remark: option '-MP' not supported
4318 if (grep 'ignoring option' conftest.err ||
4319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4320 am_cv_CC_dependencies_compiler_type=$depmode
4329 am_cv_CC_dependencies_compiler_type=none
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4334 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4335 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4338 test "x$enable_dependency_tracking" != xno \
4339 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4341 am__fastdepCC_FALSE='#'
4343 am__fastdepCC_TRUE='#'
4344 am__fastdepCC_FALSE=
4349 if test "x$CC" != xcc; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4351 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4354 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4356 set dummy $CC; ac_cc=`$as_echo "$2" |
4357 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4358 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4372 # Make sure it works both with $CC and with simple cc.
4373 # We do the test twice because some compilers refuse to overwrite an
4374 # existing .o file with -o, though they will create one.
4375 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4377 if { { case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_try") 2>&5
4385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386 test $ac_status = 0; } &&
4387 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_try") 2>&5
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; };
4398 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4399 if test "x$CC" != xcc; then
4400 # Test first that cc exists at all.
4401 if { ac_try='cc -c conftest.$ac_ext >&5'
4402 { { case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_try") 2>&5
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; }; then
4412 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4414 if { { case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_try") 2>&5
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; } &&
4424 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_try") 2>&5
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; };
4438 # cc exists but doesn't like -o.
4439 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4444 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4446 rm -f core conftest*
4449 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4451 $as_echo "yes" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4456 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4460 # FIXME: we rely on the cache variable name because
4461 # there is no other way.
4463 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4464 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4465 if test "$am_t" != yes; then
4466 # Losing compiler, so override with the script.
4467 # FIXME: It is wrong to rewrite CC.
4468 # But if we don't then we get into trouble of one sort or another.
4469 # A longer-term fix would be to have automake use am__CC in this case,
4470 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4471 CC="$am_aux_dir/compile $CC"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4477 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4478 # Check whether --enable-maintainer-mode was given.
4479 if test "${enable_maintainer_mode+set}" = set; then :
4480 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4482 USE_MAINTAINER_MODE=no
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4486 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4487 if test $USE_MAINTAINER_MODE = yes; then
4488 MAINTAINER_MODE_TRUE=
4489 MAINTAINER_MODE_FALSE='#'
4491 MAINTAINER_MODE_TRUE='#'
4492 MAINTAINER_MODE_FALSE=
4495 MAINT=$MAINTAINER_MODE_TRUE
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4502 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4507 macro_version='2.4.2'
4508 macro_revision='1.3337'
4522 ltmain="$ac_aux_dir/ltmain.sh"
4524 # Make sure we can run config.sub.
4525 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4526 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4529 $as_echo_n "checking build system type... " >&6; }
4530 if ${ac_cv_build+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 ac_build_alias=$build_alias
4534 test "x$ac_build_alias" = x &&
4535 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4536 test "x$ac_build_alias" = x &&
4537 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4538 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4543 $as_echo "$ac_cv_build" >&6; }
4544 case $ac_cv_build in
4546 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4549 ac_save_IFS=$IFS; IFS='-'
4555 # Remember, the first character of IFS is used to create $*,
4556 # except with old shells:
4559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4563 $as_echo_n "checking host system type... " >&6; }
4564 if ${ac_cv_host+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 if test "x$host_alias" = x; then
4568 ac_cv_host=$ac_cv_build
4570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4576 $as_echo "$ac_cv_host" >&6; }
4579 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4582 ac_save_IFS=$IFS; IFS='-'
4588 # Remember, the first character of IFS is used to create $*,
4589 # except with old shells:
4592 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4595 # Backslashify metacharacters that are still active within
4596 # double-quoted strings.
4597 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4599 # Same as above, but do not quote variable references.
4600 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4602 # Sed substitution to delay expansion of an escaped shell variable in a
4603 # double_quote_subst'ed string.
4604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4606 # Sed substitution to delay expansion of an escaped single quote.
4607 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4609 # Sed substitution to avoid accidental globbing in evaled expressions
4610 no_glob_subst='s/\*/\\\*/g'
4612 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4614 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4617 $as_echo_n "checking how to print strings... " >&6; }
4618 # Test print first, because it will be a builtin if present.
4619 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4620 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4622 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4625 # Use this function as a fallback that always works.
4626 func_fallback_echo ()
4628 eval 'cat <<_LTECHO_EOF
4632 ECHO='func_fallback_echo'
4635 # func_echo_all arg...
4636 # Invoke $ECHO with all args, space-separated.
4643 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4644 $as_echo "printf" >&6; } ;;
4645 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4646 $as_echo "print -r" >&6; } ;;
4647 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4648 $as_echo "cat" >&6; } ;;
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4666 if ${ac_cv_path_SED+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4670 for ac_i in 1 2 3 4 5 6 7; do
4671 ac_script="$ac_script$as_nl$ac_script"
4673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4674 { ac_script=; unset ac_script;}
4675 if test -z "$SED"; then
4676 ac_path_SED_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in sed gsed; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4686 as_fn_executable_p "$ac_path_SED" || continue
4687 # Check for GNU ac_path_SED and select it if it is found.
4688 # Check for GNU $ac_path_SED
4689 case `"$ac_path_SED" --version 2>&1` in
4691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4694 $as_echo_n 0123456789 >"conftest.in"
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo '' >> "conftest.nl"
4701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_SED_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_SED="$ac_path_SED"
4707 ac_path_SED_max=$ac_count
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 $ac_path_SED_found && break 3
4720 if test -z "$ac_cv_path_SED"; then
4721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4729 $as_echo "$ac_cv_path_SED" >&6; }
4730 SED="$ac_cv_path_SED"
4733 test -z "$SED" && SED=sed
4734 Xsed="$SED -e 1s/^X//"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4747 $as_echo_n "checking for fgrep... " >&6; }
4748 if ${ac_cv_path_FGREP+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4752 then ac_cv_path_FGREP="$GREP -F"
4754 if test -z "$FGREP"; then
4755 ac_path_FGREP_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4761 test -z "$as_dir" && as_dir=.
4762 for ac_prog in fgrep; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4765 as_fn_executable_p "$ac_path_FGREP" || continue
4766 # Check for GNU ac_path_FGREP and select it if it is found.
4767 # Check for GNU $ac_path_FGREP
4768 case `"$ac_path_FGREP" --version 2>&1` in
4770 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4773 $as_echo_n 0123456789 >"conftest.in"
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'FGREP' >> "conftest.nl"
4780 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 as_fn_arith $ac_count + 1 && ac_count=$as_val
4783 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_FGREP="$ac_path_FGREP"
4786 ac_path_FGREP_max=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4794 $ac_path_FGREP_found && break 3
4799 if test -z "$ac_cv_path_FGREP"; then
4800 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4803 ac_cv_path_FGREP=$FGREP
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4809 $as_echo "$ac_cv_path_FGREP" >&6; }
4810 FGREP="$ac_cv_path_FGREP"
4813 test -z "$GREP" && GREP=grep
4833 # Check whether --with-gnu-ld was given.
4834 if test "${with_gnu_ld+set}" = set; then :
4835 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4841 if test "$GCC" = yes; then
4842 # Check if gcc -print-prog-name=ld gives a path.
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4844 $as_echo_n "checking for ld used by $CC... " >&6; }
4847 # gcc leaves a trailing carriage return which upsets mingw
4848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4853 # Accept absolute paths.
4855 re_direlt='/[^/][^/]*/\.\./'
4856 # Canonicalize the pathname of ld
4857 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4858 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4859 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4861 test -z "$LD" && LD="$ac_prog"
4864 # If it fails, then pretend we aren't using GCC.
4868 # If it is relative, then search for the first ld in PATH.
4872 elif test "$with_gnu_ld" = yes; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4874 $as_echo_n "checking for GNU ld... " >&6; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4877 $as_echo_n "checking for non-GNU ld... " >&6; }
4879 if ${lt_cv_path_LD+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 if test -z "$LD"; then
4883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4884 for ac_dir in $PATH; do
4886 test -z "$ac_dir" && ac_dir=.
4887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4888 lt_cv_path_LD="$ac_dir/$ac_prog"
4889 # Check to see if the program is GNU ld. I'd rather use --version,
4890 # but apparently some variants of GNU ld only accept -v.
4891 # Break only if it was the GNU/non-GNU ld that we prefer.
4892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4893 *GNU* | *'with BFD'*)
4894 test "$with_gnu_ld" != no && break
4897 test "$with_gnu_ld" != yes && break
4904 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4909 if test -n "$LD"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4911 $as_echo "$LD" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4916 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4919 if ${lt_cv_prog_gnu_ld+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4923 case `$LD -v 2>&1 </dev/null` in
4924 *GNU* | *'with BFD'*)
4925 lt_cv_prog_gnu_ld=yes
4928 lt_cv_prog_gnu_ld=no
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4934 with_gnu_ld=$lt_cv_prog_gnu_ld
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4946 if ${lt_cv_path_NM+:} false; then :
4947 $as_echo_n "(cached) " >&6
4949 if test -n "$NM"; then
4950 # Let the user override the test.
4953 lt_nm_to_check="${ac_tool_prefix}nm"
4954 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4955 lt_nm_to_check="$lt_nm_to_check nm"
4957 for lt_tmp_nm in $lt_nm_to_check; do
4958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4959 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4961 test -z "$ac_dir" && ac_dir=.
4962 tmp_nm="$ac_dir/$lt_tmp_nm"
4963 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4964 # Check to see if the nm accepts a BSD-compat flag.
4965 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4966 # nm: unknown option "B" ignored
4967 # Tru64's nm complains that /dev/null is an invalid object file
4968 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4969 */dev/null* | *'Invalid file or object type'*)
4970 lt_cv_path_NM="$tmp_nm -B"
4974 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4976 lt_cv_path_NM="$tmp_nm -p"
4980 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4981 continue # so that we can try to find one that supports BSD flags
4990 : ${lt_cv_path_NM=no}
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4994 $as_echo "$lt_cv_path_NM" >&6; }
4995 if test "$lt_cv_path_NM" != "no"; then
4998 # Didn't find any BSD compatible name lister, look for dumpbin.
4999 if test -n "$DUMPBIN"; then :
5000 # Let the user override the test.
5002 if test -n "$ac_tool_prefix"; then
5003 for ac_prog in dumpbin "link -dump"
5005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_DUMPBIN+:} false; then :
5010 $as_echo_n "(cached) " >&6
5012 if test -n "$DUMPBIN"; then
5013 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 DUMPBIN=$ac_cv_prog_DUMPBIN
5033 if test -n "$DUMPBIN"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5035 $as_echo "$DUMPBIN" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 test -n "$DUMPBIN" && break
5045 if test -z "$DUMPBIN"; then
5046 ac_ct_DUMPBIN=$DUMPBIN
5047 for ac_prog in dumpbin "link -dump"
5049 # Extract the first word of "$ac_prog", so it can be a program name with args.
5050 set dummy $ac_prog; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 if test -n "$ac_ct_DUMPBIN"; then
5057 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5077 if test -n "$ac_ct_DUMPBIN"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5079 $as_echo "$ac_ct_DUMPBIN" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5086 test -n "$ac_ct_DUMPBIN" && break
5089 if test "x$ac_ct_DUMPBIN" = x; then
5092 case $cross_compiling:$ac_tool_warned in
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5098 DUMPBIN=$ac_ct_DUMPBIN
5102 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5104 DUMPBIN="$DUMPBIN -symbols"
5112 if test "$DUMPBIN" != ":"; then
5116 test -z "$NM" && NM=nm
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5124 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5125 if ${lt_cv_nm_interface+:} false; then :
5126 $as_echo_n "(cached) " >&6
5128 lt_cv_nm_interface="BSD nm"
5129 echo "int some_variable = 0;" > conftest.$ac_ext
5130 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5131 (eval "$ac_compile" 2>conftest.err)
5132 cat conftest.err >&5
5133 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5134 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5135 cat conftest.err >&5
5136 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5137 cat conftest.out >&5
5138 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5139 lt_cv_nm_interface="MS dumpbin"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5144 $as_echo "$lt_cv_nm_interface" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5147 $as_echo_n "checking whether ln -s works... " >&6; }
5149 if test "$LN_S" = "ln -s"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5151 $as_echo "yes" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5154 $as_echo "no, using $LN_S" >&6; }
5157 # find the maximum length of command line arguments
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5160 if ${lt_cv_sys_max_cmd_len+:} false; then :
5161 $as_echo_n "(cached) " >&6
5168 # On DJGPP, this test can blow up pretty badly due to problems in libc
5169 # (any single argument exceeding 2000 bytes causes a buffer overrun
5170 # during glob expansion). Even if it were fixed, the result of this
5171 # check would be larger than it should be.
5172 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5176 # Under GNU Hurd, this test is not required because there is
5177 # no limit to the length of command line arguments.
5178 # Libtool will interpret -1 as no limit whatsoever
5179 lt_cv_sys_max_cmd_len=-1;
5182 cygwin* | mingw* | cegcc*)
5183 # On Win9x/ME, this test blows up -- it succeeds, but takes
5184 # about 5 minutes as the teststring grows exponentially.
5185 # Worse, since 9x/ME are not pre-emptively multitasking,
5186 # you end up with a "frozen" computer, even though with patience
5187 # the test eventually succeeds (with a max line length of 256k).
5188 # Instead, let's just punt: use the minimum linelength reported by
5189 # all of the supported platforms: 8192 (on NT/2K/XP).
5190 lt_cv_sys_max_cmd_len=8192;
5194 # On MiNT this can take a long time and run out of memory.
5195 lt_cv_sys_max_cmd_len=8192;
5199 # On AmigaOS with pdksh, this test takes hours, literally.
5200 # So we just punt and use a minimum line length of 8192.
5201 lt_cv_sys_max_cmd_len=8192;
5204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5205 # This has been around since 386BSD, at least. Likely further.
5206 if test -x /sbin/sysctl; then
5207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5208 elif test -x /usr/sbin/sysctl; then
5209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5213 # And add a safety zone
5214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5220 lt_cv_sys_max_cmd_len=196608
5224 # The test takes a long time on OS/2.
5225 lt_cv_sys_max_cmd_len=8192
5229 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5230 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5231 # nice to cause kernel panics so lets avoid the loop below.
5232 # First set a reasonable default.
5233 lt_cv_sys_max_cmd_len=16384
5235 if test -x /sbin/sysconfig; then
5236 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5237 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5242 lt_cv_sys_max_cmd_len=102400
5244 sysv5* | sco5v6* | sysv4.2uw2*)
5245 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5246 if test -n "$kargmax"; then
5247 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5249 lt_cv_sys_max_cmd_len=32768
5253 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5254 if test -n "$lt_cv_sys_max_cmd_len"; then
5255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5258 # Make teststring a little bigger before we do anything with it.
5259 # a 1K string should be a reasonable start.
5260 for i in 1 2 3 4 5 6 7 8 ; do
5261 teststring=$teststring$teststring
5263 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5264 # If test is not a shell built-in, we'll probably end up computing a
5265 # maximum length that is only half of the actual maximum length, but
5267 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5268 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5269 test $i != 17 # 1/2 MB should be enough
5272 teststring=$teststring$teststring
5274 # Only check the string length outside the loop.
5275 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5277 # Add a significant safety factor because C++ compilers can tack on
5278 # massive amounts of additional arguments before passing them to the
5279 # linker. It appears as though 1/2 is a usable value.
5280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5287 if test -n $lt_cv_sys_max_cmd_len ; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5289 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5292 $as_echo "none" >&6; }
5294 max_cmd_len=$lt_cv_sys_max_cmd_len
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5306 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5307 # Try some XSI features
5310 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5312 && eval 'test $(( 1 + 1 )) -eq 2 \
5313 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5316 $as_echo "$xsi_shell" >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5320 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5322 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5324 && lt_shell_append=yes
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5326 $as_echo "$lt_shell_append" >&6; }
5329 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5339 # test EBCDIC or ASCII
5340 case `echo X|tr X '\101'` in
5341 A) # ASCII based system
5342 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5343 lt_SP2NL='tr \040 \012'
5344 lt_NL2SP='tr \015\012 \040\040'
5346 *) # EBCDIC based system
5347 lt_SP2NL='tr \100 \n'
5348 lt_NL2SP='tr \r\n \100\100'
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5361 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5362 if ${lt_cv_to_host_file_cmd+:} false; then :
5363 $as_echo_n "(cached) " >&6
5368 *-*-mingw* ) # actually msys
5369 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5372 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5374 * ) # otherwise, assume *nix
5375 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5381 *-*-mingw* ) # actually msys
5382 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5385 lt_cv_to_host_file_cmd=func_convert_file_noop
5387 * ) # otherwise, assume *nix
5388 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5392 * ) # unhandled hosts (and "normal" native builds)
5393 lt_cv_to_host_file_cmd=func_convert_file_noop
5399 to_host_file_cmd=$lt_cv_to_host_file_cmd
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5401 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5408 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5409 if ${lt_cv_to_tool_file_cmd+:} false; then :
5410 $as_echo_n "(cached) " >&6
5412 #assume ordinary cross tools, or native build.
5413 lt_cv_to_tool_file_cmd=func_convert_file_noop
5417 *-*-mingw* ) # actually msys
5418 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5426 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5428 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5435 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5436 if ${lt_cv_ld_reload_flag+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 lt_cv_ld_reload_flag='-r'
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5442 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5443 reload_flag=$lt_cv_ld_reload_flag
5444 case $reload_flag in
5446 *) reload_flag=" $reload_flag" ;;
5448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5450 cygwin* | mingw* | pw32* | cegcc*)
5451 if test "$GCC" != yes; then
5456 if test "$GCC" = yes; then
5457 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5459 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472 if test -n "$ac_tool_prefix"; then
5473 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_OBJDUMP+:} false; then :
5478 $as_echo_n "(cached) " >&6
5480 if test -n "$OBJDUMP"; then
5481 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 OBJDUMP=$ac_cv_prog_OBJDUMP
5501 if test -n "$OBJDUMP"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5503 $as_echo "$OBJDUMP" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5511 if test -z "$ac_cv_prog_OBJDUMP"; then
5512 ac_ct_OBJDUMP=$OBJDUMP
5513 # Extract the first word of "objdump", so it can be a program name with args.
5514 set dummy objdump; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 if test -n "$ac_ct_OBJDUMP"; then
5521 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5541 if test -n "$ac_ct_OBJDUMP"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5543 $as_echo "$ac_ct_OBJDUMP" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5549 if test "x$ac_ct_OBJDUMP" = x; then
5552 case $cross_compiling:$ac_tool_warned in
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5558 OBJDUMP=$ac_ct_OBJDUMP
5561 OBJDUMP="$ac_cv_prog_OBJDUMP"
5564 test -z "$OBJDUMP" && OBJDUMP=objdump
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5572 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5573 if ${lt_cv_deplibs_check_method+:} false; then :
5574 $as_echo_n "(cached) " >&6
5576 lt_cv_file_magic_cmd='$MAGIC_CMD'
5577 lt_cv_file_magic_test_file=
5578 lt_cv_deplibs_check_method='unknown'
5579 # Need to set the preceding variable on all platforms that support
5580 # interlibrary dependencies.
5581 # 'none' -- dependencies not supported.
5582 # `unknown' -- same as none, but documents that we really don't know.
5583 # 'pass_all' -- all dependencies passed with no checks.
5584 # 'test_compile' -- check by making test program.
5585 # 'file_magic [[regex]]' -- check by looking for files in library path
5586 # which responds to the $file_magic_cmd with a given extended regex.
5587 # If you have `file' or equivalent on your system and you're not sure
5588 # whether `pass_all' will *always* work, you probably want this one.
5592 lt_cv_deplibs_check_method=pass_all
5596 lt_cv_deplibs_check_method=pass_all
5600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5601 lt_cv_file_magic_cmd='/usr/bin/file -L'
5602 lt_cv_file_magic_test_file=/shlib/libc.so
5606 # func_win32_libid is a shell function defined in ltmain.sh
5607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5608 lt_cv_file_magic_cmd='func_win32_libid'
5612 # Base MSYS/MinGW do not provide the 'file' command needed by
5613 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5614 # unless we find 'file', for example because we are cross-compiling.
5615 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5616 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5618 lt_cv_file_magic_cmd='func_win32_libid'
5620 # Keep this pattern in sync with the one in func_win32_libid.
5621 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5622 lt_cv_file_magic_cmd='$OBJDUMP -f'
5627 # use the weaker test based on 'objdump'. See mingw*.
5628 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629 lt_cv_file_magic_cmd='$OBJDUMP -f'
5632 darwin* | rhapsody*)
5633 lt_cv_deplibs_check_method=pass_all
5636 freebsd* | dragonfly*)
5637 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5640 # Not sure whether the presence of OpenBSD here was a mistake.
5641 # Let's accept both of them until this is cleared up.
5642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5648 lt_cv_deplibs_check_method=pass_all
5653 lt_cv_deplibs_check_method=pass_all
5656 hpux10.20* | hpux11*)
5657 lt_cv_file_magic_cmd=/usr/bin/file
5660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5661 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5664 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]'
5665 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5669 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5675 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5679 irix5* | irix6* | nonstopux*)
5681 *-32|*"-32 ") libmagic=32-bit;;
5682 *-n32|*"-n32 ") libmagic=N32;;
5683 *-64|*"-64 ") libmagic=64-bit;;
5684 *) libmagic=never-match;;
5686 lt_cv_deplibs_check_method=pass_all
5689 # This must be glibc/ELF.
5690 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5691 lt_cv_deplibs_check_method=pass_all
5694 netbsd* | netbsdelf*-gnu)
5695 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5704 lt_cv_file_magic_cmd=/usr/bin/file
5705 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5709 lt_cv_deplibs_check_method=pass_all
5713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5720 osf3* | osf4* | osf5*)
5721 lt_cv_deplibs_check_method=pass_all
5725 lt_cv_deplibs_check_method=pass_all
5729 lt_cv_deplibs_check_method=pass_all
5732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5733 lt_cv_deplibs_check_method=pass_all
5737 case $host_vendor in
5739 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]'
5740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5743 lt_cv_deplibs_check_method=pass_all
5746 lt_cv_file_magic_cmd='/bin/file'
5747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5750 lt_cv_file_magic_cmd='/bin/file'
5751 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5752 lt_cv_file_magic_test_file=/lib/libc.so
5755 lt_cv_deplibs_check_method=pass_all
5758 lt_cv_deplibs_check_method=pass_all
5764 lt_cv_deplibs_check_method=pass_all
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5770 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5774 if test "$build" = "$host"; then
5777 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5780 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5786 file_magic_cmd=$lt_cv_file_magic_cmd
5787 deplibs_check_method=$lt_cv_deplibs_check_method
5788 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5811 if test -n "$ac_tool_prefix"; then
5812 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5813 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_DLLTOOL+:} false; then :
5817 $as_echo_n "(cached) " >&6
5819 if test -n "$DLLTOOL"; then
5820 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 DLLTOOL=$ac_cv_prog_DLLTOOL
5840 if test -n "$DLLTOOL"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5842 $as_echo "$DLLTOOL" >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5850 if test -z "$ac_cv_prog_DLLTOOL"; then
5851 ac_ct_DLLTOOL=$DLLTOOL
5852 # Extract the first word of "dlltool", so it can be a program name with args.
5853 set dummy dlltool; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5857 $as_echo_n "(cached) " >&6
5859 if test -n "$ac_ct_DLLTOOL"; then
5860 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5880 if test -n "$ac_ct_DLLTOOL"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5882 $as_echo "$ac_ct_DLLTOOL" >&6; }
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5888 if test "x$ac_ct_DLLTOOL" = x; then
5891 case $cross_compiling:$ac_tool_warned in
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5897 DLLTOOL=$ac_ct_DLLTOOL
5900 DLLTOOL="$ac_cv_prog_DLLTOOL"
5903 test -z "$DLLTOOL" && DLLTOOL=dlltool
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5912 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5913 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5914 $as_echo_n "(cached) " >&6
5916 lt_cv_sharedlib_from_linklib_cmd='unknown'
5919 cygwin* | mingw* | pw32* | cegcc*)
5920 # two different shell functions defined in ltmain.sh
5921 # decide which to use based on capabilities of $DLLTOOL
5922 case `$DLLTOOL --help 2>&1` in
5923 *--identify-strict*)
5924 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5927 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5932 # fallback: assume linklib IS sharedlib
5933 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5939 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5940 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5941 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5949 if test -n "$ac_tool_prefix"; then
5952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_AR+:} false; then :
5957 $as_echo_n "(cached) " >&6
5959 if test -n "$AR"; then
5960 ac_cv_prog_AR="$AR" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 if test -n "$AR"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5982 $as_echo "$AR" >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5989 test -n "$AR" && break
5992 if test -z "$AR"; then
5996 # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy $ac_prog; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6001 $as_echo_n "(cached) " >&6
6003 if test -n "$ac_ct_AR"; then
6004 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_ac_ct_AR="$ac_prog"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6024 if test -n "$ac_ct_AR"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6026 $as_echo "$ac_ct_AR" >&6; }
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6033 test -n "$ac_ct_AR" && break
6036 if test "x$ac_ct_AR" = x; then
6039 case $cross_compiling:$ac_tool_warned in
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6063 $as_echo_n "checking for archiver @FILE support... " >&6; }
6064 if ${lt_cv_ar_at_file+:} false; then :
6065 $as_echo_n "(cached) " >&6
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6079 if ac_fn_c_try_compile "$LINENO"; then :
6080 echo conftest.$ac_objext > conftest.lst
6081 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6083 (eval $lt_ar_try) 2>&5
6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086 test $ac_status = 0; }
6087 if test "$ac_status" -eq 0; then
6088 # Ensure the archiver fails upon bogus file names.
6089 rm -f conftest.$ac_objext libconftest.a
6090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6091 (eval $lt_ar_try) 2>&5
6093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094 test $ac_status = 0; }
6095 if test "$ac_status" -ne 0; then
6099 rm -f conftest.* libconftest.a
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6106 $as_echo "$lt_cv_ar_at_file" >&6; }
6108 if test "x$lt_cv_ar_at_file" = xno; then
6111 archiver_list_spec=$lt_cv_ar_at_file
6120 if test -n "$ac_tool_prefix"; then
6121 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6122 set dummy ${ac_tool_prefix}strip; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_STRIP+:} false; then :
6126 $as_echo_n "(cached) " >&6
6128 if test -n "$STRIP"; then
6129 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 STRIP=$ac_cv_prog_STRIP
6149 if test -n "$STRIP"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6151 $as_echo "$STRIP" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6159 if test -z "$ac_cv_prog_STRIP"; then
6161 # Extract the first word of "strip", so it can be a program name with args.
6162 set dummy strip; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6166 $as_echo_n "(cached) " >&6
6168 if test -n "$ac_ct_STRIP"; then
6169 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178 ac_cv_prog_ac_ct_STRIP="strip"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6189 if test -n "$ac_ct_STRIP"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6191 $as_echo "$ac_ct_STRIP" >&6; }
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6197 if test "x$ac_ct_STRIP" = x; then
6200 case $cross_compiling:$ac_tool_warned in
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204 ac_tool_warned=yes ;;
6209 STRIP="$ac_cv_prog_STRIP"
6212 test -z "$STRIP" && STRIP=:
6219 if test -n "$ac_tool_prefix"; then
6220 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6221 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if ${ac_cv_prog_RANLIB+:} false; then :
6225 $as_echo_n "(cached) " >&6
6227 if test -n "$RANLIB"; then
6228 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 RANLIB=$ac_cv_prog_RANLIB
6248 if test -n "$RANLIB"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6250 $as_echo "$RANLIB" >&6; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6258 if test -z "$ac_cv_prog_RANLIB"; then
6259 ac_ct_RANLIB=$RANLIB
6260 # Extract the first word of "ranlib", so it can be a program name with args.
6261 set dummy ranlib; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6265 $as_echo_n "(cached) " >&6
6267 if test -n "$ac_ct_RANLIB"; then
6268 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_ac_ct_RANLIB="ranlib"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6288 if test -n "$ac_ct_RANLIB"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6290 $as_echo "$ac_ct_RANLIB" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6296 if test "x$ac_ct_RANLIB" = x; then
6299 case $cross_compiling:$ac_tool_warned in
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6303 ac_tool_warned=yes ;;
6305 RANLIB=$ac_ct_RANLIB
6308 RANLIB="$ac_cv_prog_RANLIB"
6311 test -z "$RANLIB" && RANLIB=:
6318 # Determine commands to create old-style static archives.
6319 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6320 old_postinstall_cmds='chmod 644 $oldlib'
6321 old_postuninstall_cmds=
6323 if test -n "$RANLIB"; then
6326 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6329 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6332 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6337 lock_old_archive_extraction=yes ;;
6339 lock_old_archive_extraction=no ;;
6380 # If no C compiler was specified, use CC.
6383 # If no C compiler flags were specified, use CFLAGS.
6384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6386 # Allow CC to be a program name with arguments.
6390 # Check for command to grab the raw symbol name followed by C symbol from nm.
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6392 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6393 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6394 $as_echo_n "(cached) " >&6
6397 # These are sane defaults that work on at least a few old systems.
6398 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6400 # Character class describing NM global symbol codes.
6401 symcode='[BCDEGRST]'
6403 # Regexp to match symbols that can be accessed directly from C.
6404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6406 # Define system-specific variables.
6411 cygwin* | mingw* | pw32* | cegcc*)
6412 symcode='[ABCDGISTW]'
6415 if test "$host_cpu" = ia64; then
6416 symcode='[ABCDEGRST]'
6420 symcode='[BCDEGRST]'
6423 symcode='[BCDEGQRST]'
6434 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6442 # If we're using GNU nm, then use its standard symbol codes.
6443 case `$NM -V 2>&1` in
6444 *GNU* | *'with BFD'*)
6445 symcode='[ABCDGIRSTW]' ;;
6448 # Transform an extracted symbol line into a proper C declaration.
6449 # Some systems (esp. on ia64) link data and code symbols differently,
6450 # so use this general approach.
6451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6453 # Transform an extracted symbol line into symbol name and symbol address
6454 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6455 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'"
6457 # Handle CRLF in mingw tool chain
6461 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6465 # Try without a prefix underscore, then with it.
6466 for ac_symprfx in "" "_"; do
6468 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6469 symxfrm="\\1 $ac_symprfx\\2 \\2"
6471 # Write the raw and C identifiers.
6472 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6473 # Fake it for dumpbin and say T for any non-static function
6474 # and D for any global variable.
6475 # Also find C++ and __fastcall symbols from MSVC++,
6476 # which start with @ or ?.
6477 lt_cv_sys_global_symbol_pipe="$AWK '"\
6478 " {last_section=section; section=\$ 3};"\
6479 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6480 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6481 " \$ 0!~/External *\|/{next};"\
6482 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6483 " {if(hide[section]) next};"\
6484 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6485 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6486 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6487 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6488 " ' prfx=^$ac_symprfx"
6490 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6492 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6494 # Check to see that the pipe works correctly.
6498 cat > conftest.$ac_ext <<_LT_EOF
6503 void nm_test_func(void);
6504 void nm_test_func(void){}
6508 int main(){nm_test_var='a';nm_test_func();return(0);}
6511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6512 (eval $ac_compile) 2>&5
6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515 test $ac_status = 0; }; then
6516 # Now try to grab the symbols.
6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6519 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522 test $ac_status = 0; } && test -s "$nlist"; then
6523 # Try sorting and uniquifying the output.
6524 if sort "$nlist" | uniq > "$nlist"T; then
6525 mv -f "$nlist"T "$nlist"
6530 # Make sure that we snagged all the symbols we need.
6531 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6532 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6533 cat <<_LT_EOF > conftest.$ac_ext
6534 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6535 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6536 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6537 relocations are performed -- see ld's documentation on pseudo-relocs. */
6538 # define LT_DLSYM_CONST
6539 #elif defined(__osf__)
6540 /* This system does not cope well with relocations in const data. */
6541 # define LT_DLSYM_CONST
6543 # define LT_DLSYM_CONST const
6551 # Now generate the symbol file.
6552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6554 cat <<_LT_EOF >> conftest.$ac_ext
6556 /* The mapping between symbol names and symbols. */
6557 LT_DLSYM_CONST struct {
6561 lt__PROGRAM__LTX_preloaded_symbols[] =
6563 { "@PROGRAM@", (void *) 0 },
6565 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6566 cat <<\_LT_EOF >> conftest.$ac_ext
6570 /* This works around a problem in FreeBSD linker */
6571 #ifdef FREEBSD_WORKAROUND
6572 static const void *lt_preloaded_setup() {
6573 return lt__PROGRAM__LTX_preloaded_symbols;
6581 # Now try linking the two files.
6582 mv conftest.$ac_objext conftstm.$ac_objext
6583 lt_globsym_save_LIBS=$LIBS
6584 lt_globsym_save_CFLAGS=$CFLAGS
6585 LIBS="conftstm.$ac_objext"
6586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6588 (eval $ac_link) 2>&5
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6594 LIBS=$lt_globsym_save_LIBS
6595 CFLAGS=$lt_globsym_save_CFLAGS
6597 echo "cannot find nm_test_func in $nlist" >&5
6600 echo "cannot find nm_test_var in $nlist" >&5
6603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6606 echo "$progname: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 rm -rf conftest* conftst*
6611 # Do not use the global_symbol_pipe unless it works.
6612 if test "$pipe_works" = yes; then
6615 lt_cv_sys_global_symbol_pipe=
6621 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6622 lt_cv_sys_global_symbol_to_cdecl=
6624 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6626 $as_echo "failed" >&6; }
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6629 $as_echo "ok" >&6; }
6632 # Response file support.
6633 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6634 nm_file_list_spec='@'
6635 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6636 nm_file_list_spec='@'
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6666 $as_echo_n "checking for sysroot... " >&6; }
6668 # Check whether --with-sysroot was given.
6669 if test "${with_sysroot+set}" = set; then :
6670 withval=$with_sysroot;
6677 case ${with_sysroot} in #(
6679 if test "$GCC" = yes; then
6680 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6684 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6690 $as_echo "${with_sysroot}" >&6; }
6691 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6696 $as_echo "${lt_sysroot:-no}" >&6; }
6702 # Check whether --enable-libtool-lock was given.
6703 if test "${enable_libtool_lock+set}" = set; then :
6704 enableval=$enable_libtool_lock;
6707 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6709 # Some flags need to be propagated to the compiler or linker for good
6713 # Find out which ABI we are using.
6714 echo 'int i;' > conftest.$ac_ext
6715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6716 (eval $ac_compile) 2>&5
6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719 test $ac_status = 0; }; then
6720 case `/usr/bin/file conftest.$ac_objext` in
6732 # Find out which ABI we are using.
6733 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735 (eval $ac_compile) 2>&5
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; }; then
6739 if test "$lt_cv_prog_gnu_ld" = yes; then
6740 case `/usr/bin/file conftest.$ac_objext` in
6742 LD="${LD-ld} -melf32bsmip"
6745 LD="${LD-ld} -melf32bmipn32"
6748 LD="${LD-ld} -melf64bmip"
6752 case `/usr/bin/file conftest.$ac_objext` in
6768 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6769 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6770 # Find out which ABI we are using.
6771 echo 'int i;' > conftest.$ac_ext
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773 (eval $ac_compile) 2>&5
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 case `/usr/bin/file conftest.o` in
6780 x86_64-*kfreebsd*-gnu)
6781 LD="${LD-ld} -m elf_i386_fbsd"
6784 LD="${LD-ld} -m elf_i386"
6786 ppc64-*linux*|powerpc64-*linux*)
6787 LD="${LD-ld} -m elf32ppclinux"
6790 LD="${LD-ld} -m elf_s390"
6793 LD="${LD-ld} -m elf32_sparc"
6799 x86_64-*kfreebsd*-gnu)
6800 LD="${LD-ld} -m elf_x86_64_fbsd"
6803 LD="${LD-ld} -m elf_x86_64"
6805 ppc*-*linux*|powerpc*-*linux*)
6806 LD="${LD-ld} -m elf64ppc"
6808 s390*-*linux*|s390*-*tpf*)
6809 LD="${LD-ld} -m elf64_s390"
6812 LD="${LD-ld} -m elf64_sparc"
6822 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6823 SAVE_CFLAGS="$CFLAGS"
6824 CFLAGS="$CFLAGS -belf"
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6826 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6827 if ${lt_cv_cc_needs_belf+:} false; then :
6828 $as_echo_n "(cached) " >&6
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6847 if ac_fn_c_try_link "$LINENO"; then :
6848 lt_cv_cc_needs_belf=yes
6850 lt_cv_cc_needs_belf=no
6852 rm -f core conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6862 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6863 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6864 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6865 CFLAGS="$SAVE_CFLAGS"
6869 # Find out which ABI we are using.
6870 echo 'int i;' > conftest.$ac_ext
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 case `/usr/bin/file conftest.o` in
6878 case $lt_cv_prog_gnu_ld in
6882 LD="${LD-ld} -m elf_x86_64"
6885 LD="${LD-ld} -m elf64_sparc"
6888 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6889 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6894 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6906 need_locks="$enable_libtool_lock"
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}mt; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6914 $as_echo_n "(cached) " >&6
6916 if test -n "$MANIFEST_TOOL"; then
6917 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6937 if test -n "$MANIFEST_TOOL"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6939 $as_echo "$MANIFEST_TOOL" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6947 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6948 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6949 # Extract the first word of "mt", so it can be a program name with args.
6950 set dummy mt; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 if test -n "$ac_ct_MANIFEST_TOOL"; then
6957 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6977 if test -n "$ac_ct_MANIFEST_TOOL"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6979 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6985 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6988 case $cross_compiling:$ac_tool_warned in
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6994 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6997 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7000 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7002 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7003 if ${lt_cv_path_mainfest_tool+:} false; then :
7004 $as_echo_n "(cached) " >&6
7006 lt_cv_path_mainfest_tool=no
7007 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7008 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7009 cat conftest.err >&5
7010 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7011 lt_cv_path_mainfest_tool=yes
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7016 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7017 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7027 rhapsody* | darwin*)
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7034 $as_echo_n "(cached) " >&6
7036 if test -n "$DSYMUTIL"; then
7037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7057 if test -n "$DSYMUTIL"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7059 $as_echo "$DSYMUTIL" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7067 if test -z "$ac_cv_prog_DSYMUTIL"; then
7068 ac_ct_DSYMUTIL=$DSYMUTIL
7069 # Extract the first word of "dsymutil", so it can be a program name with args.
7070 set dummy dsymutil; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7074 $as_echo_n "(cached) " >&6
7076 if test -n "$ac_ct_DSYMUTIL"; then
7077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7097 if test -n "$ac_ct_DSYMUTIL"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7105 if test "x$ac_ct_DSYMUTIL" = x; then
7108 case $cross_compiling:$ac_tool_warned in
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7114 DSYMUTIL=$ac_ct_DSYMUTIL
7117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7120 if test -n "$ac_tool_prefix"; then
7121 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_NMEDIT+:} false; then :
7126 $as_echo_n "(cached) " >&6
7128 if test -n "$NMEDIT"; then
7129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 NMEDIT=$ac_cv_prog_NMEDIT
7149 if test -n "$NMEDIT"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7151 $as_echo "$NMEDIT" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7159 if test -z "$ac_cv_prog_NMEDIT"; then
7160 ac_ct_NMEDIT=$NMEDIT
7161 # Extract the first word of "nmedit", so it can be a program name with args.
7162 set dummy nmedit; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 if test -n "$ac_ct_NMEDIT"; then
7169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7189 if test -n "$ac_ct_NMEDIT"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7191 $as_echo "$ac_ct_NMEDIT" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7197 if test "x$ac_ct_NMEDIT" = x; then
7200 case $cross_compiling:$ac_tool_warned in
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned=yes ;;
7206 NMEDIT=$ac_ct_NMEDIT
7209 NMEDIT="$ac_cv_prog_NMEDIT"
7212 if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_LIPO+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 if test -n "$LIPO"; then
7221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 LIPO=$ac_cv_prog_LIPO
7241 if test -n "$LIPO"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7243 $as_echo "$LIPO" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7251 if test -z "$ac_cv_prog_LIPO"; then
7253 # Extract the first word of "lipo", so it can be a program name with args.
7254 set dummy lipo; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7258 $as_echo_n "(cached) " >&6
7260 if test -n "$ac_ct_LIPO"; then
7261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_ac_ct_LIPO="lipo"
7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7281 if test -n "$ac_ct_LIPO"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7283 $as_echo "$ac_ct_LIPO" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7289 if test "x$ac_ct_LIPO" = x; then
7292 case $cross_compiling:$ac_tool_warned in
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7296 ac_tool_warned=yes ;;
7301 LIPO="$ac_cv_prog_LIPO"
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}otool; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_OTOOL+:} false; then :
7310 $as_echo_n "(cached) " >&6
7312 if test -n "$OTOOL"; then
7313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 OTOOL=$ac_cv_prog_OTOOL
7333 if test -n "$OTOOL"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7335 $as_echo "$OTOOL" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_prog_OTOOL"; then
7345 # Extract the first word of "otool", so it can be a program name with args.
7346 set dummy otool; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7350 $as_echo_n "(cached) " >&6
7352 if test -n "$ac_ct_OTOOL"; then
7353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_OTOOL="otool"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7373 if test -n "$ac_ct_OTOOL"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7375 $as_echo "$ac_ct_OTOOL" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "x$ac_ct_OTOOL" = x; then
7384 case $cross_compiling:$ac_tool_warned in
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned=yes ;;
7393 OTOOL="$ac_cv_prog_OTOOL"
7396 if test -n "$ac_tool_prefix"; then
7397 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_OTOOL64+:} false; then :
7402 $as_echo_n "(cached) " >&6
7404 if test -n "$OTOOL64"; then
7405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 OTOOL64=$ac_cv_prog_OTOOL64
7425 if test -n "$OTOOL64"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7427 $as_echo "$OTOOL64" >&6; }
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7435 if test -z "$ac_cv_prog_OTOOL64"; then
7436 ac_ct_OTOOL64=$OTOOL64
7437 # Extract the first word of "otool64", so it can be a program name with args.
7438 set dummy otool64; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 if test -n "$ac_ct_OTOOL64"; then
7445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_ac_ct_OTOOL64="otool64"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7465 if test -n "$ac_ct_OTOOL64"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7467 $as_echo "$ac_ct_OTOOL64" >&6; }
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7473 if test "x$ac_ct_OTOOL64" = x; then
7476 case $cross_compiling:$ac_tool_warned in
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7480 ac_tool_warned=yes ;;
7482 OTOOL64=$ac_ct_OTOOL64
7485 OTOOL64="$ac_cv_prog_OTOOL64"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7515 $as_echo_n "checking for -single_module linker flag... " >&6; }
7516 if ${lt_cv_apple_cc_single_mod+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 lt_cv_apple_cc_single_mod=no
7520 if test -z "${LT_MULTI_MODULE}"; then
7521 # By default we will add the -single_module flag. You can override
7522 # by either setting the environment variable LT_MULTI_MODULE
7523 # non-empty at configure time, or by adding -multi_module to the
7525 rm -rf libconftest.dylib*
7526 echo "int foo(void){return 1;}" > conftest.c
7527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528 -dynamiclib -Wl,-single_module conftest.c" >&5
7529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7532 # If there is a non-empty error log, and "single_module"
7533 # appears in it, assume the flag caused a linker warning
7534 if test -s conftest.err && $GREP single_module conftest.err; then
7535 cat conftest.err >&5
7536 # Otherwise, if the output was created with a 0 exit code from
7537 # the compiler, it worked.
7538 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7539 lt_cv_apple_cc_single_mod=yes
7541 cat conftest.err >&5
7543 rm -rf libconftest.dylib*
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7548 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7551 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7552 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 lt_cv_ld_exported_symbols_list=no
7556 save_LDFLAGS=$LDFLAGS
7557 echo "_main" > conftest.sym
7558 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7570 if ac_fn_c_try_link "$LINENO"; then :
7571 lt_cv_ld_exported_symbols_list=yes
7573 lt_cv_ld_exported_symbols_list=no
7575 rm -f core conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7577 LDFLAGS="$save_LDFLAGS"
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7581 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7584 $as_echo_n "checking for -force_load linker flag... " >&6; }
7585 if ${lt_cv_ld_force_load+:} false; then :
7586 $as_echo_n "(cached) " >&6
7588 lt_cv_ld_force_load=no
7589 cat > conftest.c << _LT_EOF
7590 int forced_loaded() { return 2;}
7592 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7593 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7594 echo "$AR cru libconftest.a conftest.o" >&5
7595 $AR cru libconftest.a conftest.o 2>&5
7596 echo "$RANLIB libconftest.a" >&5
7597 $RANLIB libconftest.a 2>&5
7598 cat > conftest.c << _LT_EOF
7599 int main() { return 0;}
7601 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7602 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7604 if test -s conftest.err && $GREP force_load conftest.err; then
7605 cat conftest.err >&5
7606 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7607 lt_cv_ld_force_load=yes
7609 cat conftest.err >&5
7611 rm -f conftest.err libconftest.a conftest conftest.c
7612 rm -rf conftest.dSYM
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7616 $as_echo "$lt_cv_ld_force_load" >&6; }
7618 rhapsody* | darwin1.[012])
7619 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7621 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7622 darwin*) # darwin 5.x on
7623 # if running on 10.5 or later, the deployment target defaults
7624 # to the OS version, if on x86, and 10.4, the deployment
7625 # target defaults to 10.4. Don't you love it?
7626 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7627 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7628 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7630 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7632 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7636 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7637 _lt_dar_single_mod='$single_module'
7639 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7640 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7642 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7644 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7645 _lt_dsymutil='~$DSYMUTIL $lib || :'
7652 for ac_header in dlfcn.h
7654 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7656 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7657 cat >>confdefs.h <<_ACEOF
7658 #define HAVE_DLFCN_H 1
7671 # Check whether --enable-static was given.
7672 if test "${enable_static+set}" = set; then :
7673 enableval=$enable_static; p=${PACKAGE-default}
7675 yes) enable_static=yes ;;
7676 no) enable_static=no ;;
7679 # Look at the argument we got. We use all the common list separators.
7680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7681 for pkg in $enableval; do
7683 if test "X$pkg" = "X$p"; then
7700 enable_win32_dll=yes
7703 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}as; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_AS+:} false; then :
7710 $as_echo_n "(cached) " >&6
7712 if test -n "$AS"; then
7713 ac_cv_prog_AS="$AS" # Let the user override the test.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_AS="${ac_tool_prefix}as"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 if test -n "$AS"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7735 $as_echo "$AS" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7743 if test -z "$ac_cv_prog_AS"; then
7745 # Extract the first word of "as", so it can be a program name with args.
7746 set dummy as; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$ac_ct_AS"; then
7753 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_ac_ct_AS="as"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7773 if test -n "$ac_ct_AS"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7775 $as_echo "$ac_ct_AS" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7781 if test "x$ac_ct_AS" = x; then
7784 case $cross_compiling:$ac_tool_warned in
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_DLLTOOL+:} false; then :
7802 $as_echo_n "(cached) " >&6
7804 if test -n "$DLLTOOL"; then
7805 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 DLLTOOL=$ac_cv_prog_DLLTOOL
7825 if test -n "$DLLTOOL"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7827 $as_echo "$DLLTOOL" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7835 if test -z "$ac_cv_prog_DLLTOOL"; then
7836 ac_ct_DLLTOOL=$DLLTOOL
7837 # Extract the first word of "dlltool", so it can be a program name with args.
7838 set dummy dlltool; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7842 $as_echo_n "(cached) " >&6
7844 if test -n "$ac_ct_DLLTOOL"; then
7845 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7865 if test -n "$ac_ct_DLLTOOL"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7867 $as_echo "$ac_ct_DLLTOOL" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7873 if test "x$ac_ct_DLLTOOL" = x; then
7876 case $cross_compiling:$ac_tool_warned in
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7882 DLLTOOL=$ac_ct_DLLTOOL
7885 DLLTOOL="$ac_cv_prog_DLLTOOL"
7888 if test -n "$ac_tool_prefix"; then
7889 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7890 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_OBJDUMP+:} false; then :
7894 $as_echo_n "(cached) " >&6
7896 if test -n "$OBJDUMP"; then
7897 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 OBJDUMP=$ac_cv_prog_OBJDUMP
7917 if test -n "$OBJDUMP"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7919 $as_echo "$OBJDUMP" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7927 if test -z "$ac_cv_prog_OBJDUMP"; then
7928 ac_ct_OBJDUMP=$OBJDUMP
7929 # Extract the first word of "objdump", so it can be a program name with args.
7930 set dummy objdump; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7934 $as_echo_n "(cached) " >&6
7936 if test -n "$ac_ct_OBJDUMP"; then
7937 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7957 if test -n "$ac_ct_OBJDUMP"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7959 $as_echo "$ac_ct_OBJDUMP" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7965 if test "x$ac_ct_OBJDUMP" = x; then
7968 case $cross_compiling:$ac_tool_warned in
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972 ac_tool_warned=yes ;;
7974 OBJDUMP=$ac_ct_OBJDUMP
7977 OBJDUMP="$ac_cv_prog_OBJDUMP"
7983 test -z "$AS" && AS=as
7989 test -z "$DLLTOOL" && DLLTOOL=dlltool
7995 test -z "$OBJDUMP" && OBJDUMP=objdump
8005 # Check whether --enable-shared was given.
8006 if test "${enable_shared+set}" = set; then :
8007 enableval=$enable_shared; p=${PACKAGE-default}
8009 yes) enable_shared=yes ;;
8010 no) enable_shared=no ;;
8013 # Look at the argument we got. We use all the common list separators.
8014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8015 for pkg in $enableval; do
8017 if test "X$pkg" = "X$p"; then
8038 # Check whether --with-pic was given.
8039 if test "${with_pic+set}" = set; then :
8040 withval=$with_pic; lt_p=${PACKAGE-default}
8042 yes|no) pic_mode=$withval ;;
8045 # Look at the argument we got. We use all the common list separators.
8046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8047 for lt_pkg in $withval; do
8049 if test "X$lt_pkg" = "X$lt_p"; then
8061 test -z "$pic_mode" && pic_mode=default
8069 # Check whether --enable-fast-install was given.
8070 if test "${enable_fast_install+set}" = set; then :
8071 enableval=$enable_fast_install; p=${PACKAGE-default}
8073 yes) enable_fast_install=yes ;;
8074 no) enable_fast_install=no ;;
8076 enable_fast_install=no
8077 # Look at the argument we got. We use all the common list separators.
8078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8079 for pkg in $enableval; do
8081 if test "X$pkg" = "X$p"; then
8082 enable_fast_install=yes
8089 enable_fast_install=yes
8102 # This can be used to rebuild libtool when needed
8103 LIBTOOL_DEPS="$ltmain"
8105 # Always use our own libtool.
8106 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8137 test -z "$LN_S" && LN_S="ln -s"
8152 if test -n "${ZSH_VERSION+set}" ; then
8153 setopt NO_GLOB_SUBST
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8157 $as_echo_n "checking for objdir... " >&6; }
8158 if ${lt_cv_objdir+:} false; then :
8159 $as_echo_n "(cached) " >&6
8161 rm -f .libs 2>/dev/null
8162 mkdir .libs 2>/dev/null
8163 if test -d .libs; then
8166 # MS-DOS does not allow filenames that begin with a dot.
8169 rmdir .libs 2>/dev/null
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8172 $as_echo "$lt_cv_objdir" >&6; }
8173 objdir=$lt_cv_objdir
8179 cat >>confdefs.h <<_ACEOF
8180 #define LT_OBJDIR "$lt_cv_objdir/"
8188 # AIX sometimes has problems with the GCC collect2 program. For some
8189 # reason, if we set the COLLECT_NAMES environment variable, the problems
8190 # vanish in a puff of smoke.
8191 if test "X${COLLECT_NAMES+set}" != Xset; then
8193 export COLLECT_NAMES
8200 can_build_shared=yes
8202 # All known linkers require a `.a' archive for static linking (except MSVC,
8203 # which needs '.lib').
8206 with_gnu_ld="$lt_cv_prog_gnu_ld"
8209 old_CFLAGS="$CFLAGS"
8211 # Set sane defaults for various variables
8212 test -z "$CC" && CC=cc
8213 test -z "$LTCC" && LTCC=$CC
8214 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8215 test -z "$LD" && LD=ld
8216 test -z "$ac_objext" && ac_objext=o
8218 for cc_temp in $compiler""; do
8220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8226 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8229 # Only perform the check for file, if the check method requires it
8230 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8231 case $deplibs_check_method in
8233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8235 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8236 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8237 $as_echo_n "(cached) " >&6
8241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8244 lt_save_MAGIC_CMD="$MAGIC_CMD"
8245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8247 for ac_dir in $ac_dummy; do
8249 test -z "$ac_dir" && ac_dir=.
8250 if test -f $ac_dir/${ac_tool_prefix}file; then
8251 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8252 if test -n "$file_magic_test_file"; then
8253 case $deplibs_check_method in
8255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8258 $EGREP "$file_magic_regex" > /dev/null; then
8263 *** Warning: the command libtool uses to detect shared libraries,
8264 *** $file_magic_cmd, produces output that libtool cannot recognize.
8265 *** The result is that libtool may fail to recognize shared libraries
8266 *** as such. This will affect the creation of libtool libraries that
8267 *** depend on shared libraries, but programs linked with such libtool
8268 *** libraries will work regardless of this problem. Nevertheless, you
8269 *** may want to report the problem to your system manager and/or to
8270 *** bug-libtool@gnu.org
8280 MAGIC_CMD="$lt_save_MAGIC_CMD"
8285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286 if test -n "$MAGIC_CMD"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8288 $as_echo "$MAGIC_CMD" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8298 if test -z "$lt_cv_path_MAGIC_CMD"; then
8299 if test -n "$ac_tool_prefix"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8301 $as_echo_n "checking for file... " >&6; }
8302 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8303 $as_echo_n "(cached) " >&6
8307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8310 lt_save_MAGIC_CMD="$MAGIC_CMD"
8311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8313 for ac_dir in $ac_dummy; do
8315 test -z "$ac_dir" && ac_dir=.
8316 if test -f $ac_dir/file; then
8317 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8318 if test -n "$file_magic_test_file"; then
8319 case $deplibs_check_method in
8321 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8324 $EGREP "$file_magic_regex" > /dev/null; then
8329 *** Warning: the command libtool uses to detect shared libraries,
8330 *** $file_magic_cmd, produces output that libtool cannot recognize.
8331 *** The result is that libtool may fail to recognize shared libraries
8332 *** as such. This will affect the creation of libtool libraries that
8333 *** depend on shared libraries, but programs linked with such libtool
8334 *** libraries will work regardless of this problem. Nevertheless, you
8335 *** may want to report the problem to your system manager and/or to
8336 *** bug-libtool@gnu.org
8346 MAGIC_CMD="$lt_save_MAGIC_CMD"
8351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8352 if test -n "$MAGIC_CMD"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8354 $as_echo "$MAGIC_CMD" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8370 # Use C for the default configuration in the libtool script
8374 ac_cpp='$CPP $CPPFLAGS'
8375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8380 # Source file extension for C test sources.
8383 # Object file extension for compiled C test sources.
8387 # Code to be used in simple compile tests
8388 lt_simple_compile_test_code="int some_variable = 0;"
8390 # Code to be used in simple link tests
8391 lt_simple_link_test_code='int main(){return(0);}'
8399 # If no C compiler was specified, use CC.
8402 # If no C compiler flags were specified, use CFLAGS.
8403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8405 # Allow CC to be a program name with arguments.
8408 # Save the default compiler, since it gets overwritten when the other
8409 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8410 compiler_DEFAULT=$CC
8412 # save warnings/boilerplate of simple test code
8413 ac_outfile=conftest.$ac_objext
8414 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8415 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8416 _lt_compiler_boilerplate=`cat conftest.err`
8419 ac_outfile=conftest.$ac_objext
8420 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8421 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8422 _lt_linker_boilerplate=`cat conftest.err`
8427 ## There is no encapsulation within the following macros, do not change
8428 ## the running order or otherwise move them around unless you know exactly
8429 ## what you are doing...
8430 if test -n "$compiler"; then
8432 lt_prog_compiler_no_builtin_flag=
8434 if test "$GCC" = yes; then
8435 case $cc_basename in
8437 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8439 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8443 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8444 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8445 $as_echo_n "(cached) " >&6
8447 lt_cv_prog_compiler_rtti_exceptions=no
8448 ac_outfile=conftest.$ac_objext
8449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8450 lt_compiler_flag="-fno-rtti -fno-exceptions"
8451 # Insert the option either (1) after the last *FLAGS variable, or
8452 # (2) before a word containing "conftest.", or (3) at the end.
8453 # Note that $ac_compile itself does not contain backslashes and begins
8454 # with a dollar sign (not a hyphen), so the echo should work correctly.
8455 # The option is referenced via a variable to avoid confusing sed.
8456 lt_compile=`echo "$ac_compile" | $SED \
8457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8459 -e 's:$: $lt_compiler_flag:'`
8460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8461 (eval "$lt_compile" 2>conftest.err)
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 if (exit $ac_status) && test -s "$ac_outfile"; then
8466 # The compiler can only warn and ignore the option if not recognized
8467 # So say no if there are warnings other than the usual output.
8468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8471 lt_cv_prog_compiler_rtti_exceptions=yes
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8478 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8480 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8481 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8493 lt_prog_compiler_wl=
8494 lt_prog_compiler_pic=
8495 lt_prog_compiler_static=
8498 if test "$GCC" = yes; then
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_static='-static'
8504 # All AIX code is PIC.
8505 if test "$host_cpu" = ia64; then
8506 # AIX 5 now supports IA64 processor
8507 lt_prog_compiler_static='-Bstatic'
8514 # see comment about AmigaOS4 .so support
8515 lt_prog_compiler_pic='-fPIC'
8518 # FIXME: we need at least 68020 code to build shared libraries, but
8519 # adding the `-m68020' flag to GCC prevents building anything better,
8521 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8526 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8527 # PIC is the default for these OSes.
8530 mingw* | cygwin* | pw32* | os2* | cegcc*)
8531 # This hack is so that the source file can tell whether it is being
8532 # built for inclusion in a dll (and should export symbols for example).
8533 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8534 # (--disable-auto-import) libraries
8535 lt_prog_compiler_pic='-DDLL_EXPORT'
8538 darwin* | rhapsody*)
8539 # PIC is the default on this platform
8540 # Common symbols not allowed in MH_DYLIB files
8541 lt_prog_compiler_pic='-fno-common'
8545 # PIC is the default for Haiku.
8546 # The "-static" flag exists, but is broken.
8547 lt_prog_compiler_static=
8551 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8552 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8553 # sets the default TLS model and affects inlining.
8559 lt_prog_compiler_pic='-fPIC'
8565 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8566 # Instead, we relocate shared libraries at runtime.
8570 # Just because we use GCC doesn't mean we suddenly get shared libraries
8571 # on systems that don't support them.
8572 lt_prog_compiler_can_build_shared=no
8577 # QNX uses GNU C++, but need to define -shared option too, otherwise
8579 lt_prog_compiler_pic='-fPIC -shared'
8583 if test -d /usr/nec; then
8584 lt_prog_compiler_pic=-Kconform_pic
8589 lt_prog_compiler_pic='-fPIC'
8593 case $cc_basename in
8594 nvcc*) # Cuda Compiler Driver 2.2
8595 lt_prog_compiler_wl='-Xlinker '
8596 if test -n "$lt_prog_compiler_pic"; then
8597 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8602 # PORTME Check for flag to pass linker flags through the system compiler.
8605 lt_prog_compiler_wl='-Wl,'
8606 if test "$host_cpu" = ia64; then
8607 # AIX 5 now supports IA64 processor
8608 lt_prog_compiler_static='-Bstatic'
8610 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8614 mingw* | cygwin* | pw32* | os2* | cegcc*)
8615 # This hack is so that the source file can tell whether it is being
8616 # built for inclusion in a dll (and should export symbols for example).
8617 lt_prog_compiler_pic='-DDLL_EXPORT'
8620 hpux9* | hpux10* | hpux11*)
8621 lt_prog_compiler_wl='-Wl,'
8622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8629 lt_prog_compiler_pic='+Z'
8632 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8633 lt_prog_compiler_static='${wl}-a ${wl}archive'
8636 irix5* | irix6* | nonstopux*)
8637 lt_prog_compiler_wl='-Wl,'
8638 # PIC (with -KPIC) is the default.
8639 lt_prog_compiler_static='-non_shared'
8642 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8643 case $cc_basename in
8644 # old Intel for x86_64 which still supported -KPIC.
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-static'
8650 # icc used to be incompatible with GCC.
8651 # ICC 10 doesn't accept -KPIC any more.
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-fPIC'
8655 lt_prog_compiler_static='-static'
8657 # Lahey Fortran 8.1.
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='--shared'
8661 lt_prog_compiler_static='--static'
8664 # NAG Fortran compiler
8665 lt_prog_compiler_wl='-Wl,-Wl,,'
8666 lt_prog_compiler_pic='-PIC'
8667 lt_prog_compiler_static='-Bstatic'
8669 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8670 # Portland Group compilers (*not* the Pentium gcc compiler,
8671 # which looks to be a dead project)
8672 lt_prog_compiler_wl='-Wl,'
8673 lt_prog_compiler_pic='-fpic'
8674 lt_prog_compiler_static='-Bstatic'
8677 lt_prog_compiler_wl='-Wl,'
8678 # All Alpha code is PIC.
8679 lt_prog_compiler_static='-non_shared'
8681 xl* | bgxl* | bgf* | mpixl*)
8682 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_pic='-qpic'
8685 lt_prog_compiler_static='-qstaticlink'
8688 case `$CC -V 2>&1 | sed 5q` in
8689 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8690 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8693 lt_prog_compiler_wl=''
8695 *Sun\ F* | *Sun*Fortran*)
8696 lt_prog_compiler_pic='-KPIC'
8697 lt_prog_compiler_static='-Bstatic'
8698 lt_prog_compiler_wl='-Qoption ld '
8702 lt_prog_compiler_pic='-KPIC'
8703 lt_prog_compiler_static='-Bstatic'
8704 lt_prog_compiler_wl='-Wl,'
8706 *Intel*\ [CF]*Compiler*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-fPIC'
8709 lt_prog_compiler_static='-static'
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-fpic'
8714 lt_prog_compiler_static='-Bstatic'
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8727 # QNX uses GNU C++, but need to define -shared option too, otherwise
8729 lt_prog_compiler_pic='-fPIC -shared'
8732 osf3* | osf4* | osf5*)
8733 lt_prog_compiler_wl='-Wl,'
8734 # All OSF/1 code is PIC.
8735 lt_prog_compiler_static='-non_shared'
8739 lt_prog_compiler_static='-non_shared'
8743 lt_prog_compiler_pic='-KPIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 case $cc_basename in
8746 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8747 lt_prog_compiler_wl='-Qoption ld ';;
8749 lt_prog_compiler_wl='-Wl,';;
8754 lt_prog_compiler_wl='-Qoption ld '
8755 lt_prog_compiler_pic='-PIC'
8756 lt_prog_compiler_static='-Bstatic'
8759 sysv4 | sysv4.2uw2* | sysv4.3*)
8760 lt_prog_compiler_wl='-Wl,'
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8766 if test -d /usr/nec ;then
8767 lt_prog_compiler_pic='-Kconform_pic'
8768 lt_prog_compiler_static='-Bstatic'
8772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_can_build_shared=no
8784 lt_prog_compiler_pic='-pic'
8785 lt_prog_compiler_static='-Bstatic'
8789 lt_prog_compiler_can_build_shared=no
8795 # For platforms which do not support PIC, -DPIC is meaningless:
8797 lt_prog_compiler_pic=
8800 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8805 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8806 if ${lt_cv_prog_compiler_pic+:} false; then :
8807 $as_echo_n "(cached) " >&6
8809 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8812 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8813 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8816 # Check to make sure the PIC flag actually works.
8818 if test -n "$lt_prog_compiler_pic"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8820 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8821 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8822 $as_echo_n "(cached) " >&6
8824 lt_cv_prog_compiler_pic_works=no
8825 ac_outfile=conftest.$ac_objext
8826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8827 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8828 # Insert the option either (1) after the last *FLAGS variable, or
8829 # (2) before a word containing "conftest.", or (3) at the end.
8830 # Note that $ac_compile itself does not contain backslashes and begins
8831 # with a dollar sign (not a hyphen), so the echo should work correctly.
8832 # The option is referenced via a variable to avoid confusing sed.
8833 lt_compile=`echo "$ac_compile" | $SED \
8834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836 -e 's:$: $lt_compiler_flag:'`
8837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8838 (eval "$lt_compile" 2>conftest.err)
8840 cat conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 if (exit $ac_status) && test -s "$ac_outfile"; then
8843 # The compiler can only warn and ignore the option if not recognized
8844 # So say no if there are warnings other than the usual output.
8845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8848 lt_cv_prog_compiler_pic_works=yes
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8855 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8857 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8858 case $lt_prog_compiler_pic in
8860 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8863 lt_prog_compiler_pic=
8864 lt_prog_compiler_can_build_shared=no
8880 # Check to make sure the static flag actually works.
8882 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8884 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8885 if ${lt_cv_prog_compiler_static_works+:} false; then :
8886 $as_echo_n "(cached) " >&6
8888 lt_cv_prog_compiler_static_works=no
8889 save_LDFLAGS="$LDFLAGS"
8890 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8891 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8892 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8893 # The linker can only warn and ignore the option if not recognized
8894 # So say no if there are warnings
8895 if test -s conftest.err; then
8896 # Append any errors to the config.log.
8897 cat conftest.err 1>&5
8898 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8900 if diff conftest.exp conftest.er2 >/dev/null; then
8901 lt_cv_prog_compiler_static_works=yes
8904 lt_cv_prog_compiler_static_works=yes
8908 LDFLAGS="$save_LDFLAGS"
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8912 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8914 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8917 lt_prog_compiler_static=
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8927 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8928 if ${lt_cv_prog_compiler_c_o+:} false; then :
8929 $as_echo_n "(cached) " >&6
8931 lt_cv_prog_compiler_c_o=no
8932 $RM -r conftest 2>/dev/null
8936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938 lt_compiler_flag="-o out/conftest2.$ac_objext"
8939 # Insert the option either (1) after the last *FLAGS variable, or
8940 # (2) before a word containing "conftest.", or (3) at the end.
8941 # Note that $ac_compile itself does not contain backslashes and begins
8942 # with a dollar sign (not a hyphen), so the echo should work correctly.
8943 lt_compile=`echo "$ac_compile" | $SED \
8944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946 -e 's:$: $lt_compiler_flag:'`
8947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8948 (eval "$lt_compile" 2>out/conftest.err)
8950 cat out/conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8954 # The compiler can only warn and ignore the option if not recognized
8955 # So say no if there are warnings
8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959 lt_cv_prog_compiler_c_o=yes
8964 # SGI C++ compiler will create directory out/ii_files/ for
8965 # template instantiation
8966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967 $RM out/* && rmdir out
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8974 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8983 if ${lt_cv_prog_compiler_c_o+:} false; then :
8984 $as_echo_n "(cached) " >&6
8986 lt_cv_prog_compiler_c_o=no
8987 $RM -r conftest 2>/dev/null
8991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993 lt_compiler_flag="-o out/conftest2.$ac_objext"
8994 # Insert the option either (1) after the last *FLAGS variable, or
8995 # (2) before a word containing "conftest.", or (3) at the end.
8996 # Note that $ac_compile itself does not contain backslashes and begins
8997 # with a dollar sign (not a hyphen), so the echo should work correctly.
8998 lt_compile=`echo "$ac_compile" | $SED \
8999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001 -e 's:$: $lt_compiler_flag:'`
9002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9003 (eval "$lt_compile" 2>out/conftest.err)
9005 cat out/conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9009 # The compiler can only warn and ignore the option if not recognized
9010 # So say no if there are warnings
9011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9014 lt_cv_prog_compiler_c_o=yes
9019 # SGI C++ compiler will create directory out/ii_files/ for
9020 # template instantiation
9021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9022 $RM out/* && rmdir out
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9029 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9034 hard_links="nottested"
9035 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9036 # do not overwrite the value of need_locks provided by the user
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9038 $as_echo_n "checking if we can lock with hard links... " >&6; }
9041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9043 ln conftest.a conftest.b 2>&5 || hard_links=no
9044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9046 $as_echo "$hard_links" >&6; }
9047 if test "$hard_links" = no; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9049 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9062 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9065 allow_undefined_flag=
9066 always_export_symbols=no
9068 archive_expsym_cmds=
9069 compiler_needs_object=no
9070 enable_shared_with_static_runtimes=no
9071 export_dynamic_flag_spec=
9072 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9073 hardcode_automatic=no
9075 hardcode_direct_absolute=no
9076 hardcode_libdir_flag_spec=
9077 hardcode_libdir_separator=
9079 hardcode_shlibpath_var=unsupported
9081 link_all_deplibs=unknown
9084 old_archive_from_new_cmds=
9085 old_archive_from_expsyms_cmds=
9086 thread_safe_flag_spec=
9087 whole_archive_flag_spec=
9088 # include_expsyms should be a list of space-separated symbols to be *always*
9089 # included in the symbol list
9091 # exclude_expsyms can be an extended regexp of symbols to exclude
9092 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9093 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9094 # as well as any symbol that contains `d'.
9095 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9096 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9097 # platforms (ab)use it in PIC code, but their linkers get confused if
9098 # the symbol is explicitly referenced. Since portable code cannot
9099 # rely on this symbol name, it's probably fine to never include it in
9100 # preloaded symbol tables.
9101 # Exclude shared library initialization/finalization symbols.
9102 extract_expsyms_cmds=
9105 cygwin* | mingw* | pw32* | cegcc*)
9106 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9107 # When not using gcc, we currently assume that we are using
9108 # Microsoft Visual C++.
9109 if test "$GCC" != yes; then
9114 # we just hope/assume this is gcc and not c89 (= MSVC++)
9120 linux* | k*bsd*-gnu | gnu*)
9127 # On some targets, GNU ld is compatible enough with the native linker
9128 # that we're better off using the native interface for both.
9129 lt_use_gnu_ld_interface=no
9130 if test "$with_gnu_ld" = yes; then
9133 # The AIX port of GNU ld has always aspired to compatibility
9134 # with the native linker. However, as the warning in the GNU ld
9135 # block says, versions before 2.19.5* couldn't really create working
9136 # shared libraries, regardless of the interface used.
9137 case `$LD -v 2>&1` in
9138 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9142 lt_use_gnu_ld_interface=yes
9147 lt_use_gnu_ld_interface=yes
9152 if test "$lt_use_gnu_ld_interface" = yes; then
9153 # If archive_cmds runs LD, not CC, wlarc should be empty
9156 # Set some defaults for GNU ld with shared library support. These
9157 # are reset later if shared libraries are not supported. Putting them
9158 # here allows them to be overridden if necessary.
9159 runpath_var=LD_RUN_PATH
9160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161 export_dynamic_flag_spec='${wl}--export-dynamic'
9162 # ancient GNU ld didn't support --whole-archive et. al.
9163 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9166 whole_archive_flag_spec=
9168 supports_anon_versioning=no
9169 case `$LD -v 2>&1` in
9170 *GNU\ gold*) supports_anon_versioning=yes ;;
9171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174 *\ 2.11.*) ;; # other 2.11 versions
9175 *) supports_anon_versioning=yes ;;
9178 # See if GNU ld supports shared libraries.
9181 # On AIX/PPC, the GNU linker is very broken
9182 if test "$host_cpu" != ia64; then
9186 *** Warning: the GNU linker, at least up to release 2.19, is reported
9187 *** to be unable to reliably create shared libraries on AIX.
9188 *** Therefore, libtool is disabling shared libraries support. If you
9189 *** really care for shared libraries, you may want to install binutils
9190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191 *** You will then need to restart the configuration process.
9200 # see comment about AmigaOS4 .so support
9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 archive_expsym_cmds=''
9205 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)'
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_minus_L=yes
9213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214 allow_undefined_flag=unsupported
9215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216 # support --undefined. This deserves some investigation. FIXME
9217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 cygwin* | mingw* | pw32* | cegcc*)
9224 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225 # as there is no search path for DLLs.
9226 hardcode_libdir_flag_spec='-L$libdir'
9227 export_dynamic_flag_spec='${wl}--export-all-symbols'
9228 allow_undefined_flag=unsupported
9229 always_export_symbols=no
9230 enable_shared_with_static_runtimes=yes
9231 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'
9232 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9234 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9236 # If the export-symbols file already is a .def file (1st line
9237 # is EXPORTS), use it as is; otherwise, prepend...
9238 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9239 cp $export_symbols $output_objdir/$soname.def;
9241 echo EXPORTS > $output_objdir/$soname.def;
9242 cat $export_symbols >> $output_objdir/$soname.def;
9244 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 link_all_deplibs=yes
9257 hardcode_shlibpath_var=no
9258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259 export_dynamic_flag_spec='${wl}-E'
9260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9261 # Instead, shared libraries are loaded at an image base (0x10000000 by
9262 # default) and relocated if they conflict, which is a slow very memory
9263 # consuming and fragmenting process. To avoid this, we pick a random,
9264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9265 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9267 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'
9270 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9272 if test "$host_os" = linux-dietlibc; then
9273 case $cc_basename in
9274 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9277 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9278 && test "$tmp_diet" = no
9280 tmp_addflag=' $pic_flag'
9281 tmp_sharedflag='-shared'
9282 case $cc_basename,$host_cpu in
9283 pgcc*) # Portland Group C compiler
9284 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'
9285 tmp_addflag=' $pic_flag'
9287 pgf77* | pgf90* | pgf95* | pgfortran*)
9288 # Portland Group f77 and f90 compilers
9289 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'
9290 tmp_addflag=' $pic_flag -Mnomain' ;;
9291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9292 tmp_addflag=' -i_dynamic' ;;
9293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9294 tmp_addflag=' -i_dynamic -nofor_main' ;;
9295 ifc* | ifort*) # Intel Fortran compiler
9296 tmp_addflag=' -nofor_main' ;;
9297 lf95*) # Lahey Fortran 8.1
9298 whole_archive_flag_spec=
9299 tmp_sharedflag='--shared' ;;
9300 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9301 tmp_sharedflag='-qmkshrobj'
9303 nvcc*) # Cuda Compiler Driver 2.2
9304 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'
9305 compiler_needs_object=yes
9308 case `$CC -V 2>&1 | sed 5q` in
9309 *Sun\ C*) # Sun C 5.9
9310 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'
9311 compiler_needs_object=yes
9312 tmp_sharedflag='-G' ;;
9313 *Sun\ F*) # Sun Fortran 8.3
9314 tmp_sharedflag='-G' ;;
9316 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318 if test "x$supports_anon_versioning" = xyes; then
9319 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321 echo "local: *; };" >> $output_objdir/$libname.ver~
9322 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9325 case $cc_basename in
9326 xlf* | bgf* | bgxlf* | mpixlf*)
9327 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9328 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9331 if test "x$supports_anon_versioning" = xyes; then
9332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9344 netbsd* | netbsdelf*-gnu)
9345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360 *** create shared libraries on Solaris systems. Therefore, libtool
9361 *** is disabling shared libraries support. We urge you to upgrade GNU
9362 *** binutils to release 2.9.1 or newer. Another option is to modify
9363 *** your PATH or compiler configuration so that the native linker is
9364 *** used, and then restart.
9367 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9376 case `$LD -v 2>&1` in
9377 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382 *** reliably create shared libraries on SCO systems. Therefore, libtool
9383 *** is disabling shared libraries support. We urge you to upgrade GNU
9384 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9391 # For security reasons, it is highly recommended that you always
9392 # use absolute paths for naming shared libraries, and exclude the
9393 # DT_RUNPATH tag from executables and libraries. But doing so
9394 # requires that you compile everything twice, which is a pain.
9395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9407 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_shlibpath_var=no
9414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423 if test "$ld_shlibs" = no; then
9425 hardcode_libdir_flag_spec=
9426 export_dynamic_flag_spec=
9427 whole_archive_flag_spec=
9430 # PORTME fill in a description of your system's linker (not GNU ld)
9433 allow_undefined_flag=unsupported
9434 always_export_symbols=yes
9435 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'
9436 # Note: this linker hardcodes the directories in LIBPATH if there
9437 # are no directories specified by -L.
9438 hardcode_minus_L=yes
9439 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440 # Neither direct hardcoding nor static linking is supported with a
9442 hardcode_direct=unsupported
9447 if test "$host_cpu" = ia64; then
9448 # On IA64, the linker does run time linking by default, so we don't
9449 # have to do anything special.
9450 aix_use_runtimelinking=no
9451 exp_sym_flag='-Bexport'
9454 # If we're using GNU nm, then we don't want the "-C" option.
9455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456 # Also, AIX nm treats weak defined symbols like other global
9457 # defined symbols, whereas GNU nm marks them as "W".
9458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459 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'
9461 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'
9463 aix_use_runtimelinking=no
9465 # Test if we are trying to use run time linking or normal
9466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467 # need to do runtime linking.
9468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469 for ld_flag in $LDFLAGS; do
9470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471 aix_use_runtimelinking=yes
9478 exp_sym_flag='-bexport'
9479 no_entry_flag='-bnoentry'
9482 # When large executables or shared objects are built, AIX ld can
9483 # have problems creating the table of contents. If linking a library
9484 # or program results in "error TOC overflow" add -mminimal-toc to
9485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9490 hardcode_direct_absolute=yes
9491 hardcode_libdir_separator=':'
9492 link_all_deplibs=yes
9493 file_list_spec='${wl}-f,'
9495 if test "$GCC" = yes; then
9496 case $host_os in aix4.[012]|aix4.[012].*)
9497 # We only want to do this on AIX 4.2 and lower, the check
9498 # below for broken collect2 doesn't work under 4.3+
9499 collect2name=`${CC} -print-prog-name=collect2`
9500 if test -f "$collect2name" &&
9501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9503 # We have reworked collect2
9506 # We have old collect2
9507 hardcode_direct=unsupported
9508 # It fails to find uninstalled libraries when the uninstalled
9509 # path is not listed in the libpath. Setting hardcode_minus_L
9510 # to unsupported forces relinking
9511 hardcode_minus_L=yes
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_libdir_separator=
9517 shared_flag='-shared'
9518 if test "$aix_use_runtimelinking" = yes; then
9519 shared_flag="$shared_flag "'${wl}-G'
9524 if test "$host_cpu" = ia64; then
9525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9526 # chokes on -Wl,-G. The following line is correct:
9529 if test "$aix_use_runtimelinking" = yes; then
9530 shared_flag='${wl}-G'
9532 shared_flag='${wl}-bM:SRE'
9537 export_dynamic_flag_spec='${wl}-bexpall'
9538 # It seems that -bexpall does not export symbols beginning with
9539 # underscore (_), so it is better to generate a list of symbols to export.
9540 always_export_symbols=yes
9541 if test "$aix_use_runtimelinking" = yes; then
9542 # Warning - without using the other runtime loading flags (-brtl),
9543 # -berok will link without error, but may produce a broken library.
9544 allow_undefined_flag='-berok'
9545 # Determine the default libpath from the value encoded in an
9547 if test "${lt_cv_aix_libpath+set}" = set; then
9548 aix_libpath=$lt_cv_aix_libpath
9550 if ${lt_cv_aix_libpath_+:} false; then :
9551 $as_echo_n "(cached) " >&6
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9564 if ac_fn_c_try_link "$LINENO"; then :
9566 lt_aix_libpath_sed='
9567 /Import File Strings/,/^$/ {
9569 s/^0 *\([^ ]*\) *$/\1/
9573 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574 # Check for a 64-bit object if we didn't find anything.
9575 if test -z "$lt_cv_aix_libpath_"; then
9576 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9579 rm -f core conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 if test -z "$lt_cv_aix_libpath_"; then
9582 lt_cv_aix_libpath_="/usr/lib:/lib"
9587 aix_libpath=$lt_cv_aix_libpath_
9590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9591 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"
9593 if test "$host_cpu" = ia64; then
9594 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9595 allow_undefined_flag="-z nodefs"
9596 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"
9598 # Determine the default libpath from the value encoded in an
9600 if test "${lt_cv_aix_libpath+set}" = set; then
9601 aix_libpath=$lt_cv_aix_libpath
9603 if ${lt_cv_aix_libpath_+:} false; then :
9604 $as_echo_n "(cached) " >&6
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9617 if ac_fn_c_try_link "$LINENO"; then :
9619 lt_aix_libpath_sed='
9620 /Import File Strings/,/^$/ {
9622 s/^0 *\([^ ]*\) *$/\1/
9626 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9627 # Check for a 64-bit object if we didn't find anything.
9628 if test -z "$lt_cv_aix_libpath_"; then
9629 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 if test -z "$lt_cv_aix_libpath_"; then
9635 lt_cv_aix_libpath_="/usr/lib:/lib"
9640 aix_libpath=$lt_cv_aix_libpath_
9643 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9644 # Warning - without using the other run time loading flags,
9645 # -berok will link without error, but may produce a broken library.
9646 no_undefined_flag=' ${wl}-bernotok'
9647 allow_undefined_flag=' ${wl}-berok'
9648 if test "$with_gnu_ld" = yes; then
9649 # We only use this code for GNU lds that support --whole-archive.
9650 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9652 # Exported symbols can be pulled into shared objects from archives
9653 whole_archive_flag_spec='$convenience'
9655 archive_cmds_need_lc=yes
9656 # This is similar to how AIX traditionally builds its shared libraries.
9657 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'
9665 # see comment about AmigaOS4 .so support
9666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667 archive_expsym_cmds=''
9670 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)'
9671 hardcode_libdir_flag_spec='-L$libdir'
9672 hardcode_minus_L=yes
9678 export_dynamic_flag_spec=-rdynamic
9681 cygwin* | mingw* | pw32* | cegcc*)
9682 # When not using gcc, we currently assume that we are using
9683 # Microsoft Visual C++.
9684 # hardcode_libdir_flag_spec is actually meaningless, as there is
9685 # no search path for DLLs.
9686 case $cc_basename in
9689 hardcode_libdir_flag_spec=' '
9690 allow_undefined_flag=unsupported
9691 always_export_symbols=yes
9693 # Tell ltmain to make .lib files, not .a files.
9695 # Tell ltmain to make .dll files, not .so files.
9697 # FIXME: Setting linknames here is a bad hack.
9698 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9699 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9700 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9702 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9704 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9706 # The linker will not automatically build a static lib if we build a DLL.
9707 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9708 enable_shared_with_static_runtimes=yes
9709 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9712 old_postinstall_cmds='chmod 644 $oldlib'
9713 postlink_cmds='lt_outputfile="@OUTPUT@"~
9714 lt_tool_outputfile="@TOOL_OUTPUT@"~
9715 case $lt_outputfile in
9718 lt_outputfile="$lt_outputfile.exe"
9719 lt_tool_outputfile="$lt_tool_outputfile.exe"
9722 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9723 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9724 $RM "$lt_outputfile.manifest";
9728 # Assume MSVC wrapper
9729 hardcode_libdir_flag_spec=' '
9730 allow_undefined_flag=unsupported
9731 # Tell ltmain to make .lib files, not .a files.
9733 # Tell ltmain to make .dll files, not .so files.
9735 # FIXME: Setting linknames here is a bad hack.
9736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9737 # The linker will automatically build a .lib file if we build a DLL.
9738 old_archive_from_new_cmds='true'
9739 # FIXME: Should let the user specify the lib program.
9740 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9741 enable_shared_with_static_runtimes=yes
9746 darwin* | rhapsody*)
9749 archive_cmds_need_lc=no
9751 hardcode_automatic=yes
9752 hardcode_shlibpath_var=unsupported
9753 if test "$lt_cv_ld_force_load" = "yes"; then
9754 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\"`'
9757 whole_archive_flag_spec=''
9759 link_all_deplibs=yes
9760 allow_undefined_flag="$_lt_dar_allow_undefined"
9761 case $cc_basename in
9762 ifort*) _lt_dar_can_shared=yes ;;
9763 *) _lt_dar_can_shared=$GCC ;;
9765 if test "$_lt_dar_can_shared" = "yes"; then
9766 output_verbose_link_cmd=func_echo_all
9767 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9768 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9769 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}"
9770 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}"
9779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_shlibpath_var=no
9784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9785 # support. Future versions do this automatically, but an explicit c++rt0.o
9786 # does not break anything, and helps significantly (at the cost of a little
9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9790 hardcode_libdir_flag_spec='-R$libdir'
9792 hardcode_shlibpath_var=no
9795 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_minus_L=yes
9800 hardcode_shlibpath_var=no
9803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9804 freebsd* | dragonfly*)
9805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9806 hardcode_libdir_flag_spec='-R$libdir'
9808 hardcode_shlibpath_var=no
9812 if test "$GCC" = yes; then
9813 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'
9815 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'
9817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9818 hardcode_libdir_separator=:
9821 # hardcode_minus_L: Not really in the search PATH,
9822 # but as the default location of the library.
9823 hardcode_minus_L=yes
9824 export_dynamic_flag_spec='${wl}-E'
9828 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9829 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833 if test "$with_gnu_ld" = no; then
9834 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9835 hardcode_libdir_separator=:
9837 hardcode_direct_absolute=yes
9838 export_dynamic_flag_spec='${wl}-E'
9839 # hardcode_minus_L: Not really in the search PATH,
9840 # but as the default location of the library.
9841 hardcode_minus_L=yes
9846 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9849 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9868 # Older versions of the 11.00 compiler do not understand -b yet
9869 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9871 $as_echo_n "checking if $CC understands -b... " >&6; }
9872 if ${lt_cv_prog_compiler__b+:} false; then :
9873 $as_echo_n "(cached) " >&6
9875 lt_cv_prog_compiler__b=no
9876 save_LDFLAGS="$LDFLAGS"
9877 LDFLAGS="$LDFLAGS -b"
9878 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9880 # The linker can only warn and ignore the option if not recognized
9881 # So say no if there are warnings
9882 if test -s conftest.err; then
9883 # Append any errors to the config.log.
9884 cat conftest.err 1>&5
9885 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9887 if diff conftest.exp conftest.er2 >/dev/null; then
9888 lt_cv_prog_compiler__b=yes
9891 lt_cv_prog_compiler__b=yes
9895 LDFLAGS="$save_LDFLAGS"
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9899 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9901 if test x"$lt_cv_prog_compiler__b" = xyes; then
9902 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9910 if test "$with_gnu_ld" = no; then
9911 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9912 hardcode_libdir_separator=:
9917 hardcode_shlibpath_var=no
9921 hardcode_direct_absolute=yes
9922 export_dynamic_flag_spec='${wl}-E'
9924 # hardcode_minus_L: Not really in the search PATH,
9925 # but as the default location of the library.
9926 hardcode_minus_L=yes
9932 irix5* | irix6* | nonstopux*)
9933 if test "$GCC" = yes; then
9934 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'
9935 # Try to use the -exported_symbol ld option, if it does not
9936 # work, assume that -exports_file does not work either and
9937 # implicitly export all symbols.
9938 # This should be the same for all languages, so no per-tag cache variable.
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9940 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9941 if ${lt_cv_irix_exported_symbol+:} false; then :
9942 $as_echo_n "(cached) " >&6
9944 save_LDFLAGS="$LDFLAGS"
9945 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 int foo (void) { return 0; }
9950 if ac_fn_c_try_link "$LINENO"; then :
9951 lt_cv_irix_exported_symbol=yes
9953 lt_cv_irix_exported_symbol=no
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 LDFLAGS="$save_LDFLAGS"
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9960 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9961 if test "$lt_cv_irix_exported_symbol" = yes; then
9962 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'
9965 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'
9966 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'
9968 archive_cmds_need_lc='no'
9969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970 hardcode_libdir_separator=:
9972 link_all_deplibs=yes
9975 netbsd* | netbsdelf*-gnu)
9976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9979 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9981 hardcode_libdir_flag_spec='-R$libdir'
9983 hardcode_shlibpath_var=no
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990 hardcode_libdir_separator=:
9991 hardcode_shlibpath_var=no
9998 if test -f /usr/libexec/ld.so; then
10000 hardcode_shlibpath_var=no
10001 hardcode_direct_absolute=yes
10002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10005 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10006 export_dynamic_flag_spec='${wl}-E'
10009 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_libdir_flag_spec='-R$libdir'
10014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10025 hardcode_libdir_flag_spec='-L$libdir'
10026 hardcode_minus_L=yes
10027 allow_undefined_flag=unsupported
10028 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'
10029 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10033 if test "$GCC" = yes; then
10034 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10035 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'
10037 allow_undefined_flag=' -expect_unresolved \*'
10038 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'
10040 archive_cmds_need_lc='no'
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator=:
10045 osf4* | osf5*) # as osf3* with the addition of -msym flag
10046 if test "$GCC" = yes; then
10047 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10048 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'
10049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051 allow_undefined_flag=' -expect_unresolved \*'
10052 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'
10053 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~
10054 $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'
10056 # Both c and cxx compiler support -rpath directly
10057 hardcode_libdir_flag_spec='-rpath $libdir'
10059 archive_cmds_need_lc='no'
10060 hardcode_libdir_separator=:
10064 no_undefined_flag=' -z defs'
10065 if test "$GCC" = yes; then
10067 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10069 $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'
10071 case `$CC -V 2>&1` in
10074 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10076 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10080 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10082 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10086 hardcode_libdir_flag_spec='-R$libdir'
10087 hardcode_shlibpath_var=no
10089 solaris2.[0-5] | solaris2.[0-5].*) ;;
10091 # The compiler driver will combine and reorder linker options,
10092 # but understands `-z linker_flag'. GCC discards it without `$wl',
10093 # but is careful enough not to reorder.
10094 # Supported since Solaris 2.6 (maybe 2.5.1?)
10095 if test "$GCC" = yes; then
10096 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10098 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10102 link_all_deplibs=yes
10106 if test "x$host_vendor" = xsequent; then
10107 # Use $CC to link under sequent, because it throws in some extra .o
10108 # files that make .init and .fini sections work.
10109 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10111 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_libdir_flag_spec='-L$libdir'
10114 hardcode_direct=yes
10115 hardcode_minus_L=yes
10116 hardcode_shlibpath_var=no
10120 case $host_vendor in
10122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123 hardcode_direct=yes # is this really true???
10126 ## LD is ld it makes a PLAMLIB
10127 ## CC just makes a GrossModule.
10128 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10129 reload_cmds='$CC -r -o $output$reload_objs'
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10137 runpath_var='LD_RUN_PATH'
10138 hardcode_shlibpath_var=no
10142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143 hardcode_shlibpath_var=no
10144 export_dynamic_flag_spec='-Bexport'
10148 if test -d /usr/nec; then
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_shlibpath_var=no
10151 runpath_var=LD_RUN_PATH
10152 hardcode_runpath_var=yes
10157 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10158 no_undefined_flag='${wl}-z,text'
10159 archive_cmds_need_lc=no
10160 hardcode_shlibpath_var=no
10161 runpath_var='LD_RUN_PATH'
10163 if test "$GCC" = yes; then
10164 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 sysv5* | sco3.2v5* | sco5v6*)
10173 # Note: We can NOT use -z defs as we might desire, because we do not
10174 # link with -lc, and that would cause any symbols used from libc to
10175 # always be unresolved, which means just about no library would
10176 # ever link correctly. If we're not using GNU ld we use -z text
10177 # though, which does catch some bad symbols but isn't as heavy-handed
10179 no_undefined_flag='${wl}-z,text'
10180 allow_undefined_flag='${wl}-z,nodefs'
10181 archive_cmds_need_lc=no
10182 hardcode_shlibpath_var=no
10183 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10184 hardcode_libdir_separator=':'
10185 link_all_deplibs=yes
10186 export_dynamic_flag_spec='${wl}-Bexport'
10187 runpath_var='LD_RUN_PATH'
10189 if test "$GCC" = yes; then
10190 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_libdir_flag_spec='-L$libdir'
10201 hardcode_shlibpath_var=no
10209 if test x$host_vendor = xsni; then
10211 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10212 export_dynamic_flag_spec='${wl}-Blargedynsym'
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10219 $as_echo "$ld_shlibs" >&6; }
10220 test "$ld_shlibs" = no && can_build_shared=no
10222 with_gnu_ld=$with_gnu_ld
10239 # Do we need to explicitly link libc?
10241 case "x$archive_cmds_need_lc" in
10243 # Assume -lc should be added
10244 archive_cmds_need_lc=yes
10246 if test "$enable_shared" = yes && test "$GCC" = yes; then
10247 case $archive_cmds in
10249 # FIXME: we may have to deal with multi-command sequences.
10252 # Test whether the compiler implicitly links with -lc since on some
10253 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10254 # to ld, don't add -lc before -lgcc.
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10256 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10257 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10258 $as_echo_n "(cached) " >&6
10261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10264 (eval $ac_compile) 2>&5
10266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267 test $ac_status = 0; } 2>conftest.err; then
10270 libobjs=conftest.$ac_objext
10272 wl=$lt_prog_compiler_wl
10273 pic_flag=$lt_prog_compiler_pic
10279 lt_save_allow_undefined_flag=$allow_undefined_flag
10280 allow_undefined_flag=
10281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10282 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10285 test $ac_status = 0; }
10287 lt_cv_archive_cmds_need_lc=no
10289 lt_cv_archive_cmds_need_lc=yes
10291 allow_undefined_flag=$lt_save_allow_undefined_flag
10293 cat conftest.err 1>&5
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10299 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10300 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10459 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10461 if test "$GCC" = yes; then
10463 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10464 *) lt_awk_arg="/^libraries:/" ;;
10467 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10468 *) lt_sed_strip_eq="s,=/,/,g" ;;
10470 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10471 case $lt_search_path_spec in
10473 # if the path contains ";" then we assume it to be the separator
10474 # otherwise default to the standard path separator (i.e. ":") - it is
10475 # assumed that no part of a normal pathname contains ";" but that should
10476 # okay in the real world where ";" in dirpaths is itself problematic.
10477 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10480 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10483 # Ok, now we have the path, separated by spaces, we can step through it
10484 # and add multilib dir if necessary.
10485 lt_tmp_lt_search_path_spec=
10486 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10487 for lt_sys_path in $lt_search_path_spec; do
10488 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10491 test -d "$lt_sys_path" && \
10492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10495 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10496 BEGIN {RS=" "; FS="/|\n";} {
10499 for (lt_i = NF; lt_i > 0; lt_i--) {
10500 if ($lt_i != "" && $lt_i != ".") {
10501 if ($lt_i == "..") {
10504 if (lt_count == 0) {
10505 lt_foo="/" $lt_i lt_foo;
10512 if (lt_foo != "") { lt_freq[lt_foo]++; }
10513 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10515 # AWK program above erroneously prepends '/' to C:/dos/paths
10518 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10519 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10521 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10525 library_names_spec=
10526 libname_spec='lib$name'
10530 postuninstall_cmds=
10534 shlibpath_overrides_runpath=unknown
10536 dynamic_linker="$host_os ld.so"
10537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10538 need_lib_prefix=unknown
10539 hardcode_into_libs=no
10541 # when you set need_version to no, make sure it does not cause -set_version
10542 # flags to be left without arguments
10543 need_version=unknown
10547 version_type=linux # correct to gnu/linux during the next big refactor
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10549 shlibpath_var=LIBPATH
10551 # AIX 3 has no versioning support, so we append a major version to the name.
10552 soname_spec='${libname}${release}${shared_ext}$major'
10556 version_type=linux # correct to gnu/linux during the next big refactor
10559 hardcode_into_libs=yes
10560 if test "$host_cpu" = ia64; then
10561 # AIX 5 supports IA64
10562 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10563 shlibpath_var=LD_LIBRARY_PATH
10565 # With GCC up to 2.95.x, collect2 would create an import file
10566 # for dependence libraries. The import file would start with
10567 # the line `#! .'. This would cause the generated library to
10568 # depend on `.', always an invalid library. This was fixed in
10569 # development snapshots of GCC prior to 3.0.
10571 aix4 | aix4.[01] | aix4.[01].*)
10572 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10574 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10577 can_build_shared=no
10581 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10582 # soname into executable. Probably we can add versioning support to
10583 # collect2, so additional links can be useful in future.
10584 if test "$aix_use_runtimelinking" = yes; then
10585 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10586 # instead of lib<name>.a to let people know that these are not
10587 # typical AIX shared libraries.
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 # We preserve .a as extension for shared libraries through AIX4.2
10591 # and later when we are not doing run time linking.
10592 library_names_spec='${libname}${release}.a $libname.a'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LIBPATH
10602 # Since July 2007 AmigaOS4 officially supports .so libraries.
10603 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 library_names_spec='$libname.ixlibrary $libname.a'
10608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10609 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'
10615 library_names_spec='${libname}${shared_ext}'
10616 dynamic_linker="$host_os ld.so"
10617 shlibpath_var=LIBRARY_PATH
10621 version_type=linux # correct to gnu/linux during the next big refactor
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10628 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10629 # the default ld.so.conf also contains /usr/contrib/lib and
10630 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10631 # libtool to hard-code these into programs
10634 cygwin* | mingw* | pw32* | cegcc*)
10635 version_type=windows
10640 case $GCC,$cc_basename in
10643 library_names_spec='$libname.dll.a'
10644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10645 postinstall_cmds='base_file=`basename \${file}`~
10646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10647 dldir=$destdir/`dirname \$dlpath`~
10648 test -d \$dldir || mkdir -p \$dldir~
10649 $install_prog $dir/$dlname \$dldir/$dlname~
10650 chmod a+x \$dldir/$dlname~
10651 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10652 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10655 dlpath=$dir/\$dldll~
10657 shlibpath_overrides_runpath=yes
10661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10662 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10667 # MinGW DLLs use traditional 'lib' prefix
10668 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10671 # pw32 DLLs use 'pw' prefix rather than 'lib'
10672 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10675 dynamic_linker='Win32 ld.exe'
10680 libname_spec='$name'
10681 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10682 library_names_spec='${libname}.dll.lib'
10686 sys_lib_search_path_spec=
10689 for lt_path in $LIB
10692 # Let DOS variable expansion print the short 8.3 style file name.
10693 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10697 # Convert to MSYS style.
10698 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10701 # Convert to unix form, then to dos form, then back to unix form
10702 # but this time dos style (no spaces!) so that the unix form looks
10703 # like /cygdrive/c/PROGRA~1:/cygdr...
10704 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10705 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10706 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10709 sys_lib_search_path_spec="$LIB"
10710 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10711 # It is most probably a Windows format PATH.
10712 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10714 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10716 # FIXME: find the short name or the path components, as spaces are
10717 # common. (e.g. "Program Files" -> "PROGRA~1")
10721 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10722 postinstall_cmds='base_file=`basename \${file}`~
10723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10724 dldir=$destdir/`dirname \$dlpath`~
10725 test -d \$dldir || mkdir -p \$dldir~
10726 $install_prog $dir/$dlname \$dldir/$dlname'
10727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728 dlpath=$dir/\$dldll~
10730 shlibpath_overrides_runpath=yes
10731 dynamic_linker='Win32 link.exe'
10735 # Assume MSVC wrapper
10736 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10737 dynamic_linker='Win32 ld.exe'
10740 # FIXME: first we should search . and the directory the executable is in
10744 darwin* | rhapsody*)
10745 dynamic_linker="$host_os dyld"
10746 version_type=darwin
10749 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10750 soname_spec='${libname}${release}${major}$shared_ext'
10751 shlibpath_overrides_runpath=yes
10752 shlibpath_var=DYLD_LIBRARY_PATH
10753 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10755 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10756 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10760 version_type=linux # correct to gnu/linux during the next big refactor
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10768 freebsd* | dragonfly*)
10769 # DragonFly does not have aout. When/if they implement a new
10770 # versioning mechanism, adjust this.
10771 if test -x /usr/bin/objformat; then
10772 objformat=`/usr/bin/objformat`
10775 freebsd[23].*) objformat=aout ;;
10776 *) objformat=elf ;;
10779 version_type=freebsd-$objformat
10780 case $version_type in
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10791 shlibpath_var=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath=yes
10796 freebsd3.[01]* | freebsdelf3.[01]*)
10797 shlibpath_overrides_runpath=yes
10798 hardcode_into_libs=yes
10800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10802 shlibpath_overrides_runpath=no
10803 hardcode_into_libs=yes
10805 *) # from 4.6 on, and DragonFly
10806 shlibpath_overrides_runpath=yes
10807 hardcode_into_libs=yes
10813 version_type=linux # correct to gnu/linux during the next big refactor
10816 dynamic_linker="$host_os runtime_loader"
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 shlibpath_var=LIBRARY_PATH
10820 shlibpath_overrides_runpath=yes
10821 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10822 hardcode_into_libs=yes
10825 hpux9* | hpux10* | hpux11*)
10826 # Give a soname corresponding to the major version so that dld.sl refuses to
10827 # link against other versions.
10834 hardcode_into_libs=yes
10835 dynamic_linker="$host_os dld.so"
10836 shlibpath_var=LD_LIBRARY_PATH
10837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 if test "X$HPUX_IA64_MODE" = X32; then
10841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10849 hardcode_into_libs=yes
10850 dynamic_linker="$host_os dld.sl"
10851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10860 dynamic_linker="$host_os dld.sl"
10861 shlibpath_var=SHLIB_PATH
10862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10867 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10868 postinstall_cmds='chmod 555 $lib'
10869 # or fails outright, so override atomically:
10870 install_override_mode=555
10874 version_type=linux # correct to gnu/linux during the next big refactor
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10880 shlibpath_var=LD_LIBRARY_PATH
10881 shlibpath_overrides_runpath=no
10882 hardcode_into_libs=yes
10885 irix5* | irix6* | nonstopux*)
10887 nonstopux*) version_type=nonstopux ;;
10889 if test "$lt_cv_prog_gnu_ld" = yes; then
10890 version_type=linux # correct to gnu/linux during the next big refactor
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10900 irix5* | nonstopux*)
10901 libsuff= shlibsuff=
10904 case $LD in # libtool.m4 will add one of these switches to LD
10905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10906 libsuff= shlibsuff= libmagic=32-bit;;
10907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10908 libsuff=32 shlibsuff=N32 libmagic=N32;;
10909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10911 *) libsuff= shlibsuff= libmagic=never-match;;
10915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10916 shlibpath_overrides_runpath=no
10917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10919 hardcode_into_libs=yes
10922 # No shared lib support for Linux oldld, aout, or coff.
10923 linux*oldld* | linux*aout* | linux*coff*)
10927 # This must be glibc/ELF.
10928 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10929 version_type=linux # correct to gnu/linux during the next big refactor
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath=no
10938 # Some binutils ld are patched to set DT_RUNPATH
10939 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10940 $as_echo_n "(cached) " >&6
10942 lt_cv_shlibpath_overrides_runpath=no
10943 save_LDFLAGS=$LDFLAGS
10944 save_libdir=$libdir
10945 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10946 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10958 if ac_fn_c_try_link "$LINENO"; then :
10959 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10960 lt_cv_shlibpath_overrides_runpath=yes
10963 rm -f core conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
10965 LDFLAGS=$save_LDFLAGS
10966 libdir=$save_libdir
10970 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10972 # This implies no fast_install, which is unacceptable.
10973 # Some rework will be needed to allow for fast_install
10974 # before this can be enabled.
10975 hardcode_into_libs=yes
10977 # Append ld.so.conf contents to the search path
10978 if test -f /etc/ld.so.conf; then
10979 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' ' '`
10980 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10983 # We used to test for /lib/ld.so.1 and disable shared libraries on
10984 # powerpc, because MkLinux only supported shared libraries with the
10985 # GNU dynamic linker. Since this was broken with cross compilers,
10986 # most powerpc-linux boxes support dynamic linking these days and
10987 # people can always --disable-shared, the test was removed, and we
10988 # assume the GNU/Linux dynamic linker is in use.
10989 dynamic_linker='GNU/Linux ld.so'
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10997 soname_spec='${libname}${release}${shared_ext}$major'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=no
11000 hardcode_into_libs=yes
11001 dynamic_linker='NetBSD ld.elf_so'
11008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11011 dynamic_linker='NetBSD (a.out) ld.so'
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 dynamic_linker='NetBSD ld.elf_so'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11019 hardcode_into_libs=yes
11023 version_type=linux # correct to gnu/linux during the next big refactor
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes
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'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=no
11037 hardcode_into_libs=yes
11038 dynamic_linker='ldqnx.so'
11043 sys_lib_dlsearch_path_spec="/usr/lib"
11045 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11047 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11048 *) need_version=no ;;
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11055 openbsd2.[89] | openbsd2.[89].*)
11056 shlibpath_overrides_runpath=no
11059 shlibpath_overrides_runpath=yes
11063 shlibpath_overrides_runpath=yes
11068 libname_spec='$name'
11071 library_names_spec='$libname${shared_ext} $libname.a'
11072 dynamic_linker='OS/2 ld.exe'
11073 shlibpath_var=LIBPATH
11076 osf3* | osf4* | osf5*)
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11092 version_type=linux # correct to gnu/linux during the next big refactor
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 hardcode_into_libs=yes
11100 # ldd complains unless libraries are executable
11101 postinstall_cmds='chmod +x $lib'
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 if test "$with_gnu_ld" = yes; then
11117 version_type=linux # correct to gnu/linux during the next big refactor
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 case $host_vendor in
11123 shlibpath_overrides_runpath=no
11125 runpath_var=LD_RUN_PATH
11133 shlibpath_overrides_runpath=no
11134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11140 if test -d /usr/nec ;then
11141 version_type=linux # correct to gnu/linux during the next big refactor
11142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11143 soname_spec='$libname${shared_ext}.$major'
11144 shlibpath_var=LD_LIBRARY_PATH
11148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11149 version_type=freebsd-elf
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 hardcode_into_libs=yes
11157 if test "$with_gnu_ld" = yes; then
11158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11167 sys_lib_dlsearch_path_spec='/usr/lib'
11171 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11172 version_type=linux # correct to gnu/linux during the next big refactor
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=no
11178 hardcode_into_libs=yes
11182 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11193 $as_echo "$dynamic_linker" >&6; }
11194 test "$dynamic_linker" = no && can_build_shared=no
11196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11197 if test "$GCC" = yes; then
11198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11201 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11202 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11204 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11205 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11300 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11302 if test -n "$hardcode_libdir_flag_spec" ||
11303 test -n "$runpath_var" ||
11304 test "X$hardcode_automatic" = "Xyes" ; then
11306 # We can hardcode non-existent directories.
11307 if test "$hardcode_direct" != no &&
11308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11309 # have to relink, otherwise we might link with an installed library
11310 # when we should be linking with a yet-to-be-installed one
11311 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11312 test "$hardcode_minus_L" != no; then
11313 # Linking always hardcodes the temporary library directory.
11314 hardcode_action=relink
11316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11317 hardcode_action=immediate
11320 # We cannot hardcode anything, or else we can only hardcode existing
11322 hardcode_action=unsupported
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11325 $as_echo "$hardcode_action" >&6; }
11327 if test "$hardcode_action" = relink ||
11328 test "$inherit_rpath" = yes; then
11329 # Fast installation is not supported
11330 enable_fast_install=no
11331 elif test "$shlibpath_overrides_runpath" = yes ||
11332 test "$enable_shared" = no; then
11333 # Fast installation is not necessary
11334 enable_fast_install=needless
11342 if test "x$enable_dlopen" != xyes; then
11343 enable_dlopen=unknown
11344 enable_dlopen_self=unknown
11345 enable_dlopen_self_static=unknown
11352 lt_cv_dlopen="load_add_on"
11354 lt_cv_dlopen_self=yes
11357 mingw* | pw32* | cegcc*)
11358 lt_cv_dlopen="LoadLibrary"
11363 lt_cv_dlopen="dlopen"
11368 # if libdl is installed we need to link against it
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11371 if ${ac_cv_lib_dl_dlopen+:} false; then :
11372 $as_echo_n "(cached) " >&6
11374 ac_check_lib_save_LIBS=$LIBS
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11394 if ac_fn_c_try_link "$LINENO"; then :
11395 ac_cv_lib_dl_dlopen=yes
11397 ac_cv_lib_dl_dlopen=no
11399 rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11401 LIBS=$ac_check_lib_save_LIBS
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11405 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11409 lt_cv_dlopen="dyld"
11411 lt_cv_dlopen_self=yes
11418 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11419 if test "x$ac_cv_func_shl_load" = xyes; then :
11420 lt_cv_dlopen="shl_load"
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11423 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11424 if ${ac_cv_lib_dld_shl_load+:} false; then :
11425 $as_echo_n "(cached) " >&6
11427 ac_check_lib_save_LIBS=$LIBS
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11442 return shl_load ();
11447 if ac_fn_c_try_link "$LINENO"; then :
11448 ac_cv_lib_dld_shl_load=yes
11450 ac_cv_lib_dld_shl_load=no
11452 rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11457 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11458 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11459 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11461 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11462 if test "x$ac_cv_func_dlopen" = xyes; then :
11463 lt_cv_dlopen="dlopen"
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11466 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11467 if ${ac_cv_lib_dl_dlopen+:} false; then :
11468 $as_echo_n "(cached) " >&6
11470 ac_check_lib_save_LIBS=$LIBS
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 /* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_dl_dlopen=yes
11493 ac_cv_lib_dl_dlopen=no
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11501 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11505 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11506 if ${ac_cv_lib_svld_dlopen+:} false; then :
11507 $as_echo_n "(cached) " >&6
11509 ac_check_lib_save_LIBS=$LIBS
11510 LIBS="-lsvld $LIBS"
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11514 /* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11529 if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_svld_dlopen=yes
11532 ac_cv_lib_svld_dlopen=no
11534 rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536 LIBS=$ac_check_lib_save_LIBS
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11539 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11540 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11544 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11545 if ${ac_cv_lib_dld_dld_link+:} false; then :
11546 $as_echo_n "(cached) " >&6
11548 ac_check_lib_save_LIBS=$LIBS
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11553 /* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11563 return dld_link ();
11568 if ac_fn_c_try_link "$LINENO"; then :
11569 ac_cv_lib_dld_dld_link=yes
11571 ac_cv_lib_dld_dld_link=no
11573 rm -f core conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_lib_save_LIBS
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11578 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11579 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11580 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11601 if test "x$lt_cv_dlopen" != xno; then
11607 case $lt_cv_dlopen in
11609 save_CPPFLAGS="$CPPFLAGS"
11610 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11612 save_LDFLAGS="$LDFLAGS"
11613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11616 LIBS="$lt_cv_dlopen_libs $LIBS"
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11619 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11620 if ${lt_cv_dlopen_self+:} false; then :
11621 $as_echo_n "(cached) " >&6
11623 if test "$cross_compiling" = yes; then :
11624 lt_cv_dlopen_self=cross
11626 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11627 lt_status=$lt_dlunknown
11628 cat > conftest.$ac_ext <<_LT_EOF
11629 #line $LINENO "configure"
11630 #include "confdefs.h"
11639 # define LT_DLGLOBAL RTLD_GLOBAL
11642 # define LT_DLGLOBAL DL_GLOBAL
11644 # define LT_DLGLOBAL 0
11648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11649 find out it does not work in some platform. */
11650 #ifndef LT_DLLAZY_OR_NOW
11652 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11655 # define LT_DLLAZY_OR_NOW DL_LAZY
11658 # define LT_DLLAZY_OR_NOW RTLD_NOW
11661 # define LT_DLLAZY_OR_NOW DL_NOW
11663 # define LT_DLLAZY_OR_NOW 0
11670 /* When -fvisbility=hidden is used, assume the code has been annotated
11671 correspondingly for the symbols needed. */
11672 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11673 int fnord () __attribute__((visibility("default")));
11676 int fnord () { return 42; }
11679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11680 int status = $lt_dlunknown;
11684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11687 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11688 else puts (dlerror ());
11690 /* dlclose (self); */
11698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11699 (eval $ac_link) 2>&5
11701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11703 (./conftest; exit; ) >&5 2>/dev/null
11705 case x$lt_status in
11706 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11707 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11708 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11711 # compilation failed
11712 lt_cv_dlopen_self=no
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11720 $as_echo "$lt_cv_dlopen_self" >&6; }
11722 if test "x$lt_cv_dlopen_self" = xyes; then
11723 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11725 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11726 if ${lt_cv_dlopen_self_static+:} false; then :
11727 $as_echo_n "(cached) " >&6
11729 if test "$cross_compiling" = yes; then :
11730 lt_cv_dlopen_self_static=cross
11732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11733 lt_status=$lt_dlunknown
11734 cat > conftest.$ac_ext <<_LT_EOF
11735 #line $LINENO "configure"
11736 #include "confdefs.h"
11745 # define LT_DLGLOBAL RTLD_GLOBAL
11748 # define LT_DLGLOBAL DL_GLOBAL
11750 # define LT_DLGLOBAL 0
11754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11755 find out it does not work in some platform. */
11756 #ifndef LT_DLLAZY_OR_NOW
11758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11761 # define LT_DLLAZY_OR_NOW DL_LAZY
11764 # define LT_DLLAZY_OR_NOW RTLD_NOW
11767 # define LT_DLLAZY_OR_NOW DL_NOW
11769 # define LT_DLLAZY_OR_NOW 0
11776 /* When -fvisbility=hidden is used, assume the code has been annotated
11777 correspondingly for the symbols needed. */
11778 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11779 int fnord () __attribute__((visibility("default")));
11782 int fnord () { return 42; }
11785 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11786 int status = $lt_dlunknown;
11790 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11793 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11794 else puts (dlerror ());
11796 /* dlclose (self); */
11804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11805 (eval $ac_link) 2>&5
11807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11808 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11809 (./conftest; exit; ) >&5 2>/dev/null
11811 case x$lt_status in
11812 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11813 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11814 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11817 # compilation failed
11818 lt_cv_dlopen_self_static=no
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11826 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11829 CPPFLAGS="$save_CPPFLAGS"
11830 LDFLAGS="$save_LDFLAGS"
11835 case $lt_cv_dlopen_self in
11836 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11837 *) enable_dlopen_self=unknown ;;
11840 case $lt_cv_dlopen_self_static in
11841 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11842 *) enable_dlopen_self_static=unknown ;;
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11865 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11866 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11867 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11868 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870 $as_echo "yes" >&6; }
11872 # FIXME - insert some real tests, host_os isn't really good enough
11875 if test -n "$STRIP" ; then
11876 striplib="$STRIP -x"
11877 old_striplib="$STRIP -S"
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11903 # Report which library types will actually be built
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11905 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11907 $as_echo "$can_build_shared" >&6; }
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11910 $as_echo_n "checking whether to build shared libraries... " >&6; }
11911 test "$can_build_shared" = "no" && enable_shared=no
11913 # On AIX, shared libraries and static libraries use the same namespace, and
11914 # are all built from PIC.
11917 test "$enable_shared" = yes && enable_static=no
11918 if test -n "$RANLIB"; then
11919 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11920 postinstall_cmds='$RANLIB $lib'
11925 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11926 test "$enable_shared" = yes && enable_static=no
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11931 $as_echo "$enable_shared" >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11934 $as_echo_n "checking whether to build static libraries... " >&6; }
11935 # Make sure either enable_shared or enable_static is yes.
11936 test "$enable_shared" = yes || enable_static=yes
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11938 $as_echo "$enable_static" >&6; }
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966 ac_config_commands="$ac_config_commands libtool"
11971 # Only expand once:
11976 ac_cpp='$CXXCPP $CPPFLAGS'
11977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11980 if test -z "$CXX"; then
11981 if test -n "$CCC"; then
11984 if test -n "$ac_tool_prefix"; then
11985 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_prog_CXX+:} false; then :
11992 $as_echo_n "(cached) " >&6
11994 if test -n "$CXX"; then
11995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 CXX=$ac_cv_prog_CXX
12015 if test -n "$CXX"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12017 $as_echo "$CXX" >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12024 test -n "$CXX" && break
12027 if test -z "$CXX"; then
12029 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12031 # Extract the first word of "$ac_prog", so it can be a program name with args.
12032 set dummy $ac_prog; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12036 $as_echo_n "(cached) " >&6
12038 if test -n "$ac_ct_CXX"; then
12039 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_ac_ct_CXX="$ac_prog"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12059 if test -n "$ac_ct_CXX"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12061 $as_echo "$ac_ct_CXX" >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12068 test -n "$ac_ct_CXX" && break
12071 if test "x$ac_ct_CXX" = x; then
12074 case $cross_compiling:$ac_tool_warned in
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12078 ac_tool_warned=yes ;;
12086 # Provide some information about the compiler.
12087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12090 for ac_option in --version -v -V -qversion; do
12091 { { ac_try="$ac_compiler $ac_option >&5"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12097 $as_echo "$ac_try_echo"; } >&5
12098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12100 if test -s conftest.err; then
12102 ... rest of stderr output deleted ...
12103 10q' conftest.err >conftest.er1
12104 cat conftest.er1 >&5
12106 rm -f conftest.er1 conftest.err
12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108 test $ac_status = 0; }
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12112 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12113 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12114 $as_echo_n "(cached) " >&6
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12130 if ac_fn_cxx_try_compile "$LINENO"; then :
12131 ac_compiler_gnu=yes
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12140 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12141 if test $ac_compiler_gnu = yes; then
12146 ac_test_CXXFLAGS=${CXXFLAGS+set}
12147 ac_save_CXXFLAGS=$CXXFLAGS
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12149 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12150 if ${ac_cv_prog_cxx_g+:} false; then :
12151 $as_echo_n "(cached) " >&6
12153 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12154 ac_cxx_werror_flag=yes
12155 ac_cv_prog_cxx_g=no
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12168 if ac_fn_cxx_try_compile "$LINENO"; then :
12169 ac_cv_prog_cxx_g=yes
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12183 if ac_fn_cxx_try_compile "$LINENO"; then :
12186 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12199 if ac_fn_cxx_try_compile "$LINENO"; then :
12200 ac_cv_prog_cxx_g=yes
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12210 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12211 if test "$ac_test_CXXFLAGS" = set; then
12212 CXXFLAGS=$ac_save_CXXFLAGS
12213 elif test $ac_cv_prog_cxx_g = yes; then
12214 if test "$GXX" = yes; then
12220 if test "$GXX" = yes; then
12227 ac_cpp='$CPP $CPPFLAGS'
12228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12232 depcc="$CXX" am_compiler_list=
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12235 $as_echo_n "checking dependency style of $depcc... " >&6; }
12236 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12237 $as_echo_n "(cached) " >&6
12239 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12240 # We make a subdir and do the tests there. Otherwise we can end up
12241 # making bogus files that we don't know about and never remove. For
12242 # instance it was reported that on HP-UX the gcc test will end up
12243 # making a dummy file named `D' -- because `-MD' means `put the output
12245 rm -rf conftest.dir
12247 # Copy depcomp to subdir because otherwise we won't find it if we're
12248 # using a relative directory.
12249 cp "$am_depcomp" conftest.dir
12251 # We will build objects and dependencies in a subdirectory because
12252 # it helps to detect inapplicable dependency modes. For instance
12253 # both Tru64's cc and ICC support -MD to output dependencies as a
12254 # side effect of compilation, but ICC will put the dependencies in
12255 # the current directory while Tru64 will put them in the object
12259 am_cv_CXX_dependencies_compiler_type=none
12260 if test "$am_compiler_list" = ""; then
12261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12263 am__universal=false
12264 case " $depcc " in #(
12265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12268 for depmode in $am_compiler_list; do
12269 # Setup a source with many dependencies, because some compilers
12270 # like to wrap large dependency lists on column 80 (with \), and
12271 # we should not choose a depcomp mode which is confused by this.
12273 # We need to recreate these files for each test, as the compiler may
12274 # overwrite some of them when testing with obscure command lines.
12275 # This happens at least with the AIX C compiler.
12277 for i in 1 2 3 4 5 6; do
12278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12279 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12280 # Solaris 8's {/usr,}/bin/sh.
12281 touch sub/conftst$i.h
12283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12286 # mode. It turns out that the SunPro C++ compiler does not properly
12287 # handle `-M -o', and we need to detect this. Also, some Intel
12288 # versions had trouble with output in subdirs
12289 am__obj=sub/conftest.${OBJEXT-o}
12290 am__minus_obj="-o $am__obj"
12293 # This depmode causes a compiler race in universal mode.
12294 test "$am__universal" = false || continue
12297 # after this tag, mechanisms are not by side-effect, so they'll
12298 # only be used when explicitly requested
12299 if test "x$enable_dependency_tracking" = xyes; then
12305 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12306 # This compiler won't grok `-c -o', but also, the minuso test has
12307 # not run yet. These depmodes are late enough in the game, and
12308 # so weak that their functioning should not be impacted.
12309 am__obj=conftest.${OBJEXT-o}
12314 if depmode=$depmode \
12315 source=sub/conftest.c object=$am__obj \
12316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12318 >/dev/null 2>conftest.err &&
12319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12323 # icc doesn't choke on unknown options, it will just issue warnings
12324 # or remarks (even with -Werror). So we grep stderr for any message
12325 # that says an option was ignored or not supported.
12326 # When given -MP, icc 7.0 and 7.1 complain thusly:
12327 # icc: Command line warning: ignoring option '-M'; no argument required
12328 # The diagnosis changed in icc 8.0:
12329 # icc: Command line remark: option '-MP' not supported
12330 if (grep 'ignoring option' conftest.err ||
12331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12332 am_cv_CXX_dependencies_compiler_type=$depmode
12339 rm -rf conftest.dir
12341 am_cv_CXX_dependencies_compiler_type=none
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12346 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12347 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12350 test "x$enable_dependency_tracking" != xno \
12351 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12352 am__fastdepCXX_TRUE=
12353 am__fastdepCXX_FALSE='#'
12355 am__fastdepCXX_TRUE='#'
12356 am__fastdepCXX_FALSE=
12362 func_stripname_cnf ()
12365 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12366 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12368 } # func_stripname_cnf
12370 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12371 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12372 (test "X$CXX" != "Xg++"))) ; then
12374 ac_cpp='$CXXCPP $CPPFLAGS'
12375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12379 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12380 if test -z "$CXXCPP"; then
12381 if ${ac_cv_prog_CXXCPP+:} false; then :
12382 $as_echo_n "(cached) " >&6
12384 # Double quotes because CXXCPP needs to be expanded
12385 for CXXCPP in "$CXX -E" "/lib/cpp"
12387 ac_preproc_ok=false
12388 for ac_cxx_preproc_warn_flag in '' yes
12390 # Use a header file that comes with gcc, so configuring glibc
12391 # with a fresh cross-compiler works.
12392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12393 # <limits.h> exists even on freestanding compilers.
12394 # On the NeXT, cc -E runs the code through the compiler's parser,
12395 # not just through cpp. "Syntax error" is here to catch this case.
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 # include <limits.h>
12401 # include <assert.h>
12405 if ac_fn_cxx_try_cpp "$LINENO"; then :
12408 # Broken: fails on valid input.
12411 rm -f conftest.err conftest.i conftest.$ac_ext
12413 # OK, works on sane cases. Now check whether nonexistent headers
12414 # can be detected and how.
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 #include <ac_nonexistent.h>
12419 if ac_fn_cxx_try_cpp "$LINENO"; then :
12420 # Broken: success on invalid input.
12423 # Passes both tests.
12427 rm -f conftest.err conftest.i conftest.$ac_ext
12430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12431 rm -f conftest.i conftest.err conftest.$ac_ext
12432 if $ac_preproc_ok; then :
12437 ac_cv_prog_CXXCPP=$CXXCPP
12440 CXXCPP=$ac_cv_prog_CXXCPP
12442 ac_cv_prog_CXXCPP=$CXXCPP
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12445 $as_echo "$CXXCPP" >&6; }
12446 ac_preproc_ok=false
12447 for ac_cxx_preproc_warn_flag in '' yes
12449 # Use a header file that comes with gcc, so configuring glibc
12450 # with a fresh cross-compiler works.
12451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12452 # <limits.h> exists even on freestanding compilers.
12453 # On the NeXT, cc -E runs the code through the compiler's parser,
12454 # not just through cpp. "Syntax error" is here to catch this case.
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12458 # include <limits.h>
12460 # include <assert.h>
12464 if ac_fn_cxx_try_cpp "$LINENO"; then :
12467 # Broken: fails on valid input.
12470 rm -f conftest.err conftest.i conftest.$ac_ext
12472 # OK, works on sane cases. Now check whether nonexistent headers
12473 # can be detected and how.
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476 #include <ac_nonexistent.h>
12478 if ac_fn_cxx_try_cpp "$LINENO"; then :
12479 # Broken: success on invalid input.
12482 # Passes both tests.
12486 rm -f conftest.err conftest.i conftest.$ac_ext
12489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12490 rm -f conftest.i conftest.err conftest.$ac_ext
12491 if $ac_preproc_ok; then :
12494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12496 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12497 See \`config.log' for more details" "$LINENO" 5; }
12501 ac_cpp='$CPP $CPPFLAGS'
12502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12507 _lt_caught_CXX_error=yes
12511 ac_cpp='$CXXCPP $CPPFLAGS'
12512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12516 archive_cmds_need_lc_CXX=no
12517 allow_undefined_flag_CXX=
12518 always_export_symbols_CXX=no
12519 archive_expsym_cmds_CXX=
12520 compiler_needs_object_CXX=no
12521 export_dynamic_flag_spec_CXX=
12522 hardcode_direct_CXX=no
12523 hardcode_direct_absolute_CXX=no
12524 hardcode_libdir_flag_spec_CXX=
12525 hardcode_libdir_separator_CXX=
12526 hardcode_minus_L_CXX=no
12527 hardcode_shlibpath_var_CXX=unsupported
12528 hardcode_automatic_CXX=no
12529 inherit_rpath_CXX=no
12531 module_expsym_cmds_CXX=
12532 link_all_deplibs_CXX=unknown
12533 old_archive_cmds_CXX=$old_archive_cmds
12534 reload_flag_CXX=$reload_flag
12535 reload_cmds_CXX=$reload_cmds
12536 no_undefined_flag_CXX=
12537 whole_archive_flag_spec_CXX=
12538 enable_shared_with_static_runtimes_CXX=no
12540 # Source file extension for C++ test sources.
12543 # Object file extension for compiled C++ test sources.
12547 # No sense in running all these tests if we already determined that
12548 # the CXX compiler isn't working. Some variables (like enable_shared)
12549 # are currently assumed to apply to all compilers on this platform,
12550 # and will be corrupted by setting them based on a non-working compiler.
12551 if test "$_lt_caught_CXX_error" != yes; then
12552 # Code to be used in simple compile tests
12553 lt_simple_compile_test_code="int some_variable = 0;"
12555 # Code to be used in simple link tests
12556 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12558 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12565 # If no C compiler was specified, use CC.
12568 # If no C compiler flags were specified, use CFLAGS.
12569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12571 # Allow CC to be a program name with arguments.
12575 # save warnings/boilerplate of simple test code
12576 ac_outfile=conftest.$ac_objext
12577 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12579 _lt_compiler_boilerplate=`cat conftest.err`
12582 ac_outfile=conftest.$ac_objext
12583 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12585 _lt_linker_boilerplate=`cat conftest.err`
12589 # Allow CC to be a program name with arguments.
12591 lt_save_CFLAGS=$CFLAGS
12595 lt_save_with_gnu_ld=$with_gnu_ld
12596 lt_save_path_LD=$lt_cv_path_LD
12597 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12598 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12600 $as_unset lt_cv_prog_gnu_ld
12602 if test -n "${lt_cv_path_LDCXX+set}"; then
12603 lt_cv_path_LD=$lt_cv_path_LDCXX
12605 $as_unset lt_cv_path_LD
12607 test -z "${LDCXX+set}" || LD=$LDCXX
12612 for cc_temp in $compiler""; do
12614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12620 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12623 if test -n "$compiler"; then
12624 # We don't want -fno-exception when compiling C++ code, so set the
12625 # no_builtin_flag separately
12626 if test "$GXX" = yes; then
12627 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12629 lt_prog_compiler_no_builtin_flag_CXX=
12632 if test "$GXX" = yes; then
12633 # Set up default GNU C++ configuration
12637 # Check whether --with-gnu-ld was given.
12638 if test "${with_gnu_ld+set}" = set; then :
12639 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12645 if test "$GCC" = yes; then
12646 # Check if gcc -print-prog-name=ld gives a path.
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12648 $as_echo_n "checking for ld used by $CC... " >&6; }
12651 # gcc leaves a trailing carriage return which upsets mingw
12652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12657 # Accept absolute paths.
12659 re_direlt='/[^/][^/]*/\.\./'
12660 # Canonicalize the pathname of ld
12661 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12662 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12663 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12665 test -z "$LD" && LD="$ac_prog"
12668 # If it fails, then pretend we aren't using GCC.
12672 # If it is relative, then search for the first ld in PATH.
12673 with_gnu_ld=unknown
12676 elif test "$with_gnu_ld" = yes; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12678 $as_echo_n "checking for GNU ld... " >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12681 $as_echo_n "checking for non-GNU ld... " >&6; }
12683 if ${lt_cv_path_LD+:} false; then :
12684 $as_echo_n "(cached) " >&6
12686 if test -z "$LD"; then
12687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12688 for ac_dir in $PATH; do
12690 test -z "$ac_dir" && ac_dir=.
12691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12692 lt_cv_path_LD="$ac_dir/$ac_prog"
12693 # Check to see if the program is GNU ld. I'd rather use --version,
12694 # but apparently some variants of GNU ld only accept -v.
12695 # Break only if it was the GNU/non-GNU ld that we prefer.
12696 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12697 *GNU* | *'with BFD'*)
12698 test "$with_gnu_ld" != no && break
12701 test "$with_gnu_ld" != yes && break
12708 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12712 LD="$lt_cv_path_LD"
12713 if test -n "$LD"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12715 $as_echo "$LD" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12720 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12723 if ${lt_cv_prog_gnu_ld+:} false; then :
12724 $as_echo_n "(cached) " >&6
12726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12727 case `$LD -v 2>&1 </dev/null` in
12728 *GNU* | *'with BFD'*)
12729 lt_cv_prog_gnu_ld=yes
12732 lt_cv_prog_gnu_ld=no
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12738 with_gnu_ld=$lt_cv_prog_gnu_ld
12746 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12747 # archiving commands below assume that GNU ld is being used.
12748 if test "$with_gnu_ld" = yes; then
12749 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750 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'
12752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12755 # If archive_cmds runs LD, not CC, wlarc should be empty
12756 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12757 # investigate it a little bit more. (MM)
12760 # ancient GNU ld didn't support --whole-archive et. al.
12761 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12762 $GREP 'no-whole-archive' > /dev/null; then
12763 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12765 whole_archive_flag_spec_CXX=
12771 # A generic and very simple default shared library creation
12772 # command for GNU C++ for the case where it uses the native
12773 # linker, instead of GNU ld. If possible, this setting should
12774 # overridden to take advantage of the native linker features on
12775 # the platform it is being used on.
12776 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12779 # Commands to make compiler produce verbose output that lists
12780 # what "hidden" libraries, object files and flags are used when
12781 # linking a shared library.
12782 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12790 # PORTME: fill in a description of your system's C++ link characteristics
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12796 # FIXME: insert proper C++ library support
12800 if test "$host_cpu" = ia64; then
12801 # On IA64, the linker does run time linking by default, so we don't
12802 # have to do anything special.
12803 aix_use_runtimelinking=no
12804 exp_sym_flag='-Bexport'
12807 aix_use_runtimelinking=no
12809 # Test if we are trying to use run time linking or normal
12810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12811 # need to do runtime linking.
12812 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12813 for ld_flag in $LDFLAGS; do
12816 aix_use_runtimelinking=yes
12824 exp_sym_flag='-bexport'
12825 no_entry_flag='-bnoentry'
12828 # When large executables or shared objects are built, AIX ld can
12829 # have problems creating the table of contents. If linking a library
12830 # or program results in "error TOC overflow" add -mminimal-toc to
12831 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12832 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12834 archive_cmds_CXX=''
12835 hardcode_direct_CXX=yes
12836 hardcode_direct_absolute_CXX=yes
12837 hardcode_libdir_separator_CXX=':'
12838 link_all_deplibs_CXX=yes
12839 file_list_spec_CXX='${wl}-f,'
12841 if test "$GXX" = yes; then
12842 case $host_os in aix4.[012]|aix4.[012].*)
12843 # We only want to do this on AIX 4.2 and lower, the check
12844 # below for broken collect2 doesn't work under 4.3+
12845 collect2name=`${CC} -print-prog-name=collect2`
12846 if test -f "$collect2name" &&
12847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12849 # We have reworked collect2
12852 # We have old collect2
12853 hardcode_direct_CXX=unsupported
12854 # It fails to find uninstalled libraries when the uninstalled
12855 # path is not listed in the libpath. Setting hardcode_minus_L
12856 # to unsupported forces relinking
12857 hardcode_minus_L_CXX=yes
12858 hardcode_libdir_flag_spec_CXX='-L$libdir'
12859 hardcode_libdir_separator_CXX=
12862 shared_flag='-shared'
12863 if test "$aix_use_runtimelinking" = yes; then
12864 shared_flag="$shared_flag "'${wl}-G'
12868 if test "$host_cpu" = ia64; then
12869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12870 # chokes on -Wl,-G. The following line is correct:
12873 if test "$aix_use_runtimelinking" = yes; then
12874 shared_flag='${wl}-G'
12876 shared_flag='${wl}-bM:SRE'
12881 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12882 # It seems that -bexpall does not export symbols beginning with
12883 # underscore (_), so it is better to generate a list of symbols to
12885 always_export_symbols_CXX=yes
12886 if test "$aix_use_runtimelinking" = yes; then
12887 # Warning - without using the other runtime loading flags (-brtl),
12888 # -berok will link without error, but may produce a broken library.
12889 allow_undefined_flag_CXX='-berok'
12890 # Determine the default libpath from the value encoded in an empty
12892 if test "${lt_cv_aix_libpath+set}" = set; then
12893 aix_libpath=$lt_cv_aix_libpath
12895 if ${lt_cv_aix_libpath__CXX+:} false; then :
12896 $as_echo_n "(cached) " >&6
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12909 if ac_fn_cxx_try_link "$LINENO"; then :
12911 lt_aix_libpath_sed='
12912 /Import File Strings/,/^$/ {
12914 s/^0 *\([^ ]*\) *$/\1/
12918 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12919 # Check for a 64-bit object if we didn't find anything.
12920 if test -z "$lt_cv_aix_libpath__CXX"; then
12921 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12924 rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext conftest.$ac_ext
12926 if test -z "$lt_cv_aix_libpath__CXX"; then
12927 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12932 aix_libpath=$lt_cv_aix_libpath__CXX
12935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12937 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"
12939 if test "$host_cpu" = ia64; then
12940 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12941 allow_undefined_flag_CXX="-z nodefs"
12942 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"
12944 # Determine the default libpath from the value encoded in an
12945 # empty executable.
12946 if test "${lt_cv_aix_libpath+set}" = set; then
12947 aix_libpath=$lt_cv_aix_libpath
12949 if ${lt_cv_aix_libpath__CXX+:} false; then :
12950 $as_echo_n "(cached) " >&6
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12963 if ac_fn_cxx_try_link "$LINENO"; then :
12965 lt_aix_libpath_sed='
12966 /Import File Strings/,/^$/ {
12968 s/^0 *\([^ ]*\) *$/\1/
12972 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12973 # Check for a 64-bit object if we didn't find anything.
12974 if test -z "$lt_cv_aix_libpath__CXX"; then
12975 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 if test -z "$lt_cv_aix_libpath__CXX"; then
12981 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12986 aix_libpath=$lt_cv_aix_libpath__CXX
12989 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12990 # Warning - without using the other run time loading flags,
12991 # -berok will link without error, but may produce a broken library.
12992 no_undefined_flag_CXX=' ${wl}-bernotok'
12993 allow_undefined_flag_CXX=' ${wl}-berok'
12994 if test "$with_gnu_ld" = yes; then
12995 # We only use this code for GNU lds that support --whole-archive.
12996 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12998 # Exported symbols can be pulled into shared objects from archives
12999 whole_archive_flag_spec_CXX='$convenience'
13001 archive_cmds_need_lc_CXX=yes
13002 # This is similar to how AIX traditionally builds its shared
13004 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'
13010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13011 allow_undefined_flag_CXX=unsupported
13012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13013 # support --undefined. This deserves some investigation. FIXME
13014 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021 case $cc_basename in
13023 # FIXME: insert proper C++ library support
13029 cygwin* | mingw* | pw32* | cegcc*)
13030 case $GXX,$cc_basename in
13033 # hardcode_libdir_flag_spec is actually meaningless, as there is
13034 # no search path for DLLs.
13035 hardcode_libdir_flag_spec_CXX=' '
13036 allow_undefined_flag_CXX=unsupported
13037 always_export_symbols_CXX=yes
13038 file_list_spec_CXX='@'
13039 # Tell ltmain to make .lib files, not .a files.
13041 # Tell ltmain to make .dll files, not .so files.
13043 # FIXME: Setting linknames here is a bad hack.
13044 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13045 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13046 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13048 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13050 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13052 # The linker will not automatically build a static lib if we build a DLL.
13053 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13054 enable_shared_with_static_runtimes_CXX=yes
13056 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13057 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13058 lt_tool_outputfile="@TOOL_OUTPUT@"~
13059 case $lt_outputfile in
13062 lt_outputfile="$lt_outputfile.exe"
13063 lt_tool_outputfile="$lt_tool_outputfile.exe"
13066 func_to_tool_file "$lt_outputfile"~
13067 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13068 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13069 $RM "$lt_outputfile.manifest";
13074 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13075 # as there is no search path for DLLs.
13076 hardcode_libdir_flag_spec_CXX='-L$libdir'
13077 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13078 allow_undefined_flag_CXX=unsupported
13079 always_export_symbols_CXX=no
13080 enable_shared_with_static_runtimes_CXX=yes
13082 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13083 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'
13084 # If the export-symbols file already is a .def file (1st line
13085 # is EXPORTS), use it as is; otherwise, prepend...
13086 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13087 cp $export_symbols $output_objdir/$soname.def;
13089 echo EXPORTS > $output_objdir/$soname.def;
13090 cat $export_symbols >> $output_objdir/$soname.def;
13092 $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'
13099 darwin* | rhapsody*)
13102 archive_cmds_need_lc_CXX=no
13103 hardcode_direct_CXX=no
13104 hardcode_automatic_CXX=yes
13105 hardcode_shlibpath_var_CXX=unsupported
13106 if test "$lt_cv_ld_force_load" = "yes"; then
13107 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\"`'
13110 whole_archive_flag_spec_CXX=''
13112 link_all_deplibs_CXX=yes
13113 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13114 case $cc_basename in
13115 ifort*) _lt_dar_can_shared=yes ;;
13116 *) _lt_dar_can_shared=$GCC ;;
13118 if test "$_lt_dar_can_shared" = "yes"; then
13119 output_verbose_link_cmd=func_echo_all
13120 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}"
13121 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13122 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}"
13123 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}"
13124 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13125 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}"
13126 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}"
13136 case $cc_basename in
13138 # FIXME: insert proper C++ library support
13142 # Green Hills C++ Compiler
13143 # FIXME: insert proper C++ library support
13147 # FIXME: insert proper C++ library support
13154 # C++ shared libraries reported to be fairly broken before
13160 archive_cmds_need_lc_CXX=no
13163 freebsd* | dragonfly*)
13164 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13170 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171 link_all_deplibs_CXX=yes
13175 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13176 hardcode_libdir_separator_CXX=:
13177 export_dynamic_flag_spec_CXX='${wl}-E'
13178 hardcode_direct_CXX=yes
13179 hardcode_minus_L_CXX=yes # Not in the search PATH,
13180 # but as the default
13181 # location of the library.
13183 case $cc_basename in
13185 # FIXME: insert proper C++ library support
13189 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'
13190 # Commands to make compiler produce verbose output that lists
13191 # what "hidden" libraries, object files and flags are used when
13192 # linking a shared library.
13194 # There doesn't appear to be a way to prevent this compiler from
13195 # explicitly linking system object files so we need to strip them
13196 # from the output so that they don't get included in the library
13198 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"'
13201 if test "$GXX" = yes; then
13202 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'
13204 # FIXME: insert proper C++ library support
13212 if test $with_gnu_ld = no; then
13213 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13214 hardcode_libdir_separator_CXX=:
13220 export_dynamic_flag_spec_CXX='${wl}-E'
13226 hardcode_direct_CXX=no
13227 hardcode_shlibpath_var_CXX=no
13230 hardcode_direct_CXX=yes
13231 hardcode_direct_absolute_CXX=yes
13232 hardcode_minus_L_CXX=yes # Not in the search PATH,
13233 # but as the default
13234 # location of the library.
13238 case $cc_basename in
13240 # FIXME: insert proper C++ library support
13246 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13252 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13255 # Commands to make compiler produce verbose output that lists
13256 # what "hidden" libraries, object files and flags are used when
13257 # linking a shared library.
13259 # There doesn't appear to be a way to prevent this compiler from
13260 # explicitly linking system object files so we need to strip them
13261 # from the output so that they don't get included in the library
13263 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"'
13266 if test "$GXX" = yes; then
13267 if test $with_gnu_ld = no; then
13270 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13276 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'
13281 # FIXME: insert proper C++ library support
13289 hardcode_direct_CXX=no
13290 hardcode_shlibpath_var_CXX=no
13291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13292 export_dynamic_flag_spec_CXX='${wl}-E'
13293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13294 # Instead, shared libraries are loaded at an image base (0x10000000 by
13295 # default) and relocated if they conflict, which is a slow very memory
13296 # consuming and fragmenting process. To avoid this, we pick a random,
13297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13299 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'
13300 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'
13303 case $cc_basename in
13306 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'
13308 # Archives containing C++ object files must be created using
13309 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13310 # necessary to make sure instantiated templates are included
13312 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13315 if test "$GXX" = yes; then
13316 if test "$with_gnu_ld" = no; then
13317 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'
13319 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'
13322 link_all_deplibs_CXX=yes
13325 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13326 hardcode_libdir_separator_CXX=:
13327 inherit_rpath_CXX=yes
13330 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13331 case $cc_basename in
13333 # Kuck and Associates, Inc. (KAI) C++ Compiler
13335 # KCC will only create a shared library if the output file
13336 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13337 # to its proper name (with version) after linking.
13338 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'
13339 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'
13340 # Commands to make compiler produce verbose output that lists
13341 # what "hidden" libraries, object files and flags are used when
13342 # linking a shared library.
13344 # There doesn't appear to be a way to prevent this compiler from
13345 # explicitly linking system object files so we need to strip them
13346 # from the output so that they don't get included in the library
13348 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"'
13350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13353 # Archives containing C++ object files must be created using
13354 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13355 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13360 # version 8.0 and above of icpc choke on multiply defined symbols
13361 # if we add $predep_objects and $postdep_objects, however 7.1 and
13362 # earlier do not add the objects themselves.
13363 case `$CC -V 2>&1` in
13365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366 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'
13368 *) # Version 8.0 or newer
13371 ia64*) tmp_idyn=' -i_dynamic';;
13373 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374 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'
13377 archive_cmds_need_lc_CXX=no
13378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13380 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13383 # Portland Group C++ compiler
13385 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13386 prelink_cmds_CXX='tpldir=Template.dir~
13388 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13389 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13390 old_archive_cmds_CXX='tpldir=Template.dir~
13392 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13393 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13395 archive_cmds_CXX='tpldir=Template.dir~
13397 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13398 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13399 archive_expsym_cmds_CXX='tpldir=Template.dir~
13401 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13402 $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'
13404 *) # Version 6 and above use weak symbols
13405 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13406 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'
13410 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13412 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'
13416 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13417 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'
13419 runpath_var=LD_RUN_PATH
13420 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13421 hardcode_libdir_separator_CXX=:
13423 # Commands to make compiler produce verbose output that lists
13424 # what "hidden" libraries, object files and flags are used when
13425 # linking a shared library.
13427 # There doesn't appear to be a way to prevent this compiler from
13428 # explicitly linking system object files so we need to strip them
13429 # from the output so that they don't get included in the library
13431 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'
13433 xl* | mpixl* | bgxl*)
13434 # IBM XL 8.0 on PPC, with GNU ld
13435 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13436 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13437 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438 if test "x$supports_anon_versioning" = xyes; then
13439 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13441 echo "local: *; };" >> $output_objdir/$libname.ver~
13442 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13446 case `$CC -V 2>&1 | sed 5q` in
13449 no_undefined_flag_CXX=' -zdefs'
13450 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13451 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'
13452 hardcode_libdir_flag_spec_CXX='-R$libdir'
13453 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'
13454 compiler_needs_object_CXX=yes
13456 # Not sure whether something based on
13457 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13459 output_verbose_link_cmd='func_echo_all'
13461 # Archives containing C++ object files must be created using
13462 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13463 # necessary to make sure instantiated templates are included
13465 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13473 # FIXME: insert proper C++ library support
13478 # FIXME: insert proper C++ library support
13483 case $cc_basename in
13485 # FIXME: insert proper C++ library support
13489 # FIXME: insert proper C++ library support
13496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13497 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13499 hardcode_libdir_flag_spec_CXX='-R$libdir'
13500 hardcode_direct_CXX=yes
13501 hardcode_shlibpath_var_CXX=no
13503 # Workaround some broken pre-1.5 toolchains
13504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13512 # C++ shared libraries are fairly broken
13517 if test -f /usr/libexec/ld.so; then
13518 hardcode_direct_CXX=yes
13519 hardcode_shlibpath_var_CXX=no
13520 hardcode_direct_absolute_CXX=yes
13521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13524 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13525 export_dynamic_flag_spec_CXX='${wl}-E'
13526 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13528 output_verbose_link_cmd=func_echo_all
13534 osf3* | osf4* | osf5*)
13535 case $cc_basename in
13537 # Kuck and Associates, Inc. (KAI) C++ Compiler
13539 # KCC will only create a shared library if the output file
13540 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13541 # to its proper name (with version) after linking.
13542 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'
13544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13545 hardcode_libdir_separator_CXX=:
13547 # Archives containing C++ object files must be created using
13548 # the KAI C++ compiler.
13550 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13551 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13555 # Rational C++ 2.4.1
13556 # FIXME: insert proper C++ library support
13562 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13563 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'
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13567 allow_undefined_flag_CXX=' -expect_unresolved \*'
13568 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'
13569 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13570 echo "-hidden">> $lib.exp~
13571 $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~
13573 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13577 hardcode_libdir_separator_CXX=:
13579 # Commands to make compiler produce verbose output that lists
13580 # what "hidden" libraries, object files and flags are used when
13581 # linking a shared library.
13583 # There doesn't appear to be a way to prevent this compiler from
13584 # explicitly linking system object files so we need to strip them
13585 # from the output so that they don't get included in the library
13587 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"'
13590 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13591 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13594 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'
13597 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'
13601 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13602 hardcode_libdir_separator_CXX=:
13604 # Commands to make compiler produce verbose output that lists
13605 # what "hidden" libraries, object files and flags are used when
13606 # linking a shared library.
13607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13610 # FIXME: insert proper C++ library support
13618 # FIXME: insert proper C++ library support
13623 case $cc_basename in
13626 # FIXME: insert proper C++ library support
13631 # FIXME: insert proper C++ library support
13635 # FIXME: insert proper C++ library support
13642 case $cc_basename in
13644 # Sun C++ 4.2, 5.x and Centerline C++
13645 archive_cmds_need_lc_CXX=yes
13646 no_undefined_flag_CXX=' -zdefs'
13647 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13649 $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'
13651 hardcode_libdir_flag_spec_CXX='-R$libdir'
13652 hardcode_shlibpath_var_CXX=no
13654 solaris2.[0-5] | solaris2.[0-5].*) ;;
13656 # The compiler driver will combine and reorder linker options,
13657 # but understands `-z linker_flag'.
13658 # Supported since Solaris 2.6 (maybe 2.5.1?)
13659 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13662 link_all_deplibs_CXX=yes
13664 output_verbose_link_cmd='func_echo_all'
13666 # Archives containing C++ object files must be created using
13667 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13668 # necessary to make sure instantiated templates are included
13670 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13673 # Green Hills C++ Compiler
13674 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13676 # The C++ compiler must be used to create the archive.
13677 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13680 # GNU C++ compiler with Solaris linker
13681 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13682 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13683 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13684 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13685 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13686 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13688 # Commands to make compiler produce verbose output that lists
13689 # what "hidden" libraries, object files and flags are used when
13690 # linking a shared library.
13691 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13693 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13695 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13696 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13697 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13699 # Commands to make compiler produce verbose output that lists
13700 # what "hidden" libraries, object files and flags are used when
13701 # linking a shared library.
13702 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13705 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13707 solaris2.[0-5] | solaris2.[0-5].*) ;;
13709 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13718 no_undefined_flag_CXX='${wl}-z,text'
13719 archive_cmds_need_lc_CXX=no
13720 hardcode_shlibpath_var_CXX=no
13721 runpath_var='LD_RUN_PATH'
13723 case $cc_basename in
13725 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13726 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13729 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13730 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13735 sysv5* | sco3.2v5* | sco5v6*)
13736 # Note: We can NOT use -z defs as we might desire, because we do not
13737 # link with -lc, and that would cause any symbols used from libc to
13738 # always be unresolved, which means just about no library would
13739 # ever link correctly. If we're not using GNU ld we use -z text
13740 # though, which does catch some bad symbols but isn't as heavy-handed
13742 no_undefined_flag_CXX='${wl}-z,text'
13743 allow_undefined_flag_CXX='${wl}-z,nodefs'
13744 archive_cmds_need_lc_CXX=no
13745 hardcode_shlibpath_var_CXX=no
13746 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13747 hardcode_libdir_separator_CXX=':'
13748 link_all_deplibs_CXX=yes
13749 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13750 runpath_var='LD_RUN_PATH'
13752 case $cc_basename in
13754 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13755 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13756 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13757 '"$old_archive_cmds_CXX"
13758 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13759 '"$reload_cmds_CXX"
13762 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 case $cc_basename in
13771 # NonStop-UX NCC 3.20
13772 # FIXME: insert proper C++ library support
13776 # FIXME: insert proper C++ library support
13783 # FIXME: insert proper C++ library support
13788 # FIXME: insert proper C++ library support
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13794 $as_echo "$ld_shlibs_CXX" >&6; }
13795 test "$ld_shlibs_CXX" = no && can_build_shared=no
13801 ## There is no encapsulation within the following macros, do not change
13802 ## the running order or otherwise move them around unless you know exactly
13803 ## what you are doing...
13804 # Dependencies to place before and after the object being linked:
13805 predep_objects_CXX=
13806 postdep_objects_CXX=
13809 compiler_lib_search_path_CXX=
13811 cat > conftest.$ac_ext <<_LT_EOF
13815 Foo (void) { a = 0; }
13822 _lt_libdeps_save_CFLAGS=$CFLAGS
13823 case "$CC $CFLAGS " in #(
13824 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13825 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13826 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13830 (eval $ac_compile) 2>&5
13832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13833 test $ac_status = 0; }; then
13834 # Parse the compiler output and extract the necessary
13835 # objects, libraries and library flags.
13837 # Sentinel used to keep track of whether or not we are before
13838 # the conftest object file.
13839 pre_test_object_deps_done=no
13841 for p in `eval "$output_verbose_link_cmd"`; do
13842 case ${prev}${p} in
13845 # Some compilers place space between "-{L,R}" and the path.
13846 # Remove the space.
13847 if test $p = "-L" ||
13848 test $p = "-R"; then
13853 # Expand the sysroot to ease extracting the directories later.
13854 if test -z "$prev"; then
13856 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13857 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13858 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13862 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13864 if test "$pre_test_object_deps_done" = no; then
13867 # Internal compiler library paths should come after those
13868 # provided the user. The postdeps already come after the
13869 # user supplied libs so there is no need to process them.
13870 if test -z "$compiler_lib_search_path_CXX"; then
13871 compiler_lib_search_path_CXX="${prev}${p}"
13873 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13876 # The "-l" case would never come before the object being
13877 # linked, so don't bother handling this case.
13880 if test -z "$postdeps_CXX"; then
13881 postdeps_CXX="${prev}${p}"
13883 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13889 *.lto.$objext) ;; # Ignore GCC LTO objects
13891 # This assumes that the test object file only shows up
13892 # once in the compiler output.
13893 if test "$p" = "conftest.$objext"; then
13894 pre_test_object_deps_done=yes
13898 if test "$pre_test_object_deps_done" = no; then
13899 if test -z "$predep_objects_CXX"; then
13900 predep_objects_CXX="$p"
13902 predep_objects_CXX="$predep_objects_CXX $p"
13905 if test -z "$postdep_objects_CXX"; then
13906 postdep_objects_CXX="$p"
13908 postdep_objects_CXX="$postdep_objects_CXX $p"
13913 *) ;; # Ignore the rest.
13921 echo "libtool.m4: error: problem compiling CXX test program"
13924 $RM -f confest.$objext
13925 CFLAGS=$_lt_libdeps_save_CFLAGS
13927 # PORTME: override above test on systems where it is broken
13930 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13931 # hack all around it, let's just trust "g++" to DTRT.
13932 predep_objects_CXX=
13933 postdep_objects_CXX=
13938 case `$CC -V 2>&1 | sed 5q` in
13942 # The more standards-conforming stlport4 library is
13943 # incompatible with the Cstd library. Avoid specifying
13944 # it if it's in CXXFLAGS. Ignore libCrun as
13945 # -library=stlport4 depends on it.
13946 case " $CXX $CXXFLAGS " in
13947 *" -library=stlport4 "*)
13948 solaris_use_stlport4=yes
13952 if test "$solaris_use_stlport4" != yes; then
13953 postdeps_CXX='-library=Cstd -library=Crun'
13960 case $cc_basename in
13962 # The more standards-conforming stlport4 library is
13963 # incompatible with the Cstd library. Avoid specifying
13964 # it if it's in CXXFLAGS. Ignore libCrun as
13965 # -library=stlport4 depends on it.
13966 case " $CXX $CXXFLAGS " in
13967 *" -library=stlport4 "*)
13968 solaris_use_stlport4=yes
13972 # Adding this requires a known-good setup of shared libraries for
13973 # Sun compiler versions before 5.6, else PIC objects from an old
13974 # archive will be linked into the output, leading to subtle bugs.
13975 if test "$solaris_use_stlport4" != yes; then
13976 postdeps_CXX='-library=Cstd -library=Crun'
13984 case " $postdeps_CXX " in
13985 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13987 compiler_lib_search_dirs_CXX=
13988 if test -n "${compiler_lib_search_path_CXX}"; then
13989 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14022 lt_prog_compiler_wl_CXX=
14023 lt_prog_compiler_pic_CXX=
14024 lt_prog_compiler_static_CXX=
14027 # C++ specific cases for pic, static, wl, etc.
14028 if test "$GXX" = yes; then
14029 lt_prog_compiler_wl_CXX='-Wl,'
14030 lt_prog_compiler_static_CXX='-static'
14034 # All AIX code is PIC.
14035 if test "$host_cpu" = ia64; then
14036 # AIX 5 now supports IA64 processor
14037 lt_prog_compiler_static_CXX='-Bstatic'
14044 # see comment about AmigaOS4 .so support
14045 lt_prog_compiler_pic_CXX='-fPIC'
14048 # FIXME: we need at least 68020 code to build shared libraries, but
14049 # adding the `-m68020' flag to GCC prevents building anything better,
14051 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14057 # PIC is the default for these OSes.
14059 mingw* | cygwin* | os2* | pw32* | cegcc*)
14060 # This hack is so that the source file can tell whether it is being
14061 # built for inclusion in a dll (and should export symbols for example).
14062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14063 # (--disable-auto-import) libraries
14064 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14066 darwin* | rhapsody*)
14067 # PIC is the default on this platform
14068 # Common symbols not allowed in MH_DYLIB files
14069 lt_prog_compiler_pic_CXX='-fno-common'
14072 # DJGPP does not support shared libraries at all
14073 lt_prog_compiler_pic_CXX=
14076 # PIC is the default for Haiku.
14077 # The "-static" flag exists, but is broken.
14078 lt_prog_compiler_static_CXX=
14081 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14082 # Instead, we relocate shared libraries at runtime.
14085 if test -d /usr/nec; then
14086 lt_prog_compiler_pic_CXX=-Kconform_pic
14090 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14091 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14092 # sets the default TLS model and affects inlining.
14097 lt_prog_compiler_pic_CXX='-fPIC'
14102 # QNX uses GNU C++, but need to define -shared option too, otherwise
14103 # it will coredump.
14104 lt_prog_compiler_pic_CXX='-fPIC -shared'
14107 lt_prog_compiler_pic_CXX='-fPIC'
14113 # All AIX code is PIC.
14114 if test "$host_cpu" = ia64; then
14115 # AIX 5 now supports IA64 processor
14116 lt_prog_compiler_static_CXX='-Bstatic'
14118 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14122 case $cc_basename in
14124 # Green Hills C++ Compiler
14125 # _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"
14129 mingw* | cygwin* | os2* | pw32* | cegcc*)
14130 # This hack is so that the source file can tell whether it is being
14131 # built for inclusion in a dll (and should export symbols for example).
14132 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14135 case $cc_basename in
14137 lt_prog_compiler_pic_CXX='-KPIC'
14140 # Green Hills C++ Compiler
14141 lt_prog_compiler_pic_CXX='-pic'
14147 freebsd* | dragonfly*)
14148 # FreeBSD uses GNU C++
14150 hpux9* | hpux10* | hpux11*)
14151 case $cc_basename in
14153 lt_prog_compiler_wl_CXX='-Wl,'
14154 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14155 if test "$host_cpu" != ia64; then
14156 lt_prog_compiler_pic_CXX='+Z'
14160 lt_prog_compiler_wl_CXX='-Wl,'
14161 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14167 lt_prog_compiler_pic_CXX='+Z'
14176 # This is c89, which is MS Visual C++ (no shared libs)
14177 # Anyone wants to do a port?
14179 irix5* | irix6* | nonstopux*)
14180 case $cc_basename in
14182 lt_prog_compiler_wl_CXX='-Wl,'
14183 lt_prog_compiler_static_CXX='-non_shared'
14184 # CC pic flag -KPIC is the default.
14190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14191 case $cc_basename in
14194 lt_prog_compiler_wl_CXX='--backend -Wl,'
14195 lt_prog_compiler_pic_CXX='-fPIC'
14198 # old Intel C++ for x86_64 which still supported -KPIC.
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_pic_CXX='-KPIC'
14201 lt_prog_compiler_static_CXX='-static'
14204 # Intel C++, used to be incompatible with GCC.
14205 # ICC 10 doesn't accept -KPIC any more.
14206 lt_prog_compiler_wl_CXX='-Wl,'
14207 lt_prog_compiler_pic_CXX='-fPIC'
14208 lt_prog_compiler_static_CXX='-static'
14211 # Portland Group C++ compiler
14212 lt_prog_compiler_wl_CXX='-Wl,'
14213 lt_prog_compiler_pic_CXX='-fpic'
14214 lt_prog_compiler_static_CXX='-Bstatic'
14218 # Make sure the PIC flag is empty. It appears that all Alpha
14219 # Linux and Compaq Tru64 Unix objects are PIC.
14220 lt_prog_compiler_pic_CXX=
14221 lt_prog_compiler_static_CXX='-non_shared'
14223 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14224 # IBM XL 8.0, 9.0 on PPC and BlueGene
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 lt_prog_compiler_pic_CXX='-qpic'
14227 lt_prog_compiler_static_CXX='-qstaticlink'
14230 case `$CC -V 2>&1 | sed 5q` in
14233 lt_prog_compiler_pic_CXX='-KPIC'
14234 lt_prog_compiler_static_CXX='-Bstatic'
14235 lt_prog_compiler_wl_CXX='-Qoption ld '
14246 case $cc_basename in
14248 lt_prog_compiler_pic_CXX='-W c,exportall'
14254 netbsd* | netbsdelf*-gnu)
14257 # QNX uses GNU C++, but need to define -shared option too, otherwise
14258 # it will coredump.
14259 lt_prog_compiler_pic_CXX='-fPIC -shared'
14261 osf3* | osf4* | osf5*)
14262 case $cc_basename in
14264 lt_prog_compiler_wl_CXX='--backend -Wl,'
14267 # Rational C++ 2.4.1
14268 lt_prog_compiler_pic_CXX='-pic'
14271 # Digital/Compaq C++
14272 lt_prog_compiler_wl_CXX='-Wl,'
14273 # Make sure the PIC flag is empty. It appears that all Alpha
14274 # Linux and Compaq Tru64 Unix objects are PIC.
14275 lt_prog_compiler_pic_CXX=
14276 lt_prog_compiler_static_CXX='-non_shared'
14285 case $cc_basename in
14287 # Sun C++ 4.2, 5.x and Centerline C++
14288 lt_prog_compiler_pic_CXX='-KPIC'
14289 lt_prog_compiler_static_CXX='-Bstatic'
14290 lt_prog_compiler_wl_CXX='-Qoption ld '
14293 # Green Hills C++ Compiler
14294 lt_prog_compiler_pic_CXX='-PIC'
14301 case $cc_basename in
14304 lt_prog_compiler_pic_CXX='-pic'
14305 lt_prog_compiler_static_CXX='-Bstatic'
14309 lt_prog_compiler_pic_CXX='-pic'
14315 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14316 case $cc_basename in
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 lt_prog_compiler_pic_CXX='-KPIC'
14320 lt_prog_compiler_static_CXX='-Bstatic'
14325 case $cc_basename in
14327 # NonStop-UX NCC 3.20
14328 lt_prog_compiler_pic_CXX='-KPIC'
14337 lt_prog_compiler_can_build_shared_CXX=no
14343 # For platforms which do not support PIC, -DPIC is meaningless:
14345 lt_prog_compiler_pic_CXX=
14348 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14354 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14355 $as_echo_n "(cached) " >&6
14357 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14360 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14361 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14364 # Check to make sure the PIC flag actually works.
14366 if test -n "$lt_prog_compiler_pic_CXX"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14368 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14369 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14370 $as_echo_n "(cached) " >&6
14372 lt_cv_prog_compiler_pic_works_CXX=no
14373 ac_outfile=conftest.$ac_objext
14374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14375 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14376 # Insert the option either (1) after the last *FLAGS variable, or
14377 # (2) before a word containing "conftest.", or (3) at the end.
14378 # Note that $ac_compile itself does not contain backslashes and begins
14379 # with a dollar sign (not a hyphen), so the echo should work correctly.
14380 # The option is referenced via a variable to avoid confusing sed.
14381 lt_compile=`echo "$ac_compile" | $SED \
14382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14384 -e 's:$: $lt_compiler_flag:'`
14385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14386 (eval "$lt_compile" 2>conftest.err)
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 if (exit $ac_status) && test -s "$ac_outfile"; then
14391 # The compiler can only warn and ignore the option if not recognized
14392 # So say no if there are warnings other than the usual output.
14393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14396 lt_cv_prog_compiler_pic_works_CXX=yes
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14403 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14405 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14406 case $lt_prog_compiler_pic_CXX in
14408 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14411 lt_prog_compiler_pic_CXX=
14412 lt_prog_compiler_can_build_shared_CXX=no
14422 # Check to make sure the static flag actually works.
14424 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14427 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14428 $as_echo_n "(cached) " >&6
14430 lt_cv_prog_compiler_static_works_CXX=no
14431 save_LDFLAGS="$LDFLAGS"
14432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14435 # The linker can only warn and ignore the option if not recognized
14436 # So say no if there are warnings
14437 if test -s conftest.err; then
14438 # Append any errors to the config.log.
14439 cat conftest.err 1>&5
14440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14442 if diff conftest.exp conftest.er2 >/dev/null; then
14443 lt_cv_prog_compiler_static_works_CXX=yes
14446 lt_cv_prog_compiler_static_works_CXX=yes
14450 LDFLAGS="$save_LDFLAGS"
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14454 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14456 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14459 lt_prog_compiler_static_CXX=
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14467 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14468 $as_echo_n "(cached) " >&6
14470 lt_cv_prog_compiler_c_o_CXX=no
14471 $RM -r conftest 2>/dev/null
14475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14477 lt_compiler_flag="-o out/conftest2.$ac_objext"
14478 # Insert the option either (1) after the last *FLAGS variable, or
14479 # (2) before a word containing "conftest.", or (3) at the end.
14480 # Note that $ac_compile itself does not contain backslashes and begins
14481 # with a dollar sign (not a hyphen), so the echo should work correctly.
14482 lt_compile=`echo "$ac_compile" | $SED \
14483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14485 -e 's:$: $lt_compiler_flag:'`
14486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14487 (eval "$lt_compile" 2>out/conftest.err)
14489 cat out/conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14493 # The compiler can only warn and ignore the option if not recognized
14494 # So say no if there are warnings
14495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14498 lt_cv_prog_compiler_c_o_CXX=yes
14503 # SGI C++ compiler will create directory out/ii_files/ for
14504 # template instantiation
14505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14506 $RM out/* && rmdir out
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14513 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14519 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14520 $as_echo_n "(cached) " >&6
14522 lt_cv_prog_compiler_c_o_CXX=no
14523 $RM -r conftest 2>/dev/null
14527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14529 lt_compiler_flag="-o out/conftest2.$ac_objext"
14530 # Insert the option either (1) after the last *FLAGS variable, or
14531 # (2) before a word containing "conftest.", or (3) at the end.
14532 # Note that $ac_compile itself does not contain backslashes and begins
14533 # with a dollar sign (not a hyphen), so the echo should work correctly.
14534 lt_compile=`echo "$ac_compile" | $SED \
14535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14537 -e 's:$: $lt_compiler_flag:'`
14538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14539 (eval "$lt_compile" 2>out/conftest.err)
14541 cat out/conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14545 # The compiler can only warn and ignore the option if not recognized
14546 # So say no if there are warnings
14547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14550 lt_cv_prog_compiler_c_o_CXX=yes
14555 # SGI C++ compiler will create directory out/ii_files/ for
14556 # template instantiation
14557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14558 $RM out/* && rmdir out
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14565 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14570 hard_links="nottested"
14571 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14572 # do not overwrite the value of need_locks provided by the user
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14574 $as_echo_n "checking if we can lock with hard links... " >&6; }
14577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14579 ln conftest.a conftest.b 2>&5 || hard_links=no
14580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14582 $as_echo "$hard_links" >&6; }
14583 if test "$hard_links" = no; then
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14598 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14601 # If we're using GNU nm, then we don't want the "-C" option.
14602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14603 # Also, AIX nm treats weak defined symbols like other global defined
14604 # symbols, whereas GNU nm marks them as "W".
14605 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14606 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'
14608 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'
14612 export_symbols_cmds_CXX="$ltdll_cmds"
14614 cygwin* | mingw* | cegcc*)
14615 case $cc_basename in
14617 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14620 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'
14621 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14625 linux* | k*bsd*-gnu | gnu*)
14626 link_all_deplibs_CXX=no
14629 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14634 $as_echo "$ld_shlibs_CXX" >&6; }
14635 test "$ld_shlibs_CXX" = no && can_build_shared=no
14637 with_gnu_ld_CXX=$with_gnu_ld
14645 # Do we need to explicitly link libc?
14647 case "x$archive_cmds_need_lc_CXX" in
14649 # Assume -lc should be added
14650 archive_cmds_need_lc_CXX=yes
14652 if test "$enable_shared" = yes && test "$GCC" = yes; then
14653 case $archive_cmds_CXX in
14655 # FIXME: we may have to deal with multi-command sequences.
14658 # Test whether the compiler implicitly links with -lc since on some
14659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14660 # to ld, don't add -lc before -lgcc.
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14662 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14663 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14664 $as_echo_n "(cached) " >&6
14667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14670 (eval $ac_compile) 2>&5
14672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673 test $ac_status = 0; } 2>conftest.err; then
14676 libobjs=conftest.$ac_objext
14678 wl=$lt_prog_compiler_wl_CXX
14679 pic_flag=$lt_prog_compiler_pic_CXX
14685 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14686 allow_undefined_flag_CXX=
14687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14688 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691 test $ac_status = 0; }
14693 lt_cv_archive_cmds_need_lc_CXX=no
14695 lt_cv_archive_cmds_need_lc_CXX=yes
14697 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14699 cat conftest.err 1>&5
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14705 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14706 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14775 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14777 library_names_spec=
14778 libname_spec='lib$name'
14782 postuninstall_cmds=
14786 shlibpath_overrides_runpath=unknown
14788 dynamic_linker="$host_os ld.so"
14789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14790 need_lib_prefix=unknown
14791 hardcode_into_libs=no
14793 # when you set need_version to no, make sure it does not cause -set_version
14794 # flags to be left without arguments
14795 need_version=unknown
14799 version_type=linux # correct to gnu/linux during the next big refactor
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14801 shlibpath_var=LIBPATH
14803 # AIX 3 has no versioning support, so we append a major version to the name.
14804 soname_spec='${libname}${release}${shared_ext}$major'
14808 version_type=linux # correct to gnu/linux during the next big refactor
14811 hardcode_into_libs=yes
14812 if test "$host_cpu" = ia64; then
14813 # AIX 5 supports IA64
14814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14815 shlibpath_var=LD_LIBRARY_PATH
14817 # With GCC up to 2.95.x, collect2 would create an import file
14818 # for dependence libraries. The import file would start with
14819 # the line `#! .'. This would cause the generated library to
14820 # depend on `.', always an invalid library. This was fixed in
14821 # development snapshots of GCC prior to 3.0.
14823 aix4 | aix4.[01] | aix4.[01].*)
14824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14826 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14829 can_build_shared=no
14833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14834 # soname into executable. Probably we can add versioning support to
14835 # collect2, so additional links can be useful in future.
14836 if test "$aix_use_runtimelinking" = yes; then
14837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14838 # instead of lib<name>.a to let people know that these are not
14839 # typical AIX shared libraries.
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842 # We preserve .a as extension for shared libraries through AIX4.2
14843 # and later when we are not doing run time linking.
14844 library_names_spec='${libname}${release}.a $libname.a'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14847 shlibpath_var=LIBPATH
14854 # Since July 2007 AmigaOS4 officially supports .so libraries.
14855 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859 library_names_spec='$libname.ixlibrary $libname.a'
14860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14861 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'
14867 library_names_spec='${libname}${shared_ext}'
14868 dynamic_linker="$host_os ld.so"
14869 shlibpath_var=LIBRARY_PATH
14873 version_type=linux # correct to gnu/linux during the next big refactor
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14881 # the default ld.so.conf also contains /usr/contrib/lib and
14882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14883 # libtool to hard-code these into programs
14886 cygwin* | mingw* | pw32* | cegcc*)
14887 version_type=windows
14892 case $GCC,$cc_basename in
14895 library_names_spec='$libname.dll.a'
14896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14897 postinstall_cmds='base_file=`basename \${file}`~
14898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14899 dldir=$destdir/`dirname \$dlpath`~
14900 test -d \$dldir || mkdir -p \$dldir~
14901 $install_prog $dir/$dlname \$dldir/$dlname~
14902 chmod a+x \$dldir/$dlname~
14903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14907 dlpath=$dir/\$dldll~
14909 shlibpath_overrides_runpath=yes
14913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14918 # MinGW DLLs use traditional 'lib' prefix
14919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14922 # pw32 DLLs use 'pw' prefix rather than 'lib'
14923 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14926 dynamic_linker='Win32 ld.exe'
14931 libname_spec='$name'
14932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14933 library_names_spec='${libname}.dll.lib'
14937 sys_lib_search_path_spec=
14940 for lt_path in $LIB
14943 # Let DOS variable expansion print the short 8.3 style file name.
14944 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14945 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14948 # Convert to MSYS style.
14949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14952 # Convert to unix form, then to dos form, then back to unix form
14953 # but this time dos style (no spaces!) so that the unix form looks
14954 # like /cygdrive/c/PROGRA~1:/cygdr...
14955 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14956 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14957 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14960 sys_lib_search_path_spec="$LIB"
14961 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14962 # It is most probably a Windows format PATH.
14963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14967 # FIXME: find the short name or the path components, as spaces are
14968 # common. (e.g. "Program Files" -> "PROGRA~1")
14972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14973 postinstall_cmds='base_file=`basename \${file}`~
14974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14975 dldir=$destdir/`dirname \$dlpath`~
14976 test -d \$dldir || mkdir -p \$dldir~
14977 $install_prog $dir/$dlname \$dldir/$dlname'
14978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14979 dlpath=$dir/\$dldll~
14981 shlibpath_overrides_runpath=yes
14982 dynamic_linker='Win32 link.exe'
14986 # Assume MSVC wrapper
14987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14988 dynamic_linker='Win32 ld.exe'
14991 # FIXME: first we should search . and the directory the executable is in
14995 darwin* | rhapsody*)
14996 dynamic_linker="$host_os dyld"
14997 version_type=darwin
15000 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15001 soname_spec='${libname}${release}${major}$shared_ext'
15002 shlibpath_overrides_runpath=yes
15003 shlibpath_var=DYLD_LIBRARY_PATH
15004 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15010 version_type=linux # correct to gnu/linux during the next big refactor
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15018 freebsd* | dragonfly*)
15019 # DragonFly does not have aout. When/if they implement a new
15020 # versioning mechanism, adjust this.
15021 if test -x /usr/bin/objformat; then
15022 objformat=`/usr/bin/objformat`
15025 freebsd[23].*) objformat=aout ;;
15026 *) objformat=elf ;;
15029 version_type=freebsd-$objformat
15030 case $version_type in
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15041 shlibpath_var=LD_LIBRARY_PATH
15044 shlibpath_overrides_runpath=yes
15046 freebsd3.[01]* | freebsdelf3.[01]*)
15047 shlibpath_overrides_runpath=yes
15048 hardcode_into_libs=yes
15050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15052 shlibpath_overrides_runpath=no
15053 hardcode_into_libs=yes
15055 *) # from 4.6 on, and DragonFly
15056 shlibpath_overrides_runpath=yes
15057 hardcode_into_libs=yes
15063 version_type=linux # correct to gnu/linux during the next big refactor
15066 dynamic_linker="$host_os runtime_loader"
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LIBRARY_PATH
15070 shlibpath_overrides_runpath=yes
15071 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15072 hardcode_into_libs=yes
15075 hpux9* | hpux10* | hpux11*)
15076 # Give a soname corresponding to the major version so that dld.sl refuses to
15077 # link against other versions.
15084 hardcode_into_libs=yes
15085 dynamic_linker="$host_os dld.so"
15086 shlibpath_var=LD_LIBRARY_PATH
15087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 if test "X$HPUX_IA64_MODE" = X32; then
15091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15099 hardcode_into_libs=yes
15100 dynamic_linker="$host_os dld.sl"
15101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 soname_spec='${libname}${release}${shared_ext}$major'
15105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15110 dynamic_linker="$host_os dld.sl"
15111 shlibpath_var=SHLIB_PATH
15112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15117 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15118 postinstall_cmds='chmod 555 $lib'
15119 # or fails outright, so override atomically:
15120 install_override_mode=555
15124 version_type=linux # correct to gnu/linux during the next big refactor
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15130 shlibpath_var=LD_LIBRARY_PATH
15131 shlibpath_overrides_runpath=no
15132 hardcode_into_libs=yes
15135 irix5* | irix6* | nonstopux*)
15137 nonstopux*) version_type=nonstopux ;;
15139 if test "$lt_cv_prog_gnu_ld" = yes; then
15140 version_type=linux # correct to gnu/linux during the next big refactor
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15150 irix5* | nonstopux*)
15151 libsuff= shlibsuff=
15154 case $LD in # libtool.m4 will add one of these switches to LD
15155 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15156 libsuff= shlibsuff= libmagic=32-bit;;
15157 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15158 libsuff=32 shlibsuff=N32 libmagic=N32;;
15159 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15160 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15161 *) libsuff= shlibsuff= libmagic=never-match;;
15165 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15166 shlibpath_overrides_runpath=no
15167 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15168 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15169 hardcode_into_libs=yes
15172 # No shared lib support for Linux oldld, aout, or coff.
15173 linux*oldld* | linux*aout* | linux*coff*)
15177 # This must be glibc/ELF.
15178 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15179 version_type=linux # correct to gnu/linux during the next big refactor
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=no
15188 # Some binutils ld are patched to set DT_RUNPATH
15189 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15190 $as_echo_n "(cached) " >&6
15192 lt_cv_shlibpath_overrides_runpath=no
15193 save_LDFLAGS=$LDFLAGS
15194 save_libdir=$libdir
15195 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15196 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15208 if ac_fn_cxx_try_link "$LINENO"; then :
15209 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15210 lt_cv_shlibpath_overrides_runpath=yes
15213 rm -f core conftest.err conftest.$ac_objext \
15214 conftest$ac_exeext conftest.$ac_ext
15215 LDFLAGS=$save_LDFLAGS
15216 libdir=$save_libdir
15220 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15222 # This implies no fast_install, which is unacceptable.
15223 # Some rework will be needed to allow for fast_install
15224 # before this can be enabled.
15225 hardcode_into_libs=yes
15227 # Append ld.so.conf contents to the search path
15228 if test -f /etc/ld.so.conf; then
15229 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' ' '`
15230 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15233 # We used to test for /lib/ld.so.1 and disable shared libraries on
15234 # powerpc, because MkLinux only supported shared libraries with the
15235 # GNU dynamic linker. Since this was broken with cross compilers,
15236 # most powerpc-linux boxes support dynamic linking these days and
15237 # people can always --disable-shared, the test was removed, and we
15238 # assume the GNU/Linux dynamic linker is in use.
15239 dynamic_linker='GNU/Linux ld.so'
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15247 soname_spec='${libname}${release}${shared_ext}$major'
15248 shlibpath_var=LD_LIBRARY_PATH
15249 shlibpath_overrides_runpath=no
15250 hardcode_into_libs=yes
15251 dynamic_linker='NetBSD ld.elf_so'
15258 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15261 dynamic_linker='NetBSD (a.out) ld.so'
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 dynamic_linker='NetBSD ld.elf_so'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=yes
15269 hardcode_into_libs=yes
15273 version_type=linux # correct to gnu/linux during the next big refactor
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=yes
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'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 shlibpath_overrides_runpath=no
15287 hardcode_into_libs=yes
15288 dynamic_linker='ldqnx.so'
15293 sys_lib_dlsearch_path_spec="/usr/lib"
15295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15298 *) need_version=no ;;
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15302 shlibpath_var=LD_LIBRARY_PATH
15303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15305 openbsd2.[89] | openbsd2.[89].*)
15306 shlibpath_overrides_runpath=no
15309 shlibpath_overrides_runpath=yes
15313 shlibpath_overrides_runpath=yes
15318 libname_spec='$name'
15321 library_names_spec='$libname${shared_ext} $libname.a'
15322 dynamic_linker='OS/2 ld.exe'
15323 shlibpath_var=LIBPATH
15326 osf3* | osf4* | osf5*)
15330 soname_spec='${libname}${release}${shared_ext}$major'
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15342 version_type=linux # correct to gnu/linux during the next big refactor
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes
15349 hardcode_into_libs=yes
15350 # ldd complains unless libraries are executable
15351 postinstall_cmds='chmod +x $lib'
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 shlibpath_overrides_runpath=yes
15360 if test "$with_gnu_ld" = yes; then
15367 version_type=linux # correct to gnu/linux during the next big refactor
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 case $host_vendor in
15373 shlibpath_overrides_runpath=no
15375 runpath_var=LD_RUN_PATH
15383 shlibpath_overrides_runpath=no
15384 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15390 if test -d /usr/nec ;then
15391 version_type=linux # correct to gnu/linux during the next big refactor
15392 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15393 soname_spec='$libname${shared_ext}.$major'
15394 shlibpath_var=LD_LIBRARY_PATH
15398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15399 version_type=freebsd-elf
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=yes
15406 hardcode_into_libs=yes
15407 if test "$with_gnu_ld" = yes; then
15408 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15410 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15417 sys_lib_dlsearch_path_spec='/usr/lib'
15421 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15422 version_type=linux # correct to gnu/linux during the next big refactor
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 shlibpath_var=LD_LIBRARY_PATH
15427 shlibpath_overrides_runpath=no
15428 hardcode_into_libs=yes
15432 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15443 $as_echo "$dynamic_linker" >&6; }
15444 test "$dynamic_linker" = no && can_build_shared=no
15446 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15447 if test "$GCC" = yes; then
15448 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15451 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15452 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15454 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15455 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15496 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15497 hardcode_action_CXX=
15498 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15499 test -n "$runpath_var_CXX" ||
15500 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15502 # We can hardcode non-existent directories.
15503 if test "$hardcode_direct_CXX" != no &&
15504 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15505 # have to relink, otherwise we might link with an installed library
15506 # when we should be linking with a yet-to-be-installed one
15507 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15508 test "$hardcode_minus_L_CXX" != no; then
15509 # Linking always hardcodes the temporary library directory.
15510 hardcode_action_CXX=relink
15512 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15513 hardcode_action_CXX=immediate
15516 # We cannot hardcode anything, or else we can only hardcode existing
15518 hardcode_action_CXX=unsupported
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15521 $as_echo "$hardcode_action_CXX" >&6; }
15523 if test "$hardcode_action_CXX" = relink ||
15524 test "$inherit_rpath_CXX" = yes; then
15525 # Fast installation is not supported
15526 enable_fast_install=no
15527 elif test "$shlibpath_overrides_runpath" = yes ||
15528 test "$enable_shared" = no; then
15529 # Fast installation is not necessary
15530 enable_fast_install=needless
15539 fi # test -n "$compiler"
15542 CFLAGS=$lt_save_CFLAGS
15546 with_gnu_ld=$lt_save_with_gnu_ld
15547 lt_cv_path_LDCXX=$lt_cv_path_LD
15548 lt_cv_path_LD=$lt_save_path_LD
15549 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15550 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15551 fi # test "$_lt_caught_CXX_error" != yes
15554 ac_cpp='$CPP $CPPFLAGS'
15555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15560 ac_config_headers="$ac_config_headers config.h"
15562 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
15564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15575 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15576 if test "x$ac_cv_func_vasprintf" = xyes; then :
15577 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
15580 case " $LIBOBJS " in
15581 *" vasprintf.$ac_objext "* ) ;;
15582 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15592 # Check whether --enable-reauth was given.
15593 if test "${enable_reauth+set}" = set; then :
15594 enableval=$enable_reauth; if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15597 echo "--enable-reauth argument must be yes or no"
15604 if test "x$reauth" = "xyes" ; then
15605 echo "Fast reauthentication protocol enabled"
15606 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
15608 if test "x$reauth" != "xno"; then
15609 GSSEAP_ENABLE_REAUTH_TRUE=
15610 GSSEAP_ENABLE_REAUTH_FALSE='#'
15612 GSSEAP_ENABLE_REAUTH_TRUE='#'
15613 GSSEAP_ENABLE_REAUTH_FALSE=
15618 # Check whether --enable-acceptor was given.
15619 if test "${enable_acceptor+set}" = set; then :
15620 enableval=$enable_acceptor; if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15621 acceptor=$enableval
15623 echo "--enable-acceptor argument must be yes or no"
15630 if test "x$acceptor" = "xyes" ; then
15631 echo "acceptor enabled"
15632 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
15634 if test "x$acceptor" != "xno"; then
15635 GSSEAP_ENABLE_ACCEPTOR_TRUE=
15636 GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
15638 GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
15639 GSSEAP_ENABLE_ACCEPTOR_FALSE=
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
15646 $as_echo_n "checking for windows... " >&6; }
15647 target_windows="no"
15648 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15649 if test "x$ac_cv_header_windows_h" = xyes; then :
15650 target_windows="yes"
15652 target_windows="no"
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
15657 $as_echo "$target_windows" >&6; }
15658 if test "x$target_windows" = "xyes"; then
15659 TARGET_WINDOWS_TRUE=
15660 TARGET_WINDOWS_FALSE='#'
15662 TARGET_WINDOWS_TRUE='#'
15663 TARGET_WINDOWS_FALSE=
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
15668 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
15672 # Check whether --with-krb5 was given.
15673 if test "${with_krb5+set}" = set; then :
15674 withval=$with_krb5; check_krb5_dir="$withval"
15679 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15681 if test -x "$dir/bin/krb5-config"; then
15683 if test "x$target_windows" = "xyes"; then
15684 KRB5_CFLAGS=-I"$check_krb5_dir/include";
15685 KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15686 KRB5_LIBS="-lkrb5_32 -lgssapi32";
15687 COMPILE_ET="$check_krb5_dir/bin/compile_et";
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15689 $as_echo "yes" >&6; }
15691 KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15692 KRB5_LDFLAGS="-L$dir/lib";
15693 KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15695 $as_echo "yes" >&6; }
15696 # Extract the first word of "compile_et", so it can be a program name with args.
15697 set dummy compile_et; ac_word=$2
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15699 $as_echo_n "checking for $ac_word... " >&6; }
15700 if ${ac_cv_path_COMPILE_ET+:} false; then :
15701 $as_echo_n "(cached) " >&6
15703 case $COMPILE_ET in
15705 ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15709 for as_dir in $dir/bin$PATH_SEPARATOr
15712 test -z "$as_dir" && as_dir=.
15713 for ac_exec_ext in '' $ac_executable_extensions; do
15714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15715 ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15723 test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15727 COMPILE_ET=$ac_cv_path_COMPILE_ET
15728 if test -n "$COMPILE_ET"; then
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15730 $as_echo "$COMPILE_ET" >&6; }
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15733 $as_echo "no" >&6; }
15741 if test x_$found_krb5 != x_yes; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15743 $as_echo "$found_krb5" >&6; }
15745 ----------------------------------------------------------------------
15746 Cannot find GSS-API/Kerberos libraries.
15748 Please install MIT or Heimdal or specify installation directory with
15750 ----------------------------------------------------------------------
15753 printf "Kerberos found in $krb5dir\n";
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15759 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15760 if ${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+:} false; then :
15761 $as_echo_n "(cached) " >&6
15763 ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15768 /* Override any GCC internal prototype to avoid an error.
15769 Use char because int might match the return type of a GCC
15770 builtin and then its argument prototype would still apply. */
15774 char GSS_C_NT_COMPOSITE_EXPORT ();
15778 return GSS_C_NT_COMPOSITE_EXPORT ();
15783 if ac_fn_c_try_link "$LINENO"; then :
15784 ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15786 ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15788 rm -f core conftest.err conftest.$ac_objext \
15789 conftest$ac_exeext conftest.$ac_ext
15790 LIBS=$ac_check_lib_save_LIBS
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15793 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15794 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = xyes; then :
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15803 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15804 if ${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+:} false; then :
15805 $as_echo_n "(cached) " >&6
15807 ac_check_lib_save_LIBS=$LIBS
15808 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15812 /* Override any GCC internal prototype to avoid an error.
15813 Use char because int might match the return type of a GCC
15814 builtin and then its argument prototype would still apply. */
15818 char gss_inquire_attrs_for_mech ();
15822 return gss_inquire_attrs_for_mech ();
15827 if ac_fn_c_try_link "$LINENO"; then :
15828 ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
15830 ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
15832 rm -f core conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 LIBS=$ac_check_lib_save_LIBS
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
15837 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
15838 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = xyes; then :
15840 cat >>confdefs.h <<_ACEOF
15841 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
15847 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
15848 if ${ac_cv_lib_krb5_gss_krb5_import_cred+:} false; then :
15849 $as_echo_n "(cached) " >&6
15851 ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15856 /* Override any GCC internal prototype to avoid an error.
15857 Use char because int might match the return type of a GCC
15858 builtin and then its argument prototype would still apply. */
15862 char gss_krb5_import_cred ();
15866 return gss_krb5_import_cred ();
15871 if ac_fn_c_try_link "$LINENO"; then :
15872 ac_cv_lib_krb5_gss_krb5_import_cred=yes
15874 ac_cv_lib_krb5_gss_krb5_import_cred=no
15876 rm -f core conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
15881 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
15882 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = xyes; then :
15884 cat >>confdefs.h <<_ACEOF
15885 #define HAVE_GSS_KRB5_IMPORT_CRED 1
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
15891 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
15892 if ${ac_cv_lib_krb5_heimdal_version+:} false; then :
15893 $as_echo_n "(cached) " >&6
15895 ac_check_lib_save_LIBS=$LIBS
15896 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15900 /* Override any GCC internal prototype to avoid an error.
15901 Use char because int might match the return type of a GCC
15902 builtin and then its argument prototype would still apply. */
15906 char heimdal_version ();
15910 return heimdal_version ();
15915 if ac_fn_c_try_link "$LINENO"; then :
15916 ac_cv_lib_krb5_heimdal_version=yes
15918 ac_cv_lib_krb5_heimdal_version=no
15920 rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15922 LIBS=$ac_check_lib_save_LIBS
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
15925 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
15926 if test "x$ac_cv_lib_krb5_heimdal_version" = xyes; then :
15928 cat >>confdefs.h <<_ACEOF
15929 #define HAVE_HEIMDAL_VERSION 1
15936 if test "x$heimdal" != "xno"; then
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
15947 $as_echo_n "checking for OpenSAML implementation... " >&6; }
15949 found_opensaml="no"
15951 # Check whether --with-opensaml was given.
15952 if test "${with_opensaml+set}" = set; then :
15953 withval=$with_opensaml; check_opensaml_dir="$withval"
15955 check_opensaml_dir=
15958 if test x_$check_opensaml_dir != x_no; then
15959 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
15961 if test -f "$dir/include/saml/Assertion.h"; then
15962 found_opensaml="yes";
15963 OPENSAML_DIR="${opensamldir}"
15964 OPENSAML_CXXFLAGS="-I$opensamldir/include";
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
15970 $as_echo "$found_opensaml" >&6; }
15971 if test x_$check_opensaml_dir != x_no; then
15972 if test x_$found_opensaml != x_yes; then
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15974 ----------------------------------------------------------------------
15975 Cannot find OpenSAML libraries, building without OpenSAML support.
15977 Please install OpenSAML or specify installation directory with
15978 --with-opensaml=(dir).
15979 ----------------------------------------------------------------------
15981 $as_echo "$as_me: WARNING:
15982 ----------------------------------------------------------------------
15983 Cannot find OpenSAML libraries, building without OpenSAML support.
15985 Please install OpenSAML or specify installation directory with
15986 --with-opensaml=(dir).
15987 ----------------------------------------------------------------------
15990 printf "OpenSAML found in $opensamldir\n";
15991 OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
15992 OPENSAML_LDFLAGS="-L$opensamldir/lib";
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_OPENSAML 1
16004 if test "x_$check_opensaml_dir" != "x_no"; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
16014 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
16016 found_shibresolver="no"
16018 # Check whether --with-shibresolver was given.
16019 if test "${with_shibresolver+set}" = set; then :
16020 withval=$with_shibresolver; check_shibresolver_dir="$withval"
16022 check_shibresolver_dir=
16025 if test x_$check_shibresolver_dir != x_no; then
16026 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
16027 shibresolverdir="$dir"
16028 if test -f "$dir/include/shibresolver/resolver.h"; then
16029 found_shibresolver="yes";
16030 SHIBRESOLVER_DIR="${shibresolverdir}"
16031 SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
16037 $as_echo "$found_shibresolver" >&6; }
16038 if test x_$check_shibresolver_dir != x_no; then
16039 if test x_$found_shibresolver != x_yes; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16041 ----------------------------------------------------------------------
16042 Cannot find Shibboleth resolver libraries, building without
16043 Shibboleth support.
16045 Please install Shibboleth or specify installation directory with
16046 --with-shibresolver=(dir).
16047 ----------------------------------------------------------------------
16049 $as_echo "$as_me: WARNING:
16050 ----------------------------------------------------------------------
16051 Cannot find Shibboleth resolver libraries, building without
16052 Shibboleth support.
16054 Please install Shibboleth or specify installation directory with
16055 --with-shibresolver=(dir).
16056 ----------------------------------------------------------------------
16059 printf "Shibboleth resolver found in $shibresolverdir\n";
16060 SHIBRESOLVER_LIBS="-lshibresolver";
16061 SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
16066 cat >>confdefs.h <<_ACEOF
16067 #define HAVE_SHIBRESOLVER 1
16073 if test "x_$check_shibresolver_dir" != "x_no"; then
16075 SHIBRESOLVER_FALSE='#'
16077 SHIBRESOLVER_TRUE='#'
16078 SHIBRESOLVER_FALSE=
16081 if test x_$found_shibresolver = x_yes; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
16083 $as_echo_n "checking for Shibboleth implementation... " >&6; }
16087 # Check whether --with-shibsp was given.
16088 if test "${with_shibsp+set}" = set; then :
16089 withval=$with_shibsp; check_shibsp_dir="$withval"
16094 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
16096 if test -f "$dir/include/shibsp/SPConfig.h"; then
16097 found_shibsp="yes";
16098 SHIBSP_DIR="${shibspdir}"
16099 SHIBSP_CXXFLAGS="-I$shibspdir/include";
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
16104 $as_echo "$found_shibsp" >&6; }
16105 if test x_$found_shibsp != x_yes; then
16107 ----------------------------------------------------------------------
16108 Cannot find Shibboleth libraries.
16110 Please install Shibboleth or specify installation directory with
16111 --with-shibsp=(dir).
16112 ----------------------------------------------------------------------
16115 printf "Shibboleth found in $shibspdir\n";
16116 SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
16117 SHIBSP_LDFLAGS="-L$shibspdir/lib";
16122 cat >>confdefs.h <<_ACEOF
16123 #define HAVE_SHIBSP 1
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16131 $as_echo_n "checking for OpenSSL... " >&6; }
16135 # Check whether --with-openssl was given.
16136 if test "${with_openssl+set}" = set; then :
16137 withval=$with_openssl; check_openssl_dir="$withval"
16142 for dir in $check_openssl_dir $prefix /usr /usr/local ; do
16144 if test -f "$dir/include/openssl/opensslv.h"; then
16145 found_openssl="yes";
16146 OPENSSL_DIR="${openssldir}"
16147 OPENSSL_CFLAGS="-I$openssldir/include";
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_openssl" >&5
16152 $as_echo "$found_openssl" >&6; }
16153 if test x_$found_openssl != x_yes; then
16155 ----------------------------------------------------------------------
16156 Cannot find OpenSSL libraries.
16158 Please install libssl or specify installation directory with
16159 --with-openssl=(dir).
16160 ----------------------------------------------------------------------
16163 printf "OpenSSL found in $openssldir\n";
16164 OPENSSL_LIBS="-lssl -lcrypto";
16165 OPENSSL_LDFLAGS="-L$openssldir/lib";
16172 if test "x$acceptor" = "xyes" ; then
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
16174 $as_echo_n "checking for radsec... " >&6; }
16178 # Check whether --with-radsec was given.
16179 if test "${with_radsec+set}" = set; then :
16180 withval=$with_radsec; check_radsec_dir="$withval"
16185 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
16187 if test -f "$dir/include/radsec/radsec.h"; then
16188 found_radsec="yes";
16189 RADSEC_DIR="${radsecdir}"
16190 RADSEC_CFLAGS="-I$radsecdir/include";
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
16195 $as_echo "$found_radsec" >&6; }
16196 if test x_$found_radsec != x_yes; then
16198 ----------------------------------------------------------------------
16199 Cannot find radsec libraries.
16201 Please install libradsec or specify installation directory with
16202 --with-radsec=(dir).
16203 ----------------------------------------------------------------------
16206 printf "radsec found in $radsecdir\n";
16207 RADSEC_LIBS="-lradsec";
16208 RADSEC_LDFLAGS="-L$radsecdir/lib";
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
16215 $as_echo_n "checking for jansson... " >&6; }
16219 # Check whether --with-jansson was given.
16220 if test "${with_jansson+set}" = set; then :
16221 withval=$with_jansson; check_jansson_dir="$withval"
16226 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
16228 if test -f "$dir/include/jansson.h"; then
16229 found_jansson="yes";
16230 JANSSON_DIR="${janssondir}"
16231 JANSSON_CFLAGS="-I$janssondir/include";
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
16236 $as_echo "$found_jansson" >&6; }
16237 if test x_$found_jansson != x_yes; then
16239 ----------------------------------------------------------------------
16240 Cannot find jansson libraries.
16242 Please install libjansson or specify installation directory with
16243 --with-jansson=(dir).
16244 ----------------------------------------------------------------------
16247 printf "jansson found in $janssondir\n";
16248 JANSSON_LIBS="-ljansson";
16249 JANSSON_LDFLAGS="-L$janssondir/lib";
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
16258 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
16260 LIBMOONSHOT_CFLAGS=
16261 LIBMOONSHOT_LDFLAGS=
16263 found_libmoonshot="no"
16265 # Check whether --with-libmoonshot was given.
16266 if test "${with_libmoonshot+set}" = set; then :
16267 withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
16269 check_libmoonshot_dir=
16272 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
16273 libmoonshotdir="$dir"
16274 if test -f "$dir/include/libmoonshot.h"; then
16275 found_libmoonshot="yes";
16276 LIBMOONSHOT_DIR="${libmoonshotdir}"
16277 LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
16282 $as_echo "$found_libmoonshot" >&6; }
16283 if test x_$found_libmoonshot = x_yes; then
16284 printf "libmoonshot found in $libmoonshotdir\n";
16285 LIBMOONSHOT_LIBS="-lmoonshot";
16286 LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
16288 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
16289 if ${ac_cv_lib_moonshot_moonshot_get_identity+:} false; then :
16290 $as_echo_n "(cached) " >&6
16292 ac_check_lib_save_LIBS=$LIBS
16293 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h. */
16297 /* Override any GCC internal prototype to avoid an error.
16298 Use char because int might match the return type of a GCC
16299 builtin and then its argument prototype would still apply. */
16303 char moonshot_get_identity ();
16307 return moonshot_get_identity ();
16312 if ac_fn_c_try_link "$LINENO"; then :
16313 ac_cv_lib_moonshot_moonshot_get_identity=yes
16315 ac_cv_lib_moonshot_moonshot_get_identity=no
16317 rm -f core conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16319 LIBS=$ac_check_lib_save_LIBS
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
16322 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
16323 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = xyes; then :
16325 cat >>confdefs.h <<_ACEOF
16326 #define HAVE_MOONSHOT_GET_IDENTITY 1
16335 if test "x$found_libmoonshot" != "xno"; then
16337 LIBMOONSHOT_FALSE='#'
16339 LIBMOONSHOT_TRUE='#'
16344 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
16346 cat >confcache <<\_ACEOF
16347 # This file is a shell script that caches the results of configure
16348 # tests run on this system so they can be shared between configure
16349 # scripts and configure runs, see configure's option --config-cache.
16350 # It is not useful on other systems. If it contains results you don't
16351 # want to keep, you may remove or edit it.
16353 # config.status only pays attention to the cache file if you give it
16354 # the --recheck option to rerun configure.
16356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16358 # following values.
16362 # The following way of writing the cache mishandles newlines in values,
16363 # but we know of no workaround that is simple, portable, and efficient.
16364 # So, we kill variables containing newlines.
16365 # Ultrix sh set writes to stderr and can't be redirected directly,
16366 # and sets the high bit in the cache file unless we assign to the vars.
16368 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16369 eval ac_val=\$$ac_var
16373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16377 _ | IFS | as_nl) ;; #(
16378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16379 *) { eval $ac_var=; unset $ac_var;} ;;
16385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16386 *${as_nl}ac_space=\ *)
16387 # `set' does not quote correctly, so add quotes: double-quote
16388 # substitution turns \\\\ into \\, and sed turns \\ into \.
16391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16394 # `set' quotes correctly as required by POSIX, so do not add quotes.
16395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16409 if test -w "$cache_file"; then
16410 if test "x$cache_file" != "x/dev/null"; then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16412 $as_echo "$as_me: updating cache $cache_file" >&6;}
16413 if test ! -f "$cache_file" || test -h "$cache_file"; then
16414 cat confcache >"$cache_file"
16416 case $cache_file in #(
16418 mv -f confcache "$cache_file"$$ &&
16419 mv -f "$cache_file"$$ "$cache_file" ;; #(
16421 mv -f confcache "$cache_file" ;;
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16427 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16433 # Let make expand exec_prefix.
16434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16436 DEFS=-DHAVE_CONFIG_H
16441 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16442 # 1. Remove the extension, and $U if already installed.
16443 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16444 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16445 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16446 # will be set to the directory where LIBOBJS objects are built.
16447 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16448 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16450 LIBOBJS=$ac_libobjs
16452 LTLIBOBJS=$ac_ltlibobjs
16455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16456 as_fn_error $? "conditional \"AMDEP\" was never defined.
16457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16460 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 if test -n "$EXEEXT"; then
16465 am__EXEEXT_FALSE='#'
16467 am__EXEEXT_TRUE='#'
16471 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16472 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16476 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
16480 as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
16481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
16484 as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
16485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
16488 as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
16489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
16492 as_fn_error $? "conditional \"HEIMDAL\" was never defined.
16493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
16496 as_fn_error $? "conditional \"OPENSAML\" was never defined.
16497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
16500 as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
16501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
16504 as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
16505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16508 : "${CONFIG_STATUS=./config.status}"
16510 ac_clean_files_save=$ac_clean_files
16511 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16513 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16515 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16517 # Generated by $as_me.
16518 # Run this file to recreate the current configuration.
16519 # Compiler output produced by configure, useful for debugging
16520 # configure, is in config.log if it exists.
16523 ac_cs_recheck=false
16526 SHELL=\${CONFIG_SHELL-$SHELL}
16529 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16530 ## -------------------- ##
16531 ## M4sh Initialization. ##
16532 ## -------------------- ##
16534 # Be more Bourne compatible
16535 DUALCASE=1; export DUALCASE # for MKS sh
16536 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16539 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16540 # is contrary to our usage. Disable this feature.
16541 alias -g '${1+"$@"}'='"$@"'
16542 setopt NO_GLOB_SUBST
16544 case `(set -o) 2>/dev/null` in #(
16556 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16557 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16558 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16559 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16560 # Prefer a ksh shell builtin over an external printf program on Solaris,
16561 # but without wasting forks for bash or zsh.
16562 if test -z "$BASH_VERSION$ZSH_VERSION" \
16563 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16564 as_echo='print -r --'
16565 as_echo_n='print -rn --'
16566 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16567 as_echo='printf %s\n'
16568 as_echo_n='printf %s'
16570 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16571 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16572 as_echo_n='/usr/ucb/echo -n'
16574 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16575 as_echo_n_body='eval
16579 expr "X$arg" : "X\\(.*\\)$as_nl";
16580 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16582 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16584 export as_echo_n_body
16585 as_echo_n='sh -c $as_echo_n_body as_echo'
16587 export as_echo_body
16588 as_echo='sh -c $as_echo_body as_echo'
16591 # The user is always right.
16592 if test "${PATH_SEPARATOR+set}" != set; then
16594 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16595 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16602 # We need space, tab and new line, in precisely that order. Quoting is
16603 # there to prevent editors from complaining about space-tab.
16604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16605 # splitting by setting IFS to empty value.)
16608 # Find who we are. Look in the path if we contain no directory separator.
16611 *[\\/]* ) as_myself=$0 ;;
16612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16613 for as_dir in $PATH
16616 test -z "$as_dir" && as_dir=.
16617 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16623 # We did not find ourselves, most probably we were run as `sh COMMAND'
16624 # in which case we are not to be found in the path.
16625 if test "x$as_myself" = x; then
16628 if test ! -f "$as_myself"; then
16629 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16633 # Unset variables that we do not need and which cause bugs (e.g. in
16634 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16635 # suppresses any "Segmentation fault" message there. '((' could
16636 # trigger a bug in pdksh 5.2.14.
16637 for as_var in BASH_ENV ENV MAIL MAILPATH
16638 do eval test x\${$as_var+set} = xset \
16639 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16652 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16655 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16656 # ----------------------------------------
16657 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16658 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16659 # script with STATUS, using 1 if that was 0.
16662 as_status=$1; test $as_status -eq 0 && as_status=1
16664 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16665 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16667 $as_echo "$as_me: error: $2" >&2
16668 as_fn_exit $as_status
16672 # as_fn_set_status STATUS
16673 # -----------------------
16674 # Set $? to STATUS, without forking.
16675 as_fn_set_status ()
16678 } # as_fn_set_status
16680 # as_fn_exit STATUS
16681 # -----------------
16682 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16686 as_fn_set_status $1
16692 # Portably unset VAR.
16695 { eval $1=; unset $1;}
16697 as_unset=as_fn_unset
16698 # as_fn_append VAR VALUE
16699 # ----------------------
16700 # Append the text in VALUE to the end of the definition contained in VAR. Take
16701 # advantage of any shell optimizations that allow amortized linear growth over
16702 # repeated appends, instead of the typical quadratic growth present in naive
16704 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16705 eval 'as_fn_append ()
16716 # as_fn_arith ARG...
16717 # ------------------
16718 # Perform arithmetic evaluation on the ARGs, and store the result in the
16719 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16720 # must be portable across $(()) and expr.
16721 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16722 eval 'as_fn_arith ()
16729 as_val=`expr "$@" || test $? -eq 1`
16734 if expr a : '\(a\)' >/dev/null 2>&1 &&
16735 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16741 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16742 as_basename=basename
16747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16753 as_me=`$as_basename -- "$0" ||
16754 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16755 X"$0" : 'X\(//\)$' \| \
16756 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16758 sed '/^.*\/\([^/][^/]*\)\/*$/{
16772 # Avoid depending upon Character Ranges.
16773 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16774 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16775 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16776 as_cr_digits='0123456789'
16777 as_cr_alnum=$as_cr_Letters$as_cr_digits
16779 ECHO_C= ECHO_N= ECHO_T=
16780 case `echo -n x` in #(((((
16782 case `echo 'xy\c'` in
16783 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16785 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16792 rm -f conf$$ conf$$.exe conf$$.file
16793 if test -d conf$$.dir; then
16794 rm -f conf$$.dir/conf$$.file
16797 mkdir conf$$.dir 2>/dev/null
16799 if (echo >conf$$.file) 2>/dev/null; then
16800 if ln -s conf$$.file conf$$ 2>/dev/null; then
16802 # ... but there are two gotchas:
16803 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16804 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16805 # In both cases, we have to default to `cp -pR'.
16806 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16808 elif ln conf$$.file conf$$ 2>/dev/null; then
16816 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16817 rmdir conf$$.dir 2>/dev/null
16822 # Create "$as_dir" as a directory, including parents if necessary.
16827 -*) as_dir=./$as_dir;;
16829 test -d "$as_dir" || eval $as_mkdir_p || {
16833 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16834 *) as_qdir=$as_dir;;
16836 as_dirs="'$as_qdir' $as_dirs"
16837 as_dir=`$as_dirname -- "$as_dir" ||
16838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16839 X"$as_dir" : 'X\(//\)[^/]' \| \
16840 X"$as_dir" : 'X\(//\)$' \| \
16841 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16842 $as_echo X"$as_dir" |
16843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16847 /^X\(\/\/\)[^/].*/{
16860 test -d "$as_dir" && break
16862 test -z "$as_dirs" || eval "mkdir $as_dirs"
16863 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16867 if mkdir -p . 2>/dev/null; then
16868 as_mkdir_p='mkdir -p "$as_dir"'
16870 test -d ./-p && rmdir ./-p
16875 # as_fn_executable_p FILE
16876 # -----------------------
16877 # Test if FILE is an executable regular file.
16878 as_fn_executable_p ()
16880 test -f "$1" && test -x "$1"
16881 } # as_fn_executable_p
16882 as_test_x='test -x'
16883 as_executable_p=as_fn_executable_p
16885 # Sed expression to map a string onto a valid CPP name.
16886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16888 # Sed expression to map a string onto a valid variable name.
16889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16893 ## ----------------------------------- ##
16894 ## Main body of $CONFIG_STATUS script. ##
16895 ## ----------------------------------- ##
16897 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900 # Save the log message, to keep $0 and so on meaningful, and to
16901 # report actual input values of CONFIG_FILES etc. instead of their
16902 # values after options handling.
16904 This file was extended by mech_eap $as_me 0.9, which was
16905 generated by GNU Autoconf 2.69. Invocation command line was
16907 CONFIG_FILES = $CONFIG_FILES
16908 CONFIG_HEADERS = $CONFIG_HEADERS
16909 CONFIG_LINKS = $CONFIG_LINKS
16910 CONFIG_COMMANDS = $CONFIG_COMMANDS
16913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16918 case $ac_config_files in *"
16919 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16922 case $ac_config_headers in *"
16923 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16928 # Files that config.status was made for.
16929 config_files="$ac_config_files"
16930 config_headers="$ac_config_headers"
16931 config_commands="$ac_config_commands"
16935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16937 \`$as_me' instantiates files and other configuration actions
16938 from templates according to the current configuration. Unless the files
16939 and actions are specified as TAGs, all are instantiated by default.
16941 Usage: $0 [OPTION]... [TAG]...
16943 -h, --help print this help, then exit
16944 -V, --version print version number and configuration settings, then exit
16945 --config print configuration, then exit
16946 -q, --quiet, --silent
16947 do not print progress messages
16948 -d, --debug don't remove temporary files
16949 --recheck update $as_me by reconfiguring in the same conditions
16950 --file=FILE[:TEMPLATE]
16951 instantiate the configuration file FILE
16952 --header=FILE[:TEMPLATE]
16953 instantiate the configuration header FILE
16955 Configuration files:
16958 Configuration headers:
16961 Configuration commands:
16964 Report bugs to <bugs@project-moonshot.org>."
16967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16968 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16970 mech_eap config.status 0.9
16971 configured by $0, generated by GNU Autoconf 2.69,
16972 with options \\"\$ac_cs_config\\"
16974 Copyright (C) 2012 Free Software Foundation, Inc.
16975 This config.status script is free software; the Free Software Foundation
16976 gives unlimited permission to copy, distribute and modify it."
16983 test -n "\$AWK" || AWK=awk
16986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16987 # The default lists apply if the user does not specify any file.
16993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16994 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17010 # Handling of the options.
17011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17013 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17014 $as_echo "$ac_cs_version"; exit ;;
17015 --config | --confi | --conf | --con | --co | --c )
17016 $as_echo "$ac_cs_config"; exit ;;
17017 --debug | --debu | --deb | --de | --d | -d )
17019 --file | --fil | --fi | --f )
17022 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17023 '') as_fn_error $? "missing file argument" ;;
17025 as_fn_append CONFIG_FILES " '$ac_optarg'"
17026 ac_need_defaults=false;;
17027 --header | --heade | --head | --hea )
17030 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17032 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17033 ac_need_defaults=false;;
17035 # Conflict between --help and --header
17036 as_fn_error $? "ambiguous option: \`$1'
17037 Try \`$0 --help' for more information.";;
17038 --help | --hel | -h )
17039 $as_echo "$ac_cs_usage"; exit ;;
17040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17041 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17044 # This is an error.
17045 -*) as_fn_error $? "unrecognized option: \`$1'
17046 Try \`$0 --help' for more information." ;;
17048 *) as_fn_append ac_config_targets " $1"
17049 ac_need_defaults=false ;;
17055 ac_configure_extra_args=
17057 if $ac_cs_silent; then
17059 ac_configure_extra_args="$ac_configure_extra_args --silent"
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17064 if \$ac_cs_recheck; then
17065 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17067 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17068 CONFIG_SHELL='$SHELL'
17069 export CONFIG_SHELL
17074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17079 ## Running $as_me. ##
17085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17089 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17092 # The HP-UX ksh and POSIX shell print the target directory to stdout
17093 # if CDPATH is set.
17094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17096 sed_quote_subst='$sed_quote_subst'
17097 double_quote_subst='$double_quote_subst'
17098 delay_variable_subst='$delay_variable_subst'
17099 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17100 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17101 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17102 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17103 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17104 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17105 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17106 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17107 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17108 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17109 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17110 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17111 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17112 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17113 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17114 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17115 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17116 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17117 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17118 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17119 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17120 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17121 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17122 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17123 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17124 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17125 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17126 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17127 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17128 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17129 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17130 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17131 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17132 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17133 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17134 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17135 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17136 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17137 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17138 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17139 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17140 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17141 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17142 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17143 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17144 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17145 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17146 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17147 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17148 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17149 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17150 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17151 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17152 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17153 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17154 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17155 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17156 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"`'
17157 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17158 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17159 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17160 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17161 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17162 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17163 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17164 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17165 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17166 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17167 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17168 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17169 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17170 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17171 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17172 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17173 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17174 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17175 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17176 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17177 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17178 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17179 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17180 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17181 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17182 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17183 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17184 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17185 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17186 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17187 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17188 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17189 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17190 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17191 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17192 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17193 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17194 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17195 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17196 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17197 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17198 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17199 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17200 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17201 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17202 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17203 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17204 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17205 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17206 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17207 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17208 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17209 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17210 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17211 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17212 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17213 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17214 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17215 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17216 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17217 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17218 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17219 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17220 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17221 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17222 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17223 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17224 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17225 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17226 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17227 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17228 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17229 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17230 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17231 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17232 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17233 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17234 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17235 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17236 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17237 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17238 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17239 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17240 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17241 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17242 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17243 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17244 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17245 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17246 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17247 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17248 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17249 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17250 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17251 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17252 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17253 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17254 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17255 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17256 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17257 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17258 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17259 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17260 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17261 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17262 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17263 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17264 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17265 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17266 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17267 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17268 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17269 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17270 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17271 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17272 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17273 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17274 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17275 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17276 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17277 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17278 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17279 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17280 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17281 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17282 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17283 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17286 LTCFLAGS='$LTCFLAGS'
17287 compiler='$compiler_DEFAULT'
17289 # A function that is used when there is no print builtin or printf.
17290 func_fallback_echo ()
17292 eval 'cat <<_LTECHO_EOF
17297 # Quote evaled strings.
17314 deplibs_check_method \
17318 sharedlib_from_linklib_cmd \
17321 archiver_list_spec \
17327 lt_cv_sys_global_symbol_pipe \
17328 lt_cv_sys_global_symbol_to_cdecl \
17329 lt_cv_sys_global_symbol_to_c_name_address \
17330 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17331 nm_file_list_spec \
17332 lt_prog_compiler_no_builtin_flag \
17333 lt_prog_compiler_pic \
17334 lt_prog_compiler_wl \
17335 lt_prog_compiler_static \
17336 lt_cv_prog_compiler_c_o \
17345 export_dynamic_flag_spec \
17346 whole_archive_flag_spec \
17347 compiler_needs_object \
17349 allow_undefined_flag \
17350 no_undefined_flag \
17351 hardcode_libdir_flag_spec \
17352 hardcode_libdir_separator \
17356 variables_saved_for_relink \
17358 library_names_spec \
17360 install_override_mode \
17364 compiler_lib_search_dirs \
17369 compiler_lib_search_path \
17373 lt_prog_compiler_no_builtin_flag_CXX \
17374 lt_prog_compiler_pic_CXX \
17375 lt_prog_compiler_wl_CXX \
17376 lt_prog_compiler_static_CXX \
17377 lt_cv_prog_compiler_c_o_CXX \
17378 export_dynamic_flag_spec_CXX \
17379 whole_archive_flag_spec_CXX \
17380 compiler_needs_object_CXX \
17382 allow_undefined_flag_CXX \
17383 no_undefined_flag_CXX \
17384 hardcode_libdir_flag_spec_CXX \
17385 hardcode_libdir_separator_CXX \
17386 exclude_expsyms_CXX \
17387 include_expsyms_CXX \
17388 file_list_spec_CXX \
17389 compiler_lib_search_dirs_CXX \
17390 predep_objects_CXX \
17391 postdep_objects_CXX \
17394 compiler_lib_search_path_CXX; do
17395 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17396 *[\\\\\\\`\\"\\\$]*)
17397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17405 # Double-quote double-evaled strings.
17406 for var in reload_cmds \
17407 old_postinstall_cmds \
17408 old_postuninstall_cmds \
17410 extract_expsyms_cmds \
17411 old_archive_from_new_cmds \
17412 old_archive_from_expsyms_cmds \
17414 archive_expsym_cmds \
17416 module_expsym_cmds \
17417 export_symbols_cmds \
17421 postuninstall_cmds \
17423 sys_lib_search_path_spec \
17424 sys_lib_dlsearch_path_spec \
17426 old_archive_cmds_CXX \
17427 old_archive_from_new_cmds_CXX \
17428 old_archive_from_expsyms_cmds_CXX \
17430 archive_expsym_cmds_CXX \
17432 module_expsym_cmds_CXX \
17433 export_symbols_cmds_CXX \
17435 postlink_cmds_CXX; do
17436 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17437 *[\\\\\\\`\\"\\\$]*)
17438 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17441 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17446 ac_aux_dir='$ac_aux_dir'
17447 xsi_shell='$xsi_shell'
17448 lt_shell_append='$lt_shell_append'
17450 # See if we are running on zsh, and set the options which allow our
17451 # commands through without removal of \ escapes INIT.
17452 if test -n "\${ZSH_VERSION+set}" ; then
17453 setopt NO_GLOB_SUBST
17459 TIMESTAMP='$TIMESTAMP'
17470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17472 # Handling of arguments.
17473 for ac_config_target in $ac_config_targets
17475 case $ac_config_target in
17476 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17477 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17478 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17479 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17480 "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
17481 "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
17482 "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
17484 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17489 # If the user did not use the arguments to specify the items to instantiate,
17490 # then the envvar interface is used. Set only those that are not.
17491 # We use the long form for the default assignment because of an extremely
17492 # bizarre bug on SunOS 4.1.3.
17493 if $ac_need_defaults; then
17494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17499 # Have a temporary directory for convenience. Make it in the build tree
17500 # simply because there is no reason against having it here, and in addition,
17501 # creating and moving files from /tmp can sometimes cause problems.
17502 # Hook for its removal unless debugging.
17503 # Note that there is a small window in which the directory will not be cleaned:
17504 # after its creation but before its name has been assigned to `$tmp'.
17508 trap 'exit_status=$?
17509 : "${ac_tmp:=$tmp}"
17510 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17512 trap 'as_fn_exit 1' 1 2 13 15
17514 # Create a (secure) tmp directory for tmp files.
17517 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17521 tmp=./conf$$-$RANDOM
17522 (umask 077 && mkdir "$tmp")
17523 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17526 # Set up the scripts for CONFIG_FILES section.
17527 # No need to generate them if there are no CONFIG_FILES.
17528 # This happens for instance with `./config.status config.h'.
17529 if test -n "$CONFIG_FILES"; then
17532 ac_cr=`echo X | tr X '\015'`
17533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17534 # But we know of no other shell where ac_cr would be empty at this
17535 # point, so we can use a bashism as a fallback.
17536 if test "x$ac_cr" = x; then
17537 eval ac_cr=\$\'\\r\'
17539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17543 ac_cs_awk_cr=$ac_cr
17546 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17551 echo "cat >conf$$subs.awk <<_ACEOF" &&
17552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17554 } >conf$$subs.sh ||
17555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17558 for ac_last_try in false false false false false :; do
17559 . ./conf$$subs.sh ||
17560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17562 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17563 if test $ac_delim_n = $ac_delim_num; then
17565 elif $ac_last_try; then
17566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17571 rm -f conf$$subs.sh
17573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17574 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17578 s/^/S["/; s/!.*/"]=/
17588 s/\(.\{148\}\)..*/\1/
17590 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17602 s/\(.\{148\}\)..*/\1/
17604 s/["\\]/\\&/g; s/^/"/; s/$/"/
17608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17613 ' <conf$$subs.awk | sed '
17618 ' >>$CONFIG_STATUS || ac_write_fail=1
17619 rm -f conf$$subs.awk
17620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17622 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17623 for (key in S) S_is_set[key] = 1
17629 nfields = split(line, field, "@")
17631 len = length(field[1])
17632 for (i = 2; i < nfields; i++) {
17634 keylen = length(key)
17635 if (S_is_set[key]) {
17637 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17638 len += length(value) + length(field[++i])
17649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17651 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17654 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17655 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17658 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17659 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17660 # trailing colons and then remove the whole line if VPATH becomes empty
17661 # (actually we leave an empty line to preserve line numbers).
17662 if test "x$srcdir" = x.; then
17663 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17682 fi # test -n "$CONFIG_FILES"
17684 # Set up the scripts for CONFIG_HEADERS section.
17685 # No need to generate them if there are no CONFIG_HEADERS.
17686 # This happens for instance with `./config.status Makefile'.
17687 if test -n "$CONFIG_HEADERS"; then
17688 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17692 # Transform confdefs.h into an awk script `defines.awk', embedded as
17693 # here-document in config.status, that substitutes the proper values into
17694 # config.h.in to produce config.h.
17696 # Create a delimiter string that does not exist in confdefs.h, to ease
17697 # handling of long lines.
17699 for ac_last_try in false false :; do
17700 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17701 if test -z "$ac_tt"; then
17703 elif $ac_last_try; then
17704 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17710 # For the awk script, D is an array of macro values keyed by name,
17711 # likewise P contains macro parameters if any. Preserve backslash
17712 # newline sequences.
17714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17716 s/.\{148\}/&'"$ac_delim"'/g
17719 s/^[ ]*#[ ]*define[ ][ ]*/ /
17726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17728 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17732 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17733 D["\1"]=" \3\\\\\\n"\\/p
17735 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17740 s/.\{148\}/&'"$ac_delim"'/g
17745 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17748 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17750 ' <confdefs.h | sed '
17751 s/'"$ac_delim"'/"\\\
17752 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 for (key in D) D_is_set[key] = 1
17758 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17760 split(line, arg, " ")
17761 if (arg[1] == "#") {
17765 defundef = substr(arg[1], 2)
17768 split(mac1, mac2, "(") #)
17770 prefix = substr(line, 1, index(line, defundef) - 1)
17771 if (D_is_set[macro]) {
17772 # Preserve the white space surrounding the "#".
17773 print prefix "define", macro P[macro] D[macro]
17776 # Replace #undef with comments. This is necessary, for example,
17777 # in the case of _POSIX_SOURCE, which is predefined and required
17778 # on some systems where configure will not decide to define it.
17779 if (defundef == "undef") {
17780 print "/*", prefix defundef, macro, "*/"
17788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17789 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17790 fi # test -n "$CONFIG_HEADERS"
17793 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17798 :[FHLC]) ac_mode=$ac_tag; continue;;
17800 case $ac_mode$ac_tag in
17802 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17803 :[FH]-) ac_tag=-:-;;
17804 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17821 -) ac_f="$ac_tmp/stdin";;
17822 *) # Look for the file first in the build tree, then in the source tree
17823 # (if the path is not absolute). The absolute path cannot be DOS-style,
17824 # because $ac_f cannot contain `:'.
17828 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17830 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17832 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17833 as_fn_append ac_file_inputs " '$ac_f'"
17836 # Let's still pretend it is `configure' which instantiates (i.e., don't
17837 # use $as_me), people would be surprised to read:
17838 # /* config.h. Generated by config.status. */
17839 configure_input='Generated from '`
17840 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17842 if test x"$ac_file" != x-; then
17843 configure_input="$ac_file. $configure_input"
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17845 $as_echo "$as_me: creating $ac_file" >&6;}
17847 # Neutralize special characters interpreted by sed in replacement strings.
17848 case $configure_input in #(
17849 *\&* | *\|* | *\\* )
17850 ac_sed_conf_input=`$as_echo "$configure_input" |
17851 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17852 *) ac_sed_conf_input=$configure_input;;
17856 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17862 ac_dir=`$as_dirname -- "$ac_file" ||
17863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17864 X"$ac_file" : 'X\(//\)[^/]' \| \
17865 X"$ac_file" : 'X\(//\)$' \| \
17866 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17867 $as_echo X"$ac_file" |
17868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17872 /^X\(\/\/\)[^/].*/{
17885 as_dir="$ac_dir"; as_fn_mkdir_p
17889 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17891 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17892 # A ".." for each directory in $ac_dir_suffix.
17893 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17894 case $ac_top_builddir_sub in
17895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17899 ac_abs_top_builddir=$ac_pwd
17900 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17901 # for backward compatibility:
17902 ac_top_builddir=$ac_top_build_prefix
17905 .) # We are building in place.
17907 ac_top_srcdir=$ac_top_builddir_sub
17908 ac_abs_top_srcdir=$ac_pwd ;;
17909 [\\/]* | ?:[\\/]* ) # Absolute name.
17910 ac_srcdir=$srcdir$ac_dir_suffix;
17911 ac_top_srcdir=$srcdir
17912 ac_abs_top_srcdir=$srcdir ;;
17913 *) # Relative name.
17914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17915 ac_top_srcdir=$ac_top_build_prefix$srcdir
17916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17918 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17929 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17931 ac_MKDIR_P=$MKDIR_P
17933 [\\/$]* | ?:[\\/]* ) ;;
17934 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17939 # If the template does not know about datarootdir, expand it.
17940 # FIXME: This hack should be removed a few years after 2.60.
17941 ac_datarootdir_hack=; ac_datarootdir_seen=
17952 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17953 *datarootdir*) ac_datarootdir_seen=yes;;
17954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17956 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17959 ac_datarootdir_hack='
17960 s&@datadir@&$datadir&g
17961 s&@docdir@&$docdir&g
17962 s&@infodir@&$infodir&g
17963 s&@localedir@&$localedir&g
17964 s&@mandir@&$mandir&g
17965 s&\\\${datarootdir}&$datarootdir&g' ;;
17969 # Neutralize VPATH when `$srcdir' = `.'.
17970 # Shell code in configure.ac might set extrasub.
17971 # FIXME: do we really want to maintain this feature?
17972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17973 ac_sed_extra="$ac_vpsub
17976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17979 s|@configure_input@|$ac_sed_conf_input|;t t
17980 s&@top_builddir@&$ac_top_builddir_sub&;t t
17981 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17982 s&@srcdir@&$ac_srcdir&;t t
17983 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17984 s&@top_srcdir@&$ac_top_srcdir&;t t
17985 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17986 s&@builddir@&$ac_builddir&;t t
17987 s&@abs_builddir@&$ac_abs_builddir&;t t
17988 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17989 s&@INSTALL@&$ac_INSTALL&;t t
17990 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17991 $ac_datarootdir_hack
17993 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17994 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17997 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17998 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17999 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18001 which seems to be undefined. Please make sure it is defined" >&5
18002 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18003 which seems to be undefined. Please make sure it is defined" >&2;}
18005 rm -f "$ac_tmp/stdin"
18007 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18008 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18016 if test x"$ac_file" != x-; then
18018 $as_echo "/* $configure_input */" \
18019 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18020 } >"$ac_tmp/config.h" \
18021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18022 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18024 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18027 mv "$ac_tmp/config.h" "$ac_file" \
18028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18031 $as_echo "/* $configure_input */" \
18032 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18033 || as_fn_error $? "could not create -" "$LINENO" 5
18035 # Compute "$ac_file"'s index in $config_headers.
18038 for _am_header in $config_headers :; do
18039 case $_am_header in
18040 $_am_arg | $_am_arg:* )
18043 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18046 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18047 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18048 X"$_am_arg" : 'X\(//\)[^/]' \| \
18049 X"$_am_arg" : 'X\(//\)$' \| \
18050 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18051 $as_echo X"$_am_arg" |
18052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18056 /^X\(\/\/\)[^/].*/{
18068 s/.*/./; q'`/stamp-h$_am_stamp_count
18071 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18072 $as_echo "$as_me: executing $ac_file commands" >&6;}
18077 case $ac_file$ac_mode in
18078 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18079 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18080 # are listed without --file. Let's play safe and only enable the eval
18081 # if we detect the quoting.
18082 case $CONFIG_FILES in
18083 *\'*) eval set x "$CONFIG_FILES" ;;
18084 *) set x $CONFIG_FILES ;;
18089 # Strip MF so we end up with the name of the file.
18090 mf=`echo "$mf" | sed -e 's/:.*$//'`
18091 # Check whether this is an Automake generated Makefile or not.
18092 # We used to match only the files named `Makefile.in', but
18093 # some people rename them; so instead we look at the file content.
18094 # Grep'ing the first line is not enough: some people post-process
18095 # each Makefile.in and add a new line on top of each file to say so.
18096 # Grep'ing the whole file is not good either: AIX grep has a line
18097 # limit of 2048, but all sed's we know have understand at least 4000.
18098 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18099 dirpart=`$as_dirname -- "$mf" ||
18100 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18101 X"$mf" : 'X\(//\)[^/]' \| \
18102 X"$mf" : 'X\(//\)$' \| \
18103 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18109 /^X\(\/\/\)[^/].*/{
18125 # Extract the definition of DEPDIR, am__include, and am__quote
18126 # from the Makefile without running `make'.
18127 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18128 test -z "$DEPDIR" && continue
18129 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18130 test -z "am__include" && continue
18131 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18132 # When using ansi2knr, U may be empty or an underscore; expand it
18133 U=`sed -n 's/^U = //p' < "$mf"`
18134 # Find all dependency output files, they are included files with
18135 # $(DEPDIR) in their names. We invoke sed twice because it is the
18136 # simplest approach to changing $(DEPDIR) to its actual value in the
18138 for file in `sed -n "
18139 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18140 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18141 # Make sure the directory exists.
18142 test -f "$dirpart/$file" && continue
18143 fdir=`$as_dirname -- "$file" ||
18144 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18145 X"$file" : 'X\(//\)[^/]' \| \
18146 X"$file" : 'X\(//\)$' \| \
18147 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18148 $as_echo X"$file" |
18149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18153 /^X\(\/\/\)[^/].*/{
18166 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18167 # echo "creating $dirpart/$file"
18168 echo '# dummy' > "$dirpart/$file"
18175 # See if we are running on zsh, and set the options which allow our
18176 # commands through without removal of \ escapes.
18177 if test -n "${ZSH_VERSION+set}" ; then
18178 setopt NO_GLOB_SUBST
18181 cfgfile="${ofile}T"
18182 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18185 cat <<_LT_EOF >> "$cfgfile"
18188 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18189 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18191 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18193 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18194 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18196 # Written by Gordon Matzigkeit, 1996
18198 # This file is part of GNU Libtool.
18200 # GNU Libtool is free software; you can redistribute it and/or
18201 # modify it under the terms of the GNU General Public License as
18202 # published by the Free Software Foundation; either version 2 of
18203 # the License, or (at your option) any later version.
18205 # As a special exception to the GNU General Public License,
18206 # if you distribute this file as part of a program or library that
18207 # is built using GNU Libtool, you may include this file under the
18208 # same distribution terms that you use for the rest of that program.
18210 # GNU Libtool is distributed in the hope that it will be useful,
18211 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18213 # GNU General Public License for more details.
18215 # You should have received a copy of the GNU General Public License
18216 # along with GNU Libtool; see the file COPYING. If not, a copy
18217 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18218 # obtained by writing to the Free Software Foundation, Inc.,
18219 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18222 # The names of the tagged configurations supported by this script.
18223 available_tags="CXX "
18225 # ### BEGIN LIBTOOL CONFIG
18227 # Which release of libtool.m4 was used?
18228 macro_version=$macro_version
18229 macro_revision=$macro_revision
18231 # Whether or not to build static libraries.
18232 build_old_libs=$enable_static
18234 # Assembler program.
18237 # DLL creation program.
18238 DLLTOOL=$lt_DLLTOOL
18240 # Object dumper program.
18241 OBJDUMP=$lt_OBJDUMP
18243 # Whether or not to build shared libraries.
18244 build_libtool_libs=$enable_shared
18246 # What type of objects to build.
18249 # Whether or not to optimize for fast installation.
18250 fast_install=$enable_fast_install
18252 # Shell to use when invoking shell scripts.
18255 # An echo program that protects backslashes.
18258 # The PATH separator for the build system.
18259 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18262 host_alias=$host_alias
18266 # The build system.
18267 build_alias=$build_alias
18271 # A sed program that does not truncate output.
18274 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18275 Xsed="\$SED -e 1s/^X//"
18277 # A grep program that handles long lines.
18283 # A literal string matcher.
18286 # A BSD- or MS-compatible name lister.
18289 # Whether we need soft or hard links.
18292 # What is the maximum length of a command?
18293 max_cmd_len=$max_cmd_len
18295 # Object file suffix (normally "o").
18298 # Executable file suffix (normally "").
18301 # whether the shell understands "unset".
18304 # turn spaces into newlines.
18307 # turn newlines into spaces.
18310 # convert \$build file names to \$host format.
18311 to_host_file_cmd=$lt_cv_to_host_file_cmd
18313 # convert \$build files to toolchain format.
18314 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18316 # Method to check whether dependent libraries are shared objects.
18317 deplibs_check_method=$lt_deplibs_check_method
18319 # Command to use when deplibs_check_method = "file_magic".
18320 file_magic_cmd=$lt_file_magic_cmd
18322 # How to find potential files when deplibs_check_method = "file_magic".
18323 file_magic_glob=$lt_file_magic_glob
18325 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18326 want_nocaseglob=$lt_want_nocaseglob
18328 # Command to associate shared and link libraries.
18329 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18334 # Flags to create an archive.
18335 AR_FLAGS=$lt_AR_FLAGS
18337 # How to feed a file listing to the archiver.
18338 archiver_list_spec=$lt_archiver_list_spec
18340 # A symbol stripping program.
18343 # Commands used to install an old-style archive.
18345 old_postinstall_cmds=$lt_old_postinstall_cmds
18346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18348 # Whether to use a lock for old archive extraction.
18349 lock_old_archive_extraction=$lock_old_archive_extraction
18354 # LTCC compiler flags.
18355 LTCFLAGS=$lt_CFLAGS
18357 # Take the output of nm and produce a listing of raw symbols and C names.
18358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18360 # Transform the output of nm in a proper C declaration.
18361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18363 # Transform the output of nm in a C name address pair.
18364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18366 # Transform the output of nm in a C name address pair when lib prefix is needed.
18367 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18369 # Specify filename containing input files for \$NM.
18370 nm_file_list_spec=$lt_nm_file_list_spec
18372 # The root where to search for dependent libraries,and in which our libraries should be installed.
18373 lt_sysroot=$lt_sysroot
18375 # The name of the directory that contains temporary libtool files.
18378 # Used to examine libraries when file_magic_cmd begins with "file".
18379 MAGIC_CMD=$MAGIC_CMD
18381 # Must we lock files when doing compilation?
18382 need_locks=$lt_need_locks
18385 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18387 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18388 DSYMUTIL=$lt_DSYMUTIL
18390 # Tool to change global to local symbols on Mac OS X.
18393 # Tool to manipulate fat objects and archives on Mac OS X.
18396 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18399 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18400 OTOOL64=$lt_OTOOL64
18402 # Old archive suffix (normally "a").
18405 # Shared library suffix (normally ".so").
18406 shrext_cmds=$lt_shrext_cmds
18408 # The commands to extract the exported symbol list from a shared archive.
18409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18411 # Variables whose values should be saved in libtool wrapper scripts and
18412 # restored at link time.
18413 variables_saved_for_relink=$lt_variables_saved_for_relink
18415 # Do we need the "lib" prefix for modules?
18416 need_lib_prefix=$need_lib_prefix
18418 # Do we need a version for libraries?
18419 need_version=$need_version
18421 # Library versioning type.
18422 version_type=$version_type
18424 # Shared library runtime path variable.
18425 runpath_var=$runpath_var
18427 # Shared library path variable.
18428 shlibpath_var=$shlibpath_var
18430 # Is shlibpath searched before the hard-coded library search path?
18431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18433 # Format of library name prefix.
18434 libname_spec=$lt_libname_spec
18436 # List of archive names. First name is the real one, the rest are links.
18437 # The last name is the one that the linker finds with -lNAME
18438 library_names_spec=$lt_library_names_spec
18440 # The coded name of the library, if different from the real name.
18441 soname_spec=$lt_soname_spec
18443 # Permission mode override for installation of shared libraries.
18444 install_override_mode=$lt_install_override_mode
18446 # Command to use after installation of a shared archive.
18447 postinstall_cmds=$lt_postinstall_cmds
18449 # Command to use after uninstallation of a shared archive.
18450 postuninstall_cmds=$lt_postuninstall_cmds
18452 # Commands used to finish a libtool library installation in a directory.
18453 finish_cmds=$lt_finish_cmds
18455 # As "finish_cmds", except a single script fragment to be evaled but
18457 finish_eval=$lt_finish_eval
18459 # Whether we should hardcode library paths into libraries.
18460 hardcode_into_libs=$hardcode_into_libs
18462 # Compile-time system search path for libraries.
18463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18465 # Run-time system search path for libraries.
18466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18468 # Whether dlopen is supported.
18469 dlopen_support=$enable_dlopen
18471 # Whether dlopen of programs is supported.
18472 dlopen_self=$enable_dlopen_self
18474 # Whether dlopen of statically linked programs is supported.
18475 dlopen_self_static=$enable_dlopen_self_static
18477 # Commands to strip libraries.
18478 old_striplib=$lt_old_striplib
18479 striplib=$lt_striplib
18482 # The linker used to build libraries.
18485 # How to create reloadable object files.
18486 reload_flag=$lt_reload_flag
18487 reload_cmds=$lt_reload_cmds
18489 # Commands used to build an old-style archive.
18490 old_archive_cmds=$lt_old_archive_cmds
18492 # A language specific compiler.
18495 # Is the compiler the GNU compiler?
18498 # Compiler flag to turn off builtin functions.
18499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18501 # Additional compiler flags for building library objects.
18502 pic_flag=$lt_lt_prog_compiler_pic
18504 # How to pass a linker flag through the compiler.
18505 wl=$lt_lt_prog_compiler_wl
18507 # Compiler flag to prevent dynamic linking.
18508 link_static_flag=$lt_lt_prog_compiler_static
18510 # Does compiler simultaneously support -c and -o options?
18511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18513 # Whether or not to add -lc for building shared libraries.
18514 build_libtool_need_lc=$archive_cmds_need_lc
18516 # Whether or not to disallow shared libs when runtime libs are static.
18517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18519 # Compiler flag to allow reflexive dlopens.
18520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18522 # Compiler flag to generate shared objects directly from archives.
18523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18525 # Whether the compiler copes with passing no objects directly.
18526 compiler_needs_object=$lt_compiler_needs_object
18528 # Create an old-style archive from a shared archive.
18529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18531 # Create a temporary old-style archive to link instead of a shared archive.
18532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18534 # Commands used to build a shared archive.
18535 archive_cmds=$lt_archive_cmds
18536 archive_expsym_cmds=$lt_archive_expsym_cmds
18538 # Commands used to build a loadable module if different from building
18539 # a shared archive.
18540 module_cmds=$lt_module_cmds
18541 module_expsym_cmds=$lt_module_expsym_cmds
18543 # Whether we are building with GNU ld or not.
18544 with_gnu_ld=$lt_with_gnu_ld
18546 # Flag that allows shared libraries with undefined symbols to be built.
18547 allow_undefined_flag=$lt_allow_undefined_flag
18549 # Flag that enforces no undefined symbols.
18550 no_undefined_flag=$lt_no_undefined_flag
18552 # Flag to hardcode \$libdir into a binary during linking.
18553 # This must work even if \$libdir does not exist
18554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18556 # Whether we need a single "-rpath" flag with a separated argument.
18557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18560 # DIR into the resulting binary.
18561 hardcode_direct=$hardcode_direct
18563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18564 # DIR into the resulting binary and the resulting library dependency is
18565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18566 # library is relocated.
18567 hardcode_direct_absolute=$hardcode_direct_absolute
18569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18570 # into the resulting binary.
18571 hardcode_minus_L=$hardcode_minus_L
18573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18574 # into the resulting binary.
18575 hardcode_shlibpath_var=$hardcode_shlibpath_var
18577 # Set to "yes" if building a shared library automatically hardcodes DIR
18578 # into the library and all subsequent libraries and executables linked
18580 hardcode_automatic=$hardcode_automatic
18582 # Set to yes if linker adds runtime paths of dependent libraries
18583 # to runtime path list.
18584 inherit_rpath=$inherit_rpath
18586 # Whether libtool must link a program against all its dependency libraries.
18587 link_all_deplibs=$link_all_deplibs
18589 # Set to "yes" if exported symbols are required.
18590 always_export_symbols=$always_export_symbols
18592 # The commands to list exported symbols.
18593 export_symbols_cmds=$lt_export_symbols_cmds
18595 # Symbols that should not be listed in the preloaded symbols.
18596 exclude_expsyms=$lt_exclude_expsyms
18598 # Symbols that must always be exported.
18599 include_expsyms=$lt_include_expsyms
18601 # Commands necessary for linking programs (against libraries) with templates.
18602 prelink_cmds=$lt_prelink_cmds
18604 # Commands necessary for finishing linking programs.
18605 postlink_cmds=$lt_postlink_cmds
18607 # Specify filename containing input files.
18608 file_list_spec=$lt_file_list_spec
18610 # How to hardcode a shared library path into an executable.
18611 hardcode_action=$hardcode_action
18613 # The directories searched by this compiler when creating a shared library.
18614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18616 # Dependencies to place before and after the objects being linked to
18617 # create a shared library.
18618 predep_objects=$lt_predep_objects
18619 postdep_objects=$lt_postdep_objects
18620 predeps=$lt_predeps
18621 postdeps=$lt_postdeps
18623 # The library search path used internally by the compiler when linking
18624 # a shared library.
18625 compiler_lib_search_path=$lt_compiler_lib_search_path
18627 # ### END LIBTOOL CONFIG
18633 cat <<\_LT_EOF >> "$cfgfile"
18634 # AIX sometimes has problems with the GCC collect2 program. For some
18635 # reason, if we set the COLLECT_NAMES environment variable, the problems
18636 # vanish in a puff of smoke.
18637 if test "X${COLLECT_NAMES+set}" != Xset; then
18639 export COLLECT_NAMES
18646 ltmain="$ac_aux_dir/ltmain.sh"
18649 # We use sed instead of cat because bash on DJGPP gets confused if
18650 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18651 # text mode, it properly converts lines to CR/LF. This bash problem
18652 # is reportedly fixed, but why not run on old versions too?
18653 sed '$q' "$ltmain" >> "$cfgfile" \
18654 || (rm -f "$cfgfile"; exit 1)
18656 if test x"$xsi_shell" = xyes; then
18657 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18661 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18662 \ * ) func_dirname_result="${3}" ;;\
18664 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18665 && mv -f "$cfgfile.tmp" "$cfgfile" \
18666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18667 test 0 -eq $? || _lt_function_replace_fail=:
18670 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18673 \ func_basename_result="${1##*/}"\
18674 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18675 && mv -f "$cfgfile.tmp" "$cfgfile" \
18676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18677 test 0 -eq $? || _lt_function_replace_fail=:
18680 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18681 func_dirname_and_basename ()\
18684 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18685 \ * ) func_dirname_result="${3}" ;;\
18687 \ func_basename_result="${1##*/}"\
18688 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18689 && mv -f "$cfgfile.tmp" "$cfgfile" \
18690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18691 test 0 -eq $? || _lt_function_replace_fail=:
18694 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18697 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18698 \ # positional parameters, so assign one to ordinary parameter first.\
18699 \ func_stripname_result=${3}\
18700 \ func_stripname_result=${func_stripname_result#"${1}"}\
18701 \ func_stripname_result=${func_stripname_result%"${2}"}\
18702 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18703 && mv -f "$cfgfile.tmp" "$cfgfile" \
18704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18705 test 0 -eq $? || _lt_function_replace_fail=:
18708 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18709 func_split_long_opt ()\
18711 \ func_split_long_opt_name=${1%%=*}\
18712 \ func_split_long_opt_arg=${1#*=}\
18713 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18714 && mv -f "$cfgfile.tmp" "$cfgfile" \
18715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18716 test 0 -eq $? || _lt_function_replace_fail=:
18719 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18720 func_split_short_opt ()\
18722 \ func_split_short_opt_arg=${1#??}\
18723 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18724 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18725 && mv -f "$cfgfile.tmp" "$cfgfile" \
18726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18727 test 0 -eq $? || _lt_function_replace_fail=:
18730 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18734 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18735 \ *) func_lo2o_result=${1} ;;\
18737 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18738 && mv -f "$cfgfile.tmp" "$cfgfile" \
18739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18740 test 0 -eq $? || _lt_function_replace_fail=:
18743 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18746 func_xform_result=${1%.*}.lo\
18747 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18748 && mv -f "$cfgfile.tmp" "$cfgfile" \
18749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18750 test 0 -eq $? || _lt_function_replace_fail=:
18753 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18756 func_arith_result=$(( $* ))\
18757 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18758 && mv -f "$cfgfile.tmp" "$cfgfile" \
18759 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18760 test 0 -eq $? || _lt_function_replace_fail=:
18763 sed -e '/^func_len ()$/,/^} # func_len /c\
18766 func_len_result=${#1}\
18767 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18768 && mv -f "$cfgfile.tmp" "$cfgfile" \
18769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18770 test 0 -eq $? || _lt_function_replace_fail=:
18774 if test x"$lt_shell_append" = xyes; then
18775 sed -e '/^func_append ()$/,/^} # func_append /c\
18778 eval "${1}+=\\${2}"\
18779 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18780 && mv -f "$cfgfile.tmp" "$cfgfile" \
18781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18782 test 0 -eq $? || _lt_function_replace_fail=:
18785 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18786 func_append_quoted ()\
18788 \ func_quote_for_eval "${2}"\
18789 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18790 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18791 && mv -f "$cfgfile.tmp" "$cfgfile" \
18792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18793 test 0 -eq $? || _lt_function_replace_fail=:
18796 # Save a `func_append' function call where possible by direct use of '+='
18797 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18798 && mv -f "$cfgfile.tmp" "$cfgfile" \
18799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18800 test 0 -eq $? || _lt_function_replace_fail=:
18802 # Save a `func_append' function call even when '+=' is not available
18803 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18804 && mv -f "$cfgfile.tmp" "$cfgfile" \
18805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18806 test 0 -eq $? || _lt_function_replace_fail=:
18809 if test x"$_lt_function_replace_fail" = x":"; then
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18811 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18815 mv -f "$cfgfile" "$ofile" ||
18816 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18820 cat <<_LT_EOF >> "$ofile"
18822 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18824 # The linker used to build libraries.
18827 # How to create reloadable object files.
18828 reload_flag=$lt_reload_flag_CXX
18829 reload_cmds=$lt_reload_cmds_CXX
18831 # Commands used to build an old-style archive.
18832 old_archive_cmds=$lt_old_archive_cmds_CXX
18834 # A language specific compiler.
18835 CC=$lt_compiler_CXX
18837 # Is the compiler the GNU compiler?
18840 # Compiler flag to turn off builtin functions.
18841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18843 # Additional compiler flags for building library objects.
18844 pic_flag=$lt_lt_prog_compiler_pic_CXX
18846 # How to pass a linker flag through the compiler.
18847 wl=$lt_lt_prog_compiler_wl_CXX
18849 # Compiler flag to prevent dynamic linking.
18850 link_static_flag=$lt_lt_prog_compiler_static_CXX
18852 # Does compiler simultaneously support -c and -o options?
18853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18855 # Whether or not to add -lc for building shared libraries.
18856 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18858 # Whether or not to disallow shared libs when runtime libs are static.
18859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18861 # Compiler flag to allow reflexive dlopens.
18862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18864 # Compiler flag to generate shared objects directly from archives.
18865 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18867 # Whether the compiler copes with passing no objects directly.
18868 compiler_needs_object=$lt_compiler_needs_object_CXX
18870 # Create an old-style archive from a shared archive.
18871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18873 # Create a temporary old-style archive to link instead of a shared archive.
18874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18876 # Commands used to build a shared archive.
18877 archive_cmds=$lt_archive_cmds_CXX
18878 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18880 # Commands used to build a loadable module if different from building
18881 # a shared archive.
18882 module_cmds=$lt_module_cmds_CXX
18883 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18885 # Whether we are building with GNU ld or not.
18886 with_gnu_ld=$lt_with_gnu_ld_CXX
18888 # Flag that allows shared libraries with undefined symbols to be built.
18889 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18891 # Flag that enforces no undefined symbols.
18892 no_undefined_flag=$lt_no_undefined_flag_CXX
18894 # Flag to hardcode \$libdir into a binary during linking.
18895 # This must work even if \$libdir does not exist
18896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18898 # Whether we need a single "-rpath" flag with a separated argument.
18899 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18901 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18902 # DIR into the resulting binary.
18903 hardcode_direct=$hardcode_direct_CXX
18905 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18906 # DIR into the resulting binary and the resulting library dependency is
18907 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18908 # library is relocated.
18909 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18911 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18912 # into the resulting binary.
18913 hardcode_minus_L=$hardcode_minus_L_CXX
18915 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18916 # into the resulting binary.
18917 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18919 # Set to "yes" if building a shared library automatically hardcodes DIR
18920 # into the library and all subsequent libraries and executables linked
18922 hardcode_automatic=$hardcode_automatic_CXX
18924 # Set to yes if linker adds runtime paths of dependent libraries
18925 # to runtime path list.
18926 inherit_rpath=$inherit_rpath_CXX
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs_CXX
18931 # Set to "yes" if exported symbols are required.
18932 always_export_symbols=$always_export_symbols_CXX
18934 # The commands to list exported symbols.
18935 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18937 # Symbols that should not be listed in the preloaded symbols.
18938 exclude_expsyms=$lt_exclude_expsyms_CXX
18940 # Symbols that must always be exported.
18941 include_expsyms=$lt_include_expsyms_CXX
18943 # Commands necessary for linking programs (against libraries) with templates.
18944 prelink_cmds=$lt_prelink_cmds_CXX
18946 # Commands necessary for finishing linking programs.
18947 postlink_cmds=$lt_postlink_cmds_CXX
18949 # Specify filename containing input files.
18950 file_list_spec=$lt_file_list_spec_CXX
18952 # How to hardcode a shared library path into an executable.
18953 hardcode_action=$hardcode_action_CXX
18955 # The directories searched by this compiler when creating a shared library.
18956 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18958 # Dependencies to place before and after the objects being linked to
18959 # create a shared library.
18960 predep_objects=$lt_predep_objects_CXX
18961 postdep_objects=$lt_postdep_objects_CXX
18962 predeps=$lt_predeps_CXX
18963 postdeps=$lt_postdeps_CXX
18965 # The library search path used internally by the compiler when linking
18966 # a shared library.
18967 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18969 # ### END LIBTOOL TAG CONFIG: CXX
18980 ac_clean_files=$ac_clean_files_save
18982 test $ac_write_fail = 0 ||
18983 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18986 # configure is writing to config.log, and then calls config.status.
18987 # config.status does its own redirection, appending to config.log.
18988 # Unfortunately, on DOS this fails, as config.log is still kept open
18989 # by configure, so config.status won't be able to write to it; its
18990 # output is simply discarded. So we exec the FD to /dev/null,
18991 # effectively closing config.log, so it can be properly (re)opened and
18992 # appended to by config.status. When coming back to configure, we
18993 # need to make the FD available again.
18994 if test "$no_create" != yes; then
18996 ac_config_status_args=
18997 test "$silent" = yes &&
18998 ac_config_status_args="$ac_config_status_args --quiet"
19000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19003 # would make configure fail if this is the last instruction.
19004 $ac_cs_success || as_fn_exit 1
19006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19008 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}