2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for mech_eap 0.9.
5 # Report bugs to <bugs@project-moonshot.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: bugs@project-moonshot.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
702 PACKAGE_NAME='mech_eap'
703 PACKAGE_TARNAME='mech_eap'
704 PACKAGE_VERSION='0.9'
705 PACKAGE_STRING='mech_eap 0.9'
706 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
709 # Factoring default headers for most tests.
710 ac_includes_default="\
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
722 # ifdef HAVE_STDLIB_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
745 ac_subst_vars='am__EXEEXT_FALSE
769 SHIBRESOLVER_CXXFLAGS
785 GSSEAP_ENABLE_ACCEPTOR_FALSE
786 GSSEAP_ENABLE_ACCEPTOR_TRUE
787 GSSEAP_ENABLE_REAUTH_FALSE
788 GSSEAP_ENABLE_REAUTH_TRUE
825 MAINTAINER_MODE_FALSE
844 INSTALL_STRIP_PROGRAM
896 program_transform_name
909 enable_option_checking
910 enable_dependency_tracking
911 enable_maintainer_mode
929 ac_precious_vars='build_alias
944 # Initialize some variables set by options.
946 ac_init_version=false
947 ac_unrecognized_opts=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name=s,x,x,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983 infodir='${datarootdir}/info'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
1004 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1061 eval enable_$ac_useropt=no ;;
1063 -docdir | --docdir | --docdi | --doc | --do)
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error $? "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1251 -site=* | --site=* | --sit=*)
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error $? "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1291 eval with_$ac_useropt=\$ac_optarg ;;
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error $? "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1307 eval with_$ac_useropt=no ;;
1310 # Obsolete; use --with-x.
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information"
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' | [0-9]* | *[!_$as_cr_alnum]* )
1336 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error $? "missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1360 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1378 # Be sure to have absolute directory names.
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1391 target=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used" >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407 test "$silent" = yes && exec 6>/dev/null
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error $? "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error $? "pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1484 \`configure' configures mech_eap 0.9 to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking ...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/mech_eap]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 if test -n "$ac_init_help"; then
1553 case $ac_init_help in
1554 short | recursive ) echo "Configuration of mech_eap 0.9:";;
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --disable-dependency-tracking speeds up one-time build
1563 --enable-dependency-tracking do not reject slow dependency extractors
1564 --enable-maintainer-mode enable make rules and dependencies not useful
1565 (and sometimes confusing) to the casual installer
1566 --enable-static[=PKGS] build static libraries [default=no]
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1572 --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-pic try to use only PIC/non-PIC objects [default=use
1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 --with-krb5 Use krb5 (in specified installation directory)
1581 --with-opensaml Use OpenSAML (in specified installation directory)
1582 --with-shibresolver Use Shibboleth resolver (in specified installation
1584 --with-shibsp Use shibspboleth (in specified installation
1586 --with-openssl Use OpenSSL (in specified installation directory)
1587 --with-radsec Use radsec (in specified installation directory)
1588 --with-jansson Use jansson (in specified installation directory)
1589 --with-libmoonshot Use libmoonshot (in specified installation
1592 Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
1597 LIBS libraries to pass to the linker, e.g. -l<library>
1598 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599 you have headers in a nonstandard directory <include dir>
1601 CXX C++ compiler command
1602 CXXFLAGS C++ compiler flags
1603 CXXCPP C++ preprocessor
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1608 Report bugs to <bugs@project-moonshot.org>.
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1638 .) # We are building in place.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1671 mech_eap configure 0.9
1672 generated by GNU Autoconf 2.67
1674 Copyright (C) 2010 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_c_try_cpp LINENO
1724 # ----------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_cpp conftest.$ac_ext"
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } > conftest.i && {
1745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 as_fn_set_status $ac_retval
1760 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 # the include files in INCLUDES and setting the cache variable VAR
1765 ac_fn_c_check_header_mongrel ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if eval "test \"\${$3+set}\"" = set; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval "test \"\${$3+set}\"" = set; then :
1772 $as_echo_n "(cached) " >&6
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1778 # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1789 ac_header_compiler=no
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1805 ac_header_preproc=no
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1811 # So? What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ( $as_echo "## ---------------------------------------- ##
1831 ## Report this to bugs@project-moonshot.org ##
1832 ## ---------------------------------------- ##"
1833 ) | sed "s/^/$as_me: WARNING: /" >&2
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval "test \"\${$3+set}\"" = set; then :
1839 $as_echo_n "(cached) " >&6
1841 eval "$3=\$ac_header_compiler"
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_header_mongrel
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=$ac_status
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 as_fn_set_status $ac_retval
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval "test \"\${$3+set}\"" = set; then :
1903 $as_echo_n "(cached) " >&6
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1910 if ac_fn_c_try_compile "$LINENO"; then :
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 } # ac_fn_c_check_header_compile
1924 # ac_fn_c_try_link LINENO
1925 # -----------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded.
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 rm -f conftest.$ac_objext conftest$ac_exeext
1931 if { { ac_try="$ac_link"
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>conftest.err
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && {
1947 test -z "$ac_c_werror_flag" ||
1948 test ! -s conftest.err
1949 } && test -s conftest$ac_exeext && {
1950 test "$cross_compiling" = yes ||
1951 $as_test_x conftest$ac_exeext
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1960 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962 # interfere with the next link command; also delete a directory that is
1963 # left behind by Apple's compiler. We do this before executing the actions.
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 as_fn_set_status $ac_retval
1968 } # ac_fn_c_try_link
1970 # ac_fn_c_check_func LINENO FUNC VAR
1971 # ----------------------------------
1972 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1973 ac_fn_c_check_func ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval "test \"\${$3+set}\"" = set; then :
1979 $as_echo_n "(cached) " >&6
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1985 #define $2 innocuous_$2
1987 /* System header to define __stub macros and hopefully few prototypes,
1988 which can conflict with char $2 (); below.
1989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1990 <limits.h> exists even on freestanding compilers. */
1993 # include <limits.h>
1995 # include <assert.h>
2000 /* Override any GCC internal prototype to avoid an error.
2001 Use char because int might match the return type of a GCC
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined __stub_$2 || defined __stub___$2
2022 if ac_fn_c_try_link "$LINENO"; then :
2027 rm -f core conftest.err conftest.$ac_objext \
2028 conftest$ac_exeext conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 } # ac_fn_c_check_func
2037 # ac_fn_cxx_try_compile LINENO
2038 # ----------------------------
2039 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2040 ac_fn_cxx_try_compile ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 rm -f conftest.$ac_objext
2044 if { { ac_try="$ac_compile"
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_compile") 2>conftest.err
2053 if test -s conftest.err; then
2054 grep -v '^ *+' conftest.err >conftest.er1
2055 cat conftest.er1 >&5
2056 mv -f conftest.er1 conftest.err
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } && {
2060 test -z "$ac_cxx_werror_flag" ||
2061 test ! -s conftest.err
2062 } && test -s conftest.$ac_objext; then :
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2070 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2071 as_fn_set_status $ac_retval
2073 } # ac_fn_cxx_try_compile
2075 # ac_fn_cxx_try_cpp LINENO
2076 # ------------------------
2077 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_cpp ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { { ac_try="$ac_cpp conftest.$ac_ext"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2090 if test -s conftest.err; then
2091 grep -v '^ *+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } > conftest.i && {
2097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2098 test ! -s conftest.err
2102 $as_echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_cxx_try_cpp
2112 # ac_fn_cxx_try_link LINENO
2113 # -------------------------
2114 # Try to link conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_link ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 rm -f conftest.$ac_objext conftest$ac_exeext
2119 if { { ac_try="$ac_link"
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_link") 2>conftest.err
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && {
2135 test -z "$ac_cxx_werror_flag" ||
2136 test ! -s conftest.err
2137 } && test -s conftest$ac_exeext && {
2138 test "$cross_compiling" = yes ||
2139 $as_test_x conftest$ac_exeext
2143 $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2148 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2149 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2150 # interfere with the next link command; also delete a directory that is
2151 # left behind by Apple's compiler. We do this before executing the actions.
2152 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 as_fn_set_status $ac_retval
2156 } # ac_fn_cxx_try_link
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2161 It was created by mech_eap $as_me 0.9, which was
2162 generated by GNU Autoconf 2.67. Invocation command line was
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2183 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2184 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2187 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2188 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2189 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 $as_echo "PATH: $as_dir"
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_must_keep_next=false
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 -* ) ac_must_keep_next=true ;;
2254 as_fn_append ac_configure_args " '$ac_arg'"
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Save into config.log some information that might help in debugging.
2272 $as_echo "## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##"
2276 # The following way of writing the cache mishandles newlines in values,
2278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279 eval ac_val=\$$ac_var
2283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 _ | IFS | as_nl) ;; #(
2288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289 *) { eval $ac_var=; unset $ac_var;} ;;
2294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295 *${as_nl}ac_space=\ *)
2297 "s/'\''/'\''\\\\'\'''\''/g;
2298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 $as_echo "## ----------------- ##
2309 ## Output variables. ##
2310 ## ----------------- ##"
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 $as_echo "$ac_var='\''$ac_val'\''"
2322 if test -n "$ac_subst_files"; then
2323 $as_echo "## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##"
2327 for ac_var in $ac_subst_files
2329 eval ac_val=\$$ac_var
2331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 $as_echo "$ac_var='\''$ac_val'\''"
2338 if test -s confdefs.h; then
2339 $as_echo "## ----------- ##
2346 test "$ac_signal" != 0 &&
2347 $as_echo "$as_me: caught signal $ac_signal"
2348 $as_echo "$as_me: exit $exit_status"
2350 rm -f core *.core core.conftest.* &&
2351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 for ac_signal in 1 2 13 15; do
2355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2362 $as_echo "/* confdefs.h */" > confdefs.h
2364 # Predefined preprocessor variables.
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_NAME "$PACKAGE_NAME"
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_STRING "$PACKAGE_STRING"
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_URL "$PACKAGE_URL"
2391 # Let the site file select an alternate cache file if it wants to.
2392 # Prefer an explicitly selected file to automatically selected ones.
2395 if test -n "$CONFIG_SITE"; then
2396 # We do not want a PATH search for config.site.
2397 case $CONFIG_SITE in #((
2398 -*) ac_site_file1=./$CONFIG_SITE;;
2399 */*) ac_site_file1=$CONFIG_SITE;;
2400 *) ac_site_file1=./$CONFIG_SITE;;
2402 elif test "x$prefix" != xNONE; then
2403 ac_site_file1=$prefix/share/config.site
2404 ac_site_file2=$prefix/etc/config.site
2406 ac_site_file1=$ac_default_prefix/share/config.site
2407 ac_site_file2=$ac_default_prefix/etc/config.site
2409 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2411 test "x$ac_site_file" = xNONE && continue
2412 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2414 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2415 sed 's/^/| /' "$ac_site_file" >&5
2417 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 as_fn_error $? "failed to load site script $ac_site_file
2420 See \`config.log' for more details" "$LINENO" 5 ; }
2424 if test -r "$cache_file"; then
2425 # Some versions of bash will fail to source /dev/null (special files
2426 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432 *) . "./$cache_file";;
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2441 # Check that the precious variables saved in the cache have kept the same
2443 ac_cache_corrupted=false
2444 for ac_var in $ac_precious_vars; do
2445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2446 eval ac_new_set=\$ac_env_${ac_var}_set
2447 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2448 eval ac_new_val=\$ac_env_${ac_var}_value
2449 case $ac_old_set,$ac_new_set in
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2453 ac_cache_corrupted=: ;;
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2456 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2457 ac_cache_corrupted=: ;;
2460 if test "x$ac_old_val" != "x$ac_new_val"; then
2461 # differences in whitespace do not lead to failure.
2462 ac_old_val_w=`echo x $ac_old_val`
2463 ac_new_val_w=`echo x $ac_new_val`
2464 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2466 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2467 ac_cache_corrupted=:
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2470 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2471 eval $ac_var=\$ac_old_val
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2474 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2476 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 # Pass precious variables to config.status.
2480 if test "$ac_new_set" = set; then
2482 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 *) ac_arg=$ac_var=$ac_new_val ;;
2485 case " $ac_configure_args " in
2486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2487 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491 if $ac_cache_corrupted; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2495 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2496 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2498 ## -------------------- ##
2499 ## Main body of script. ##
2500 ## -------------------- ##
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 for ac_dir in build-aux "$srcdir"/build-aux; do
2512 if test -f "$ac_dir/install-sh"; then
2514 ac_install_sh="$ac_aux_dir/install-sh -c"
2516 elif test -f "$ac_dir/install.sh"; then
2518 ac_install_sh="$ac_aux_dir/install.sh -c"
2520 elif test -f "$ac_dir/shtool"; then
2522 ac_install_sh="$ac_aux_dir/shtool install -c"
2526 if test -z "$ac_aux_dir"; then
2527 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2535 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2536 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 if test -n "$ac_tool_prefix"; then
2546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then :
2551 $as_echo_n "(cached) " >&6
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 if test -n "$CC"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2576 $as_echo "$CC" >&6; }
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2584 if test -z "$ac_cv_prog_CC"; then
2586 # Extract the first word of "gcc", so it can be a program name with args.
2587 set dummy gcc; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2591 $as_echo_n "(cached) " >&6
2593 if test -n "$ac_ct_CC"; then
2594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_ac_ct_CC="gcc"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614 if test -n "$ac_ct_CC"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2616 $as_echo "$ac_ct_CC" >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2622 if test "x$ac_ct_CC" = x; then
2625 case $cross_compiling:$ac_tool_warned in
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2629 ac_tool_warned=yes ;;
2637 if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_CC="${ac_tool_prefix}cc"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2678 if test -z "$CC"; then
2679 # Extract the first word of "cc", so it can be a program name with args.
2680 set dummy cc; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698 ac_prog_rejected=yes
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 if test $ac_prog_rejected = yes; then
2710 # We found a bogon in the path, so make sure we never use it.
2711 set dummy $ac_cv_prog_CC
2713 if test $# != 0; then
2714 # We chose a different compiler from the bogus one.
2715 # However, it has the same basename, so the bogon will be chosen
2716 # first if we set CC to just the basename; use the full file name.
2718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2734 if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in cl.exe
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2775 test -n "$CC" && break
2778 if test -z "$CC"; then
2780 for ac_prog in cl.exe
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2819 test -n "$ac_ct_CC" && break
2822 if test "x$ac_ct_CC" = x; then
2825 case $cross_compiling:$ac_tool_warned in
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829 ac_tool_warned=yes ;;
2838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840 as_fn_error $? "no acceptable C compiler found in \$PATH
2841 See \`config.log' for more details" "$LINENO" 5 ; }
2843 # Provide some information about the compiler.
2844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2847 for ac_option in --version -v -V -qversion; do
2848 { { ac_try="$ac_compiler $ac_option >&5"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2857 if test -s conftest.err; then
2859 ... rest of stderr output deleted ...
2860 10q' conftest.err >conftest.er1
2861 cat conftest.er1 >&5
2863 rm -f conftest.er1 conftest.err
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; }
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2879 ac_clean_files_save=$ac_clean_files
2880 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2881 # Try to create an executable without -o first, disregard a.out.
2882 # It will help us diagnose broken compilers, and finding out an intuition
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2885 $as_echo_n "checking whether the C compiler works... " >&6; }
2886 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2888 # The possible output files:
2889 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2892 for ac_file in $ac_files
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2896 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2901 if { { ac_try="$ac_link_default"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2907 $as_echo "$ac_try_echo"; } >&5
2908 (eval "$ac_link_default") 2>&5
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }; then :
2912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2913 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2914 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2915 # so that the user can short-circuit this test for compilers unknown to
2917 for ac_file in $ac_files ''
2919 test -f "$ac_file" || continue
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2924 # We found the default executable, but exeext='' is most
2928 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 # We set ac_cv_exeext here because the later test for it is not
2933 # safe: cross compilers may not add the suffix if given an `-o'
2934 # argument, so we may need to know it at that point already.
2935 # Even if this section looks crufty: it has the advantage of
2942 test "$ac_cv_exeext" = no && ac_cv_exeext=
2947 if test -z "$ac_file"; then :
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 $as_echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955 as_fn_error 77 "C compiler cannot create executables
2956 See \`config.log' for more details" "$LINENO" 5 ; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2962 $as_echo_n "checking for C compiler default output file name... " >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2964 $as_echo "$ac_file" >&6; }
2965 ac_exeext=$ac_cv_exeext
2967 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2968 ac_clean_files=$ac_clean_files_save
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2970 $as_echo_n "checking for suffix of executables... " >&6; }
2971 if { { ac_try="$ac_link"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_link") 2>&5
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; then :
2982 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2983 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2984 # work properly (i.e., refer to `conftest.exe'), while it won't with
2986 for ac_file in conftest.exe conftest conftest.*; do
2987 test -f "$ac_file" || continue
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2999 See \`config.log' for more details" "$LINENO" 5 ; }
3001 rm -f conftest conftest$ac_cv_exeext
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3003 $as_echo "$ac_cv_exeext" >&6; }
3005 rm -f conftest.$ac_ext
3006 EXEEXT=$ac_cv_exeext
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3014 FILE *f = fopen ("conftest.out", "w");
3015 return ferror (f) || fclose (f) != 0;
3021 ac_clean_files="$ac_clean_files conftest.out"
3022 # Check that the compiler produces executables we can run. If not, either
3023 # the compiler is broken, or we cross compile.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3025 $as_echo_n "checking whether we are cross compiling... " >&6; }
3026 if test "$cross_compiling" != yes; then
3027 { { ac_try="$ac_link"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link") 2>&5
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3038 if { ac_try='./conftest$ac_cv_exeext'
3039 { { case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_try") 2>&5
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }; }; then
3051 if test "$cross_compiling" = maybe; then
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error $? "cannot run C compiled programs.
3057 If you meant to cross compile, use \`--host'.
3058 See \`config.log' for more details" "$LINENO" 5 ; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3063 $as_echo "$cross_compiling" >&6; }
3065 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3066 ac_clean_files=$ac_clean_files_save
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3068 $as_echo_n "checking for suffix of object files... " >&6; }
3069 if test "${ac_cv_objext+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3083 rm -f conftest.o conftest.obj
3084 if { { ac_try="$ac_compile"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compile") 2>&5
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 for ac_file in conftest.o conftest.obj conftest.*; do
3096 test -f "$ac_file" || continue;
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "cannot compute suffix of object files: cannot compile
3110 See \`config.log' for more details" "$LINENO" 5 ; }
3112 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3115 $as_echo "$ac_cv_objext" >&6; }
3116 OBJEXT=$ac_cv_objext
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3119 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3120 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3137 if ac_fn_c_try_compile "$LINENO"; then :
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3147 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3148 if test $ac_compiler_gnu = yes; then
3153 ac_test_CFLAGS=${CFLAGS+set}
3154 ac_save_CFLAGS=$CFLAGS
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3156 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3157 if test "${ac_cv_prog_cc_g+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3160 ac_save_c_werror_flag=$ac_c_werror_flag
3161 ac_c_werror_flag=yes
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3175 if ac_fn_c_try_compile "$LINENO"; then :
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3190 if ac_fn_c_try_compile "$LINENO"; then :
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3206 if ac_fn_c_try_compile "$LINENO"; then :
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3217 $as_echo "$ac_cv_prog_cc_g" >&6; }
3218 if test "$ac_test_CFLAGS" = set; then
3219 CFLAGS=$ac_save_CFLAGS
3220 elif test $ac_cv_prog_cc_g = yes; then
3221 if test "$GCC" = yes; then
3227 if test "$GCC" = yes; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3234 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3235 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
3238 ac_cv_prog_cc_c89=no
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3244 #include <sys/types.h>
3245 #include <sys/stat.h>
3246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3247 struct buf { int x; };
3248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3249 static char *e (p, i)
3255 static char *f (char * (*g) (char **, int), char **p, ...)
3260 s = g (p, va_arg (v,int));
3265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3266 function prototypes and stuff, but not '\xHH' hex character constants.
3267 These don't provoke an error unfortunately, instead are silently treated
3268 as 'x'. The following induces an error, until -std is added to get
3269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3270 array size at least. It's necessary to write '\x00'==0 to get something
3271 that's true only with -std. */
3272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3275 inside strings and character constants. */
3277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3279 int test (int i, double x);
3280 struct s1 {int (*f) (int a);};
3281 struct s2 {int (*f) (double a);};
3282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3296 CC="$ac_save_CC $ac_arg"
3297 if ac_fn_c_try_compile "$LINENO"; then :
3298 ac_cv_prog_cc_c89=$ac_arg
3300 rm -f core conftest.err conftest.$ac_objext
3301 test "x$ac_cv_prog_cc_c89" != "xno" && break
3303 rm -f conftest.$ac_ext
3308 case "x$ac_cv_prog_cc_c89" in
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3311 $as_echo "none needed" >&6; } ;;
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3314 $as_echo "unsupported" >&6; } ;;
3316 CC="$CC $ac_cv_prog_cc_c89"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3318 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3320 if test "x$ac_cv_prog_cc_c89" != xno; then :
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3337 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3338 # On Suns, sometimes $CPP names a directory.
3339 if test -n "$CPP" && test -d "$CPP"; then
3342 if test -z "$CPP"; then
3343 if test "${ac_cv_prog_CPP+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3346 # Double quotes because CPP needs to be expanded
3347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3350 for ac_c_preproc_warn_flag in '' yes
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3361 # include <limits.h>
3363 # include <assert.h>
3367 if ac_fn_c_try_cpp "$LINENO"; then :
3370 # Broken: fails on valid input.
3373 rm -f conftest.err conftest.i conftest.$ac_ext
3375 # OK, works on sane cases. Now check whether nonexistent headers
3376 # can be detected and how.
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379 #include <ac_nonexistent.h>
3381 if ac_fn_c_try_cpp "$LINENO"; then :
3382 # Broken: success on invalid input.
3385 # Passes both tests.
3389 rm -f conftest.err conftest.i conftest.$ac_ext
3392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3393 rm -f conftest.i conftest.err conftest.$ac_ext
3394 if $ac_preproc_ok; then :
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3407 $as_echo "$CPP" >&6; }
3409 for ac_c_preproc_warn_flag in '' yes
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3420 # include <limits.h>
3422 # include <assert.h>
3426 if ac_fn_c_try_cpp "$LINENO"; then :
3429 # Broken: fails on valid input.
3432 rm -f conftest.err conftest.i conftest.$ac_ext
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438 #include <ac_nonexistent.h>
3440 if ac_fn_c_try_cpp "$LINENO"; then :
3441 # Broken: success on invalid input.
3444 # Passes both tests.
3448 rm -f conftest.err conftest.i conftest.$ac_ext
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.i conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then :
3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3459 See \`config.log' for more details" "$LINENO" 5 ; }
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3470 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3471 if test "${ac_cv_path_GREP+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3474 if test -z "$GREP"; then
3475 ac_path_GREP_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3481 test -z "$as_dir" && as_dir=.
3482 for ac_prog in grep ggrep; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3485 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3486 # Check for GNU ac_path_GREP and select it if it is found.
3487 # Check for GNU $ac_path_GREP
3488 case `"$ac_path_GREP" --version 2>&1` in
3490 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3493 $as_echo_n 0123456789 >"conftest.in"
3496 cat "conftest.in" "conftest.in" >"conftest.tmp"
3497 mv "conftest.tmp" "conftest.in"
3498 cp "conftest.in" "conftest.nl"
3499 $as_echo 'GREP' >> "conftest.nl"
3500 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502 as_fn_arith $ac_count + 1 && ac_count=$as_val
3503 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3504 # Best one so far, save it but keep looking for a better one
3505 ac_cv_path_GREP="$ac_path_GREP"
3506 ac_path_GREP_max=$ac_count
3508 # 10*(2^10) chars as input seems more than enough
3509 test $ac_count -gt 10 && break
3511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3514 $ac_path_GREP_found && break 3
3519 if test -z "$ac_cv_path_GREP"; then
3520 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3523 ac_cv_path_GREP=$GREP
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3528 $as_echo "$ac_cv_path_GREP" >&6; }
3529 GREP="$ac_cv_path_GREP"
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3533 $as_echo_n "checking for egrep... " >&6; }
3534 if test "${ac_cv_path_EGREP+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3537 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3538 then ac_cv_path_EGREP="$GREP -E"
3540 if test -z "$EGREP"; then
3541 ac_path_EGREP_found=false
3542 # Loop through the user's path and test for each of PROGNAME-LIST
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547 test -z "$as_dir" && as_dir=.
3548 for ac_prog in egrep; do
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3551 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3552 # Check for GNU ac_path_EGREP and select it if it is found.
3553 # Check for GNU $ac_path_EGREP
3554 case `"$ac_path_EGREP" --version 2>&1` in
3556 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3559 $as_echo_n 0123456789 >"conftest.in"
3562 cat "conftest.in" "conftest.in" >"conftest.tmp"
3563 mv "conftest.tmp" "conftest.in"
3564 cp "conftest.in" "conftest.nl"
3565 $as_echo 'EGREP' >> "conftest.nl"
3566 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3568 as_fn_arith $ac_count + 1 && ac_count=$as_val
3569 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3570 # Best one so far, save it but keep looking for a better one
3571 ac_cv_path_EGREP="$ac_path_EGREP"
3572 ac_path_EGREP_max=$ac_count
3574 # 10*(2^10) chars as input seems more than enough
3575 test $ac_count -gt 10 && break
3577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3580 $ac_path_EGREP_found && break 3
3585 if test -z "$ac_cv_path_EGREP"; then
3586 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3589 ac_cv_path_EGREP=$EGREP
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3595 $as_echo "$ac_cv_path_EGREP" >&6; }
3596 EGREP="$ac_cv_path_EGREP"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3600 $as_echo_n "checking for ANSI C header files... " >&6; }
3601 if test "${ac_cv_header_stdc+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_header_stdc=yes
3622 ac_cv_header_stdc=no
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 if test $ac_cv_header_stdc = yes; then
3627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 $EGREP "memchr" >/dev/null 2>&1; then :
3637 ac_cv_header_stdc=no
3643 if test $ac_cv_header_stdc = yes; then
3644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3651 $EGREP "free" >/dev/null 2>&1; then :
3654 ac_cv_header_stdc=no
3660 if test $ac_cv_header_stdc = yes; then
3661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3662 if test "$cross_compiling" = yes; then :
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3669 #if ((' ' & 0x0FF) == 0x020)
3670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3673 # define ISLOWER(c) \
3674 (('a' <= (c) && (c) <= 'i') \
3675 || ('j' <= (c) && (c) <= 'r') \
3676 || ('s' <= (c) && (c) <= 'z'))
3677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3685 for (i = 0; i < 256; i++)
3686 if (XOR (islower (i), ISLOWER (i))
3687 || toupper (i) != TOUPPER (i))
3692 if ac_fn_c_try_run "$LINENO"; then :
3695 ac_cv_header_stdc=no
3697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3698 conftest.$ac_objext conftest.beam conftest.$ac_ext
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3704 $as_echo "$ac_cv_header_stdc" >&6; }
3705 if test $ac_cv_header_stdc = yes; then
3707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3713 inttypes.h stdint.h unistd.h
3715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3719 cat >>confdefs.h <<_ACEOF
3720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3729 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3730 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3737 if test "$MINIX" = yes; then
3739 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3742 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3745 $as_echo "#define _MINIX 1" >>confdefs.h
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3751 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3752 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3758 # define __EXTENSIONS__ 1
3759 $ac_includes_default
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_safe_to_define___extensions__=yes
3771 ac_cv_safe_to_define___extensions__=no
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3776 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3777 test $ac_cv_safe_to_define___extensions__ = yes &&
3778 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3780 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3782 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3784 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3786 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3789 am__api_version='1.11'
3791 # Find a good install program. We prefer a C program (faster),
3792 # so one script is as good as another. But avoid the broken or
3793 # incompatible versions:
3794 # SysV /etc/install, /usr/sbin/install
3795 # SunOS /usr/etc/install
3796 # IRIX /sbin/install
3798 # AmigaOS /C/install, which installs bootblocks on floppy discs
3799 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3800 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3801 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3802 # OS/2's system install, which has a completely different semantic
3803 # ./install, which can be erroneously created by make from ./install.sh.
3804 # Reject install programs that cannot install multiple files.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3806 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3807 if test -z "$INSTALL"; then
3808 if test "${ac_cv_path_install+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 # Account for people who put trailing slashes in PATH elements.
3817 case $as_dir/ in #((
3818 ./ | .// | /[cC]/* | \
3819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3820 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3823 # OSF1 and SCO ODT 3.0 have their own names for install.
3824 # Don't use installbsd from OSF since it installs stuff as root
3826 for ac_prog in ginstall scoinst install; do
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3829 if test $ac_prog = install &&
3830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831 # AIX install. It has an incompatible calling convention.
3833 elif test $ac_prog = install &&
3834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835 # program-specific install script used by HP pwplus--don't use.
3838 rm -rf conftest.one conftest.two conftest.dir
3839 echo one > conftest.one
3840 echo two > conftest.two
3842 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3843 test -s conftest.one && test -s conftest.two &&
3844 test -s conftest.dir/conftest.one &&
3845 test -s conftest.dir/conftest.two
3847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3860 rm -rf conftest.one conftest.two conftest.dir
3863 if test "${ac_cv_path_install+set}" = set; then
3864 INSTALL=$ac_cv_path_install
3866 # As a last resort, use the slow shell script. Don't cache a
3867 # value for INSTALL within a source directory, because that will
3868 # break other packages using the cache if that directory is
3869 # removed, or if the value is a relative name.
3870 INSTALL=$ac_install_sh
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3874 $as_echo "$INSTALL" >&6; }
3876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3877 # It thinks the first close brace ends the variable substitution.
3878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3880 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3882 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3885 $as_echo_n "checking whether build environment is sane... " >&6; }
3888 echo timestamp > conftest.file
3889 # Reject unsafe characters in $srcdir or the absolute working directory
3890 # name. Accept space and tab only in the latter.
3894 *[\\\"\#\$\&\'\`$am_lf]*)
3895 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3898 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3899 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3902 # Do `set' in a subshell so we don't clobber the current shell's
3903 # arguments. Must try -L first in case configure is actually a
3904 # symlink; some systems play weird games with the mod time of symlinks
3905 # (eg FreeBSD returns the mod time of the symlink's containing
3908 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3909 if test "$*" = "X"; then
3911 set X `ls -t "$srcdir/configure" conftest.file`
3914 if test "$*" != "X $srcdir/configure conftest.file" \
3915 && test "$*" != "X conftest.file $srcdir/configure"; then
3917 # If neither matched, then we have a broken ls. This can happen
3918 # if, for instance, CONFIG_SHELL is bash and it inherits a
3919 # broken ls alias from the environment. This has actually
3920 # happened. Such a system could not be considered "sane".
3921 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3922 alias in your environment" "$LINENO" 5
3925 test "$2" = conftest.file
3931 as_fn_error $? "newly created file is older than distributed files!
3932 Check your system clock" "$LINENO" 5
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936 test "$program_prefix" != NONE &&
3937 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3938 # Use a double $ so make ignores it.
3939 test "$program_suffix" != NONE &&
3940 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3941 # Double any \ or $.
3942 # By default was `s,x,x', remove it if useless.
3943 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3944 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3946 # expand $ac_aux_dir to an absolute path
3947 am_aux_dir=`cd $ac_aux_dir && pwd`
3949 if test x"${MISSING+set}" != xset; then
3952 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3954 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3957 # Use eval to expand $SHELL
3958 if eval "$MISSING --run true"; then
3959 am_missing_run="$MISSING --run "
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3963 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3966 if test x"${install_sh}" != xset; then
3969 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3971 install_sh="\${SHELL} $am_aux_dir/install-sh"
3975 # Installed binaries are usually stripped using `strip' when the user
3976 # run `make install-strip'. However `strip' might not be the right
3977 # tool to use in cross-compilation environments, therefore Automake
3978 # will honor the `STRIP' environment variable to overrule this program.
3979 if test "$cross_compiling" != no; then
3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}strip; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_prog_STRIP+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3988 if test -n "$STRIP"; then
3989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 STRIP=$ac_cv_prog_STRIP
4009 if test -n "$STRIP"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4011 $as_echo "$STRIP" >&6; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4019 if test -z "$ac_cv_prog_STRIP"; then
4021 # Extract the first word of "strip", so it can be a program name with args.
4022 set dummy strip; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4028 if test -n "$ac_ct_STRIP"; then
4029 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_prog_ac_ct_STRIP="strip"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4049 if test -n "$ac_ct_STRIP"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4051 $as_echo "$ac_ct_STRIP" >&6; }
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4057 if test "x$ac_ct_STRIP" = x; then
4060 case $cross_compiling:$ac_tool_warned in
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064 ac_tool_warned=yes ;;
4069 STRIP="$ac_cv_prog_STRIP"
4073 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4076 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4077 if test -z "$MKDIR_P"; then
4078 if test "${ac_cv_path_mkdir+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4085 test -z "$as_dir" && as_dir=.
4086 for ac_prog in mkdir gmkdir; do
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4089 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4090 'mkdir (GNU coreutils) '* | \
4091 'mkdir (coreutils) '* | \
4092 'mkdir (fileutils) '4.1*)
4093 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4103 test -d ./--version && rmdir ./--version
4104 if test "${ac_cv_path_mkdir+set}" = set; then
4105 MKDIR_P="$ac_cv_path_mkdir -p"
4107 # As a last resort, use the slow shell script. Don't cache a
4108 # value for MKDIR_P within a source directory, because that will
4109 # break other packages using the cache if that directory is
4110 # removed, or if the value is a relative name.
4111 MKDIR_P="$ac_install_sh -d"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4115 $as_echo "$MKDIR_P" >&6; }
4119 [\\/$]* | ?:[\\/]*) ;;
4120 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4123 for ac_prog in gawk mawk nawk awk
4125 # Extract the first word of "$ac_prog", so it can be a program name with args.
4126 set dummy $ac_prog; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if test "${ac_cv_prog_AWK+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4132 if test -n "$AWK"; then
4133 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_prog_AWK="$ac_prog"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 if test -n "$AWK"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4155 $as_echo "$AWK" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4162 test -n "$AWK" && break
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4166 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4168 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4169 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4170 $as_echo_n "(cached) " >&6
4172 cat >conftest.make <<\_ACEOF
4175 @echo '@@@%%%=$(MAKE)=@@@%%%'
4177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4178 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4180 eval ac_cv_prog_make_${ac_make}_set=yes;;
4182 eval ac_cv_prog_make_${ac_make}_set=no;;
4186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4188 $as_echo "yes" >&6; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4193 SET_MAKE="MAKE=${MAKE-make}"
4196 rm -rf .tst 2>/dev/null
4197 mkdir .tst 2>/dev/null
4198 if test -d .tst; then
4203 rmdir .tst 2>/dev/null
4205 DEPDIR="${am__leading_dot}deps"
4207 ac_config_commands="$ac_config_commands depfiles"
4210 am_make=${MAKE-make}
4211 cat > confinc << 'END'
4213 @echo this is the am__doit target
4216 # If we don't find an include directive, just comment out the code.
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4218 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4222 # First try GNU make style include.
4223 echo "include confinc" > confmf
4224 # Ignore all kinds of additional output from `make'.
4225 case `$am_make -s -f confmf 2> /dev/null` in #(
4226 *the\ am__doit\ target*)
4232 # Now try BSD make style include.
4233 if test "$am__include" = "#"; then
4234 echo '.include "confinc"' > confmf
4235 case `$am_make -s -f confmf 2> /dev/null` in #(
4236 *the\ am__doit\ target*)
4237 am__include=.include
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4246 $as_echo "$_am_result" >&6; }
4247 rm -f confinc confmf
4249 # Check whether --enable-dependency-tracking was given.
4250 if test "${enable_dependency_tracking+set}" = set; then :
4251 enableval=$enable_dependency_tracking;
4254 if test "x$enable_dependency_tracking" != xno; then
4255 am_depcomp="$ac_aux_dir/depcomp"
4258 if test "x$enable_dependency_tracking" != xno; then
4267 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4268 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4269 # is not polluted with repeated "-I."
4270 am__isrc=' -I$(srcdir)'
4271 # test to see if srcdir already configured
4272 if test -f $srcdir/config.status; then
4273 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4277 # test whether we have cygpath
4278 if test -z "$CYGPATH_W"; then
4279 if (cygpath --version) >/dev/null 2>/dev/null; then
4280 CYGPATH_W='cygpath -w'
4287 # Define the identity of the package.
4292 cat >>confdefs.h <<_ACEOF
4293 #define PACKAGE "$PACKAGE"
4297 cat >>confdefs.h <<_ACEOF
4298 #define VERSION "$VERSION"
4301 # Some tools Automake needs.
4303 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4306 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4309 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4312 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4315 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4317 # We need awk for the "check" target. The system "awk" is bad on
4319 # Always define AMTAR for backward compatibility.
4321 AMTAR=${AMTAR-"${am_missing_run}tar"}
4323 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4328 depcc="$CC" am_compiler_list=
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4331 $as_echo_n "checking dependency style of $depcc... " >&6; }
4332 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4336 # We make a subdir and do the tests there. Otherwise we can end up
4337 # making bogus files that we don't know about and never remove. For
4338 # instance it was reported that on HP-UX the gcc test will end up
4339 # making a dummy file named `D' -- because `-MD' means `put the output
4342 # Copy depcomp to subdir because otherwise we won't find it if we're
4343 # using a relative directory.
4344 cp "$am_depcomp" conftest.dir
4346 # We will build objects and dependencies in a subdirectory because
4347 # it helps to detect inapplicable dependency modes. For instance
4348 # both Tru64's cc and ICC support -MD to output dependencies as a
4349 # side effect of compilation, but ICC will put the dependencies in
4350 # the current directory while Tru64 will put them in the object
4354 am_cv_CC_dependencies_compiler_type=none
4355 if test "$am_compiler_list" = ""; then
4356 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4359 case " $depcc " in #(
4360 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4363 for depmode in $am_compiler_list; do
4364 # Setup a source with many dependencies, because some compilers
4365 # like to wrap large dependency lists on column 80 (with \), and
4366 # we should not choose a depcomp mode which is confused by this.
4368 # We need to recreate these files for each test, as the compiler may
4369 # overwrite some of them when testing with obscure command lines.
4370 # This happens at least with the AIX C compiler.
4372 for i in 1 2 3 4 5 6; do
4373 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4374 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4375 # Solaris 8's {/usr,}/bin/sh.
4376 touch sub/conftst$i.h
4378 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4380 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4381 # mode. It turns out that the SunPro C++ compiler does not properly
4382 # handle `-M -o', and we need to detect this. Also, some Intel
4383 # versions had trouble with output in subdirs
4384 am__obj=sub/conftest.${OBJEXT-o}
4385 am__minus_obj="-o $am__obj"
4388 # This depmode causes a compiler race in universal mode.
4389 test "$am__universal" = false || continue
4392 # after this tag, mechanisms are not by side-effect, so they'll
4393 # only be used when explicitly requested
4394 if test "x$enable_dependency_tracking" = xyes; then
4400 msvisualcpp | msvcmsys)
4401 # This compiler won't grok `-c -o', but also, the minuso test has
4402 # not run yet. These depmodes are late enough in the game, and
4403 # so weak that their functioning should not be impacted.
4404 am__obj=conftest.${OBJEXT-o}
4409 if depmode=$depmode \
4410 source=sub/conftest.c object=$am__obj \
4411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4412 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4413 >/dev/null 2>conftest.err &&
4414 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4416 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4417 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4418 # icc doesn't choke on unknown options, it will just issue warnings
4419 # or remarks (even with -Werror). So we grep stderr for any message
4420 # that says an option was ignored or not supported.
4421 # When given -MP, icc 7.0 and 7.1 complain thusly:
4422 # icc: Command line warning: ignoring option '-M'; no argument required
4423 # The diagnosis changed in icc 8.0:
4424 # icc: Command line remark: option '-MP' not supported
4425 if (grep 'ignoring option' conftest.err ||
4426 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4427 am_cv_CC_dependencies_compiler_type=$depmode
4436 am_cv_CC_dependencies_compiler_type=none
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4441 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4442 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4445 test "x$enable_dependency_tracking" != xno \
4446 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4448 am__fastdepCC_FALSE='#'
4450 am__fastdepCC_TRUE='#'
4451 am__fastdepCC_FALSE=
4456 if test "x$CC" != xcc; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4458 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4461 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4463 set dummy $CC; ac_cc=`$as_echo "$2" |
4464 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4465 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4479 # Make sure it works both with $CC and with simple cc.
4480 # We do the test twice because some compilers refuse to overwrite an
4481 # existing .o file with -o, though they will create one.
4482 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4484 if { { case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_try") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; } &&
4494 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_try") 2>&5
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; };
4505 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4506 if test "x$CC" != xcc; then
4507 # Test first that cc exists at all.
4508 if { ac_try='cc -c conftest.$ac_ext >&5'
4509 { { case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 $as_echo "$ac_try_echo"; } >&5
4515 (eval "$ac_try") 2>&5
4517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518 test $ac_status = 0; }; }; then
4519 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4521 if { { case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526 $as_echo "$ac_try_echo"; } >&5
4527 (eval "$ac_try") 2>&5
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; } &&
4531 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 $as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_try") 2>&5
4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; };
4545 # cc exists but doesn't like -o.
4546 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4551 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4553 rm -f core conftest*
4556 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4558 $as_echo "yes" >&6; }
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4563 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4567 # FIXME: we rely on the cache variable name because
4568 # there is no other way.
4570 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4571 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4572 if test "$am_t" != yes; then
4573 # Losing compiler, so override with the script.
4574 # FIXME: It is wrong to rewrite CC.
4575 # But if we don't then we get into trouble of one sort or another.
4576 # A longer-term fix would be to have automake use am__CC in this case,
4577 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578 CC="$am_aux_dir/compile $CC"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4584 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4585 # Check whether --enable-maintainer-mode was given.
4586 if test "${enable_maintainer_mode+set}" = set; then :
4587 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4589 USE_MAINTAINER_MODE=no
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4593 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4594 if test $USE_MAINTAINER_MODE = yes; then
4595 MAINTAINER_MODE_TRUE=
4596 MAINTAINER_MODE_FALSE='#'
4598 MAINTAINER_MODE_TRUE='#'
4599 MAINTAINER_MODE_FALSE=
4602 MAINT=$MAINTAINER_MODE_TRUE
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4609 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4614 macro_version='2.2.6b'
4615 macro_revision='1.3017'
4629 ltmain="$ac_aux_dir/ltmain.sh"
4631 # Make sure we can run config.sub.
4632 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4633 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4636 $as_echo_n "checking build system type... " >&6; }
4637 if test "${ac_cv_build+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4640 ac_build_alias=$build_alias
4641 test "x$ac_build_alias" = x &&
4642 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4643 test "x$ac_build_alias" = x &&
4644 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4645 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4646 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4650 $as_echo "$ac_cv_build" >&6; }
4651 case $ac_cv_build in
4653 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4656 ac_save_IFS=$IFS; IFS='-'
4662 # Remember, the first character of IFS is used to create $*,
4663 # except with old shells:
4666 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4670 $as_echo_n "checking host system type... " >&6; }
4671 if test "${ac_cv_host+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4674 if test "x$host_alias" = x; then
4675 ac_cv_host=$ac_cv_build
4677 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4678 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4683 $as_echo "$ac_cv_host" >&6; }
4686 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4689 ac_save_IFS=$IFS; IFS='-'
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4699 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4703 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4704 if test "${ac_cv_path_SED+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4707 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4708 for ac_i in 1 2 3 4 5 6 7; do
4709 ac_script="$ac_script$as_nl$ac_script"
4711 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4712 { ac_script=; unset ac_script;}
4713 if test -z "$SED"; then
4714 ac_path_SED_found=false
4715 # Loop through the user's path and test for each of PROGNAME-LIST
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_prog in sed gsed; do
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4724 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4725 # Check for GNU ac_path_SED and select it if it is found.
4726 # Check for GNU $ac_path_SED
4727 case `"$ac_path_SED" --version 2>&1` in
4729 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4732 $as_echo_n 0123456789 >"conftest.in"
4735 cat "conftest.in" "conftest.in" >"conftest.tmp"
4736 mv "conftest.tmp" "conftest.in"
4737 cp "conftest.in" "conftest.nl"
4738 $as_echo '' >> "conftest.nl"
4739 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4741 as_fn_arith $ac_count + 1 && ac_count=$as_val
4742 if test $ac_count -gt ${ac_path_SED_max-0}; then
4743 # Best one so far, save it but keep looking for a better one
4744 ac_cv_path_SED="$ac_path_SED"
4745 ac_path_SED_max=$ac_count
4747 # 10*(2^10) chars as input seems more than enough
4748 test $ac_count -gt 10 && break
4750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753 $ac_path_SED_found && break 3
4758 if test -z "$ac_cv_path_SED"; then
4759 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4767 $as_echo "$ac_cv_path_SED" >&6; }
4768 SED="$ac_cv_path_SED"
4771 test -z "$SED" && SED=sed
4772 Xsed="$SED -e 1s/^X//"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4785 $as_echo_n "checking for fgrep... " >&6; }
4786 if test "${ac_cv_path_FGREP+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4790 then ac_cv_path_FGREP="$GREP -F"
4792 if test -z "$FGREP"; then
4793 ac_path_FGREP_found=false
4794 # Loop through the user's path and test for each of PROGNAME-LIST
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4799 test -z "$as_dir" && as_dir=.
4800 for ac_prog in fgrep; do
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4803 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4804 # Check for GNU ac_path_FGREP and select it if it is found.
4805 # Check for GNU $ac_path_FGREP
4806 case `"$ac_path_FGREP" --version 2>&1` in
4808 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4811 $as_echo_n 0123456789 >"conftest.in"
4814 cat "conftest.in" "conftest.in" >"conftest.tmp"
4815 mv "conftest.tmp" "conftest.in"
4816 cp "conftest.in" "conftest.nl"
4817 $as_echo 'FGREP' >> "conftest.nl"
4818 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820 as_fn_arith $ac_count + 1 && ac_count=$as_val
4821 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4822 # Best one so far, save it but keep looking for a better one
4823 ac_cv_path_FGREP="$ac_path_FGREP"
4824 ac_path_FGREP_max=$ac_count
4826 # 10*(2^10) chars as input seems more than enough
4827 test $ac_count -gt 10 && break
4829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832 $ac_path_FGREP_found && break 3
4837 if test -z "$ac_cv_path_FGREP"; then
4838 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4841 ac_cv_path_FGREP=$FGREP
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4847 $as_echo "$ac_cv_path_FGREP" >&6; }
4848 FGREP="$ac_cv_path_FGREP"
4851 test -z "$GREP" && GREP=grep
4871 # Check whether --with-gnu-ld was given.
4872 if test "${with_gnu_ld+set}" = set; then :
4873 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4879 if test "$GCC" = yes; then
4880 # Check if gcc -print-prog-name=ld gives a path.
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4882 $as_echo_n "checking for ld used by $CC... " >&6; }
4885 # gcc leaves a trailing carriage return which upsets mingw
4886 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4888 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4891 # Accept absolute paths.
4893 re_direlt='/[^/][^/]*/\.\./'
4894 # Canonicalize the pathname of ld
4895 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4896 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4897 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4899 test -z "$LD" && LD="$ac_prog"
4902 # If it fails, then pretend we aren't using GCC.
4906 # If it is relative, then search for the first ld in PATH.
4910 elif test "$with_gnu_ld" = yes; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4912 $as_echo_n "checking for GNU ld... " >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4915 $as_echo_n "checking for non-GNU ld... " >&6; }
4917 if test "${lt_cv_path_LD+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4920 if test -z "$LD"; then
4921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4922 for ac_dir in $PATH; do
4924 test -z "$ac_dir" && ac_dir=.
4925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4926 lt_cv_path_LD="$ac_dir/$ac_prog"
4927 # Check to see if the program is GNU ld. I'd rather use --version,
4928 # but apparently some variants of GNU ld only accept -v.
4929 # Break only if it was the GNU/non-GNU ld that we prefer.
4930 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4931 *GNU* | *'with BFD'*)
4932 test "$with_gnu_ld" != no && break
4935 test "$with_gnu_ld" != yes && break
4942 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4947 if test -n "$LD"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4949 $as_echo "$LD" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4954 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4956 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4957 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4960 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4961 case `$LD -v 2>&1 </dev/null` in
4962 *GNU* | *'with BFD'*)
4963 lt_cv_prog_gnu_ld=yes
4966 lt_cv_prog_gnu_ld=no
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4971 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4972 with_gnu_ld=$lt_cv_prog_gnu_ld
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4983 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4984 if test "${lt_cv_path_NM+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4987 if test -n "$NM"; then
4988 # Let the user override the test.
4991 lt_nm_to_check="${ac_tool_prefix}nm"
4992 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4993 lt_nm_to_check="$lt_nm_to_check nm"
4995 for lt_tmp_nm in $lt_nm_to_check; do
4996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4997 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4999 test -z "$ac_dir" && ac_dir=.
5000 tmp_nm="$ac_dir/$lt_tmp_nm"
5001 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5002 # Check to see if the nm accepts a BSD-compat flag.
5003 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5004 # nm: unknown option "B" ignored
5005 # Tru64's nm complains that /dev/null is an invalid object file
5006 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5007 */dev/null* | *'Invalid file or object type'*)
5008 lt_cv_path_NM="$tmp_nm -B"
5012 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5014 lt_cv_path_NM="$tmp_nm -p"
5018 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5019 continue # so that we can try to find one that supports BSD flags
5028 : ${lt_cv_path_NM=no}
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5032 $as_echo "$lt_cv_path_NM" >&6; }
5033 if test "$lt_cv_path_NM" != "no"; then
5036 # Didn't find any BSD compatible name lister, look for dumpbin.
5037 if test -n "$ac_tool_prefix"; then
5038 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5047 if test -n "$DUMPBIN"; then
5048 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 DUMPBIN=$ac_cv_prog_DUMPBIN
5068 if test -n "$DUMPBIN"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5070 $as_echo "$DUMPBIN" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5077 test -n "$DUMPBIN" && break
5080 if test -z "$DUMPBIN"; then
5081 ac_ct_DUMPBIN=$DUMPBIN
5082 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy $ac_prog; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5091 if test -n "$ac_ct_DUMPBIN"; then
5092 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5112 if test -n "$ac_ct_DUMPBIN"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5114 $as_echo "$ac_ct_DUMPBIN" >&6; }
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5121 test -n "$ac_ct_DUMPBIN" && break
5124 if test "x$ac_ct_DUMPBIN" = x; then
5127 case $cross_compiling:$ac_tool_warned in
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5133 DUMPBIN=$ac_ct_DUMPBIN
5138 if test "$DUMPBIN" != ":"; then
5142 test -z "$NM" && NM=nm
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5150 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5151 if test "${lt_cv_nm_interface+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 lt_cv_nm_interface="BSD nm"
5155 echo "int some_variable = 0;" > conftest.$ac_ext
5156 (eval echo "\"\$as_me:5156: $ac_compile\"" >&5)
5157 (eval "$ac_compile" 2>conftest.err)
5158 cat conftest.err >&5
5159 (eval echo "\"\$as_me:5159: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5160 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5161 cat conftest.err >&5
5162 (eval echo "\"\$as_me:5162: output\"" >&5)
5163 cat conftest.out >&5
5164 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5165 lt_cv_nm_interface="MS dumpbin"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5170 $as_echo "$lt_cv_nm_interface" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5173 $as_echo_n "checking whether ln -s works... " >&6; }
5175 if test "$LN_S" = "ln -s"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 $as_echo "yes" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5180 $as_echo "no, using $LN_S" >&6; }
5183 # find the maximum length of command line arguments
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5185 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5186 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5194 # On DJGPP, this test can blow up pretty badly due to problems in libc
5195 # (any single argument exceeding 2000 bytes causes a buffer overrun
5196 # during glob expansion). Even if it were fixed, the result of this
5197 # check would be larger than it should be.
5198 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5202 # Under GNU Hurd, this test is not required because there is
5203 # no limit to the length of command line arguments.
5204 # Libtool will interpret -1 as no limit whatsoever
5205 lt_cv_sys_max_cmd_len=-1;
5208 cygwin* | mingw* | cegcc*)
5209 # On Win9x/ME, this test blows up -- it succeeds, but takes
5210 # about 5 minutes as the teststring grows exponentially.
5211 # Worse, since 9x/ME are not pre-emptively multitasking,
5212 # you end up with a "frozen" computer, even though with patience
5213 # the test eventually succeeds (with a max line length of 256k).
5214 # Instead, let's just punt: use the minimum linelength reported by
5215 # all of the supported platforms: 8192 (on NT/2K/XP).
5216 lt_cv_sys_max_cmd_len=8192;
5220 # On AmigaOS with pdksh, this test takes hours, literally.
5221 # So we just punt and use a minimum line length of 8192.
5222 lt_cv_sys_max_cmd_len=8192;
5225 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5226 # This has been around since 386BSD, at least. Likely further.
5227 if test -x /sbin/sysctl; then
5228 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5229 elif test -x /usr/sbin/sysctl; then
5230 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5232 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5234 # And add a safety zone
5235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5240 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5241 lt_cv_sys_max_cmd_len=196608
5245 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5246 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5247 # nice to cause kernel panics so lets avoid the loop below.
5248 # First set a reasonable default.
5249 lt_cv_sys_max_cmd_len=16384
5251 if test -x /sbin/sysconfig; then
5252 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5253 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5258 lt_cv_sys_max_cmd_len=102400
5260 sysv5* | sco5v6* | sysv4.2uw2*)
5261 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5262 if test -n "$kargmax"; then
5263 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5265 lt_cv_sys_max_cmd_len=32768
5269 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5270 if test -n "$lt_cv_sys_max_cmd_len"; then
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5274 # Make teststring a little bigger before we do anything with it.
5275 # a 1K string should be a reasonable start.
5276 for i in 1 2 3 4 5 6 7 8 ; do
5277 teststring=$teststring$teststring
5279 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5280 # If test is not a shell built-in, we'll probably end up computing a
5281 # maximum length that is only half of the actual maximum length, but
5283 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5284 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5285 test $i != 17 # 1/2 MB should be enough
5288 teststring=$teststring$teststring
5290 # Only check the string length outside the loop.
5291 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5293 # Add a significant safety factor because C++ compilers can tack on
5294 # massive amounts of additional arguments before passing them to the
5295 # linker. It appears as though 1/2 is a usable value.
5296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5303 if test -n $lt_cv_sys_max_cmd_len ; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5305 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5308 $as_echo "none" >&6; }
5310 max_cmd_len=$lt_cv_sys_max_cmd_len
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5322 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5323 # Try some XSI features
5326 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5328 && eval 'test $(( 1 + 1 )) -eq 2 \
5329 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5332 $as_echo "$xsi_shell" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5336 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5338 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5340 && lt_shell_append=yes
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5342 $as_echo "$lt_shell_append" >&6; }
5345 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5355 # test EBCDIC or ASCII
5356 case `echo X|tr X '\101'` in
5357 A) # ASCII based system
5358 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5359 lt_SP2NL='tr \040 \012'
5360 lt_NL2SP='tr \015\012 \040\040'
5362 *) # EBCDIC based system
5363 lt_SP2NL='tr \100 \n'
5364 lt_NL2SP='tr \r\n \100\100'
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5377 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5378 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5381 lt_cv_ld_reload_flag='-r'
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5384 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5385 reload_flag=$lt_cv_ld_reload_flag
5386 case $reload_flag in
5388 *) reload_flag=" $reload_flag" ;;
5390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5393 if test "$GCC" = yes; then
5394 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5417 if test -n "$OBJDUMP"; then
5418 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 OBJDUMP=$ac_cv_prog_OBJDUMP
5438 if test -n "$OBJDUMP"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5440 $as_echo "$OBJDUMP" >&6; }
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5448 if test -z "$ac_cv_prog_OBJDUMP"; then
5449 ac_ct_OBJDUMP=$OBJDUMP
5450 # Extract the first word of "objdump", so it can be a program name with args.
5451 set dummy objdump; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5457 if test -n "$ac_ct_OBJDUMP"; then
5458 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5478 if test -n "$ac_ct_OBJDUMP"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5480 $as_echo "$ac_ct_OBJDUMP" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5486 if test "x$ac_ct_OBJDUMP" = x; then
5489 case $cross_compiling:$ac_tool_warned in
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5495 OBJDUMP=$ac_ct_OBJDUMP
5498 OBJDUMP="$ac_cv_prog_OBJDUMP"
5501 test -z "$OBJDUMP" && OBJDUMP=objdump
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5509 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5510 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5513 lt_cv_file_magic_cmd='$MAGIC_CMD'
5514 lt_cv_file_magic_test_file=
5515 lt_cv_deplibs_check_method='unknown'
5516 # Need to set the preceding variable on all platforms that support
5517 # interlibrary dependencies.
5518 # 'none' -- dependencies not supported.
5519 # `unknown' -- same as none, but documents that we really don't know.
5520 # 'pass_all' -- all dependencies passed with no checks.
5521 # 'test_compile' -- check by making test program.
5522 # 'file_magic [[regex]]' -- check by looking for files in library path
5523 # which responds to the $file_magic_cmd with a given extended regex.
5524 # If you have `file' or equivalent on your system and you're not sure
5525 # whether `pass_all' will *always* work, you probably want this one.
5529 lt_cv_deplibs_check_method=pass_all
5533 lt_cv_deplibs_check_method=pass_all
5537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5538 lt_cv_file_magic_cmd='/usr/bin/file -L'
5539 lt_cv_file_magic_test_file=/shlib/libc.so
5543 # func_win32_libid is a shell function defined in ltmain.sh
5544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545 lt_cv_file_magic_cmd='func_win32_libid'
5549 # Base MSYS/MinGW do not provide the 'file' command needed by
5550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5551 # unless we find 'file', for example because we are cross-compiling.
5552 if ( file / ) >/dev/null 2>&1; then
5553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5554 lt_cv_file_magic_cmd='func_win32_libid'
5556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5557 lt_cv_file_magic_cmd='$OBJDUMP -f'
5562 # use the weaker test based on 'objdump'. See mingw*.
5563 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5564 lt_cv_file_magic_cmd='$OBJDUMP -f'
5567 darwin* | rhapsody*)
5568 lt_cv_deplibs_check_method=pass_all
5571 freebsd* | dragonfly*)
5572 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5575 # Not sure whether the presence of OpenBSD here was a mistake.
5576 # Let's accept both of them until this is cleared up.
5577 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5578 lt_cv_file_magic_cmd=/usr/bin/file
5579 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5583 lt_cv_deplibs_check_method=pass_all
5588 lt_cv_deplibs_check_method=pass_all
5591 hpux10.20* | hpux11*)
5592 lt_cv_file_magic_cmd=/usr/bin/file
5595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5596 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5600 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5604 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5610 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5614 irix5* | irix6* | nonstopux*)
5616 *-32|*"-32 ") libmagic=32-bit;;
5617 *-n32|*"-n32 ") libmagic=N32;;
5618 *-64|*"-64 ") libmagic=64-bit;;
5619 *) libmagic=never-match;;
5621 lt_cv_deplibs_check_method=pass_all
5624 # This must be Linux ELF.
5625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5626 lt_cv_deplibs_check_method=pass_all
5629 netbsd* | netbsdelf*-gnu)
5630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5639 lt_cv_file_magic_cmd=/usr/bin/file
5640 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5644 lt_cv_deplibs_check_method=pass_all
5648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5655 osf3* | osf4* | osf5*)
5656 lt_cv_deplibs_check_method=pass_all
5660 lt_cv_deplibs_check_method=pass_all
5664 lt_cv_deplibs_check_method=pass_all
5667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5668 lt_cv_deplibs_check_method=pass_all
5672 case $host_vendor in
5674 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]'
5675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5678 lt_cv_deplibs_check_method=pass_all
5681 lt_cv_file_magic_cmd='/bin/file'
5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5685 lt_cv_file_magic_cmd='/bin/file'
5686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5687 lt_cv_file_magic_test_file=/lib/libc.so
5690 lt_cv_deplibs_check_method=pass_all
5693 lt_cv_deplibs_check_method=pass_all
5699 lt_cv_deplibs_check_method=pass_all
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5705 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5706 file_magic_cmd=$lt_cv_file_magic_cmd
5707 deplibs_check_method=$lt_cv_deplibs_check_method
5708 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5721 if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}ar; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if test "${ac_cv_prog_AR+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5729 if test -n "$AR"; then
5730 ac_cv_prog_AR="$AR" # Let the user override the test.
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739 ac_cv_prog_AR="${ac_tool_prefix}ar"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 if test -n "$AR"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5752 $as_echo "$AR" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5760 if test -z "$ac_cv_prog_AR"; then
5762 # Extract the first word of "ar", so it can be a program name with args.
5763 set dummy ar; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5769 if test -n "$ac_ct_AR"; then
5770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_prog_ac_ct_AR="ar"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5790 if test -n "$ac_ct_AR"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5792 $as_echo "$ac_ct_AR" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5798 if test "x$ac_ct_AR" = x; then
5801 case $cross_compiling:$ac_tool_warned in
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805 ac_tool_warned=yes ;;
5813 test -z "$AR" && AR=ar
5814 test -z "$AR_FLAGS" && AR_FLAGS=cru
5826 if test -n "$ac_tool_prefix"; then
5827 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5828 set dummy ${ac_tool_prefix}strip; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if test "${ac_cv_prog_STRIP+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5834 if test -n "$STRIP"; then
5835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 STRIP=$ac_cv_prog_STRIP
5855 if test -n "$STRIP"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5857 $as_echo "$STRIP" >&6; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5865 if test -z "$ac_cv_prog_STRIP"; then
5867 # Extract the first word of "strip", so it can be a program name with args.
5868 set dummy strip; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5874 if test -n "$ac_ct_STRIP"; then
5875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_prog_ac_ct_STRIP="strip"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5895 if test -n "$ac_ct_STRIP"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5897 $as_echo "$ac_ct_STRIP" >&6; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5903 if test "x$ac_ct_STRIP" = x; then
5906 case $cross_compiling:$ac_tool_warned in
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5910 ac_tool_warned=yes ;;
5915 STRIP="$ac_cv_prog_STRIP"
5918 test -z "$STRIP" && STRIP=:
5925 if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5933 if test -n "$RANLIB"; then
5934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 RANLIB=$ac_cv_prog_RANLIB
5954 if test -n "$RANLIB"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5956 $as_echo "$RANLIB" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5964 if test -z "$ac_cv_prog_RANLIB"; then
5965 ac_ct_RANLIB=$RANLIB
5966 # Extract the first word of "ranlib", so it can be a program name with args.
5967 set dummy ranlib; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5973 if test -n "$ac_ct_RANLIB"; then
5974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_prog_ac_ct_RANLIB="ranlib"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5994 if test -n "$ac_ct_RANLIB"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5996 $as_echo "$ac_ct_RANLIB" >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6002 if test "x$ac_ct_RANLIB" = x; then
6005 case $cross_compiling:$ac_tool_warned in
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6011 RANLIB=$ac_ct_RANLIB
6014 RANLIB="$ac_cv_prog_RANLIB"
6017 test -z "$RANLIB" && RANLIB=:
6024 # Determine commands to create old-style static archives.
6025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6026 old_postinstall_cmds='chmod 644 $oldlib'
6027 old_postuninstall_cmds=
6029 if test -n "$RANLIB"; then
6032 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6035 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6074 # If no C compiler was specified, use CC.
6077 # If no C compiler flags were specified, use CFLAGS.
6078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6080 # Allow CC to be a program name with arguments.
6084 # Check for command to grab the raw symbol name followed by C symbol from nm.
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6086 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6087 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6088 $as_echo_n "(cached) " >&6
6091 # These are sane defaults that work on at least a few old systems.
6092 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6094 # Character class describing NM global symbol codes.
6095 symcode='[BCDEGRST]'
6097 # Regexp to match symbols that can be accessed directly from C.
6098 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6100 # Define system-specific variables.
6105 cygwin* | mingw* | pw32* | cegcc*)
6106 symcode='[ABCDGISTW]'
6109 if test "$host_cpu" = ia64; then
6110 symcode='[ABCDEGRST]'
6114 symcode='[BCDEGRST]'
6117 symcode='[BCDEGQRST]'
6128 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6136 # If we're using GNU nm, then use its standard symbol codes.
6137 case `$NM -V 2>&1` in
6138 *GNU* | *'with BFD'*)
6139 symcode='[ABCDGIRSTW]' ;;
6142 # Transform an extracted symbol line into a proper C declaration.
6143 # Some systems (esp. on ia64) link data and code symbols differently,
6144 # so use this general approach.
6145 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6147 # Transform an extracted symbol line into symbol name and symbol address
6148 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6149 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'"
6151 # Handle CRLF in mingw tool chain
6155 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6159 # Try without a prefix underscore, then with it.
6160 for ac_symprfx in "" "_"; do
6162 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6163 symxfrm="\\1 $ac_symprfx\\2 \\2"
6165 # Write the raw and C identifiers.
6166 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6167 # Fake it for dumpbin and say T for any non-static function
6168 # and D for any global variable.
6169 # Also find C++ and __fastcall symbols from MSVC++,
6170 # which start with @ or ?.
6171 lt_cv_sys_global_symbol_pipe="$AWK '"\
6172 " {last_section=section; section=\$ 3};"\
6173 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6174 " \$ 0!~/External *\|/{next};"\
6175 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6176 " {if(hide[section]) next};"\
6177 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6178 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6179 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6180 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6181 " ' prfx=^$ac_symprfx"
6183 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6186 # Check to see that the pipe works correctly.
6190 cat > conftest.$ac_ext <<_LT_EOF
6195 void nm_test_func(void);
6196 void nm_test_func(void){}
6200 int main(){nm_test_var='a';nm_test_func();return(0);}
6203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6204 (eval $ac_compile) 2>&5
6206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207 test $ac_status = 0; }; then
6208 # Now try to grab the symbols.
6210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6211 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6214 test $ac_status = 0; } && test -s "$nlist"; then
6215 # Try sorting and uniquifying the output.
6216 if sort "$nlist" | uniq > "$nlist"T; then
6217 mv -f "$nlist"T "$nlist"
6222 # Make sure that we snagged all the symbols we need.
6223 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6224 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6225 cat <<_LT_EOF > conftest.$ac_ext
6231 # Now generate the symbol file.
6232 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6234 cat <<_LT_EOF >> conftest.$ac_ext
6236 /* The mapping between symbol names and symbols. */
6241 lt__PROGRAM__LTX_preloaded_symbols[] =
6243 { "@PROGRAM@", (void *) 0 },
6245 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6246 cat <<\_LT_EOF >> conftest.$ac_ext
6250 /* This works around a problem in FreeBSD linker */
6251 #ifdef FREEBSD_WORKAROUND
6252 static const void *lt_preloaded_setup() {
6253 return lt__PROGRAM__LTX_preloaded_symbols;
6261 # Now try linking the two files.
6262 mv conftest.$ac_objext conftstm.$ac_objext
6263 lt_save_LIBS="$LIBS"
6264 lt_save_CFLAGS="$CFLAGS"
6265 LIBS="conftstm.$ac_objext"
6266 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6268 (eval $ac_link) 2>&5
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6274 LIBS="$lt_save_LIBS"
6275 CFLAGS="$lt_save_CFLAGS"
6277 echo "cannot find nm_test_func in $nlist" >&5
6280 echo "cannot find nm_test_var in $nlist" >&5
6283 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6286 echo "$progname: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6289 rm -rf conftest* conftst*
6291 # Do not use the global_symbol_pipe unless it works.
6292 if test "$pipe_works" = yes; then
6295 lt_cv_sys_global_symbol_pipe=
6301 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6302 lt_cv_sys_global_symbol_to_cdecl=
6304 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6306 $as_echo "failed" >&6; }
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6309 $as_echo "ok" >&6; }
6333 # Check whether --enable-libtool-lock was given.
6334 if test "${enable_libtool_lock+set}" = set; then :
6335 enableval=$enable_libtool_lock;
6338 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6340 # Some flags need to be propagated to the compiler or linker for good
6344 # Find out which ABI we are using.
6345 echo 'int i;' > conftest.$ac_ext
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347 (eval $ac_compile) 2>&5
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }; then
6351 case `/usr/bin/file conftest.$ac_objext` in
6363 # Find out which ABI we are using.
6364 echo '#line 6364 "configure"' > conftest.$ac_ext
6365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6366 (eval $ac_compile) 2>&5
6368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369 test $ac_status = 0; }; then
6370 if test "$lt_cv_prog_gnu_ld" = yes; then
6371 case `/usr/bin/file conftest.$ac_objext` in
6373 LD="${LD-ld} -melf32bsmip"
6376 LD="${LD-ld} -melf32bmipn32"
6379 LD="${LD-ld} -melf64bmip"
6383 case `/usr/bin/file conftest.$ac_objext` in
6399 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6400 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6401 # Find out which ABI we are using.
6402 echo 'int i;' > conftest.$ac_ext
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 case `/usr/bin/file conftest.o` in
6411 x86_64-*kfreebsd*-gnu)
6412 LD="${LD-ld} -m elf_i386_fbsd"
6415 LD="${LD-ld} -m elf_i386"
6417 ppc64-*linux*|powerpc64-*linux*)
6418 LD="${LD-ld} -m elf32ppclinux"
6421 LD="${LD-ld} -m elf_s390"
6424 LD="${LD-ld} -m elf32_sparc"
6430 x86_64-*kfreebsd*-gnu)
6431 LD="${LD-ld} -m elf_x86_64_fbsd"
6434 LD="${LD-ld} -m elf_x86_64"
6436 ppc*-*linux*|powerpc*-*linux*)
6437 LD="${LD-ld} -m elf64ppc"
6439 s390*-*linux*|s390*-*tpf*)
6440 LD="${LD-ld} -m elf64_s390"
6443 LD="${LD-ld} -m elf64_sparc"
6453 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6454 SAVE_CFLAGS="$CFLAGS"
6455 CFLAGS="$CFLAGS -belf"
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6457 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6458 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6462 ac_cpp='$CPP $CPPFLAGS'
6463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6478 if ac_fn_c_try_link "$LINENO"; then :
6479 lt_cv_cc_needs_belf=yes
6481 lt_cv_cc_needs_belf=no
6483 rm -f core conftest.err conftest.$ac_objext \
6484 conftest$ac_exeext conftest.$ac_ext
6486 ac_cpp='$CPP $CPPFLAGS'
6487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6493 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6494 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6495 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6496 CFLAGS="$SAVE_CFLAGS"
6500 # Find out which ABI we are using.
6501 echo 'int i;' > conftest.$ac_ext
6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503 (eval $ac_compile) 2>&5
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
6507 case `/usr/bin/file conftest.o` in
6509 case $lt_cv_prog_gnu_ld in
6510 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6512 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6524 need_locks="$enable_libtool_lock"
6528 rhapsody* | darwin*)
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6537 if test -n "$DSYMUTIL"; then
6538 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6558 if test -n "$DSYMUTIL"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6560 $as_echo "$DSYMUTIL" >&6; }
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6568 if test -z "$ac_cv_prog_DSYMUTIL"; then
6569 ac_ct_DSYMUTIL=$DSYMUTIL
6570 # Extract the first word of "dsymutil", so it can be a program name with args.
6571 set dummy dsymutil; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6577 if test -n "$ac_ct_DSYMUTIL"; then
6578 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6598 if test -n "$ac_ct_DSYMUTIL"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6600 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6606 if test "x$ac_ct_DSYMUTIL" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6615 DSYMUTIL=$ac_ct_DSYMUTIL
6618 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6629 if test -n "$NMEDIT"; then
6630 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 NMEDIT=$ac_cv_prog_NMEDIT
6650 if test -n "$NMEDIT"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6652 $as_echo "$NMEDIT" >&6; }
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6660 if test -z "$ac_cv_prog_NMEDIT"; then
6661 ac_ct_NMEDIT=$NMEDIT
6662 # Extract the first word of "nmedit", so it can be a program name with args.
6663 set dummy nmedit; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6669 if test -n "$ac_ct_NMEDIT"; then
6670 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6690 if test -n "$ac_ct_NMEDIT"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6692 $as_echo "$ac_ct_NMEDIT" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6698 if test "x$ac_ct_NMEDIT" = x; then
6701 case $cross_compiling:$ac_tool_warned in
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6707 NMEDIT=$ac_ct_NMEDIT
6710 NMEDIT="$ac_cv_prog_NMEDIT"
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_LIPO+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6721 if test -n "$LIPO"; then
6722 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 LIPO=$ac_cv_prog_LIPO
6742 if test -n "$LIPO"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6744 $as_echo "$LIPO" >&6; }
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6752 if test -z "$ac_cv_prog_LIPO"; then
6754 # Extract the first word of "lipo", so it can be a program name with args.
6755 set dummy lipo; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6761 if test -n "$ac_ct_LIPO"; then
6762 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_ac_ct_LIPO="lipo"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6782 if test -n "$ac_ct_LIPO"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6784 $as_echo "$ac_ct_LIPO" >&6; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6790 if test "x$ac_ct_LIPO" = x; then
6793 case $cross_compiling:$ac_tool_warned in
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6802 LIPO="$ac_cv_prog_LIPO"
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}otool; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6813 if test -n "$OTOOL"; then
6814 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 OTOOL=$ac_cv_prog_OTOOL
6834 if test -n "$OTOOL"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6836 $as_echo "$OTOOL" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6844 if test -z "$ac_cv_prog_OTOOL"; then
6846 # Extract the first word of "otool", so it can be a program name with args.
6847 set dummy otool; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6853 if test -n "$ac_ct_OTOOL"; then
6854 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_ac_ct_OTOOL="otool"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6874 if test -n "$ac_ct_OTOOL"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6876 $as_echo "$ac_ct_OTOOL" >&6; }
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6882 if test "x$ac_ct_OTOOL" = x; then
6885 case $cross_compiling:$ac_tool_warned in
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6894 OTOOL="$ac_cv_prog_OTOOL"
6897 if test -n "$ac_tool_prefix"; then
6898 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6905 if test -n "$OTOOL64"; then
6906 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 OTOOL64=$ac_cv_prog_OTOOL64
6926 if test -n "$OTOOL64"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6928 $as_echo "$OTOOL64" >&6; }
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6936 if test -z "$ac_cv_prog_OTOOL64"; then
6937 ac_ct_OTOOL64=$OTOOL64
6938 # Extract the first word of "otool64", so it can be a program name with args.
6939 set dummy otool64; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6943 $as_echo_n "(cached) " >&6
6945 if test -n "$ac_ct_OTOOL64"; then
6946 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_prog_ac_ct_OTOOL64="otool64"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6966 if test -n "$ac_ct_OTOOL64"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6968 $as_echo "$ac_ct_OTOOL64" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6974 if test "x$ac_ct_OTOOL64" = x; then
6977 case $cross_compiling:$ac_tool_warned in
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6983 OTOOL64=$ac_ct_OTOOL64
6986 OTOOL64="$ac_cv_prog_OTOOL64"
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7016 $as_echo_n "checking for -single_module linker flag... " >&6; }
7017 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7020 lt_cv_apple_cc_single_mod=no
7021 if test -z "${LT_MULTI_MODULE}"; then
7022 # By default we will add the -single_module flag. You can override
7023 # by either setting the environment variable LT_MULTI_MODULE
7024 # non-empty at configure time, or by adding -multi_module to the
7026 rm -rf libconftest.dylib*
7027 echo "int foo(void){return 1;}" > conftest.c
7028 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7029 -dynamiclib -Wl,-single_module conftest.c" >&5
7030 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7031 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7033 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7034 lt_cv_apple_cc_single_mod=yes
7036 cat conftest.err >&5
7038 rm -rf libconftest.dylib*
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7043 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7045 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7046 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7049 lt_cv_ld_exported_symbols_list=no
7050 save_LDFLAGS=$LDFLAGS
7051 echo "_main" > conftest.sym
7052 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7064 if ac_fn_c_try_link "$LINENO"; then :
7065 lt_cv_ld_exported_symbols_list=yes
7067 lt_cv_ld_exported_symbols_list=no
7069 rm -f core conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071 LDFLAGS="$save_LDFLAGS"
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7075 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7077 rhapsody* | darwin1.[012])
7078 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7080 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7081 darwin*) # darwin 5.x on
7082 # if running on 10.5 or later, the deployment target defaults
7083 # to the OS version, if on x86, and 10.4, the deployment
7084 # target defaults to 10.4. Don't you love it?
7085 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7086 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7087 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7089 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7095 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7096 _lt_dar_single_mod='$single_module'
7098 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7099 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7101 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7103 if test "$DSYMUTIL" != ":"; then
7104 _lt_dsymutil='~$DSYMUTIL $lib || :'
7111 for ac_header in dlfcn.h
7113 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7115 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7116 cat >>confdefs.h <<_ACEOF
7117 #define HAVE_DLFCN_H 1
7128 # Check whether --enable-static was given.
7129 if test "${enable_static+set}" = set; then :
7130 enableval=$enable_static; p=${PACKAGE-default}
7132 yes) enable_static=yes ;;
7133 no) enable_static=no ;;
7136 # Look at the argument we got. We use all the common list separators.
7137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7138 for pkg in $enableval; do
7140 if test "X$pkg" = "X$p"; then
7157 enable_win32_dll=yes
7160 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}as; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if test "${ac_cv_prog_AS+set}" = set; then :
7167 $as_echo_n "(cached) " >&6
7169 if test -n "$AS"; then
7170 ac_cv_prog_AS="$AS" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_prog_AS="${ac_tool_prefix}as"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 if test -n "$AS"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7192 $as_echo "$AS" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7200 if test -z "$ac_cv_prog_AS"; then
7202 # Extract the first word of "as", so it can be a program name with args.
7203 set dummy as; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$ac_ct_AS"; then
7210 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_ac_ct_AS="as"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7230 if test -n "$ac_ct_AS"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7232 $as_echo "$ac_ct_AS" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7238 if test "x$ac_ct_AS" = x; then
7241 case $cross_compiling:$ac_tool_warned in
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7261 if test -n "$DLLTOOL"; then
7262 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 DLLTOOL=$ac_cv_prog_DLLTOOL
7282 if test -n "$DLLTOOL"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7284 $as_echo "$DLLTOOL" >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7292 if test -z "$ac_cv_prog_DLLTOOL"; then
7293 ac_ct_DLLTOOL=$DLLTOOL
7294 # Extract the first word of "dlltool", so it can be a program name with args.
7295 set dummy dlltool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$ac_ct_DLLTOOL"; then
7302 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7322 if test -n "$ac_ct_DLLTOOL"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7324 $as_echo "$ac_ct_DLLTOOL" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7330 if test "x$ac_ct_DLLTOOL" = x; then
7333 case $cross_compiling:$ac_tool_warned in
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7339 DLLTOOL=$ac_ct_DLLTOOL
7342 DLLTOOL="$ac_cv_prog_DLLTOOL"
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7353 if test -n "$OBJDUMP"; then
7354 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 OBJDUMP=$ac_cv_prog_OBJDUMP
7374 if test -n "$OBJDUMP"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7376 $as_echo "$OBJDUMP" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7384 if test -z "$ac_cv_prog_OBJDUMP"; then
7385 ac_ct_OBJDUMP=$OBJDUMP
7386 # Extract the first word of "objdump", so it can be a program name with args.
7387 set dummy objdump; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$ac_ct_OBJDUMP"; then
7394 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7414 if test -n "$ac_ct_OBJDUMP"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7416 $as_echo "$ac_ct_OBJDUMP" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7422 if test "x$ac_ct_OBJDUMP" = x; then
7425 case $cross_compiling:$ac_tool_warned in
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7431 OBJDUMP=$ac_ct_OBJDUMP
7434 OBJDUMP="$ac_cv_prog_OBJDUMP"
7440 test -z "$AS" && AS=as
7446 test -z "$DLLTOOL" && DLLTOOL=dlltool
7452 test -z "$OBJDUMP" && OBJDUMP=objdump
7462 # Check whether --enable-shared was given.
7463 if test "${enable_shared+set}" = set; then :
7464 enableval=$enable_shared; p=${PACKAGE-default}
7466 yes) enable_shared=yes ;;
7467 no) enable_shared=no ;;
7470 # Look at the argument we got. We use all the common list separators.
7471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7472 for pkg in $enableval; do
7474 if test "X$pkg" = "X$p"; then
7495 # Check whether --with-pic was given.
7496 if test "${with_pic+set}" = set; then :
7497 withval=$with_pic; pic_mode="$withval"
7503 test -z "$pic_mode" && pic_mode=default
7511 # Check whether --enable-fast-install was given.
7512 if test "${enable_fast_install+set}" = set; then :
7513 enableval=$enable_fast_install; p=${PACKAGE-default}
7515 yes) enable_fast_install=yes ;;
7516 no) enable_fast_install=no ;;
7518 enable_fast_install=no
7519 # Look at the argument we got. We use all the common list separators.
7520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7521 for pkg in $enableval; do
7523 if test "X$pkg" = "X$p"; then
7524 enable_fast_install=yes
7531 enable_fast_install=yes
7544 # This can be used to rebuild libtool when needed
7545 LIBTOOL_DEPS="$ltmain"
7547 # Always use our own libtool.
7548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7574 test -z "$LN_S" && LN_S="ln -s"
7589 if test -n "${ZSH_VERSION+set}" ; then
7590 setopt NO_GLOB_SUBST
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7594 $as_echo_n "checking for objdir... " >&6; }
7595 if test "${lt_cv_objdir+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7598 rm -f .libs 2>/dev/null
7599 mkdir .libs 2>/dev/null
7600 if test -d .libs; then
7603 # MS-DOS does not allow filenames that begin with a dot.
7606 rmdir .libs 2>/dev/null
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7609 $as_echo "$lt_cv_objdir" >&6; }
7610 objdir=$lt_cv_objdir
7616 cat >>confdefs.h <<_ACEOF
7617 #define LT_OBJDIR "$lt_cv_objdir/"
7638 # AIX sometimes has problems with the GCC collect2 program. For some
7639 # reason, if we set the COLLECT_NAMES environment variable, the problems
7640 # vanish in a puff of smoke.
7641 if test "X${COLLECT_NAMES+set}" != Xset; then
7643 export COLLECT_NAMES
7648 # Sed substitution that helps us do robust quoting. It backslashifies
7649 # metacharacters that are still active within double-quoted strings.
7650 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7652 # Same as above, but do not quote variable references.
7653 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7655 # Sed substitution to delay expansion of an escaped shell variable in a
7656 # double_quote_subst'ed string.
7657 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7659 # Sed substitution to delay expansion of an escaped single quote.
7660 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7662 # Sed substitution to avoid accidental globbing in evaled expressions
7663 no_glob_subst='s/\*/\\\*/g'
7667 can_build_shared=yes
7669 # All known linkers require a `.a' archive for static linking (except MSVC,
7670 # which needs '.lib').
7673 with_gnu_ld="$lt_cv_prog_gnu_ld"
7676 old_CFLAGS="$CFLAGS"
7678 # Set sane defaults for various variables
7679 test -z "$CC" && CC=cc
7680 test -z "$LTCC" && LTCC=$CC
7681 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7682 test -z "$LD" && LD=ld
7683 test -z "$ac_objext" && ac_objext=o
7685 for cc_temp in $compiler""; do
7687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7693 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7696 # Only perform the check for file, if the check method requires it
7697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7698 case $deplibs_check_method in
7700 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7702 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7711 lt_save_MAGIC_CMD="$MAGIC_CMD"
7712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7714 for ac_dir in $ac_dummy; do
7716 test -z "$ac_dir" && ac_dir=.
7717 if test -f $ac_dir/${ac_tool_prefix}file; then
7718 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7719 if test -n "$file_magic_test_file"; then
7720 case $deplibs_check_method in
7722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7725 $EGREP "$file_magic_regex" > /dev/null; then
7730 *** Warning: the command libtool uses to detect shared libraries,
7731 *** $file_magic_cmd, produces output that libtool cannot recognize.
7732 *** The result is that libtool may fail to recognize shared libraries
7733 *** as such. This will affect the creation of libtool libraries that
7734 *** depend on shared libraries, but programs linked with such libtool
7735 *** libraries will work regardless of this problem. Nevertheless, you
7736 *** may want to report the problem to your system manager and/or to
7737 *** bug-libtool@gnu.org
7747 MAGIC_CMD="$lt_save_MAGIC_CMD"
7752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7753 if test -n "$MAGIC_CMD"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7755 $as_echo "$MAGIC_CMD" >&6; }
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7765 if test -z "$lt_cv_path_MAGIC_CMD"; then
7766 if test -n "$ac_tool_prefix"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7768 $as_echo_n "checking for file... " >&6; }
7769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7777 lt_save_MAGIC_CMD="$MAGIC_CMD"
7778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7780 for ac_dir in $ac_dummy; do
7782 test -z "$ac_dir" && ac_dir=.
7783 if test -f $ac_dir/file; then
7784 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7785 if test -n "$file_magic_test_file"; then
7786 case $deplibs_check_method in
7788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7791 $EGREP "$file_magic_regex" > /dev/null; then
7796 *** Warning: the command libtool uses to detect shared libraries,
7797 *** $file_magic_cmd, produces output that libtool cannot recognize.
7798 *** The result is that libtool may fail to recognize shared libraries
7799 *** as such. This will affect the creation of libtool libraries that
7800 *** depend on shared libraries, but programs linked with such libtool
7801 *** libraries will work regardless of this problem. Nevertheless, you
7802 *** may want to report the problem to your system manager and/or to
7803 *** bug-libtool@gnu.org
7813 MAGIC_CMD="$lt_save_MAGIC_CMD"
7818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7819 if test -n "$MAGIC_CMD"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7821 $as_echo "$MAGIC_CMD" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7837 # Use C for the default configuration in the libtool script
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847 # Source file extension for C test sources.
7850 # Object file extension for compiled C test sources.
7854 # Code to be used in simple compile tests
7855 lt_simple_compile_test_code="int some_variable = 0;"
7857 # Code to be used in simple link tests
7858 lt_simple_link_test_code='int main(){return(0);}'
7866 # If no C compiler was specified, use CC.
7869 # If no C compiler flags were specified, use CFLAGS.
7870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7872 # Allow CC to be a program name with arguments.
7875 # Save the default compiler, since it gets overwritten when the other
7876 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7877 compiler_DEFAULT=$CC
7879 # save warnings/boilerplate of simple test code
7880 ac_outfile=conftest.$ac_objext
7881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7883 _lt_compiler_boilerplate=`cat conftest.err`
7886 ac_outfile=conftest.$ac_objext
7887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7889 _lt_linker_boilerplate=`cat conftest.err`
7894 ## There is no encapsulation within the following macros, do not change
7895 ## the running order or otherwise move them around unless you know exactly
7896 ## what you are doing...
7897 if test -n "$compiler"; then
7899 lt_prog_compiler_no_builtin_flag=
7901 if test "$GCC" = yes; then
7902 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7906 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
7909 lt_cv_prog_compiler_rtti_exceptions=no
7910 ac_outfile=conftest.$ac_objext
7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912 lt_compiler_flag="-fno-rtti -fno-exceptions"
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" | $SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
7922 (eval echo "\"\$as_me:7922: $lt_compile\"" >&5)
7923 (eval "$lt_compile" 2>conftest.err)
7925 cat conftest.err >&5
7926 echo "$as_me:7926: \$? = $ac_status" >&5
7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
7930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_rtti_exceptions=yes
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7942 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7955 lt_prog_compiler_wl=
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_static=
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7960 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7962 if test "$GCC" = yes; then
7963 lt_prog_compiler_wl='-Wl,'
7964 lt_prog_compiler_static='-static'
7968 # All AIX code is PIC.
7969 if test "$host_cpu" = ia64; then
7970 # AIX 5 now supports IA64 processor
7971 lt_prog_compiler_static='-Bstatic'
7978 # see comment about AmigaOS4 .so support
7979 lt_prog_compiler_pic='-fPIC'
7982 # FIXME: we need at least 68020 code to build shared libraries, but
7983 # adding the `-m68020' flag to GCC prevents building anything better,
7985 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7990 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7991 # PIC is the default for these OSes.
7994 mingw* | cygwin* | pw32* | os2* | cegcc*)
7995 # This hack is so that the source file can tell whether it is being
7996 # built for inclusion in a dll (and should export symbols for example).
7997 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7998 # (--disable-auto-import) libraries
7999 lt_prog_compiler_pic='-DDLL_EXPORT'
8002 darwin* | rhapsody*)
8003 # PIC is the default on this platform
8004 # Common symbols not allowed in MH_DYLIB files
8005 lt_prog_compiler_pic='-fno-common'
8009 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8010 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8011 # sets the default TLS model and affects inlining.
8017 lt_prog_compiler_pic='-fPIC'
8023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8024 # Instead, we relocate shared libraries at runtime.
8028 # Just because we use GCC doesn't mean we suddenly get shared libraries
8029 # on systems that don't support them.
8030 lt_prog_compiler_can_build_shared=no
8035 # QNX uses GNU C++, but need to define -shared option too, otherwise
8037 lt_prog_compiler_pic='-fPIC -shared'
8041 if test -d /usr/nec; then
8042 lt_prog_compiler_pic=-Kconform_pic
8047 lt_prog_compiler_pic='-fPIC'
8051 # PORTME Check for flag to pass linker flags through the system compiler.
8054 lt_prog_compiler_wl='-Wl,'
8055 if test "$host_cpu" = ia64; then
8056 # AIX 5 now supports IA64 processor
8057 lt_prog_compiler_static='-Bstatic'
8059 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8063 mingw* | cygwin* | pw32* | os2* | cegcc*)
8064 # This hack is so that the source file can tell whether it is being
8065 # built for inclusion in a dll (and should export symbols for example).
8066 lt_prog_compiler_pic='-DDLL_EXPORT'
8069 hpux9* | hpux10* | hpux11*)
8070 lt_prog_compiler_wl='-Wl,'
8071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8078 lt_prog_compiler_pic='+Z'
8081 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8082 lt_prog_compiler_static='${wl}-a ${wl}archive'
8085 irix5* | irix6* | nonstopux*)
8086 lt_prog_compiler_wl='-Wl,'
8087 # PIC (with -KPIC) is the default.
8088 lt_prog_compiler_static='-non_shared'
8091 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8092 case $cc_basename in
8093 # old Intel for x86_64 which still supported -KPIC.
8095 lt_prog_compiler_wl='-Wl,'
8096 lt_prog_compiler_pic='-KPIC'
8097 lt_prog_compiler_static='-static'
8099 # icc used to be incompatible with GCC.
8100 # ICC 10 doesn't accept -KPIC any more.
8102 lt_prog_compiler_wl='-Wl,'
8103 lt_prog_compiler_pic='-fPIC'
8104 lt_prog_compiler_static='-static'
8106 # Lahey Fortran 8.1.
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_pic='--shared'
8110 lt_prog_compiler_static='--static'
8112 pgcc* | pgf77* | pgf90* | pgf95*)
8113 # Portland Group compilers (*not* the Pentium gcc compiler,
8114 # which looks to be a dead project)
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_pic='-fpic'
8117 lt_prog_compiler_static='-Bstatic'
8120 lt_prog_compiler_wl='-Wl,'
8121 # All Alpha code is PIC.
8122 lt_prog_compiler_static='-non_shared'
8125 # IBM XL C 8.0/Fortran 10.1 on PPC
8126 lt_prog_compiler_wl='-Wl,'
8127 lt_prog_compiler_pic='-qpic'
8128 lt_prog_compiler_static='-qstaticlink'
8131 case `$CC -V 2>&1 | sed 5q` in
8134 lt_prog_compiler_pic='-KPIC'
8135 lt_prog_compiler_static='-Bstatic'
8136 lt_prog_compiler_wl='-Wl,'
8139 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8140 lt_prog_compiler_pic='-KPIC'
8141 lt_prog_compiler_static='-Bstatic'
8142 lt_prog_compiler_wl=''
8150 lt_prog_compiler_pic='-KPIC'
8151 lt_prog_compiler_static='-Bstatic'
8155 # QNX uses GNU C++, but need to define -shared option too, otherwise
8157 lt_prog_compiler_pic='-fPIC -shared'
8160 osf3* | osf4* | osf5*)
8161 lt_prog_compiler_wl='-Wl,'
8162 # All OSF/1 code is PIC.
8163 lt_prog_compiler_static='-non_shared'
8167 lt_prog_compiler_static='-non_shared'
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-Bstatic'
8173 case $cc_basename in
8175 lt_prog_compiler_wl='-Qoption ld ';;
8177 lt_prog_compiler_wl='-Wl,';;
8182 lt_prog_compiler_wl='-Qoption ld '
8183 lt_prog_compiler_pic='-PIC'
8184 lt_prog_compiler_static='-Bstatic'
8187 sysv4 | sysv4.2uw2* | sysv4.3*)
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8194 if test -d /usr/nec ;then
8195 lt_prog_compiler_pic='-Kconform_pic'
8196 lt_prog_compiler_static='-Bstatic'
8200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-KPIC'
8203 lt_prog_compiler_static='-Bstatic'
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_can_build_shared=no
8212 lt_prog_compiler_pic='-pic'
8213 lt_prog_compiler_static='-Bstatic'
8217 lt_prog_compiler_can_build_shared=no
8223 # For platforms which do not support PIC, -DPIC is meaningless:
8225 lt_prog_compiler_pic=
8228 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8232 $as_echo "$lt_prog_compiler_pic" >&6; }
8240 # Check to make sure the PIC flag actually works.
8242 if test -n "$lt_prog_compiler_pic"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8245 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8248 lt_cv_prog_compiler_pic_works=no
8249 ac_outfile=conftest.$ac_objext
8250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8251 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8252 # Insert the option either (1) after the last *FLAGS variable, or
8253 # (2) before a word containing "conftest.", or (3) at the end.
8254 # Note that $ac_compile itself does not contain backslashes and begins
8255 # with a dollar sign (not a hyphen), so the echo should work correctly.
8256 # The option is referenced via a variable to avoid confusing sed.
8257 lt_compile=`echo "$ac_compile" | $SED \
8258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8260 -e 's:$: $lt_compiler_flag:'`
8261 (eval echo "\"\$as_me:8261: $lt_compile\"" >&5)
8262 (eval "$lt_compile" 2>conftest.err)
8264 cat conftest.err >&5
8265 echo "$as_me:8265: \$? = $ac_status" >&5
8266 if (exit $ac_status) && test -s "$ac_outfile"; then
8267 # The compiler can only warn and ignore the option if not recognized
8268 # So say no if there are warnings other than the usual output.
8269 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8272 lt_cv_prog_compiler_pic_works=yes
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8279 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8281 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8282 case $lt_prog_compiler_pic in
8284 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8287 lt_prog_compiler_pic=
8288 lt_prog_compiler_can_build_shared=no
8299 # Check to make sure the static flag actually works.
8301 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8303 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8304 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
8307 lt_cv_prog_compiler_static_works=no
8308 save_LDFLAGS="$LDFLAGS"
8309 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8310 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8312 # The linker can only warn and ignore the option if not recognized
8313 # So say no if there are warnings
8314 if test -s conftest.err; then
8315 # Append any errors to the config.log.
8316 cat conftest.err 1>&5
8317 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8319 if diff conftest.exp conftest.er2 >/dev/null; then
8320 lt_cv_prog_compiler_static_works=yes
8323 lt_cv_prog_compiler_static_works=yes
8327 LDFLAGS="$save_LDFLAGS"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8331 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8333 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8336 lt_prog_compiler_static=
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8346 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8347 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8350 lt_cv_prog_compiler_c_o=no
8351 $RM -r conftest 2>/dev/null
8355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8357 lt_compiler_flag="-o out/conftest2.$ac_objext"
8358 # Insert the option either (1) after the last *FLAGS variable, or
8359 # (2) before a word containing "conftest.", or (3) at the end.
8360 # Note that $ac_compile itself does not contain backslashes and begins
8361 # with a dollar sign (not a hyphen), so the echo should work correctly.
8362 lt_compile=`echo "$ac_compile" | $SED \
8363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8365 -e 's:$: $lt_compiler_flag:'`
8366 (eval echo "\"\$as_me:8366: $lt_compile\"" >&5)
8367 (eval "$lt_compile" 2>out/conftest.err)
8369 cat out/conftest.err >&5
8370 echo "$as_me:8370: \$? = $ac_status" >&5
8371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8373 # The compiler can only warn and ignore the option if not recognized
8374 # So say no if there are warnings
8375 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8378 lt_cv_prog_compiler_c_o=yes
8383 # SGI C++ compiler will create directory out/ii_files/ for
8384 # template instantiation
8385 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8386 $RM out/* && rmdir out
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8393 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8402 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
8405 lt_cv_prog_compiler_c_o=no
8406 $RM -r conftest 2>/dev/null
8410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8412 lt_compiler_flag="-o out/conftest2.$ac_objext"
8413 # Insert the option either (1) after the last *FLAGS variable, or
8414 # (2) before a word containing "conftest.", or (3) at the end.
8415 # Note that $ac_compile itself does not contain backslashes and begins
8416 # with a dollar sign (not a hyphen), so the echo should work correctly.
8417 lt_compile=`echo "$ac_compile" | $SED \
8418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8420 -e 's:$: $lt_compiler_flag:'`
8421 (eval echo "\"\$as_me:8421: $lt_compile\"" >&5)
8422 (eval "$lt_compile" 2>out/conftest.err)
8424 cat out/conftest.err >&5
8425 echo "$as_me:8425: \$? = $ac_status" >&5
8426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8428 # The compiler can only warn and ignore the option if not recognized
8429 # So say no if there are warnings
8430 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8433 lt_cv_prog_compiler_c_o=yes
8438 # SGI C++ compiler will create directory out/ii_files/ for
8439 # template instantiation
8440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8441 $RM out/* && rmdir out
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8448 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8453 hard_links="nottested"
8454 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8455 # do not overwrite the value of need_locks provided by the user
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8457 $as_echo_n "checking if we can lock with hard links... " >&6; }
8460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8462 ln conftest.a conftest.b 2>&5 || hard_links=no
8463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8465 $as_echo "$hard_links" >&6; }
8466 if test "$hard_links" = no; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8468 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8484 allow_undefined_flag=
8485 always_export_symbols=no
8487 archive_expsym_cmds=
8488 compiler_needs_object=no
8489 enable_shared_with_static_runtimes=no
8490 export_dynamic_flag_spec=
8491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8492 hardcode_automatic=no
8494 hardcode_direct_absolute=no
8495 hardcode_libdir_flag_spec=
8496 hardcode_libdir_flag_spec_ld=
8497 hardcode_libdir_separator=
8499 hardcode_shlibpath_var=unsupported
8501 link_all_deplibs=unknown
8504 old_archive_from_new_cmds=
8505 old_archive_from_expsyms_cmds=
8506 thread_safe_flag_spec=
8507 whole_archive_flag_spec=
8508 # include_expsyms should be a list of space-separated symbols to be *always*
8509 # included in the symbol list
8511 # exclude_expsyms can be an extended regexp of symbols to exclude
8512 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8513 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8514 # as well as any symbol that contains `d'.
8515 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8516 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8517 # platforms (ab)use it in PIC code, but their linkers get confused if
8518 # the symbol is explicitly referenced. Since portable code cannot
8519 # rely on this symbol name, it's probably fine to never include it in
8520 # preloaded symbol tables.
8521 # Exclude shared library initialization/finalization symbols.
8522 extract_expsyms_cmds=
8525 cygwin* | mingw* | pw32* | cegcc*)
8526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8527 # When not using gcc, we currently assume that we are using
8528 # Microsoft Visual C++.
8529 if test "$GCC" != yes; then
8534 # we just hope/assume this is gcc and not c89 (= MSVC++)
8540 linux* | k*bsd*-gnu)
8546 if test "$with_gnu_ld" = yes; then
8547 # If archive_cmds runs LD, not CC, wlarc should be empty
8550 # Set some defaults for GNU ld with shared library support. These
8551 # are reset later if shared libraries are not supported. Putting them
8552 # here allows them to be overridden if necessary.
8553 runpath_var=LD_RUN_PATH
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 export_dynamic_flag_spec='${wl}--export-dynamic'
8556 # ancient GNU ld didn't support --whole-archive et. al.
8557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8560 whole_archive_flag_spec=
8562 supports_anon_versioning=no
8563 case `$LD -v 2>&1` in
8564 *GNU\ gold*) supports_anon_versioning=yes ;;
8565 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8566 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8567 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8568 *\ 2.11.*) ;; # other 2.11 versions
8569 *) supports_anon_versioning=yes ;;
8572 # See if GNU ld supports shared libraries.
8575 # On AIX/PPC, the GNU linker is very broken
8576 if test "$host_cpu" != ia64; then
8580 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8581 *** to be unable to reliably create shared libraries on AIX.
8582 *** Therefore, libtool is disabling shared libraries support. If you
8583 *** really care for shared libraries, you may want to modify your PATH
8584 *** so that a non-GNU linker is found, and then restart.
8593 # see comment about AmigaOS4 .so support
8594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595 archive_expsym_cmds=''
8598 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)'
8599 hardcode_libdir_flag_spec='-L$libdir'
8600 hardcode_minus_L=yes
8606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8607 allow_undefined_flag=unsupported
8608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8609 # support --undefined. This deserves some investigation. FIXME
8610 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 cygwin* | mingw* | pw32* | cegcc*)
8617 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8618 # as there is no search path for DLLs.
8619 hardcode_libdir_flag_spec='-L$libdir'
8620 allow_undefined_flag=unsupported
8621 always_export_symbols=no
8622 enable_shared_with_static_runtimes=yes
8623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8625 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8627 # If the export-symbols file already is a .def file (1st line
8628 # is EXPORTS), use it as is; otherwise, prepend...
8629 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8630 cp $export_symbols $output_objdir/$soname.def;
8632 echo EXPORTS > $output_objdir/$soname.def;
8633 cat $export_symbols >> $output_objdir/$soname.def;
8635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8643 hardcode_shlibpath_var=no
8644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8645 export_dynamic_flag_spec='${wl}-E'
8646 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8647 # Instead, shared libraries are loaded at an image base (0x10000000 by
8648 # default) and relocated if they conflict, which is a slow very memory
8649 # consuming and fragmenting process. To avoid this, we pick a random,
8650 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8651 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8653 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'
8656 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8658 if test "$host_os" = linux-dietlibc; then
8659 case $cc_basename in
8660 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8663 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8664 && test "$tmp_diet" = no
8667 tmp_sharedflag='-shared'
8668 case $cc_basename,$host_cpu in
8669 pgcc*) # Portland Group C compiler
8670 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8671 tmp_addflag=' $pic_flag'
8673 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8674 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8675 tmp_addflag=' $pic_flag -Mnomain' ;;
8676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8677 tmp_addflag=' -i_dynamic' ;;
8678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8679 tmp_addflag=' -i_dynamic -nofor_main' ;;
8680 ifc* | ifort*) # Intel Fortran compiler
8681 tmp_addflag=' -nofor_main' ;;
8682 lf95*) # Lahey Fortran 8.1
8683 whole_archive_flag_spec=
8684 tmp_sharedflag='--shared' ;;
8685 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8686 tmp_sharedflag='-qmkshrobj'
8689 case `$CC -V 2>&1 | sed 5q` in
8690 *Sun\ C*) # Sun C 5.9
8691 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8692 compiler_needs_object=yes
8693 tmp_sharedflag='-G' ;;
8694 *Sun\ F*) # Sun Fortran 8.3
8695 tmp_sharedflag='-G' ;;
8697 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 if test "x$supports_anon_versioning" = xyes; then
8700 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8702 echo "local: *; };" >> $output_objdir/$libname.ver~
8703 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8706 case $cc_basename in
8708 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8709 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8710 hardcode_libdir_flag_spec=
8711 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8712 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8713 if test "x$supports_anon_versioning" = xyes; then
8714 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8716 echo "local: *; };" >> $output_objdir/$libname.ver~
8717 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8726 netbsd* | netbsdelf*-gnu)
8727 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8728 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8737 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8741 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8742 *** create shared libraries on Solaris systems. Therefore, libtool
8743 *** is disabling shared libraries support. We urge you to upgrade GNU
8744 *** binutils to release 2.9.1 or newer. Another option is to modify
8745 *** your PATH or compiler configuration so that the native linker is
8746 *** used, and then restart.
8749 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8758 case `$LD -v 2>&1` in
8759 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8763 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8764 *** reliably create shared libraries on SCO systems. Therefore, libtool
8765 *** is disabling shared libraries support. We urge you to upgrade GNU
8766 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8767 *** your PATH or compiler configuration so that the native linker is
8768 *** used, and then restart.
8773 # For security reasons, it is highly recommended that you always
8774 # use absolute paths for naming shared libraries, and exclude the
8775 # DT_RUNPATH tag from executables and libraries. But doing so
8776 # requires that you compile everything twice, which is a pain.
8777 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8792 hardcode_shlibpath_var=no
8796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8805 if test "$ld_shlibs" = no; then
8807 hardcode_libdir_flag_spec=
8808 export_dynamic_flag_spec=
8809 whole_archive_flag_spec=
8812 # PORTME fill in a description of your system's linker (not GNU ld)
8815 allow_undefined_flag=unsupported
8816 always_export_symbols=yes
8817 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'
8818 # Note: this linker hardcodes the directories in LIBPATH if there
8819 # are no directories specified by -L.
8820 hardcode_minus_L=yes
8821 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8822 # Neither direct hardcoding nor static linking is supported with a
8824 hardcode_direct=unsupported
8829 if test "$host_cpu" = ia64; then
8830 # On IA64, the linker does run time linking by default, so we don't
8831 # have to do anything special.
8832 aix_use_runtimelinking=no
8833 exp_sym_flag='-Bexport'
8836 # If we're using GNU nm, then we don't want the "-C" option.
8837 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8838 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8839 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8841 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'
8843 aix_use_runtimelinking=no
8845 # Test if we are trying to use run time linking or normal
8846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8847 # need to do runtime linking.
8848 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8849 for ld_flag in $LDFLAGS; do
8850 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8851 aix_use_runtimelinking=yes
8858 exp_sym_flag='-bexport'
8859 no_entry_flag='-bnoentry'
8862 # When large executables or shared objects are built, AIX ld can
8863 # have problems creating the table of contents. If linking a library
8864 # or program results in "error TOC overflow" add -mminimal-toc to
8865 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8866 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8870 hardcode_direct_absolute=yes
8871 hardcode_libdir_separator=':'
8872 link_all_deplibs=yes
8873 file_list_spec='${wl}-f,'
8875 if test "$GCC" = yes; then
8876 case $host_os in aix4.[012]|aix4.[012].*)
8877 # We only want to do this on AIX 4.2 and lower, the check
8878 # below for broken collect2 doesn't work under 4.3+
8879 collect2name=`${CC} -print-prog-name=collect2`
8880 if test -f "$collect2name" &&
8881 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8883 # We have reworked collect2
8886 # We have old collect2
8887 hardcode_direct=unsupported
8888 # It fails to find uninstalled libraries when the uninstalled
8889 # path is not listed in the libpath. Setting hardcode_minus_L
8890 # to unsupported forces relinking
8891 hardcode_minus_L=yes
8892 hardcode_libdir_flag_spec='-L$libdir'
8893 hardcode_libdir_separator=
8897 shared_flag='-shared'
8898 if test "$aix_use_runtimelinking" = yes; then
8899 shared_flag="$shared_flag "'${wl}-G'
8904 if test "$host_cpu" = ia64; then
8905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8906 # chokes on -Wl,-G. The following line is correct:
8909 if test "$aix_use_runtimelinking" = yes; then
8910 shared_flag='${wl}-G'
8912 shared_flag='${wl}-bM:SRE'
8917 export_dynamic_flag_spec='${wl}-bexpall'
8918 # It seems that -bexpall does not export symbols beginning with
8919 # underscore (_), so it is better to generate a list of symbols to export.
8920 always_export_symbols=yes
8921 if test "$aix_use_runtimelinking" = yes; then
8922 # Warning - without using the other runtime loading flags (-brtl),
8923 # -berok will link without error, but may produce a broken library.
8924 allow_undefined_flag='-berok'
8925 # Determine the default libpath from the value encoded in an
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8938 if ac_fn_c_try_link "$LINENO"; then :
8940 lt_aix_libpath_sed='
8941 /Import File Strings/,/^$/ {
8947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8948 # Check for a 64-bit object if we didn't find anything.
8949 if test -z "$aix_libpath"; then
8950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8953 rm -f core conftest.err conftest.$ac_objext \
8954 conftest$ac_exeext conftest.$ac_ext
8955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8957 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8958 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8960 if test "$host_cpu" = ia64; then
8961 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8962 allow_undefined_flag="-z nodefs"
8963 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"
8965 # Determine the default libpath from the value encoded in an
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8978 if ac_fn_c_try_link "$LINENO"; then :
8980 lt_aix_libpath_sed='
8981 /Import File Strings/,/^$/ {
8987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8988 # Check for a 64-bit object if we didn't find anything.
8989 if test -z "$aix_libpath"; then
8990 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8993 rm -f core conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8997 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8998 # Warning - without using the other run time loading flags,
8999 # -berok will link without error, but may produce a broken library.
9000 no_undefined_flag=' ${wl}-bernotok'
9001 allow_undefined_flag=' ${wl}-berok'
9002 # Exported symbols can be pulled into shared objects from archives
9003 whole_archive_flag_spec='$convenience'
9004 archive_cmds_need_lc=yes
9005 # This is similar to how AIX traditionally builds its shared libraries.
9006 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'
9014 # see comment about AmigaOS4 .so support
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds=''
9019 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)'
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 hardcode_minus_L=yes
9027 export_dynamic_flag_spec=-rdynamic
9030 cygwin* | mingw* | pw32* | cegcc*)
9031 # When not using gcc, we currently assume that we are using
9032 # Microsoft Visual C++.
9033 # hardcode_libdir_flag_spec is actually meaningless, as there is
9034 # no search path for DLLs.
9035 hardcode_libdir_flag_spec=' '
9036 allow_undefined_flag=unsupported
9037 # Tell ltmain to make .lib files, not .a files.
9039 # Tell ltmain to make .dll files, not .so files.
9041 # FIXME: Setting linknames here is a bad hack.
9042 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9043 # The linker will automatically build a .lib file if we build a DLL.
9044 old_archive_from_new_cmds='true'
9045 # FIXME: Should let the user specify the lib program.
9046 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9047 fix_srcfile_path='`cygpath -w "$srcfile"`'
9048 enable_shared_with_static_runtimes=yes
9051 darwin* | rhapsody*)
9054 archive_cmds_need_lc=no
9056 hardcode_automatic=yes
9057 hardcode_shlibpath_var=unsupported
9058 whole_archive_flag_spec=''
9059 link_all_deplibs=yes
9060 allow_undefined_flag="$_lt_dar_allow_undefined"
9061 case $cc_basename in
9062 ifort*) _lt_dar_can_shared=yes ;;
9063 *) _lt_dar_can_shared=$GCC ;;
9065 if test "$_lt_dar_can_shared" = "yes"; then
9066 output_verbose_link_cmd=echo
9067 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9068 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9069 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}"
9070 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}"
9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_shlibpath_var=no
9088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9089 # support. Future versions do this automatically, but an explicit c++rt0.o
9090 # does not break anything, and helps significantly (at the cost of a little
9093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9094 hardcode_libdir_flag_spec='-R$libdir'
9096 hardcode_shlibpath_var=no
9099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_minus_L=yes
9104 hardcode_shlibpath_var=no
9107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9108 freebsd* | dragonfly*)
9109 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9110 hardcode_libdir_flag_spec='-R$libdir'
9112 hardcode_shlibpath_var=no
9116 if test "$GCC" = yes; then
9117 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9119 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'
9121 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9122 hardcode_libdir_separator=:
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9128 export_dynamic_flag_spec='${wl}-E'
9132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9133 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9135 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9137 if test "$with_gnu_ld" = no; then
9138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9139 hardcode_libdir_flag_spec_ld='+b $libdir'
9140 hardcode_libdir_separator=:
9142 hardcode_direct_absolute=yes
9143 export_dynamic_flag_spec='${wl}-E'
9144 # hardcode_minus_L: Not really in the search PATH,
9145 # but as the default location of the library.
9146 hardcode_minus_L=yes
9151 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9154 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9166 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9172 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9176 if test "$with_gnu_ld" = no; then
9177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9178 hardcode_libdir_separator=:
9183 hardcode_shlibpath_var=no
9187 hardcode_direct_absolute=yes
9188 export_dynamic_flag_spec='${wl}-E'
9190 # hardcode_minus_L: Not really in the search PATH,
9191 # but as the default location of the library.
9192 hardcode_minus_L=yes
9198 irix5* | irix6* | nonstopux*)
9199 if test "$GCC" = yes; then
9200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9201 # Try to use the -exported_symbol ld option, if it does not
9202 # work, assume that -exports_file does not work either and
9203 # implicitly export all symbols.
9204 save_LDFLAGS="$LDFLAGS"
9205 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9210 if ac_fn_c_try_link "$LINENO"; then :
9211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 LDFLAGS="$save_LDFLAGS"
9218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9221 archive_cmds_need_lc='no'
9222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9223 hardcode_libdir_separator=:
9225 link_all_deplibs=yes
9228 netbsd* | netbsdelf*-gnu)
9229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9232 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9234 hardcode_libdir_flag_spec='-R$libdir'
9236 hardcode_shlibpath_var=no
9240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 hardcode_libdir_separator=:
9244 hardcode_shlibpath_var=no
9251 if test -f /usr/libexec/ld.so; then
9253 hardcode_shlibpath_var=no
9254 hardcode_direct_absolute=yes
9255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9257 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259 export_dynamic_flag_spec='${wl}-E'
9262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9264 hardcode_libdir_flag_spec='-R$libdir'
9267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_minus_L=yes
9280 allow_undefined_flag=unsupported
9281 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'
9282 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9286 if test "$GCC" = yes; then
9287 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9288 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9290 allow_undefined_flag=' -expect_unresolved \*'
9291 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9293 archive_cmds_need_lc='no'
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 hardcode_libdir_separator=:
9298 osf4* | osf5*) # as osf3* with the addition of -msym flag
9299 if test "$GCC" = yes; then
9300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9301 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304 allow_undefined_flag=' -expect_unresolved \*'
9305 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9306 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~
9307 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9309 # Both c and cxx compiler support -rpath directly
9310 hardcode_libdir_flag_spec='-rpath $libdir'
9312 archive_cmds_need_lc='no'
9313 hardcode_libdir_separator=:
9317 no_undefined_flag=' -z defs'
9318 if test "$GCC" = yes; then
9320 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9322 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9324 case `$CC -V 2>&1` in
9327 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9329 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9333 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9335 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9339 hardcode_libdir_flag_spec='-R$libdir'
9340 hardcode_shlibpath_var=no
9342 solaris2.[0-5] | solaris2.[0-5].*) ;;
9344 # The compiler driver will combine and reorder linker options,
9345 # but understands `-z linker_flag'. GCC discards it without `$wl',
9346 # but is careful enough not to reorder.
9347 # Supported since Solaris 2.6 (maybe 2.5.1?)
9348 if test "$GCC" = yes; then
9349 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9351 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9355 link_all_deplibs=yes
9359 if test "x$host_vendor" = xsequent; then
9360 # Use $CC to link under sequent, because it throws in some extra .o
9361 # files that make .init and .fini sections work.
9362 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_minus_L=yes
9369 hardcode_shlibpath_var=no
9373 case $host_vendor in
9375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376 hardcode_direct=yes # is this really true???
9379 ## LD is ld it makes a PLAMLIB
9380 ## CC just makes a GrossModule.
9381 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9382 reload_cmds='$CC -r -o $output$reload_objs'
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9390 runpath_var='LD_RUN_PATH'
9391 hardcode_shlibpath_var=no
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_shlibpath_var=no
9397 export_dynamic_flag_spec='-Bexport'
9401 if test -d /usr/nec; then
9402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 hardcode_shlibpath_var=no
9404 runpath_var=LD_RUN_PATH
9405 hardcode_runpath_var=yes
9410 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9411 no_undefined_flag='${wl}-z,text'
9412 archive_cmds_need_lc=no
9413 hardcode_shlibpath_var=no
9414 runpath_var='LD_RUN_PATH'
9416 if test "$GCC" = yes; then
9417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 sysv5* | sco3.2v5* | sco5v6*)
9426 # Note: We can NOT use -z defs as we might desire, because we do not
9427 # link with -lc, and that would cause any symbols used from libc to
9428 # always be unresolved, which means just about no library would
9429 # ever link correctly. If we're not using GNU ld we use -z text
9430 # though, which does catch some bad symbols but isn't as heavy-handed
9432 no_undefined_flag='${wl}-z,text'
9433 allow_undefined_flag='${wl}-z,nodefs'
9434 archive_cmds_need_lc=no
9435 hardcode_shlibpath_var=no
9436 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9437 hardcode_libdir_separator=':'
9438 link_all_deplibs=yes
9439 export_dynamic_flag_spec='${wl}-Bexport'
9440 runpath_var='LD_RUN_PATH'
9442 if test "$GCC" = yes; then
9443 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_shlibpath_var=no
9462 if test x$host_vendor = xsni; then
9464 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9465 export_dynamic_flag_spec='${wl}-Blargedynsym'
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9472 $as_echo "$ld_shlibs" >&6; }
9473 test "$ld_shlibs" = no && can_build_shared=no
9475 with_gnu_ld=$with_gnu_ld
9492 # Do we need to explicitly link libc?
9494 case "x$archive_cmds_need_lc" in
9496 # Assume -lc should be added
9497 archive_cmds_need_lc=yes
9499 if test "$enable_shared" = yes && test "$GCC" = yes; then
9500 case $archive_cmds in
9502 # FIXME: we may have to deal with multi-command sequences.
9505 # Test whether the compiler implicitly links with -lc since on some
9506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9507 # to ld, don't add -lc before -lgcc.
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9514 (eval $ac_compile) 2>&5
9516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9517 test $ac_status = 0; } 2>conftest.err; then
9520 libobjs=conftest.$ac_objext
9522 wl=$lt_prog_compiler_wl
9523 pic_flag=$lt_prog_compiler_pic
9529 lt_save_allow_undefined_flag=$allow_undefined_flag
9530 allow_undefined_flag=
9531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9532 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9535 test $ac_status = 0; }
9537 archive_cmds_need_lc=no
9539 archive_cmds_need_lc=yes
9541 allow_undefined_flag=$lt_save_allow_undefined_flag
9543 cat conftest.err 1>&5
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9547 $as_echo "$archive_cmds_need_lc" >&6; }
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9713 if test "$GCC" = yes; then
9715 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9716 *) lt_awk_arg="/^libraries:/" ;;
9718 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9719 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9720 # if the path contains ";" then we assume it to be the separator
9721 # otherwise default to the standard path separator (i.e. ":") - it is
9722 # assumed that no part of a normal pathname contains ";" but that should
9723 # okay in the real world where ";" in dirpaths is itself problematic.
9724 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9728 # Ok, now we have the path, separated by spaces, we can step through it
9729 # and add multilib dir if necessary.
9730 lt_tmp_lt_search_path_spec=
9731 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9732 for lt_sys_path in $lt_search_path_spec; do
9733 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9734 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9736 test -d "$lt_sys_path" && \
9737 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9740 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9741 BEGIN {RS=" "; FS="/|\n";} {
9744 for (lt_i = NF; lt_i > 0; lt_i--) {
9745 if ($lt_i != "" && $lt_i != ".") {
9746 if ($lt_i == "..") {
9749 if (lt_count == 0) {
9750 lt_foo="/" $lt_i lt_foo;
9757 if (lt_foo != "") { lt_freq[lt_foo]++; }
9758 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9760 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9765 libname_spec='lib$name'
9773 shlibpath_overrides_runpath=unknown
9775 dynamic_linker="$host_os ld.so"
9776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9777 need_lib_prefix=unknown
9778 hardcode_into_libs=no
9780 # when you set need_version to no, make sure it does not cause -set_version
9781 # flags to be left without arguments
9782 need_version=unknown
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9788 shlibpath_var=LIBPATH
9790 # AIX 3 has no versioning support, so we append a major version to the name.
9791 soname_spec='${libname}${release}${shared_ext}$major'
9798 hardcode_into_libs=yes
9799 if test "$host_cpu" = ia64; then
9800 # AIX 5 supports IA64
9801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9802 shlibpath_var=LD_LIBRARY_PATH
9804 # With GCC up to 2.95.x, collect2 would create an import file
9805 # for dependence libraries. The import file would start with
9806 # the line `#! .'. This would cause the generated library to
9807 # depend on `.', always an invalid library. This was fixed in
9808 # development snapshots of GCC prior to 3.0.
9810 aix4 | aix4.[01] | aix4.[01].*)
9811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9813 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9821 # soname into executable. Probably we can add versioning support to
9822 # collect2, so additional links can be useful in future.
9823 if test "$aix_use_runtimelinking" = yes; then
9824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9825 # instead of lib<name>.a to let people know that these are not
9826 # typical AIX shared libraries.
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 # We preserve .a as extension for shared libraries through AIX4.2
9830 # and later when we are not doing run time linking.
9831 library_names_spec='${libname}${release}.a $libname.a'
9832 soname_spec='${libname}${release}${shared_ext}$major'
9834 shlibpath_var=LIBPATH
9841 # Since July 2007 AmigaOS4 officially supports .so libraries.
9842 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 library_names_spec='$libname.ixlibrary $libname.a'
9847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9848 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9854 library_names_spec='${libname}${shared_ext}'
9855 dynamic_linker="$host_os ld.so"
9856 shlibpath_var=LIBRARY_PATH
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9868 # the default ld.so.conf also contains /usr/contrib/lib and
9869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9870 # libtool to hard-code these into programs
9873 cygwin* | mingw* | pw32* | cegcc*)
9874 version_type=windows
9879 case $GCC,$host_os in
9880 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9881 library_names_spec='$libname.dll.a'
9882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9883 postinstall_cmds='base_file=`basename \${file}`~
9884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9885 dldir=$destdir/`dirname \$dlpath`~
9886 test -d \$dldir || mkdir -p \$dldir~
9887 $install_prog $dir/$dlname \$dldir/$dlname~
9888 chmod a+x \$dldir/$dlname~
9889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9893 dlpath=$dir/\$dldll~
9895 shlibpath_overrides_runpath=yes
9899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9901 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9904 # MinGW DLLs use traditional 'lib' prefix
9905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9906 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9907 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9908 # It is most probably a Windows format PATH printed by
9909 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9910 # path with ; separators, and with drive letters. We can handle the
9911 # drive letters (cygwin fileutils understands them), so leave them,
9912 # especially as we might pass files found there to a mingw objdump,
9913 # which wouldn't understand a cygwinified path. Ahh.
9914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9916 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9920 # pw32 DLLs use 'pw' prefix rather than 'lib'
9921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9927 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9930 dynamic_linker='Win32 ld.exe'
9931 # FIXME: first we should search . and the directory the executable is in
9935 darwin* | rhapsody*)
9936 dynamic_linker="$host_os dyld"
9940 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9941 soname_spec='${libname}${release}${major}$shared_ext'
9942 shlibpath_overrides_runpath=yes
9943 shlibpath_var=DYLD_LIBRARY_PATH
9944 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9946 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9947 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9963 freebsd* | dragonfly*)
9964 # DragonFly does not have aout. When/if they implement a new
9965 # versioning mechanism, adjust this.
9966 if test -x /usr/bin/objformat; then
9967 objformat=`/usr/bin/objformat`
9970 freebsd[123]*) objformat=aout ;;
9974 version_type=freebsd-$objformat
9975 case $version_type in
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9986 shlibpath_var=LD_LIBRARY_PATH
9989 shlibpath_overrides_runpath=yes
9991 freebsd3.[01]* | freebsdelf3.[01]*)
9992 shlibpath_overrides_runpath=yes
9993 hardcode_into_libs=yes
9995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9997 shlibpath_overrides_runpath=no
9998 hardcode_into_libs=yes
10000 *) # from 4.6 on, and DragonFly
10001 shlibpath_overrides_runpath=yes
10002 hardcode_into_libs=yes
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10012 soname_spec='${libname}${release}${shared_ext}$major'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 hardcode_into_libs=yes
10017 hpux9* | hpux10* | hpux11*)
10018 # Give a soname corresponding to the major version so that dld.sl refuses to
10019 # link against other versions.
10026 hardcode_into_libs=yes
10027 dynamic_linker="$host_os dld.so"
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 if test "X$HPUX_IA64_MODE" = X32; then
10033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10041 hardcode_into_libs=yes
10042 dynamic_linker="$host_os dld.sl"
10043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10052 dynamic_linker="$host_os dld.sl"
10053 shlibpath_var=SHLIB_PATH
10054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10059 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10060 postinstall_cmds='chmod 555 $lib'
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10075 irix5* | irix6* | nonstopux*)
10077 nonstopux*) version_type=nonstopux ;;
10079 if test "$lt_cv_prog_gnu_ld" = yes; then
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10090 irix5* | nonstopux*)
10091 libsuff= shlibsuff=
10094 case $LD in # libtool.m4 will add one of these switches to LD
10095 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10096 libsuff= shlibsuff= libmagic=32-bit;;
10097 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10098 libsuff=32 shlibsuff=N32 libmagic=N32;;
10099 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10100 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10101 *) libsuff= shlibsuff= libmagic=never-match;;
10105 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10106 shlibpath_overrides_runpath=no
10107 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10108 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10109 hardcode_into_libs=yes
10112 # No shared lib support for Linux oldld, aout, or coff.
10113 linux*oldld* | linux*aout* | linux*coff*)
10117 # This must be Linux ELF.
10118 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=no
10127 # Some binutils ld are patched to set DT_RUNPATH
10128 save_LDFLAGS=$LDFLAGS
10129 save_libdir=$libdir
10130 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10131 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10143 if ac_fn_c_try_link "$LINENO"; then :
10144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10145 shlibpath_overrides_runpath=yes
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LDFLAGS=$save_LDFLAGS
10151 libdir=$save_libdir
10153 # This implies no fast_install, which is unacceptable.
10154 # Some rework will be needed to allow for fast_install
10155 # before this can be enabled.
10156 hardcode_into_libs=yes
10158 # Append ld.so.conf contents to the search path
10159 if test -f /etc/ld.so.conf; then
10160 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;/^$/d' | tr '\n' ' '`
10161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10164 # We used to test for /lib/ld.so.1 and disable shared libraries on
10165 # powerpc, because MkLinux only supported shared libraries with the
10166 # GNU dynamic linker. Since this was broken with cross compilers,
10167 # most powerpc-linux boxes support dynamic linking these days and
10168 # people can always --disable-shared, the test was removed, and we
10169 # assume the GNU/Linux dynamic linker is in use.
10170 dynamic_linker='GNU/Linux ld.so'
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=no
10181 hardcode_into_libs=yes
10182 dynamic_linker='NetBSD ld.elf_so'
10189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10192 dynamic_linker='NetBSD (a.out) ld.so'
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 dynamic_linker='NetBSD ld.elf_so'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=yes
10200 hardcode_into_libs=yes
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 shlibpath_overrides_runpath=yes
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=no
10218 hardcode_into_libs=yes
10219 dynamic_linker='ldqnx.so'
10224 sys_lib_dlsearch_path_spec="/usr/lib"
10226 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10228 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10229 *) need_version=no ;;
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10236 openbsd2.[89] | openbsd2.[89].*)
10237 shlibpath_overrides_runpath=no
10240 shlibpath_overrides_runpath=yes
10244 shlibpath_overrides_runpath=yes
10249 libname_spec='$name'
10252 library_names_spec='$libname${shared_ext} $libname.a'
10253 dynamic_linker='OS/2 ld.exe'
10254 shlibpath_var=LIBPATH
10257 osf3* | osf4* | osf5*)
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10265 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10281 # ldd complains unless libraries are executable
10282 postinstall_cmds='chmod +x $lib'
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10288 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 if test "$with_gnu_ld" = yes; then
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 case $host_vendor in
10304 shlibpath_overrides_runpath=no
10306 runpath_var=LD_RUN_PATH
10314 shlibpath_overrides_runpath=no
10315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10321 if test -d /usr/nec ;then
10323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10324 soname_spec='$libname${shared_ext}.$major'
10325 shlibpath_var=LD_LIBRARY_PATH
10329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10330 version_type=freebsd-elf
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=yes
10337 hardcode_into_libs=yes
10338 if test "$with_gnu_ld" = yes; then
10339 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10341 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10348 sys_lib_dlsearch_path_spec='/usr/lib'
10352 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=no
10359 hardcode_into_libs=yes
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10374 $as_echo "$dynamic_linker" >&6; }
10375 test "$dynamic_linker" = no && can_build_shared=no
10377 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10378 if test "$GCC" = yes; then
10379 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10382 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10383 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10385 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10386 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10476 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10478 if test -n "$hardcode_libdir_flag_spec" ||
10479 test -n "$runpath_var" ||
10480 test "X$hardcode_automatic" = "Xyes" ; then
10482 # We can hardcode non-existent directories.
10483 if test "$hardcode_direct" != no &&
10484 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10485 # have to relink, otherwise we might link with an installed library
10486 # when we should be linking with a yet-to-be-installed one
10487 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10488 test "$hardcode_minus_L" != no; then
10489 # Linking always hardcodes the temporary library directory.
10490 hardcode_action=relink
10492 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10493 hardcode_action=immediate
10496 # We cannot hardcode anything, or else we can only hardcode existing
10498 hardcode_action=unsupported
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10501 $as_echo "$hardcode_action" >&6; }
10503 if test "$hardcode_action" = relink ||
10504 test "$inherit_rpath" = yes; then
10505 # Fast installation is not supported
10506 enable_fast_install=no
10507 elif test "$shlibpath_overrides_runpath" = yes ||
10508 test "$enable_shared" = no; then
10509 # Fast installation is not necessary
10510 enable_fast_install=needless
10518 if test "x$enable_dlopen" != xyes; then
10519 enable_dlopen=unknown
10520 enable_dlopen_self=unknown
10521 enable_dlopen_self_static=unknown
10528 lt_cv_dlopen="load_add_on"
10530 lt_cv_dlopen_self=yes
10533 mingw* | pw32* | cegcc*)
10534 lt_cv_dlopen="LoadLibrary"
10539 lt_cv_dlopen="dlopen"
10544 # if libdl is installed we need to link against it
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10546 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10547 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10550 ac_check_lib_save_LIBS=$LIBS
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10555 /* Override any GCC internal prototype to avoid an error.
10556 Use char because int might match the return type of a GCC
10557 builtin and then its argument prototype would still apply. */
10570 if ac_fn_c_try_link "$LINENO"; then :
10571 ac_cv_lib_dl_dlopen=yes
10573 ac_cv_lib_dl_dlopen=no
10575 rm -f core conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10580 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10581 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10585 lt_cv_dlopen="dyld"
10587 lt_cv_dlopen_self=yes
10594 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10595 if test "x$ac_cv_func_shl_load" = x""yes; then :
10596 lt_cv_dlopen="shl_load"
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10599 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10600 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10601 $as_echo_n "(cached) " >&6
10603 ac_check_lib_save_LIBS=$LIBS
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10608 /* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10618 return shl_load ();
10623 if ac_fn_c_try_link "$LINENO"; then :
10624 ac_cv_lib_dld_shl_load=yes
10626 ac_cv_lib_dld_shl_load=no
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10633 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10634 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10635 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10637 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10638 if test "x$ac_cv_func_dlopen" = x""yes; then :
10639 lt_cv_dlopen="dlopen"
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10646 ac_check_lib_save_LIBS=$LIBS
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10666 if ac_fn_c_try_link "$LINENO"; then :
10667 ac_cv_lib_dl_dlopen=yes
10669 ac_cv_lib_dl_dlopen=no
10671 rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10676 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10677 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10678 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10681 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10682 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10685 ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-lsvld $LIBS"
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 ac_cv_lib_svld_dlopen=yes
10708 ac_cv_lib_svld_dlopen=no
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10715 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10716 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10720 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10721 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10724 ac_check_lib_save_LIBS=$LIBS
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10739 return dld_link ();
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 ac_cv_lib_dld_dld_link=yes
10747 ac_cv_lib_dld_dld_link=no
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10754 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10755 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10756 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10777 if test "x$lt_cv_dlopen" != xno; then
10783 case $lt_cv_dlopen in
10785 save_CPPFLAGS="$CPPFLAGS"
10786 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10788 save_LDFLAGS="$LDFLAGS"
10789 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10792 LIBS="$lt_cv_dlopen_libs $LIBS"
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10795 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10796 if test "${lt_cv_dlopen_self+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10799 if test "$cross_compiling" = yes; then :
10800 lt_cv_dlopen_self=cross
10802 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10803 lt_status=$lt_dlunknown
10804 cat > conftest.$ac_ext <<_LT_EOF
10805 #line 10805 "configure"
10806 #include "confdefs.h"
10815 # define LT_DLGLOBAL RTLD_GLOBAL
10818 # define LT_DLGLOBAL DL_GLOBAL
10820 # define LT_DLGLOBAL 0
10824 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10825 find out it does not work in some platform. */
10826 #ifndef LT_DLLAZY_OR_NOW
10828 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10831 # define LT_DLLAZY_OR_NOW DL_LAZY
10834 # define LT_DLLAZY_OR_NOW RTLD_NOW
10837 # define LT_DLLAZY_OR_NOW DL_NOW
10839 # define LT_DLLAZY_OR_NOW 0
10846 void fnord() { int i=42;}
10849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10850 int status = $lt_dlunknown;
10854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10856 /* dlclose (self); */
10864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10865 (eval $ac_link) 2>&5
10867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10868 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10869 (./conftest; exit; ) >&5 2>/dev/null
10871 case x$lt_status in
10872 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10873 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10874 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10877 # compilation failed
10878 lt_cv_dlopen_self=no
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10886 $as_echo "$lt_cv_dlopen_self" >&6; }
10888 if test "x$lt_cv_dlopen_self" = xyes; then
10889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10891 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10892 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10895 if test "$cross_compiling" = yes; then :
10896 lt_cv_dlopen_self_static=cross
10898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10899 lt_status=$lt_dlunknown
10900 cat > conftest.$ac_ext <<_LT_EOF
10901 #line 10901 "configure"
10902 #include "confdefs.h"
10911 # define LT_DLGLOBAL RTLD_GLOBAL
10914 # define LT_DLGLOBAL DL_GLOBAL
10916 # define LT_DLGLOBAL 0
10920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10921 find out it does not work in some platform. */
10922 #ifndef LT_DLLAZY_OR_NOW
10924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10927 # define LT_DLLAZY_OR_NOW DL_LAZY
10930 # define LT_DLLAZY_OR_NOW RTLD_NOW
10933 # define LT_DLLAZY_OR_NOW DL_NOW
10935 # define LT_DLLAZY_OR_NOW 0
10942 void fnord() { int i=42;}
10945 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10946 int status = $lt_dlunknown;
10950 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10951 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10952 /* dlclose (self); */
10960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10961 (eval $ac_link) 2>&5
10963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10964 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10965 (./conftest; exit; ) >&5 2>/dev/null
10967 case x$lt_status in
10968 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10969 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10970 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10973 # compilation failed
10974 lt_cv_dlopen_self_static=no
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10982 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10985 CPPFLAGS="$save_CPPFLAGS"
10986 LDFLAGS="$save_LDFLAGS"
10991 case $lt_cv_dlopen_self in
10992 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10993 *) enable_dlopen_self=unknown ;;
10996 case $lt_cv_dlopen_self_static in
10997 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10998 *) enable_dlopen_self_static=unknown ;;
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11021 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11022 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11026 $as_echo "yes" >&6; }
11028 # FIXME - insert some real tests, host_os isn't really good enough
11031 if test -n "$STRIP" ; then
11032 striplib="$STRIP -x"
11033 old_striplib="$STRIP -S"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11035 $as_echo "yes" >&6; }
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11059 # Report which library types will actually be built
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11061 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11063 $as_echo "$can_build_shared" >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11066 $as_echo_n "checking whether to build shared libraries... " >&6; }
11067 test "$can_build_shared" = "no" && enable_shared=no
11069 # On AIX, shared libraries and static libraries use the same namespace, and
11070 # are all built from PIC.
11073 test "$enable_shared" = yes && enable_static=no
11074 if test -n "$RANLIB"; then
11075 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11076 postinstall_cmds='$RANLIB $lib'
11081 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11082 test "$enable_shared" = yes && enable_static=no
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11087 $as_echo "$enable_shared" >&6; }
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11090 $as_echo_n "checking whether to build static libraries... " >&6; }
11091 # Make sure either enable_shared or enable_static is yes.
11092 test "$enable_shared" = yes || enable_static=yes
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11094 $as_echo "$enable_static" >&6; }
11101 ac_cpp='$CPP $CPPFLAGS'
11102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11120 ac_config_commands="$ac_config_commands libtool"
11125 # Only expand once:
11130 ac_cpp='$CXXCPP $CPPFLAGS'
11131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11134 if test -z "$CXX"; then
11135 if test -n "$CCC"; then
11138 if test -n "$ac_tool_prefix"; then
11139 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if test "${ac_cv_prog_CXX+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11148 if test -n "$CXX"; then
11149 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11155 test -z "$as_dir" && as_dir=.
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11158 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168 CXX=$ac_cv_prog_CXX
11169 if test -n "$CXX"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11171 $as_echo "$CXX" >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11178 test -n "$CXX" && break
11181 if test -z "$CXX"; then
11183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11185 # Extract the first word of "$ac_prog", so it can be a program name with args.
11186 set dummy $ac_prog; ac_word=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11192 if test -n "$ac_ct_CXX"; then
11193 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202 ac_cv_prog_ac_ct_CXX="$ac_prog"
11203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11213 if test -n "$ac_ct_CXX"; then
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11215 $as_echo "$ac_ct_CXX" >&6; }
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 $as_echo "no" >&6; }
11222 test -n "$ac_ct_CXX" && break
11225 if test "x$ac_ct_CXX" = x; then
11228 case $cross_compiling:$ac_tool_warned in
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232 ac_tool_warned=yes ;;
11240 # Provide some information about the compiler.
11241 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11244 for ac_option in --version -v -V -qversion; do
11245 { { ac_try="$ac_compiler $ac_option >&5"
11246 case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11251 $as_echo "$ac_try_echo"; } >&5
11252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11254 if test -s conftest.err; then
11256 ... rest of stderr output deleted ...
11257 10q' conftest.err >conftest.er1
11258 cat conftest.er1 >&5
11260 rm -f conftest.er1 conftest.err
11261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262 test $ac_status = 0; }
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11266 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11267 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11284 if ac_fn_cxx_try_compile "$LINENO"; then :
11285 ac_compiler_gnu=yes
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11294 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11295 if test $ac_compiler_gnu = yes; then
11300 ac_test_CXXFLAGS=${CXXFLAGS+set}
11301 ac_save_CXXFLAGS=$CXXFLAGS
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11303 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11304 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11307 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11308 ac_cxx_werror_flag=yes
11309 ac_cv_prog_cxx_g=no
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11322 if ac_fn_cxx_try_compile "$LINENO"; then :
11323 ac_cv_prog_cxx_g=yes
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11337 if ac_fn_cxx_try_compile "$LINENO"; then :
11340 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11353 if ac_fn_cxx_try_compile "$LINENO"; then :
11354 ac_cv_prog_cxx_g=yes
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11364 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11365 if test "$ac_test_CXXFLAGS" = set; then
11366 CXXFLAGS=$ac_save_CXXFLAGS
11367 elif test $ac_cv_prog_cxx_g = yes; then
11368 if test "$GXX" = yes; then
11374 if test "$GXX" = yes; then
11381 ac_cpp='$CPP $CPPFLAGS'
11382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11386 depcc="$CXX" am_compiler_list=
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11389 $as_echo_n "checking dependency style of $depcc... " >&6; }
11390 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11391 $as_echo_n "(cached) " >&6
11393 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11394 # We make a subdir and do the tests there. Otherwise we can end up
11395 # making bogus files that we don't know about and never remove. For
11396 # instance it was reported that on HP-UX the gcc test will end up
11397 # making a dummy file named `D' -- because `-MD' means `put the output
11400 # Copy depcomp to subdir because otherwise we won't find it if we're
11401 # using a relative directory.
11402 cp "$am_depcomp" conftest.dir
11404 # We will build objects and dependencies in a subdirectory because
11405 # it helps to detect inapplicable dependency modes. For instance
11406 # both Tru64's cc and ICC support -MD to output dependencies as a
11407 # side effect of compilation, but ICC will put the dependencies in
11408 # the current directory while Tru64 will put them in the object
11412 am_cv_CXX_dependencies_compiler_type=none
11413 if test "$am_compiler_list" = ""; then
11414 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11416 am__universal=false
11417 case " $depcc " in #(
11418 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11421 for depmode in $am_compiler_list; do
11422 # Setup a source with many dependencies, because some compilers
11423 # like to wrap large dependency lists on column 80 (with \), and
11424 # we should not choose a depcomp mode which is confused by this.
11426 # We need to recreate these files for each test, as the compiler may
11427 # overwrite some of them when testing with obscure command lines.
11428 # This happens at least with the AIX C compiler.
11430 for i in 1 2 3 4 5 6; do
11431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11433 # Solaris 8's {/usr,}/bin/sh.
11434 touch sub/conftst$i.h
11436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11438 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11439 # mode. It turns out that the SunPro C++ compiler does not properly
11440 # handle `-M -o', and we need to detect this. Also, some Intel
11441 # versions had trouble with output in subdirs
11442 am__obj=sub/conftest.${OBJEXT-o}
11443 am__minus_obj="-o $am__obj"
11446 # This depmode causes a compiler race in universal mode.
11447 test "$am__universal" = false || continue
11450 # after this tag, mechanisms are not by side-effect, so they'll
11451 # only be used when explicitly requested
11452 if test "x$enable_dependency_tracking" = xyes; then
11458 msvisualcpp | msvcmsys)
11459 # This compiler won't grok `-c -o', but also, the minuso test has
11460 # not run yet. These depmodes are late enough in the game, and
11461 # so weak that their functioning should not be impacted.
11462 am__obj=conftest.${OBJEXT-o}
11467 if depmode=$depmode \
11468 source=sub/conftest.c object=$am__obj \
11469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11470 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11471 >/dev/null 2>conftest.err &&
11472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11474 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11476 # icc doesn't choke on unknown options, it will just issue warnings
11477 # or remarks (even with -Werror). So we grep stderr for any message
11478 # that says an option was ignored or not supported.
11479 # When given -MP, icc 7.0 and 7.1 complain thusly:
11480 # icc: Command line warning: ignoring option '-M'; no argument required
11481 # The diagnosis changed in icc 8.0:
11482 # icc: Command line remark: option '-MP' not supported
11483 if (grep 'ignoring option' conftest.err ||
11484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11485 am_cv_CXX_dependencies_compiler_type=$depmode
11492 rm -rf conftest.dir
11494 am_cv_CXX_dependencies_compiler_type=none
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11499 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11500 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11503 test "x$enable_dependency_tracking" != xno \
11504 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11505 am__fastdepCXX_TRUE=
11506 am__fastdepCXX_FALSE='#'
11508 am__fastdepCXX_TRUE='#'
11509 am__fastdepCXX_FALSE=
11515 ac_cpp='$CXXCPP $CPPFLAGS'
11516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11519 if test -z "$CXX"; then
11520 if test -n "$CCC"; then
11523 if test -n "$ac_tool_prefix"; then
11524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if test "${ac_cv_prog_CXX+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11533 if test -n "$CXX"; then
11534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537 for as_dir in $PATH
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 CXX=$ac_cv_prog_CXX
11554 if test -n "$CXX"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11556 $as_echo "$CXX" >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11563 test -n "$CXX" && break
11566 if test -z "$CXX"; then
11568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11570 # Extract the first word of "$ac_prog", so it can be a program name with args.
11571 set dummy $ac_prog; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
11577 if test -n "$ac_ct_CXX"; then
11578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH
11584 test -z "$as_dir" && as_dir=.
11585 for ac_exec_ext in '' $ac_executable_extensions; do
11586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11587 ac_cv_prog_ac_ct_CXX="$ac_prog"
11588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11598 if test -n "$ac_ct_CXX"; then
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11600 $as_echo "$ac_ct_CXX" >&6; }
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11607 test -n "$ac_ct_CXX" && break
11610 if test "x$ac_ct_CXX" = x; then
11613 case $cross_compiling:$ac_tool_warned in
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11617 ac_tool_warned=yes ;;
11625 # Provide some information about the compiler.
11626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11629 for ac_option in --version -v -V -qversion; do
11630 { { ac_try="$ac_compiler $ac_option >&5"
11631 case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11636 $as_echo "$ac_try_echo"; } >&5
11637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11639 if test -s conftest.err; then
11641 ... rest of stderr output deleted ...
11642 10q' conftest.err >conftest.er1
11643 cat conftest.er1 >&5
11645 rm -f conftest.er1 conftest.err
11646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11647 test $ac_status = 0; }
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11669 if ac_fn_cxx_try_compile "$LINENO"; then :
11670 ac_compiler_gnu=yes
11674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11680 if test $ac_compiler_gnu = yes; then
11685 ac_test_CXXFLAGS=${CXXFLAGS+set}
11686 ac_save_CXXFLAGS=$CXXFLAGS
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11689 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11692 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11693 ac_cxx_werror_flag=yes
11694 ac_cv_prog_cxx_g=no
11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11707 if ac_fn_cxx_try_compile "$LINENO"; then :
11708 ac_cv_prog_cxx_g=yes
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11722 if ac_fn_cxx_try_compile "$LINENO"; then :
11725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11738 if ac_fn_cxx_try_compile "$LINENO"; then :
11739 ac_cv_prog_cxx_g=yes
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11750 if test "$ac_test_CXXFLAGS" = set; then
11751 CXXFLAGS=$ac_save_CXXFLAGS
11752 elif test $ac_cv_prog_cxx_g = yes; then
11753 if test "$GXX" = yes; then
11759 if test "$GXX" = yes; then
11766 ac_cpp='$CPP $CPPFLAGS'
11767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11771 depcc="$CXX" am_compiler_list=
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11774 $as_echo_n "checking dependency style of $depcc... " >&6; }
11775 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11779 # We make a subdir and do the tests there. Otherwise we can end up
11780 # making bogus files that we don't know about and never remove. For
11781 # instance it was reported that on HP-UX the gcc test will end up
11782 # making a dummy file named `D' -- because `-MD' means `put the output
11785 # Copy depcomp to subdir because otherwise we won't find it if we're
11786 # using a relative directory.
11787 cp "$am_depcomp" conftest.dir
11789 # We will build objects and dependencies in a subdirectory because
11790 # it helps to detect inapplicable dependency modes. For instance
11791 # both Tru64's cc and ICC support -MD to output dependencies as a
11792 # side effect of compilation, but ICC will put the dependencies in
11793 # the current directory while Tru64 will put them in the object
11797 am_cv_CXX_dependencies_compiler_type=none
11798 if test "$am_compiler_list" = ""; then
11799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11801 am__universal=false
11802 case " $depcc " in #(
11803 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11806 for depmode in $am_compiler_list; do
11807 # Setup a source with many dependencies, because some compilers
11808 # like to wrap large dependency lists on column 80 (with \), and
11809 # we should not choose a depcomp mode which is confused by this.
11811 # We need to recreate these files for each test, as the compiler may
11812 # overwrite some of them when testing with obscure command lines.
11813 # This happens at least with the AIX C compiler.
11815 for i in 1 2 3 4 5 6; do
11816 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11817 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11818 # Solaris 8's {/usr,}/bin/sh.
11819 touch sub/conftst$i.h
11821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11823 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11824 # mode. It turns out that the SunPro C++ compiler does not properly
11825 # handle `-M -o', and we need to detect this. Also, some Intel
11826 # versions had trouble with output in subdirs
11827 am__obj=sub/conftest.${OBJEXT-o}
11828 am__minus_obj="-o $am__obj"
11831 # This depmode causes a compiler race in universal mode.
11832 test "$am__universal" = false || continue
11835 # after this tag, mechanisms are not by side-effect, so they'll
11836 # only be used when explicitly requested
11837 if test "x$enable_dependency_tracking" = xyes; then
11843 msvisualcpp | msvcmsys)
11844 # This compiler won't grok `-c -o', but also, the minuso test has
11845 # not run yet. These depmodes are late enough in the game, and
11846 # so weak that their functioning should not be impacted.
11847 am__obj=conftest.${OBJEXT-o}
11852 if depmode=$depmode \
11853 source=sub/conftest.c object=$am__obj \
11854 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11855 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11856 >/dev/null 2>conftest.err &&
11857 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11858 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11859 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11860 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11861 # icc doesn't choke on unknown options, it will just issue warnings
11862 # or remarks (even with -Werror). So we grep stderr for any message
11863 # that says an option was ignored or not supported.
11864 # When given -MP, icc 7.0 and 7.1 complain thusly:
11865 # icc: Command line warning: ignoring option '-M'; no argument required
11866 # The diagnosis changed in icc 8.0:
11867 # icc: Command line remark: option '-MP' not supported
11868 if (grep 'ignoring option' conftest.err ||
11869 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11870 am_cv_CXX_dependencies_compiler_type=$depmode
11877 rm -rf conftest.dir
11879 am_cv_CXX_dependencies_compiler_type=none
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11884 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11885 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11888 test "x$enable_dependency_tracking" != xno \
11889 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11890 am__fastdepCXX_TRUE=
11891 am__fastdepCXX_FALSE='#'
11893 am__fastdepCXX_TRUE='#'
11894 am__fastdepCXX_FALSE=
11898 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11899 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11900 (test "X$CXX" != "Xg++"))) ; then
11902 ac_cpp='$CXXCPP $CPPFLAGS'
11903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11907 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11908 if test -z "$CXXCPP"; then
11909 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11912 # Double quotes because CXXCPP needs to be expanded
11913 for CXXCPP in "$CXX -E" "/lib/cpp"
11915 ac_preproc_ok=false
11916 for ac_cxx_preproc_warn_flag in '' yes
11918 # Use a header file that comes with gcc, so configuring glibc
11919 # with a fresh cross-compiler works.
11920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 # <limits.h> exists even on freestanding compilers.
11922 # On the NeXT, cc -E runs the code through the compiler's parser,
11923 # not just through cpp. "Syntax error" is here to catch this case.
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11927 # include <limits.h>
11929 # include <assert.h>
11933 if ac_fn_cxx_try_cpp "$LINENO"; then :
11936 # Broken: fails on valid input.
11939 rm -f conftest.err conftest.i conftest.$ac_ext
11941 # OK, works on sane cases. Now check whether nonexistent headers
11942 # can be detected and how.
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945 #include <ac_nonexistent.h>
11947 if ac_fn_cxx_try_cpp "$LINENO"; then :
11948 # Broken: success on invalid input.
11951 # Passes both tests.
11955 rm -f conftest.err conftest.i conftest.$ac_ext
11958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11959 rm -f conftest.i conftest.err conftest.$ac_ext
11960 if $ac_preproc_ok; then :
11965 ac_cv_prog_CXXCPP=$CXXCPP
11968 CXXCPP=$ac_cv_prog_CXXCPP
11970 ac_cv_prog_CXXCPP=$CXXCPP
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11973 $as_echo "$CXXCPP" >&6; }
11974 ac_preproc_ok=false
11975 for ac_cxx_preproc_warn_flag in '' yes
11977 # Use a header file that comes with gcc, so configuring glibc
11978 # with a fresh cross-compiler works.
11979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11980 # <limits.h> exists even on freestanding compilers.
11981 # On the NeXT, cc -E runs the code through the compiler's parser,
11982 # not just through cpp. "Syntax error" is here to catch this case.
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11986 # include <limits.h>
11988 # include <assert.h>
11992 if ac_fn_cxx_try_cpp "$LINENO"; then :
11995 # Broken: fails on valid input.
11998 rm -f conftest.err conftest.i conftest.$ac_ext
12000 # OK, works on sane cases. Now check whether nonexistent headers
12001 # can be detected and how.
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004 #include <ac_nonexistent.h>
12006 if ac_fn_cxx_try_cpp "$LINENO"; then :
12007 # Broken: success on invalid input.
12010 # Passes both tests.
12014 rm -f conftest.err conftest.i conftest.$ac_ext
12017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12018 rm -f conftest.i conftest.err conftest.$ac_ext
12019 if $ac_preproc_ok; then :
12022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12024 _lt_caught_CXX_error=yes; }
12028 ac_cpp='$CPP $CPPFLAGS'
12029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12034 _lt_caught_CXX_error=yes
12041 ac_cpp='$CXXCPP $CPPFLAGS'
12042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12046 archive_cmds_need_lc_CXX=no
12047 allow_undefined_flag_CXX=
12048 always_export_symbols_CXX=no
12049 archive_expsym_cmds_CXX=
12050 compiler_needs_object_CXX=no
12051 export_dynamic_flag_spec_CXX=
12052 hardcode_direct_CXX=no
12053 hardcode_direct_absolute_CXX=no
12054 hardcode_libdir_flag_spec_CXX=
12055 hardcode_libdir_flag_spec_ld_CXX=
12056 hardcode_libdir_separator_CXX=
12057 hardcode_minus_L_CXX=no
12058 hardcode_shlibpath_var_CXX=unsupported
12059 hardcode_automatic_CXX=no
12060 inherit_rpath_CXX=no
12062 module_expsym_cmds_CXX=
12063 link_all_deplibs_CXX=unknown
12064 old_archive_cmds_CXX=$old_archive_cmds
12065 no_undefined_flag_CXX=
12066 whole_archive_flag_spec_CXX=
12067 enable_shared_with_static_runtimes_CXX=no
12069 # Source file extension for C++ test sources.
12072 # Object file extension for compiled C++ test sources.
12076 # No sense in running all these tests if we already determined that
12077 # the CXX compiler isn't working. Some variables (like enable_shared)
12078 # are currently assumed to apply to all compilers on this platform,
12079 # and will be corrupted by setting them based on a non-working compiler.
12080 if test "$_lt_caught_CXX_error" != yes; then
12081 # Code to be used in simple compile tests
12082 lt_simple_compile_test_code="int some_variable = 0;"
12084 # Code to be used in simple link tests
12085 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12094 # If no C compiler was specified, use CC.
12097 # If no C compiler flags were specified, use CFLAGS.
12098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12100 # Allow CC to be a program name with arguments.
12104 # save warnings/boilerplate of simple test code
12105 ac_outfile=conftest.$ac_objext
12106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12108 _lt_compiler_boilerplate=`cat conftest.err`
12111 ac_outfile=conftest.$ac_objext
12112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12114 _lt_linker_boilerplate=`cat conftest.err`
12118 # Allow CC to be a program name with arguments.
12123 lt_save_with_gnu_ld=$with_gnu_ld
12124 lt_save_path_LD=$lt_cv_path_LD
12125 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12126 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12128 $as_unset lt_cv_prog_gnu_ld
12130 if test -n "${lt_cv_path_LDCXX+set}"; then
12131 lt_cv_path_LD=$lt_cv_path_LDCXX
12133 $as_unset lt_cv_path_LD
12135 test -z "${LDCXX+set}" || LD=$LDCXX
12139 for cc_temp in $compiler""; do
12141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12147 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12150 if test -n "$compiler"; then
12151 # We don't want -fno-exception when compiling C++ code, so set the
12152 # no_builtin_flag separately
12153 if test "$GXX" = yes; then
12154 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12156 lt_prog_compiler_no_builtin_flag_CXX=
12159 if test "$GXX" = yes; then
12160 # Set up default GNU C++ configuration
12164 # Check whether --with-gnu-ld was given.
12165 if test "${with_gnu_ld+set}" = set; then :
12166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12172 if test "$GCC" = yes; then
12173 # Check if gcc -print-prog-name=ld gives a path.
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12175 $as_echo_n "checking for ld used by $CC... " >&6; }
12178 # gcc leaves a trailing carriage return which upsets mingw
12179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12184 # Accept absolute paths.
12186 re_direlt='/[^/][^/]*/\.\./'
12187 # Canonicalize the pathname of ld
12188 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12189 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12190 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12192 test -z "$LD" && LD="$ac_prog"
12195 # If it fails, then pretend we aren't using GCC.
12199 # If it is relative, then search for the first ld in PATH.
12200 with_gnu_ld=unknown
12203 elif test "$with_gnu_ld" = yes; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12205 $as_echo_n "checking for GNU ld... " >&6; }
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12208 $as_echo_n "checking for non-GNU ld... " >&6; }
12210 if test "${lt_cv_path_LD+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12213 if test -z "$LD"; then
12214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12215 for ac_dir in $PATH; do
12217 test -z "$ac_dir" && ac_dir=.
12218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12219 lt_cv_path_LD="$ac_dir/$ac_prog"
12220 # Check to see if the program is GNU ld. I'd rather use --version,
12221 # but apparently some variants of GNU ld only accept -v.
12222 # Break only if it was the GNU/non-GNU ld that we prefer.
12223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12224 *GNU* | *'with BFD'*)
12225 test "$with_gnu_ld" != no && break
12228 test "$with_gnu_ld" != yes && break
12235 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12239 LD="$lt_cv_path_LD"
12240 if test -n "$LD"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12242 $as_echo "$LD" >&6; }
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12247 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12249 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12250 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12253 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12254 case `$LD -v 2>&1 </dev/null` in
12255 *GNU* | *'with BFD'*)
12256 lt_cv_prog_gnu_ld=yes
12259 lt_cv_prog_gnu_ld=no
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12264 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12265 with_gnu_ld=$lt_cv_prog_gnu_ld
12273 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12274 # archiving commands below assume that GNU ld is being used.
12275 if test "$with_gnu_ld" = yes; then
12276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12282 # If archive_cmds runs LD, not CC, wlarc should be empty
12283 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12284 # investigate it a little bit more. (MM)
12287 # ancient GNU ld didn't support --whole-archive et. al.
12288 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12289 $GREP 'no-whole-archive' > /dev/null; then
12290 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12292 whole_archive_flag_spec_CXX=
12298 # A generic and very simple default shared library creation
12299 # command for GNU C++ for the case where it uses the native
12300 # linker, instead of GNU ld. If possible, this setting should
12301 # overridden to take advantage of the native linker features on
12302 # the platform it is being used on.
12303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12306 # Commands to make compiler produce verbose output that lists
12307 # what "hidden" libraries, object files and flags are used when
12308 # linking a shared library.
12309 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12317 # PORTME: fill in a description of your system's C++ link characteristics
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12319 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12323 # FIXME: insert proper C++ library support
12327 if test "$host_cpu" = ia64; then
12328 # On IA64, the linker does run time linking by default, so we don't
12329 # have to do anything special.
12330 aix_use_runtimelinking=no
12331 exp_sym_flag='-Bexport'
12334 aix_use_runtimelinking=no
12336 # Test if we are trying to use run time linking or normal
12337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12338 # need to do runtime linking.
12339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12340 for ld_flag in $LDFLAGS; do
12343 aix_use_runtimelinking=yes
12351 exp_sym_flag='-bexport'
12352 no_entry_flag='-bnoentry'
12355 # When large executables or shared objects are built, AIX ld can
12356 # have problems creating the table of contents. If linking a library
12357 # or program results in "error TOC overflow" add -mminimal-toc to
12358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12361 archive_cmds_CXX=''
12362 hardcode_direct_CXX=yes
12363 hardcode_direct_absolute_CXX=yes
12364 hardcode_libdir_separator_CXX=':'
12365 link_all_deplibs_CXX=yes
12366 file_list_spec_CXX='${wl}-f,'
12368 if test "$GXX" = yes; then
12369 case $host_os in aix4.[012]|aix4.[012].*)
12370 # We only want to do this on AIX 4.2 and lower, the check
12371 # below for broken collect2 doesn't work under 4.3+
12372 collect2name=`${CC} -print-prog-name=collect2`
12373 if test -f "$collect2name" &&
12374 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12376 # We have reworked collect2
12379 # We have old collect2
12380 hardcode_direct_CXX=unsupported
12381 # It fails to find uninstalled libraries when the uninstalled
12382 # path is not listed in the libpath. Setting hardcode_minus_L
12383 # to unsupported forces relinking
12384 hardcode_minus_L_CXX=yes
12385 hardcode_libdir_flag_spec_CXX='-L$libdir'
12386 hardcode_libdir_separator_CXX=
12389 shared_flag='-shared'
12390 if test "$aix_use_runtimelinking" = yes; then
12391 shared_flag="$shared_flag "'${wl}-G'
12395 if test "$host_cpu" = ia64; then
12396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12397 # chokes on -Wl,-G. The following line is correct:
12400 if test "$aix_use_runtimelinking" = yes; then
12401 shared_flag='${wl}-G'
12403 shared_flag='${wl}-bM:SRE'
12408 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12409 # It seems that -bexpall does not export symbols beginning with
12410 # underscore (_), so it is better to generate a list of symbols to
12412 always_export_symbols_CXX=yes
12413 if test "$aix_use_runtimelinking" = yes; then
12414 # Warning - without using the other runtime loading flags (-brtl),
12415 # -berok will link without error, but may produce a broken library.
12416 allow_undefined_flag_CXX='-berok'
12417 # Determine the default libpath from the value encoded in an empty
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12430 if ac_fn_cxx_try_link "$LINENO"; then :
12432 lt_aix_libpath_sed='
12433 /Import File Strings/,/^$/ {
12439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12440 # Check for a 64-bit object if we didn't find anything.
12441 if test -z "$aix_libpath"; then
12442 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12445 rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12449 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12451 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12453 if test "$host_cpu" = ia64; then
12454 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12455 allow_undefined_flag_CXX="-z nodefs"
12456 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"
12458 # Determine the default libpath from the value encoded in an
12459 # empty executable.
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12471 if ac_fn_cxx_try_link "$LINENO"; then :
12473 lt_aix_libpath_sed='
12474 /Import File Strings/,/^$/ {
12480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12481 # Check for a 64-bit object if we didn't find anything.
12482 if test -z "$aix_libpath"; then
12483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12486 rm -f core conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
12488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12491 # Warning - without using the other run time loading flags,
12492 # -berok will link without error, but may produce a broken library.
12493 no_undefined_flag_CXX=' ${wl}-bernotok'
12494 allow_undefined_flag_CXX=' ${wl}-berok'
12495 # Exported symbols can be pulled into shared objects from archives
12496 whole_archive_flag_spec_CXX='$convenience'
12497 archive_cmds_need_lc_CXX=yes
12498 # This is similar to how AIX traditionally builds its shared
12500 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'
12506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12507 allow_undefined_flag_CXX=unsupported
12508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12509 # support --undefined. This deserves some investigation. FIXME
12510 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12517 case $cc_basename in
12519 # FIXME: insert proper C++ library support
12525 cygwin* | mingw* | pw32* | cegcc*)
12526 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12527 # as there is no search path for DLLs.
12528 hardcode_libdir_flag_spec_CXX='-L$libdir'
12529 allow_undefined_flag_CXX=unsupported
12530 always_export_symbols_CXX=no
12531 enable_shared_with_static_runtimes_CXX=yes
12533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12534 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'
12535 # If the export-symbols file already is a .def file (1st line
12536 # is EXPORTS), use it as is; otherwise, prepend...
12537 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12538 cp $export_symbols $output_objdir/$soname.def;
12540 echo EXPORTS > $output_objdir/$soname.def;
12541 cat $export_symbols >> $output_objdir/$soname.def;
12543 $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'
12548 darwin* | rhapsody*)
12551 archive_cmds_need_lc_CXX=no
12552 hardcode_direct_CXX=no
12553 hardcode_automatic_CXX=yes
12554 hardcode_shlibpath_var_CXX=unsupported
12555 whole_archive_flag_spec_CXX=''
12556 link_all_deplibs_CXX=yes
12557 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12558 case $cc_basename in
12559 ifort*) _lt_dar_can_shared=yes ;;
12560 *) _lt_dar_can_shared=$GCC ;;
12562 if test "$_lt_dar_can_shared" = "yes"; then
12563 output_verbose_link_cmd=echo
12564 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}"
12565 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12566 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}"
12567 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}"
12568 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12569 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}"
12570 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}"
12580 case $cc_basename in
12582 # FIXME: insert proper C++ library support
12586 # Green Hills C++ Compiler
12587 # FIXME: insert proper C++ library support
12591 # FIXME: insert proper C++ library support
12598 # C++ shared libraries reported to be fairly broken before
12604 archive_cmds_need_lc_CXX=no
12607 freebsd* | dragonfly*)
12608 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12618 hardcode_libdir_separator_CXX=:
12619 export_dynamic_flag_spec_CXX='${wl}-E'
12620 hardcode_direct_CXX=yes
12621 hardcode_minus_L_CXX=yes # Not in the search PATH,
12622 # but as the default
12623 # location of the library.
12625 case $cc_basename in
12627 # FIXME: insert proper C++ library support
12631 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'
12632 # Commands to make compiler produce verbose output that lists
12633 # what "hidden" libraries, object files and flags are used when
12634 # linking a shared library.
12636 # There doesn't appear to be a way to prevent this compiler from
12637 # explicitly linking system object files so we need to strip them
12638 # from the output so that they don't get included in the library
12640 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; $ECHO "X$list" | $Xsed'
12643 if test "$GXX" = yes; then
12644 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12646 # FIXME: insert proper C++ library support
12654 if test $with_gnu_ld = no; then
12655 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12656 hardcode_libdir_separator_CXX=:
12662 export_dynamic_flag_spec_CXX='${wl}-E'
12668 hardcode_direct_CXX=no
12669 hardcode_shlibpath_var_CXX=no
12672 hardcode_direct_CXX=yes
12673 hardcode_direct_absolute_CXX=yes
12674 hardcode_minus_L_CXX=yes # Not in the search PATH,
12675 # but as the default
12676 # location of the library.
12680 case $cc_basename in
12682 # FIXME: insert proper C++ library support
12688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12697 # Commands to make compiler produce verbose output that lists
12698 # what "hidden" libraries, object files and flags are used when
12699 # linking a shared library.
12701 # There doesn't appear to be a way to prevent this compiler from
12702 # explicitly linking system object files so we need to strip them
12703 # from the output so that they don't get included in the library
12705 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12708 if test "$GXX" = yes; then
12709 if test $with_gnu_ld = no; then
12712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12715 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12718 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12723 # FIXME: insert proper C++ library support
12731 hardcode_direct_CXX=no
12732 hardcode_shlibpath_var_CXX=no
12733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12734 export_dynamic_flag_spec_CXX='${wl}-E'
12735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12736 # Instead, shared libraries are loaded at an image base (0x10000000 by
12737 # default) and relocated if they conflict, which is a slow very memory
12738 # consuming and fragmenting process. To avoid this, we pick a random,
12739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12741 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'
12742 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'
12745 case $cc_basename in
12748 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12750 # Archives containing C++ object files must be created using
12751 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12752 # necessary to make sure instantiated templates are included
12754 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12757 if test "$GXX" = yes; then
12758 if test "$with_gnu_ld" = no; then
12759 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12764 link_all_deplibs_CXX=yes
12767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12768 hardcode_libdir_separator_CXX=:
12769 inherit_rpath_CXX=yes
12772 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12773 case $cc_basename in
12775 # Kuck and Associates, Inc. (KAI) C++ Compiler
12777 # KCC will only create a shared library if the output file
12778 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12779 # to its proper name (with version) after linking.
12780 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'
12781 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'
12782 # Commands to make compiler produce verbose output that lists
12783 # what "hidden" libraries, object files and flags are used when
12784 # linking a shared library.
12786 # There doesn't appear to be a way to prevent this compiler from
12787 # explicitly linking system object files so we need to strip them
12788 # from the output so that they don't get included in the library
12790 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12795 # Archives containing C++ object files must be created using
12796 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12797 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12802 # version 8.0 and above of icpc choke on multiply defined symbols
12803 # if we add $predep_objects and $postdep_objects, however 7.1 and
12804 # earlier do not add the objects themselves.
12805 case `$CC -V 2>&1` in
12807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808 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'
12810 *) # Version 8.0 or newer
12813 ia64*) tmp_idyn=' -i_dynamic';;
12815 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12816 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'
12819 archive_cmds_need_lc_CXX=no
12820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12822 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12825 # Portland Group C++ compiler
12827 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12828 prelink_cmds_CXX='tpldir=Template.dir~
12830 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12831 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12832 old_archive_cmds_CXX='tpldir=Template.dir~
12834 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12835 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12837 archive_cmds_CXX='tpldir=Template.dir~
12839 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12840 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12841 archive_expsym_cmds_CXX='tpldir=Template.dir~
12843 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12844 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12846 *) # Version 6 will use weak symbols
12847 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12848 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'
12852 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12853 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12854 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12859 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'
12861 runpath_var=LD_RUN_PATH
12862 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12863 hardcode_libdir_separator_CXX=:
12865 # Commands to make compiler produce verbose output that lists
12866 # what "hidden" libraries, object files and flags are used when
12867 # linking a shared library.
12869 # There doesn't appear to be a way to prevent this compiler from
12870 # explicitly linking system object files so we need to strip them
12871 # from the output so that they don't get included in the library
12873 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12876 # IBM XL 8.0 on PPC, with GNU ld
12877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12879 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880 if test "x$supports_anon_versioning" = xyes; then
12881 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12882 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12883 echo "local: *; };" >> $output_objdir/$libname.ver~
12884 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12888 case `$CC -V 2>&1 | sed 5q` in
12891 no_undefined_flag_CXX=' -zdefs'
12892 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12893 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'
12894 hardcode_libdir_flag_spec_CXX='-R$libdir'
12895 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12896 compiler_needs_object_CXX=yes
12898 # Not sure whether something based on
12899 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12901 output_verbose_link_cmd='echo'
12903 # Archives containing C++ object files must be created using
12904 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12905 # necessary to make sure instantiated templates are included
12907 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12915 # FIXME: insert proper C++ library support
12920 # FIXME: insert proper C++ library support
12925 case $cc_basename in
12927 # FIXME: insert proper C++ library support
12931 # FIXME: insert proper C++ library support
12938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12941 hardcode_libdir_flag_spec_CXX='-R$libdir'
12942 hardcode_direct_CXX=yes
12943 hardcode_shlibpath_var_CXX=no
12945 # Workaround some broken pre-1.5 toolchains
12946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12954 # C++ shared libraries are fairly broken
12959 if test -f /usr/libexec/ld.so; then
12960 hardcode_direct_CXX=yes
12961 hardcode_shlibpath_var_CXX=no
12962 hardcode_direct_absolute_CXX=yes
12963 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12966 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12967 export_dynamic_flag_spec_CXX='${wl}-E'
12968 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12970 output_verbose_link_cmd=echo
12976 osf3* | osf4* | osf5*)
12977 case $cc_basename in
12979 # Kuck and Associates, Inc. (KAI) C++ Compiler
12981 # KCC will only create a shared library if the output file
12982 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12983 # to its proper name (with version) after linking.
12984 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'
12986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12987 hardcode_libdir_separator_CXX=:
12989 # Archives containing C++ object files must be created using
12990 # the KAI C++ compiler.
12992 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12993 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12997 # Rational C++ 2.4.1
12998 # FIXME: insert proper C++ library support
13004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13005 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13009 allow_undefined_flag_CXX=' -expect_unresolved \*'
13010 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13011 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13012 echo "-hidden">> $lib.exp~
13013 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13015 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13019 hardcode_libdir_separator_CXX=:
13021 # Commands to make compiler produce verbose output that lists
13022 # what "hidden" libraries, object files and flags are used when
13023 # linking a shared library.
13025 # There doesn't appear to be a way to prevent this compiler from
13026 # explicitly linking system object files so we need to strip them
13027 # from the output so that they don't get included in the library
13029 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13033 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13036 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13039 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044 hardcode_libdir_separator_CXX=:
13046 # Commands to make compiler produce verbose output that lists
13047 # what "hidden" libraries, object files and flags are used when
13048 # linking a shared library.
13049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13052 # FIXME: insert proper C++ library support
13060 # FIXME: insert proper C++ library support
13065 case $cc_basename in
13068 # FIXME: insert proper C++ library support
13073 # FIXME: insert proper C++ library support
13077 # FIXME: insert proper C++ library support
13084 case $cc_basename in
13086 # Sun C++ 4.2, 5.x and Centerline C++
13087 archive_cmds_need_lc_CXX=yes
13088 no_undefined_flag_CXX=' -zdefs'
13089 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13091 $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'
13093 hardcode_libdir_flag_spec_CXX='-R$libdir'
13094 hardcode_shlibpath_var_CXX=no
13096 solaris2.[0-5] | solaris2.[0-5].*) ;;
13098 # The compiler driver will combine and reorder linker options,
13099 # but understands `-z linker_flag'.
13100 # Supported since Solaris 2.6 (maybe 2.5.1?)
13101 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13104 link_all_deplibs_CXX=yes
13106 output_verbose_link_cmd='echo'
13108 # Archives containing C++ object files must be created using
13109 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13110 # necessary to make sure instantiated templates are included
13112 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13115 # Green Hills C++ Compiler
13116 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13118 # The C++ compiler must be used to create the archive.
13119 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13122 # GNU C++ compiler with Solaris linker
13123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13124 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13125 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13126 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13127 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13128 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13130 # Commands to make compiler produce verbose output that lists
13131 # what "hidden" libraries, object files and flags are used when
13132 # linking a shared library.
13133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13135 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13137 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13138 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13139 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13141 # Commands to make compiler produce verbose output that lists
13142 # what "hidden" libraries, object files and flags are used when
13143 # linking a shared library.
13144 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13147 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13149 solaris2.[0-5] | solaris2.[0-5].*) ;;
13151 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13160 no_undefined_flag_CXX='${wl}-z,text'
13161 archive_cmds_need_lc_CXX=no
13162 hardcode_shlibpath_var_CXX=no
13163 runpath_var='LD_RUN_PATH'
13165 case $cc_basename in
13167 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13171 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13177 sysv5* | sco3.2v5* | sco5v6*)
13178 # Note: We can NOT use -z defs as we might desire, because we do not
13179 # link with -lc, and that would cause any symbols used from libc to
13180 # always be unresolved, which means just about no library would
13181 # ever link correctly. If we're not using GNU ld we use -z text
13182 # though, which does catch some bad symbols but isn't as heavy-handed
13184 no_undefined_flag_CXX='${wl}-z,text'
13185 allow_undefined_flag_CXX='${wl}-z,nodefs'
13186 archive_cmds_need_lc_CXX=no
13187 hardcode_shlibpath_var_CXX=no
13188 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13189 hardcode_libdir_separator_CXX=':'
13190 link_all_deplibs_CXX=yes
13191 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13192 runpath_var='LD_RUN_PATH'
13194 case $cc_basename in
13196 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13197 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13200 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13207 case $cc_basename in
13209 # NonStop-UX NCC 3.20
13210 # FIXME: insert proper C++ library support
13214 # FIXME: insert proper C++ library support
13221 # FIXME: insert proper C++ library support
13226 # FIXME: insert proper C++ library support
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13232 $as_echo "$ld_shlibs_CXX" >&6; }
13233 test "$ld_shlibs_CXX" = no && can_build_shared=no
13239 ## There is no encapsulation within the following macros, do not change
13240 ## the running order or otherwise move them around unless you know exactly
13241 ## what you are doing...
13242 # Dependencies to place before and after the object being linked:
13243 predep_objects_CXX=
13244 postdep_objects_CXX=
13247 compiler_lib_search_path_CXX=
13249 cat > conftest.$ac_ext <<_LT_EOF
13253 Foo (void) { a = 0; }
13259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13260 (eval $ac_compile) 2>&5
13262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263 test $ac_status = 0; }; then
13264 # Parse the compiler output and extract the necessary
13265 # objects, libraries and library flags.
13267 # Sentinel used to keep track of whether or not we are before
13268 # the conftest object file.
13269 pre_test_object_deps_done=no
13271 for p in `eval "$output_verbose_link_cmd"`; do
13275 # Some compilers place space between "-{L,R}" and the path.
13276 # Remove the space.
13277 if test $p = "-L" ||
13278 test $p = "-R"; then
13285 if test "$pre_test_object_deps_done" = no; then
13288 # Internal compiler library paths should come after those
13289 # provided the user. The postdeps already come after the
13290 # user supplied libs so there is no need to process them.
13291 if test -z "$compiler_lib_search_path_CXX"; then
13292 compiler_lib_search_path_CXX="${prev}${p}"
13294 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13297 # The "-l" case would never come before the object being
13298 # linked, so don't bother handling this case.
13301 if test -z "$postdeps_CXX"; then
13302 postdeps_CXX="${prev}${p}"
13304 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13310 # This assumes that the test object file only shows up
13311 # once in the compiler output.
13312 if test "$p" = "conftest.$objext"; then
13313 pre_test_object_deps_done=yes
13317 if test "$pre_test_object_deps_done" = no; then
13318 if test -z "$predep_objects_CXX"; then
13319 predep_objects_CXX="$p"
13321 predep_objects_CXX="$predep_objects_CXX $p"
13324 if test -z "$postdep_objects_CXX"; then
13325 postdep_objects_CXX="$p"
13327 postdep_objects_CXX="$postdep_objects_CXX $p"
13332 *) ;; # Ignore the rest.
13340 echo "libtool.m4: error: problem compiling CXX test program"
13343 $RM -f confest.$objext
13345 # PORTME: override above test on systems where it is broken
13348 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13349 # hack all around it, let's just trust "g++" to DTRT.
13350 predep_objects_CXX=
13351 postdep_objects_CXX=
13356 case `$CC -V 2>&1 | sed 5q` in
13360 # The more standards-conforming stlport4 library is
13361 # incompatible with the Cstd library. Avoid specifying
13362 # it if it's in CXXFLAGS. Ignore libCrun as
13363 # -library=stlport4 depends on it.
13364 case " $CXX $CXXFLAGS " in
13365 *" -library=stlport4 "*)
13366 solaris_use_stlport4=yes
13370 if test "$solaris_use_stlport4" != yes; then
13371 postdeps_CXX='-library=Cstd -library=Crun'
13378 case $cc_basename in
13380 # The more standards-conforming stlport4 library is
13381 # incompatible with the Cstd library. Avoid specifying
13382 # it if it's in CXXFLAGS. Ignore libCrun as
13383 # -library=stlport4 depends on it.
13384 case " $CXX $CXXFLAGS " in
13385 *" -library=stlport4 "*)
13386 solaris_use_stlport4=yes
13390 # Adding this requires a known-good setup of shared libraries for
13391 # Sun compiler versions before 5.6, else PIC objects from an old
13392 # archive will be linked into the output, leading to subtle bugs.
13393 if test "$solaris_use_stlport4" != yes; then
13394 postdeps_CXX='-library=Cstd -library=Crun'
13402 case " $postdeps_CXX " in
13403 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13405 compiler_lib_search_dirs_CXX=
13406 if test -n "${compiler_lib_search_path_CXX}"; then
13407 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13440 lt_prog_compiler_wl_CXX=
13441 lt_prog_compiler_pic_CXX=
13442 lt_prog_compiler_static_CXX=
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13445 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13447 # C++ specific cases for pic, static, wl, etc.
13448 if test "$GXX" = yes; then
13449 lt_prog_compiler_wl_CXX='-Wl,'
13450 lt_prog_compiler_static_CXX='-static'
13454 # All AIX code is PIC.
13455 if test "$host_cpu" = ia64; then
13456 # AIX 5 now supports IA64 processor
13457 lt_prog_compiler_static_CXX='-Bstatic'
13464 # see comment about AmigaOS4 .so support
13465 lt_prog_compiler_pic_CXX='-fPIC'
13468 # FIXME: we need at least 68020 code to build shared libraries, but
13469 # adding the `-m68020' flag to GCC prevents building anything better,
13471 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13477 # PIC is the default for these OSes.
13479 mingw* | cygwin* | os2* | pw32* | cegcc*)
13480 # This hack is so that the source file can tell whether it is being
13481 # built for inclusion in a dll (and should export symbols for example).
13482 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13483 # (--disable-auto-import) libraries
13484 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13486 darwin* | rhapsody*)
13487 # PIC is the default on this platform
13488 # Common symbols not allowed in MH_DYLIB files
13489 lt_prog_compiler_pic_CXX='-fno-common'
13492 # DJGPP does not support shared libraries at all
13493 lt_prog_compiler_pic_CXX=
13496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13497 # Instead, we relocate shared libraries at runtime.
13500 if test -d /usr/nec; then
13501 lt_prog_compiler_pic_CXX=-Kconform_pic
13505 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13506 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13507 # sets the default TLS model and affects inlining.
13512 lt_prog_compiler_pic_CXX='-fPIC'
13517 # QNX uses GNU C++, but need to define -shared option too, otherwise
13518 # it will coredump.
13519 lt_prog_compiler_pic_CXX='-fPIC -shared'
13522 lt_prog_compiler_pic_CXX='-fPIC'
13528 # All AIX code is PIC.
13529 if test "$host_cpu" = ia64; then
13530 # AIX 5 now supports IA64 processor
13531 lt_prog_compiler_static_CXX='-Bstatic'
13533 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13537 case $cc_basename in
13539 # Green Hills C++ Compiler
13540 # _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"
13545 case $cc_basename in
13547 lt_prog_compiler_pic_CXX='-KPIC'
13550 # Green Hills C++ Compiler
13551 lt_prog_compiler_pic_CXX='-pic'
13557 freebsd* | dragonfly*)
13558 # FreeBSD uses GNU C++
13560 hpux9* | hpux10* | hpux11*)
13561 case $cc_basename in
13563 lt_prog_compiler_wl_CXX='-Wl,'
13564 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13565 if test "$host_cpu" != ia64; then
13566 lt_prog_compiler_pic_CXX='+Z'
13570 lt_prog_compiler_wl_CXX='-Wl,'
13571 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13577 lt_prog_compiler_pic_CXX='+Z'
13586 # This is c89, which is MS Visual C++ (no shared libs)
13587 # Anyone wants to do a port?
13589 irix5* | irix6* | nonstopux*)
13590 case $cc_basename in
13592 lt_prog_compiler_wl_CXX='-Wl,'
13593 lt_prog_compiler_static_CXX='-non_shared'
13594 # CC pic flag -KPIC is the default.
13600 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13601 case $cc_basename in
13604 lt_prog_compiler_wl_CXX='--backend -Wl,'
13605 lt_prog_compiler_pic_CXX='-fPIC'
13608 # old Intel C++ for x86_64 which still supported -KPIC.
13609 lt_prog_compiler_wl_CXX='-Wl,'
13610 lt_prog_compiler_pic_CXX='-KPIC'
13611 lt_prog_compiler_static_CXX='-static'
13614 # Intel C++, used to be incompatible with GCC.
13615 # ICC 10 doesn't accept -KPIC any more.
13616 lt_prog_compiler_wl_CXX='-Wl,'
13617 lt_prog_compiler_pic_CXX='-fPIC'
13618 lt_prog_compiler_static_CXX='-static'
13621 # Portland Group C++ compiler
13622 lt_prog_compiler_wl_CXX='-Wl,'
13623 lt_prog_compiler_pic_CXX='-fpic'
13624 lt_prog_compiler_static_CXX='-Bstatic'
13628 # Make sure the PIC flag is empty. It appears that all Alpha
13629 # Linux and Compaq Tru64 Unix objects are PIC.
13630 lt_prog_compiler_pic_CXX=
13631 lt_prog_compiler_static_CXX='-non_shared'
13634 # IBM XL 8.0 on PPC
13635 lt_prog_compiler_wl_CXX='-Wl,'
13636 lt_prog_compiler_pic_CXX='-qpic'
13637 lt_prog_compiler_static_CXX='-qstaticlink'
13640 case `$CC -V 2>&1 | sed 5q` in
13643 lt_prog_compiler_pic_CXX='-KPIC'
13644 lt_prog_compiler_static_CXX='-Bstatic'
13645 lt_prog_compiler_wl_CXX='-Qoption ld '
13656 case $cc_basename in
13658 lt_prog_compiler_pic_CXX='-W c,exportall'
13664 netbsd* | netbsdelf*-gnu)
13667 # QNX uses GNU C++, but need to define -shared option too, otherwise
13668 # it will coredump.
13669 lt_prog_compiler_pic_CXX='-fPIC -shared'
13671 osf3* | osf4* | osf5*)
13672 case $cc_basename in
13674 lt_prog_compiler_wl_CXX='--backend -Wl,'
13677 # Rational C++ 2.4.1
13678 lt_prog_compiler_pic_CXX='-pic'
13681 # Digital/Compaq C++
13682 lt_prog_compiler_wl_CXX='-Wl,'
13683 # Make sure the PIC flag is empty. It appears that all Alpha
13684 # Linux and Compaq Tru64 Unix objects are PIC.
13685 lt_prog_compiler_pic_CXX=
13686 lt_prog_compiler_static_CXX='-non_shared'
13695 case $cc_basename in
13697 # Sun C++ 4.2, 5.x and Centerline C++
13698 lt_prog_compiler_pic_CXX='-KPIC'
13699 lt_prog_compiler_static_CXX='-Bstatic'
13700 lt_prog_compiler_wl_CXX='-Qoption ld '
13703 # Green Hills C++ Compiler
13704 lt_prog_compiler_pic_CXX='-PIC'
13711 case $cc_basename in
13714 lt_prog_compiler_pic_CXX='-pic'
13715 lt_prog_compiler_static_CXX='-Bstatic'
13719 lt_prog_compiler_pic_CXX='-pic'
13725 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13726 case $cc_basename in
13728 lt_prog_compiler_wl_CXX='-Wl,'
13729 lt_prog_compiler_pic_CXX='-KPIC'
13730 lt_prog_compiler_static_CXX='-Bstatic'
13735 case $cc_basename in
13737 # NonStop-UX NCC 3.20
13738 lt_prog_compiler_pic_CXX='-KPIC'
13747 lt_prog_compiler_can_build_shared_CXX=no
13753 # For platforms which do not support PIC, -DPIC is meaningless:
13755 lt_prog_compiler_pic_CXX=
13758 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13762 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13767 # Check to make sure the PIC flag actually works.
13769 if test -n "$lt_prog_compiler_pic_CXX"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13772 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13775 lt_cv_prog_compiler_pic_works_CXX=no
13776 ac_outfile=conftest.$ac_objext
13777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13778 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13779 # Insert the option either (1) after the last *FLAGS variable, or
13780 # (2) before a word containing "conftest.", or (3) at the end.
13781 # Note that $ac_compile itself does not contain backslashes and begins
13782 # with a dollar sign (not a hyphen), so the echo should work correctly.
13783 # The option is referenced via a variable to avoid confusing sed.
13784 lt_compile=`echo "$ac_compile" | $SED \
13785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13787 -e 's:$: $lt_compiler_flag:'`
13788 (eval echo "\"\$as_me:13788: $lt_compile\"" >&5)
13789 (eval "$lt_compile" 2>conftest.err)
13791 cat conftest.err >&5
13792 echo "$as_me:13792: \$? = $ac_status" >&5
13793 if (exit $ac_status) && test -s "$ac_outfile"; then
13794 # The compiler can only warn and ignore the option if not recognized
13795 # So say no if there are warnings other than the usual output.
13796 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13799 lt_cv_prog_compiler_pic_works_CXX=yes
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13806 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13808 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13809 case $lt_prog_compiler_pic_CXX in
13811 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13814 lt_prog_compiler_pic_CXX=
13815 lt_prog_compiler_can_build_shared_CXX=no
13823 # Check to make sure the static flag actually works.
13825 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13827 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13828 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13829 $as_echo_n "(cached) " >&6
13831 lt_cv_prog_compiler_static_works_CXX=no
13832 save_LDFLAGS="$LDFLAGS"
13833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13834 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13836 # The linker can only warn and ignore the option if not recognized
13837 # So say no if there are warnings
13838 if test -s conftest.err; then
13839 # Append any errors to the config.log.
13840 cat conftest.err 1>&5
13841 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13843 if diff conftest.exp conftest.er2 >/dev/null; then
13844 lt_cv_prog_compiler_static_works_CXX=yes
13847 lt_cv_prog_compiler_static_works_CXX=yes
13851 LDFLAGS="$save_LDFLAGS"
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13855 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13857 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13860 lt_prog_compiler_static_CXX=
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13871 lt_cv_prog_compiler_c_o_CXX=no
13872 $RM -r conftest 2>/dev/null
13876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13878 lt_compiler_flag="-o out/conftest2.$ac_objext"
13879 # Insert the option either (1) after the last *FLAGS variable, or
13880 # (2) before a word containing "conftest.", or (3) at the end.
13881 # Note that $ac_compile itself does not contain backslashes and begins
13882 # with a dollar sign (not a hyphen), so the echo should work correctly.
13883 lt_compile=`echo "$ac_compile" | $SED \
13884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13886 -e 's:$: $lt_compiler_flag:'`
13887 (eval echo "\"\$as_me:13887: $lt_compile\"" >&5)
13888 (eval "$lt_compile" 2>out/conftest.err)
13890 cat out/conftest.err >&5
13891 echo "$as_me:13891: \$? = $ac_status" >&5
13892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13894 # The compiler can only warn and ignore the option if not recognized
13895 # So say no if there are warnings
13896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13899 lt_cv_prog_compiler_c_o_CXX=yes
13904 # SGI C++ compiler will create directory out/ii_files/ for
13905 # template instantiation
13906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13907 $RM out/* && rmdir out
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13914 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13919 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13920 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13923 lt_cv_prog_compiler_c_o_CXX=no
13924 $RM -r conftest 2>/dev/null
13928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13930 lt_compiler_flag="-o out/conftest2.$ac_objext"
13931 # Insert the option either (1) after the last *FLAGS variable, or
13932 # (2) before a word containing "conftest.", or (3) at the end.
13933 # Note that $ac_compile itself does not contain backslashes and begins
13934 # with a dollar sign (not a hyphen), so the echo should work correctly.
13935 lt_compile=`echo "$ac_compile" | $SED \
13936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13938 -e 's:$: $lt_compiler_flag:'`
13939 (eval echo "\"\$as_me:13939: $lt_compile\"" >&5)
13940 (eval "$lt_compile" 2>out/conftest.err)
13942 cat out/conftest.err >&5
13943 echo "$as_me:13943: \$? = $ac_status" >&5
13944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13946 # The compiler can only warn and ignore the option if not recognized
13947 # So say no if there are warnings
13948 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13951 lt_cv_prog_compiler_c_o_CXX=yes
13956 # SGI C++ compiler will create directory out/ii_files/ for
13957 # template instantiation
13958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13959 $RM out/* && rmdir out
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13966 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13971 hard_links="nottested"
13972 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13973 # do not overwrite the value of need_locks provided by the user
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13975 $as_echo_n "checking if we can lock with hard links... " >&6; }
13978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13980 ln conftest.a conftest.b 2>&5 || hard_links=no
13981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13983 $as_echo "$hard_links" >&6; }
13984 if test "$hard_links" = no; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13986 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13996 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13998 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14001 # If we're using GNU nm, then we don't want the "-C" option.
14002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14003 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14004 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14006 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'
14010 export_symbols_cmds_CXX="$ltdll_cmds"
14012 cygwin* | mingw* | cegcc*)
14013 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14015 linux* | k*bsd*-gnu)
14016 link_all_deplibs_CXX=no
14019 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14022 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14025 $as_echo "$ld_shlibs_CXX" >&6; }
14026 test "$ld_shlibs_CXX" = no && can_build_shared=no
14028 with_gnu_ld_CXX=$with_gnu_ld
14036 # Do we need to explicitly link libc?
14038 case "x$archive_cmds_need_lc_CXX" in
14040 # Assume -lc should be added
14041 archive_cmds_need_lc_CXX=yes
14043 if test "$enable_shared" = yes && test "$GCC" = yes; then
14044 case $archive_cmds_CXX in
14046 # FIXME: we may have to deal with multi-command sequences.
14049 # Test whether the compiler implicitly links with -lc since on some
14050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14051 # to ld, don't add -lc before -lgcc.
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14053 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14058 (eval $ac_compile) 2>&5
14060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14061 test $ac_status = 0; } 2>conftest.err; then
14064 libobjs=conftest.$ac_objext
14066 wl=$lt_prog_compiler_wl_CXX
14067 pic_flag=$lt_prog_compiler_pic_CXX
14073 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14074 allow_undefined_flag_CXX=
14075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14076 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079 test $ac_status = 0; }
14081 archive_cmds_need_lc_CXX=no
14083 archive_cmds_need_lc_CXX=yes
14085 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14087 cat conftest.err 1>&5
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14091 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14162 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14164 library_names_spec=
14165 libname_spec='lib$name'
14169 postuninstall_cmds=
14173 shlibpath_overrides_runpath=unknown
14175 dynamic_linker="$host_os ld.so"
14176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14177 need_lib_prefix=unknown
14178 hardcode_into_libs=no
14180 # when you set need_version to no, make sure it does not cause -set_version
14181 # flags to be left without arguments
14182 need_version=unknown
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14188 shlibpath_var=LIBPATH
14190 # AIX 3 has no versioning support, so we append a major version to the name.
14191 soname_spec='${libname}${release}${shared_ext}$major'
14198 hardcode_into_libs=yes
14199 if test "$host_cpu" = ia64; then
14200 # AIX 5 supports IA64
14201 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14202 shlibpath_var=LD_LIBRARY_PATH
14204 # With GCC up to 2.95.x, collect2 would create an import file
14205 # for dependence libraries. The import file would start with
14206 # the line `#! .'. This would cause the generated library to
14207 # depend on `.', always an invalid library. This was fixed in
14208 # development snapshots of GCC prior to 3.0.
14210 aix4 | aix4.[01] | aix4.[01].*)
14211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14213 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14216 can_build_shared=no
14220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14221 # soname into executable. Probably we can add versioning support to
14222 # collect2, so additional links can be useful in future.
14223 if test "$aix_use_runtimelinking" = yes; then
14224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14225 # instead of lib<name>.a to let people know that these are not
14226 # typical AIX shared libraries.
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229 # We preserve .a as extension for shared libraries through AIX4.2
14230 # and later when we are not doing run time linking.
14231 library_names_spec='${libname}${release}.a $libname.a'
14232 soname_spec='${libname}${release}${shared_ext}$major'
14234 shlibpath_var=LIBPATH
14241 # Since July 2007 AmigaOS4 officially supports .so libraries.
14242 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246 library_names_spec='$libname.ixlibrary $libname.a'
14247 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14248 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14254 library_names_spec='${libname}${shared_ext}'
14255 dynamic_linker="$host_os ld.so"
14256 shlibpath_var=LIBRARY_PATH
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263 soname_spec='${libname}${release}${shared_ext}$major'
14264 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14265 shlibpath_var=LD_LIBRARY_PATH
14266 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14267 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14268 # the default ld.so.conf also contains /usr/contrib/lib and
14269 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14270 # libtool to hard-code these into programs
14273 cygwin* | mingw* | pw32* | cegcc*)
14274 version_type=windows
14279 case $GCC,$host_os in
14280 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14281 library_names_spec='$libname.dll.a'
14282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14283 postinstall_cmds='base_file=`basename \${file}`~
14284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14285 dldir=$destdir/`dirname \$dlpath`~
14286 test -d \$dldir || mkdir -p \$dldir~
14287 $install_prog $dir/$dlname \$dldir/$dlname~
14288 chmod a+x \$dldir/$dlname~
14289 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14290 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14292 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14293 dlpath=$dir/\$dldll~
14295 shlibpath_overrides_runpath=yes
14299 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14300 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14301 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14304 # MinGW DLLs use traditional 'lib' prefix
14305 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14306 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14307 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14308 # It is most probably a Windows format PATH printed by
14309 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14310 # path with ; separators, and with drive letters. We can handle the
14311 # drive letters (cygwin fileutils understands them), so leave them,
14312 # especially as we might pass files found there to a mingw objdump,
14313 # which wouldn't understand a cygwinified path. Ahh.
14314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14320 # pw32 DLLs use 'pw' prefix rather than 'lib'
14321 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14330 dynamic_linker='Win32 ld.exe'
14331 # FIXME: first we should search . and the directory the executable is in
14335 darwin* | rhapsody*)
14336 dynamic_linker="$host_os dyld"
14337 version_type=darwin
14340 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14341 soname_spec='${libname}${release}${major}$shared_ext'
14342 shlibpath_overrides_runpath=yes
14343 shlibpath_var=DYLD_LIBRARY_PATH
14344 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14354 soname_spec='${libname}${release}${shared_ext}$major'
14355 shlibpath_var=LD_LIBRARY_PATH
14362 freebsd* | dragonfly*)
14363 # DragonFly does not have aout. When/if they implement a new
14364 # versioning mechanism, adjust this.
14365 if test -x /usr/bin/objformat; then
14366 objformat=`/usr/bin/objformat`
14369 freebsd[123]*) objformat=aout ;;
14370 *) objformat=elf ;;
14373 version_type=freebsd-$objformat
14374 case $version_type in
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14385 shlibpath_var=LD_LIBRARY_PATH
14388 shlibpath_overrides_runpath=yes
14390 freebsd3.[01]* | freebsdelf3.[01]*)
14391 shlibpath_overrides_runpath=yes
14392 hardcode_into_libs=yes
14394 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14395 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14396 shlibpath_overrides_runpath=no
14397 hardcode_into_libs=yes
14399 *) # from 4.6 on, and DragonFly
14400 shlibpath_overrides_runpath=yes
14401 hardcode_into_libs=yes
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 hardcode_into_libs=yes
14416 hpux9* | hpux10* | hpux11*)
14417 # Give a soname corresponding to the major version so that dld.sl refuses to
14418 # link against other versions.
14425 hardcode_into_libs=yes
14426 dynamic_linker="$host_os dld.so"
14427 shlibpath_var=LD_LIBRARY_PATH
14428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 if test "X$HPUX_IA64_MODE" = X32; then
14432 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14434 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14440 hardcode_into_libs=yes
14441 dynamic_linker="$host_os dld.sl"
14442 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14451 dynamic_linker="$host_os dld.sl"
14452 shlibpath_var=SHLIB_PATH
14453 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455 soname_spec='${libname}${release}${shared_ext}$major'
14458 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14459 postinstall_cmds='chmod 555 $lib'
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=no
14471 hardcode_into_libs=yes
14474 irix5* | irix6* | nonstopux*)
14476 nonstopux*) version_type=nonstopux ;;
14478 if test "$lt_cv_prog_gnu_ld" = yes; then
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14489 irix5* | nonstopux*)
14490 libsuff= shlibsuff=
14493 case $LD in # libtool.m4 will add one of these switches to LD
14494 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14495 libsuff= shlibsuff= libmagic=32-bit;;
14496 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14497 libsuff=32 shlibsuff=N32 libmagic=N32;;
14498 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14499 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14500 *) libsuff= shlibsuff= libmagic=never-match;;
14504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14505 shlibpath_overrides_runpath=no
14506 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14507 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14508 hardcode_into_libs=yes
14511 # No shared lib support for Linux oldld, aout, or coff.
14512 linux*oldld* | linux*aout* | linux*coff*)
14516 # This must be Linux ELF.
14517 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 shlibpath_overrides_runpath=no
14526 # Some binutils ld are patched to set DT_RUNPATH
14527 save_LDFLAGS=$LDFLAGS
14528 save_libdir=$libdir
14529 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14530 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14542 if ac_fn_cxx_try_link "$LINENO"; then :
14543 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14544 shlibpath_overrides_runpath=yes
14547 rm -f core conftest.err conftest.$ac_objext \
14548 conftest$ac_exeext conftest.$ac_ext
14549 LDFLAGS=$save_LDFLAGS
14550 libdir=$save_libdir
14552 # This implies no fast_install, which is unacceptable.
14553 # Some rework will be needed to allow for fast_install
14554 # before this can be enabled.
14555 hardcode_into_libs=yes
14557 # Append ld.so.conf contents to the search path
14558 if test -f /etc/ld.so.conf; then
14559 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;/^$/d' | tr '\n' ' '`
14560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14563 # We used to test for /lib/ld.so.1 and disable shared libraries on
14564 # powerpc, because MkLinux only supported shared libraries with the
14565 # GNU dynamic linker. Since this was broken with cross compilers,
14566 # most powerpc-linux boxes support dynamic linking these days and
14567 # people can always --disable-shared, the test was removed, and we
14568 # assume the GNU/Linux dynamic linker is in use.
14569 dynamic_linker='GNU/Linux ld.so'
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=no
14580 hardcode_into_libs=yes
14581 dynamic_linker='NetBSD ld.elf_so'
14588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14591 dynamic_linker='NetBSD (a.out) ld.so'
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 dynamic_linker='NetBSD ld.elf_so'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 shlibpath_overrides_runpath=yes
14599 hardcode_into_libs=yes
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=yes
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14618 dynamic_linker='ldqnx.so'
14623 sys_lib_dlsearch_path_spec="/usr/lib"
14625 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14627 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14628 *) need_version=no ;;
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14635 openbsd2.[89] | openbsd2.[89].*)
14636 shlibpath_overrides_runpath=no
14639 shlibpath_overrides_runpath=yes
14643 shlibpath_overrides_runpath=yes
14648 libname_spec='$name'
14651 library_names_spec='$libname${shared_ext} $libname.a'
14652 dynamic_linker='OS/2 ld.exe'
14653 shlibpath_var=LIBPATH
14656 osf3* | osf4* | osf5*)
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 shlibpath_var=LD_LIBRARY_PATH
14678 shlibpath_overrides_runpath=yes
14679 hardcode_into_libs=yes
14680 # ldd complains unless libraries are executable
14681 postinstall_cmds='chmod +x $lib'
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes
14690 if test "$with_gnu_ld" = yes; then
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 case $host_vendor in
14703 shlibpath_overrides_runpath=no
14705 runpath_var=LD_RUN_PATH
14713 shlibpath_overrides_runpath=no
14714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14720 if test -d /usr/nec ;then
14722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14723 soname_spec='$libname${shared_ext}.$major'
14724 shlibpath_var=LD_LIBRARY_PATH
14728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14729 version_type=freebsd-elf
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 shlibpath_var=LD_LIBRARY_PATH
14735 shlibpath_overrides_runpath=yes
14736 hardcode_into_libs=yes
14737 if test "$with_gnu_ld" = yes; then
14738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14747 sys_lib_dlsearch_path_spec='/usr/lib'
14751 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 shlibpath_overrides_runpath=no
14758 hardcode_into_libs=yes
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764 soname_spec='${libname}${release}${shared_ext}$major'
14765 shlibpath_var=LD_LIBRARY_PATH
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14773 $as_echo "$dynamic_linker" >&6; }
14774 test "$dynamic_linker" = no && can_build_shared=no
14776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14777 if test "$GCC" = yes; then
14778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14781 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14782 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14784 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14785 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14824 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14825 hardcode_action_CXX=
14826 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14827 test -n "$runpath_var_CXX" ||
14828 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14830 # We can hardcode non-existent directories.
14831 if test "$hardcode_direct_CXX" != no &&
14832 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14833 # have to relink, otherwise we might link with an installed library
14834 # when we should be linking with a yet-to-be-installed one
14835 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14836 test "$hardcode_minus_L_CXX" != no; then
14837 # Linking always hardcodes the temporary library directory.
14838 hardcode_action_CXX=relink
14840 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14841 hardcode_action_CXX=immediate
14844 # We cannot hardcode anything, or else we can only hardcode existing
14846 hardcode_action_CXX=unsupported
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14849 $as_echo "$hardcode_action_CXX" >&6; }
14851 if test "$hardcode_action_CXX" = relink ||
14852 test "$inherit_rpath_CXX" = yes; then
14853 # Fast installation is not supported
14854 enable_fast_install=no
14855 elif test "$shlibpath_overrides_runpath" = yes ||
14856 test "$enable_shared" = no; then
14857 # Fast installation is not necessary
14858 enable_fast_install=needless
14867 fi # test -n "$compiler"
14873 with_gnu_ld=$lt_save_with_gnu_ld
14874 lt_cv_path_LDCXX=$lt_cv_path_LD
14875 lt_cv_path_LD=$lt_save_path_LD
14876 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14877 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14878 fi # test "$_lt_caught_CXX_error" != yes
14881 ac_cpp='$CPP $CPPFLAGS'
14882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14887 ac_config_headers="$ac_config_headers config.h"
14889 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
14891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14894 cat >>confdefs.h <<_ACEOF
14895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14902 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14903 if test "x$ac_cv_func_vasprintf" = x""yes; then :
14904 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14907 case " $LIBOBJS " in
14908 *" vasprintf.$ac_objext "* ) ;;
14909 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14919 # Check whether --enable-reauth was given.
14920 if test "${enable_reauth+set}" = set; then :
14921 enableval=$enable_reauth; if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
14924 echo "--enable-reauth argument must be yes or no"
14931 if test "x$reauth" = "xyes" ; then
14932 echo "Fast reauthentication protocol enabled"
14933 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
14935 if test "x$reauth" != "xno"; then
14936 GSSEAP_ENABLE_REAUTH_TRUE=
14937 GSSEAP_ENABLE_REAUTH_FALSE='#'
14939 GSSEAP_ENABLE_REAUTH_TRUE='#'
14940 GSSEAP_ENABLE_REAUTH_FALSE=
14945 # Check whether --enable-acceptor was given.
14946 if test "${enable_acceptor+set}" = set; then :
14947 enableval=$enable_acceptor; if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
14948 acceptor=$enableval
14950 echo "--enable-acceptor argument must be yes or no"
14957 if test "x$acceptor" = "xyes" ; then
14958 echo "acceptor enabled"
14959 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
14961 if test "x$acceptor" != "xno"; then
14962 GSSEAP_ENABLE_ACCEPTOR_TRUE=
14963 GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
14965 GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
14966 GSSEAP_ENABLE_ACCEPTOR_FALSE=
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
14973 $as_echo_n "checking for windows... " >&6; }
14974 target_windows="no"
14975 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14976 if test "x$ac_cv_header_windows_h" = x""yes; then :
14977 target_windows="yes"
14979 target_windows="no"
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
14984 $as_echo "$target_windows" >&6; }
14985 if test "x$target_windows" = "xyes"; then
14986 TARGET_WINDOWS_TRUE=
14987 TARGET_WINDOWS_FALSE='#'
14989 TARGET_WINDOWS_TRUE='#'
14990 TARGET_WINDOWS_FALSE=
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
14995 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
14999 # Check whether --with-krb5 was given.
15000 if test "${with_krb5+set}" = set; then :
15001 withval=$with_krb5; check_krb5_dir="$withval"
15006 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15008 if test -x "$dir/bin/krb5-config"; then
15010 if test "x$target_windows" = "xyes"; then
15011 KRB5_CFLAGS=-I"$check_krb5_dir/include";
15012 KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15013 KRB5_LIBS="-lkrb5_32 -lgssapi32";
15014 COMPILE_ET="$check_krb5_dir/bin/compile_et";
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15016 $as_echo "yes" >&6; }
15018 KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15019 KRB5_LDFLAGS="-L$dir/lib";
15020 KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15022 $as_echo "yes" >&6; }
15023 # Extract the first word of "compile_et", so it can be a program name with args.
15024 set dummy compile_et; ac_word=$2
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15026 $as_echo_n "checking for $ac_word... " >&6; }
15027 if test "${ac_cv_path_COMPILE_ET+set}" = set; then :
15028 $as_echo_n "(cached) " >&6
15030 case $COMPILE_ET in
15032 ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $dir/bin$PATH_SEPARATOr
15039 test -z "$as_dir" && as_dir=.
15040 for ac_exec_ext in '' $ac_executable_extensions; do
15041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15042 ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15050 test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15054 COMPILE_ET=$ac_cv_path_COMPILE_ET
15055 if test -n "$COMPILE_ET"; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15057 $as_echo "$COMPILE_ET" >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15068 if test x_$found_krb5 != x_yes; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15070 $as_echo "$found_krb5" >&6; }
15072 ----------------------------------------------------------------------
15073 Cannot find GSS-API/Kerberos libraries.
15075 Please install MIT or Heimdal or specify installation directory with
15077 ----------------------------------------------------------------------
15080 printf "Kerberos found in $krb5dir\n";
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15086 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15087 if test "${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+set}" = set; then :
15088 $as_echo_n "(cached) " >&6
15090 ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15101 char GSS_C_NT_COMPOSITE_EXPORT ();
15105 return GSS_C_NT_COMPOSITE_EXPORT ();
15110 if ac_fn_c_try_link "$LINENO"; then :
15111 ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15113 ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15115 rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15120 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15121 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = x""yes; then :
15123 cat >>confdefs.h <<_ACEOF
15124 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15130 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15131 if test "${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+set}" = set; then :
15132 $as_echo_n "(cached) " >&6
15134 ac_check_lib_save_LIBS=$LIBS
15135 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15139 /* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15145 char gss_inquire_attrs_for_mech ();
15149 return gss_inquire_attrs_for_mech ();
15154 if ac_fn_c_try_link "$LINENO"; then :
15155 ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
15157 ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
15159 rm -f core conftest.err conftest.$ac_objext \
15160 conftest$ac_exeext conftest.$ac_ext
15161 LIBS=$ac_check_lib_save_LIBS
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
15164 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
15165 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = x""yes; then :
15167 cat >>confdefs.h <<_ACEOF
15168 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
15174 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
15175 if test "${ac_cv_lib_krb5_gss_krb5_import_cred+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15178 ac_check_lib_save_LIBS=$LIBS
15179 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15189 char gss_krb5_import_cred ();
15193 return gss_krb5_import_cred ();
15198 if ac_fn_c_try_link "$LINENO"; then :
15199 ac_cv_lib_krb5_gss_krb5_import_cred=yes
15201 ac_cv_lib_krb5_gss_krb5_import_cred=no
15203 rm -f core conftest.err conftest.$ac_objext \
15204 conftest$ac_exeext conftest.$ac_ext
15205 LIBS=$ac_check_lib_save_LIBS
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
15208 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
15209 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = x""yes; then :
15211 cat >>confdefs.h <<_ACEOF
15212 #define HAVE_GSS_KRB5_IMPORT_CRED 1
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
15218 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
15219 if test "${ac_cv_lib_krb5_heimdal_version+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15222 ac_check_lib_save_LIBS=$LIBS
15223 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15227 /* Override any GCC internal prototype to avoid an error.
15228 Use char because int might match the return type of a GCC
15229 builtin and then its argument prototype would still apply. */
15233 char heimdal_version ();
15237 return heimdal_version ();
15242 if ac_fn_c_try_link "$LINENO"; then :
15243 ac_cv_lib_krb5_heimdal_version=yes
15245 ac_cv_lib_krb5_heimdal_version=no
15247 rm -f core conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
15252 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
15253 if test "x$ac_cv_lib_krb5_heimdal_version" = x""yes; then :
15255 cat >>confdefs.h <<_ACEOF
15256 #define HAVE_HEIMDAL_VERSION 1
15263 if test "x$heimdal" != "xno"; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
15274 $as_echo_n "checking for OpenSAML implementation... " >&6; }
15276 found_opensaml="no"
15278 # Check whether --with-opensaml was given.
15279 if test "${with_opensaml+set}" = set; then :
15280 withval=$with_opensaml; check_opensaml_dir="$withval"
15282 check_opensaml_dir=
15285 if test x_$check_opensaml_dir != x_no; then
15286 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
15288 if test -f "$dir/include/saml/Assertion.h"; then
15289 found_opensaml="yes";
15290 OPENSAML_DIR="${opensamldir}"
15291 OPENSAML_CXXFLAGS="-I$opensamldir/include";
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
15297 $as_echo "$found_opensaml" >&6; }
15298 if test x_$check_opensaml_dir != x_no; then
15299 if test x_$found_opensaml != x_yes; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15301 ----------------------------------------------------------------------
15302 Cannot find OpenSAML libraries, building without OpenSAML support.
15304 Please install OpenSAML or specify installation directory with
15305 --with-opensaml=(dir).
15306 ----------------------------------------------------------------------
15308 $as_echo "$as_me: WARNING:
15309 ----------------------------------------------------------------------
15310 Cannot find OpenSAML libraries, building without OpenSAML support.
15312 Please install OpenSAML or specify installation directory with
15313 --with-opensaml=(dir).
15314 ----------------------------------------------------------------------
15317 printf "OpenSAML found in $opensamldir\n";
15318 OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
15319 OPENSAML_LDFLAGS="-L$opensamldir/lib";
15324 cat >>confdefs.h <<_ACEOF
15325 #define HAVE_OPENSAML 1
15331 if test "x_$check_opensaml_dir" != "x_no"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
15341 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
15343 found_shibresolver="no"
15345 # Check whether --with-shibresolver was given.
15346 if test "${with_shibresolver+set}" = set; then :
15347 withval=$with_shibresolver; check_shibresolver_dir="$withval"
15349 check_shibresolver_dir=
15352 if test x_$check_shibresolver_dir != x_no; then
15353 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
15354 shibresolverdir="$dir"
15355 if test -f "$dir/include/shibresolver/resolver.h"; then
15356 found_shibresolver="yes";
15357 SHIBRESOLVER_DIR="${shibresolverdir}"
15358 SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
15364 $as_echo "$found_shibresolver" >&6; }
15365 if test x_$check_shibresolver_dir != x_no; then
15366 if test x_$found_shibresolver != x_yes; then
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15368 ----------------------------------------------------------------------
15369 Cannot find Shibboleth resolver libraries, building without
15370 Shibboleth support.
15372 Please install Shibboleth or specify installation directory with
15373 --with-shibresolver=(dir).
15374 ----------------------------------------------------------------------
15376 $as_echo "$as_me: WARNING:
15377 ----------------------------------------------------------------------
15378 Cannot find Shibboleth resolver libraries, building without
15379 Shibboleth support.
15381 Please install Shibboleth or specify installation directory with
15382 --with-shibresolver=(dir).
15383 ----------------------------------------------------------------------
15386 printf "Shibboleth resolver found in $shibresolverdir\n";
15387 SHIBRESOLVER_LIBS="-lshibresolver";
15388 SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
15393 cat >>confdefs.h <<_ACEOF
15394 #define HAVE_SHIBRESOLVER 1
15400 if test "x_$check_shibresolver_dir" != "x_no"; then
15402 SHIBRESOLVER_FALSE='#'
15404 SHIBRESOLVER_TRUE='#'
15405 SHIBRESOLVER_FALSE=
15408 if test x_$found_shibresolver = x_yes; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
15410 $as_echo_n "checking for Shibboleth implementation... " >&6; }
15414 # Check whether --with-shibsp was given.
15415 if test "${with_shibsp+set}" = set; then :
15416 withval=$with_shibsp; check_shibsp_dir="$withval"
15421 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
15423 if test -f "$dir/include/shibsp/SPConfig.h"; then
15424 found_shibsp="yes";
15425 SHIBSP_DIR="${shibspdir}"
15426 SHIBSP_CXXFLAGS="-I$shibspdir/include";
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
15431 $as_echo "$found_shibsp" >&6; }
15432 if test x_$found_shibsp != x_yes; then
15434 ----------------------------------------------------------------------
15435 Cannot find Shibboleth libraries.
15437 Please install Shibboleth or specify installation directory with
15438 --with-shibsp=(dir).
15439 ----------------------------------------------------------------------
15442 printf "Shibboleth found in $shibspdir\n";
15443 SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
15444 SHIBSP_LDFLAGS="-L$shibspdir/lib";
15449 cat >>confdefs.h <<_ACEOF
15450 #define HAVE_SHIBSP 1
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
15458 $as_echo_n "checking for OpenSSL... " >&6; }
15462 # Check whether --with-openssl was given.
15463 if test "${with_openssl+set}" = set; then :
15464 withval=$with_openssl; check_openssl_dir="$withval"
15469 for dir in $check_openssl_dir $prefix /usr /usr/local ; do
15471 if test -f "$dir/include/openssl/opensslv.h"; then
15472 found_openssl="yes";
15473 OPENSSL_DIR="${openssldir}"
15474 OPENSSL_CFLAGS="-I$openssldir/include";
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_openssl" >&5
15479 $as_echo "$found_openssl" >&6; }
15480 if test x_$found_openssl != x_yes; then
15482 ----------------------------------------------------------------------
15483 Cannot find OpenSSL libraries.
15485 Please install libssl or specify installation directory with
15486 --with-openssl=(dir).
15487 ----------------------------------------------------------------------
15490 printf "OpenSSL found in $openssldir\n";
15491 OPENSSL_LIBS="-lssl -lcrypto";
15492 OPENSSL_LDFLAGS="-L$openssldir/lib";
15499 if test "x$acceptor" = "xyes" ; then
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
15501 $as_echo_n "checking for radsec... " >&6; }
15505 # Check whether --with-radsec was given.
15506 if test "${with_radsec+set}" = set; then :
15507 withval=$with_radsec; check_radsec_dir="$withval"
15512 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
15514 if test -f "$dir/include/radsec/radsec.h"; then
15515 found_radsec="yes";
15516 RADSEC_DIR="${radsecdir}"
15517 RADSEC_CFLAGS="-I$radsecdir/include";
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
15522 $as_echo "$found_radsec" >&6; }
15523 if test x_$found_radsec != x_yes; then
15525 ----------------------------------------------------------------------
15526 Cannot find radsec libraries.
15528 Please install libradsec or specify installation directory with
15529 --with-radsec=(dir).
15530 ----------------------------------------------------------------------
15533 printf "radsec found in $radsecdir\n";
15534 RADSEC_LIBS="-lradsec";
15535 RADSEC_LDFLAGS="-L$radsecdir/lib";
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15542 $as_echo_n "checking for jansson... " >&6; }
15546 # Check whether --with-jansson was given.
15547 if test "${with_jansson+set}" = set; then :
15548 withval=$with_jansson; check_jansson_dir="$withval"
15553 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
15555 if test -f "$dir/include/jansson.h"; then
15556 found_jansson="yes";
15557 JANSSON_DIR="${janssondir}"
15558 JANSSON_CFLAGS="-I$janssondir/include";
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
15563 $as_echo "$found_jansson" >&6; }
15564 if test x_$found_jansson != x_yes; then
15566 ----------------------------------------------------------------------
15567 Cannot find jansson libraries.
15569 Please install libjansson or specify installation directory with
15570 --with-jansson=(dir).
15571 ----------------------------------------------------------------------
15574 printf "jansson found in $janssondir\n";
15575 JANSSON_LIBS="-ljansson";
15576 JANSSON_LDFLAGS="-L$janssondir/lib";
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
15585 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
15587 LIBMOONSHOT_CFLAGS=
15588 LIBMOONSHOT_LDFLAGS=
15590 found_libmoonshot="no"
15592 # Check whether --with-libmoonshot was given.
15593 if test "${with_libmoonshot+set}" = set; then :
15594 withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
15596 check_libmoonshot_dir=
15599 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
15600 libmoonshotdir="$dir"
15601 if test -f "$dir/include/libmoonshot.h"; then
15602 found_libmoonshot="yes";
15603 LIBMOONSHOT_DIR="${libmoonshotdir}"
15604 LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
15609 $as_echo "$found_libmoonshot" >&6; }
15610 if test x_$found_libmoonshot = x_yes; then
15611 printf "libmoonshot found in $libmoonshotdir\n";
15612 LIBMOONSHOT_LIBS="-lmoonshot";
15613 LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
15615 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
15616 if test "${ac_cv_lib_moonshot_moonshot_get_identity+set}" = set; then :
15617 $as_echo_n "(cached) " >&6
15619 ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15624 /* Override any GCC internal prototype to avoid an error.
15625 Use char because int might match the return type of a GCC
15626 builtin and then its argument prototype would still apply. */
15630 char moonshot_get_identity ();
15634 return moonshot_get_identity ();
15639 if ac_fn_c_try_link "$LINENO"; then :
15640 ac_cv_lib_moonshot_moonshot_get_identity=yes
15642 ac_cv_lib_moonshot_moonshot_get_identity=no
15644 rm -f core conftest.err conftest.$ac_objext \
15645 conftest$ac_exeext conftest.$ac_ext
15646 LIBS=$ac_check_lib_save_LIBS
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
15649 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
15650 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = x""yes; then :
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_MOONSHOT_GET_IDENTITY 1
15662 if test "x$found_libmoonshot" != "xno"; then
15664 LIBMOONSHOT_FALSE='#'
15666 LIBMOONSHOT_TRUE='#'
15671 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
15673 cat >confcache <<\_ACEOF
15674 # This file is a shell script that caches the results of configure
15675 # tests run on this system so they can be shared between configure
15676 # scripts and configure runs, see configure's option --config-cache.
15677 # It is not useful on other systems. If it contains results you don't
15678 # want to keep, you may remove or edit it.
15680 # config.status only pays attention to the cache file if you give it
15681 # the --recheck option to rerun configure.
15683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15685 # following values.
15689 # The following way of writing the cache mishandles newlines in values,
15690 # but we know of no workaround that is simple, portable, and efficient.
15691 # So, we kill variables containing newlines.
15692 # Ultrix sh set writes to stderr and can't be redirected directly,
15693 # and sets the high bit in the cache file unless we assign to the vars.
15695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15696 eval ac_val=\$$ac_var
15700 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15704 _ | IFS | as_nl) ;; #(
15705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15706 *) { eval $ac_var=; unset $ac_var;} ;;
15712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15713 *${as_nl}ac_space=\ *)
15714 # `set' does not quote correctly, so add quotes: double-quote
15715 # substitution turns \\\\ into \\, and sed turns \\ into \.
15718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15721 # `set' quotes correctly as required by POSIX, so do not add quotes.
15722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15736 if test -w "$cache_file"; then
15737 test "x$cache_file" != "x/dev/null" &&
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15739 $as_echo "$as_me: updating cache $cache_file" >&6;}
15740 cat confcache >$cache_file
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15749 # Let make expand exec_prefix.
15750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15752 DEFS=-DHAVE_CONFIG_H
15757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15758 # 1. Remove the extension, and $U if already installed.
15759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15760 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15762 # will be set to the directory where LIBOBJS objects are built.
15763 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15764 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15766 LIBOBJS=$ac_libobjs
15768 LTLIBOBJS=$ac_ltlibobjs
15771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15772 as_fn_error $? "conditional \"AMDEP\" was never defined.
15773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15775 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15779 if test -n "$EXEEXT"; then
15781 am__EXEEXT_FALSE='#'
15783 am__EXEEXT_TRUE='#'
15787 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15788 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15791 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15792 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15795 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15796 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15799 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
15800 as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
15801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15803 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
15804 as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
15805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15807 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
15808 as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
15809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15811 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
15812 as_fn_error $? "conditional \"HEIMDAL\" was never defined.
15813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15815 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
15816 as_fn_error $? "conditional \"OPENSAML\" was never defined.
15817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15819 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
15820 as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
15821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15823 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
15824 as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
15825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15828 : ${CONFIG_STATUS=./config.status}
15830 ac_clean_files_save=$ac_clean_files
15831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15833 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15835 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15837 # Generated by $as_me.
15838 # Run this file to recreate the current configuration.
15839 # Compiler output produced by configure, useful for debugging
15840 # configure, is in config.log if it exists.
15843 ac_cs_recheck=false
15846 SHELL=\${CONFIG_SHELL-$SHELL}
15849 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15850 ## -------------------- ##
15851 ## M4sh Initialization. ##
15852 ## -------------------- ##
15854 # Be more Bourne compatible
15855 DUALCASE=1; export DUALCASE # for MKS sh
15856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15859 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15860 # is contrary to our usage. Disable this feature.
15861 alias -g '${1+"$@"}'='"$@"'
15862 setopt NO_GLOB_SUBST
15864 case `(set -o) 2>/dev/null` in #(
15876 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15877 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15879 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15880 # Prefer a ksh shell builtin over an external printf program on Solaris,
15881 # but without wasting forks for bash or zsh.
15882 if test -z "$BASH_VERSION$ZSH_VERSION" \
15883 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15884 as_echo='print -r --'
15885 as_echo_n='print -rn --'
15886 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15887 as_echo='printf %s\n'
15888 as_echo_n='printf %s'
15890 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15891 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15892 as_echo_n='/usr/ucb/echo -n'
15894 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15895 as_echo_n_body='eval
15899 expr "X$arg" : "X\\(.*\\)$as_nl";
15900 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15902 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15904 export as_echo_n_body
15905 as_echo_n='sh -c $as_echo_n_body as_echo'
15907 export as_echo_body
15908 as_echo='sh -c $as_echo_body as_echo'
15911 # The user is always right.
15912 if test "${PATH_SEPARATOR+set}" != set; then
15914 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15915 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15922 # We need space, tab and new line, in precisely that order. Quoting is
15923 # there to prevent editors from complaining about space-tab.
15924 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15925 # splitting by setting IFS to empty value.)
15928 # Find who we are. Look in the path if we contain no directory separator.
15930 *[\\/]* ) as_myself=$0 ;;
15931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932 for as_dir in $PATH
15935 test -z "$as_dir" && as_dir=.
15936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15942 # We did not find ourselves, most probably we were run as `sh COMMAND'
15943 # in which case we are not to be found in the path.
15944 if test "x$as_myself" = x; then
15947 if test ! -f "$as_myself"; then
15948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15952 # Unset variables that we do not need and which cause bugs (e.g. in
15953 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15954 # suppresses any "Segmentation fault" message there. '((' could
15955 # trigger a bug in pdksh 5.2.14.
15956 for as_var in BASH_ENV ENV MAIL MAILPATH
15957 do eval test x\${$as_var+set} = xset \
15958 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15974 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15975 # ----------------------------------------
15976 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15977 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15978 # script with STATUS, using 1 if that was 0.
15981 as_status=$1; test $as_status -eq 0 && as_status=1
15983 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15984 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15986 $as_echo "$as_me: error: $2" >&2
15987 as_fn_exit $as_status
15991 # as_fn_set_status STATUS
15992 # -----------------------
15993 # Set $? to STATUS, without forking.
15994 as_fn_set_status ()
15997 } # as_fn_set_status
15999 # as_fn_exit STATUS
16000 # -----------------
16001 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16005 as_fn_set_status $1
16011 # Portably unset VAR.
16014 { eval $1=; unset $1;}
16016 as_unset=as_fn_unset
16017 # as_fn_append VAR VALUE
16018 # ----------------------
16019 # Append the text in VALUE to the end of the definition contained in VAR. Take
16020 # advantage of any shell optimizations that allow amortized linear growth over
16021 # repeated appends, instead of the typical quadratic growth present in naive
16023 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16024 eval 'as_fn_append ()
16035 # as_fn_arith ARG...
16036 # ------------------
16037 # Perform arithmetic evaluation on the ARGs, and store the result in the
16038 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16039 # must be portable across $(()) and expr.
16040 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16041 eval 'as_fn_arith ()
16048 as_val=`expr "$@" || test $? -eq 1`
16053 if expr a : '\(a\)' >/dev/null 2>&1 &&
16054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16060 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16061 as_basename=basename
16066 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16072 as_me=`$as_basename -- "$0" ||
16073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16074 X"$0" : 'X\(//\)$' \| \
16075 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16077 sed '/^.*\/\([^/][^/]*\)\/*$/{
16091 # Avoid depending upon Character Ranges.
16092 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16093 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16094 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16095 as_cr_digits='0123456789'
16096 as_cr_alnum=$as_cr_Letters$as_cr_digits
16098 ECHO_C= ECHO_N= ECHO_T=
16099 case `echo -n x` in #(((((
16101 case `echo 'xy\c'` in
16102 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16104 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16111 rm -f conf$$ conf$$.exe conf$$.file
16112 if test -d conf$$.dir; then
16113 rm -f conf$$.dir/conf$$.file
16116 mkdir conf$$.dir 2>/dev/null
16118 if (echo >conf$$.file) 2>/dev/null; then
16119 if ln -s conf$$.file conf$$ 2>/dev/null; then
16121 # ... but there are two gotchas:
16122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16124 # In both cases, we have to default to `cp -p'.
16125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16127 elif ln conf$$.file conf$$ 2>/dev/null; then
16135 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16136 rmdir conf$$.dir 2>/dev/null
16141 # Create "$as_dir" as a directory, including parents if necessary.
16146 -*) as_dir=./$as_dir;;
16148 test -d "$as_dir" || eval $as_mkdir_p || {
16152 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16153 *) as_qdir=$as_dir;;
16155 as_dirs="'$as_qdir' $as_dirs"
16156 as_dir=`$as_dirname -- "$as_dir" ||
16157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16158 X"$as_dir" : 'X\(//\)[^/]' \| \
16159 X"$as_dir" : 'X\(//\)$' \| \
16160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16161 $as_echo X"$as_dir" |
16162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16166 /^X\(\/\/\)[^/].*/{
16179 test -d "$as_dir" && break
16181 test -z "$as_dirs" || eval "mkdir $as_dirs"
16182 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16186 if mkdir -p . 2>/dev/null; then
16187 as_mkdir_p='mkdir -p "$as_dir"'
16189 test -d ./-p && rmdir ./-p
16193 if test -x / >/dev/null 2>&1; then
16194 as_test_x='test -x'
16196 if ls -dL / >/dev/null 2>&1; then
16203 if test -d "$1"; then
16209 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16210 ???[sx]*):;;*)false;;esac;fi
16214 as_executable_p=$as_test_x
16216 # Sed expression to map a string onto a valid CPP name.
16217 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16219 # Sed expression to map a string onto a valid variable name.
16220 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16224 ## ----------------------------------- ##
16225 ## Main body of $CONFIG_STATUS script. ##
16226 ## ----------------------------------- ##
16228 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 # Save the log message, to keep $0 and so on meaningful, and to
16232 # report actual input values of CONFIG_FILES etc. instead of their
16233 # values after options handling.
16235 This file was extended by mech_eap $as_me 0.9, which was
16236 generated by GNU Autoconf 2.67. Invocation command line was
16238 CONFIG_FILES = $CONFIG_FILES
16239 CONFIG_HEADERS = $CONFIG_HEADERS
16240 CONFIG_LINKS = $CONFIG_LINKS
16241 CONFIG_COMMANDS = $CONFIG_COMMANDS
16244 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16249 case $ac_config_files in *"
16250 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16253 case $ac_config_headers in *"
16254 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16259 # Files that config.status was made for.
16260 config_files="$ac_config_files"
16261 config_headers="$ac_config_headers"
16262 config_commands="$ac_config_commands"
16266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16268 \`$as_me' instantiates files and other configuration actions
16269 from templates according to the current configuration. Unless the files
16270 and actions are specified as TAGs, all are instantiated by default.
16272 Usage: $0 [OPTION]... [TAG]...
16274 -h, --help print this help, then exit
16275 -V, --version print version number and configuration settings, then exit
16276 --config print configuration, then exit
16277 -q, --quiet, --silent
16278 do not print progress messages
16279 -d, --debug don't remove temporary files
16280 --recheck update $as_me by reconfiguring in the same conditions
16281 --file=FILE[:TEMPLATE]
16282 instantiate the configuration file FILE
16283 --header=FILE[:TEMPLATE]
16284 instantiate the configuration header FILE
16286 Configuration files:
16289 Configuration headers:
16292 Configuration commands:
16295 Report bugs to <bugs@project-moonshot.org>."
16298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16299 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16301 mech_eap config.status 0.9
16302 configured by $0, generated by GNU Autoconf 2.67,
16303 with options \\"\$ac_cs_config\\"
16305 Copyright (C) 2010 Free Software Foundation, Inc.
16306 This config.status script is free software; the Free Software Foundation
16307 gives unlimited permission to copy, distribute and modify it."
16314 test -n "\$AWK" || AWK=awk
16317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16318 # The default lists apply if the user does not specify any file.
16324 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16325 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16341 # Handling of the options.
16342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16344 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16345 $as_echo "$ac_cs_version"; exit ;;
16346 --config | --confi | --conf | --con | --co | --c )
16347 $as_echo "$ac_cs_config"; exit ;;
16348 --debug | --debu | --deb | --de | --d | -d )
16350 --file | --fil | --fi | --f )
16353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16354 '') as_fn_error $? "missing file argument" ;;
16356 as_fn_append CONFIG_FILES " '$ac_optarg'"
16357 ac_need_defaults=false;;
16358 --header | --heade | --head | --hea )
16361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16363 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16364 ac_need_defaults=false;;
16366 # Conflict between --help and --header
16367 as_fn_error $? "ambiguous option: \`$1'
16368 Try \`$0 --help' for more information.";;
16369 --help | --hel | -h )
16370 $as_echo "$ac_cs_usage"; exit ;;
16371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16372 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16375 # This is an error.
16376 -*) as_fn_error $? "unrecognized option: \`$1'
16377 Try \`$0 --help' for more information." ;;
16379 *) as_fn_append ac_config_targets " $1"
16380 ac_need_defaults=false ;;
16386 ac_configure_extra_args=
16388 if $ac_cs_silent; then
16390 ac_configure_extra_args="$ac_configure_extra_args --silent"
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395 if \$ac_cs_recheck; then
16396 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16399 CONFIG_SHELL='$SHELL'
16400 export CONFIG_SHELL
16405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16410 ## Running $as_me. ##
16416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16423 # The HP-UX ksh and POSIX shell print the target directory to stdout
16424 # if CDPATH is set.
16425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16427 sed_quote_subst='$sed_quote_subst'
16428 double_quote_subst='$double_quote_subst'
16429 delay_variable_subst='$delay_variable_subst'
16430 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16431 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16432 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16433 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16434 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16435 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16436 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16437 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16438 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16439 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16440 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16441 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16442 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16443 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16444 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16445 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16446 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16447 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16448 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16449 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16450 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16451 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16452 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16453 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16454 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16455 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16456 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16457 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16458 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16459 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16460 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16461 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16462 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16463 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16464 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16465 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16466 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16467 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16468 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16469 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16470 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16471 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16472 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16473 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16474 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16475 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16476 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16477 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16478 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16479 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16480 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16481 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16482 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16483 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16484 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16485 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16486 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16487 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16488 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16489 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16490 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16491 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16492 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16493 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16494 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16495 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16496 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16497 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16498 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16499 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16500 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16501 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16502 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16503 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16504 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16505 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16506 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16507 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16508 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16509 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16510 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16511 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16512 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16513 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16514 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16515 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16516 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16517 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16518 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16519 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16520 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16521 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16522 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16523 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16524 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16525 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16526 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16527 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16528 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16529 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16530 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16531 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16532 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16533 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16534 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16535 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16536 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16537 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16538 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16539 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16540 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16541 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16542 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16543 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16544 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16545 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16546 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16547 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16548 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16549 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16550 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16551 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16552 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16553 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16554 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16555 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16556 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16557 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16558 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16559 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16560 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16561 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16562 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16563 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16564 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16565 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16566 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16567 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16568 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16569 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16570 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16571 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16572 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16573 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16574 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16575 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16576 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16577 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16578 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16579 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16580 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16581 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16582 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16583 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16584 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16585 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16586 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16587 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16588 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16589 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16590 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16591 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16592 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16593 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16594 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16595 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16596 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16597 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16598 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16599 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16600 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16601 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16602 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16605 LTCFLAGS='$LTCFLAGS'
16606 compiler='$compiler_DEFAULT'
16608 # Quote evaled strings.
16619 deplibs_check_method \
16628 lt_cv_sys_global_symbol_pipe \
16629 lt_cv_sys_global_symbol_to_cdecl \
16630 lt_cv_sys_global_symbol_to_c_name_address \
16631 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16634 lt_prog_compiler_no_builtin_flag \
16635 lt_prog_compiler_wl \
16636 lt_prog_compiler_pic \
16637 lt_prog_compiler_static \
16638 lt_cv_prog_compiler_c_o \
16646 export_dynamic_flag_spec \
16647 whole_archive_flag_spec \
16648 compiler_needs_object \
16650 allow_undefined_flag \
16651 no_undefined_flag \
16652 hardcode_libdir_flag_spec \
16653 hardcode_libdir_flag_spec_ld \
16654 hardcode_libdir_separator \
16659 variables_saved_for_relink \
16661 library_names_spec \
16666 compiler_lib_search_dirs \
16671 compiler_lib_search_path \
16674 lt_prog_compiler_no_builtin_flag_CXX \
16675 lt_prog_compiler_wl_CXX \
16676 lt_prog_compiler_pic_CXX \
16677 lt_prog_compiler_static_CXX \
16678 lt_cv_prog_compiler_c_o_CXX \
16679 export_dynamic_flag_spec_CXX \
16680 whole_archive_flag_spec_CXX \
16681 compiler_needs_object_CXX \
16683 allow_undefined_flag_CXX \
16684 no_undefined_flag_CXX \
16685 hardcode_libdir_flag_spec_CXX \
16686 hardcode_libdir_flag_spec_ld_CXX \
16687 hardcode_libdir_separator_CXX \
16688 fix_srcfile_path_CXX \
16689 exclude_expsyms_CXX \
16690 include_expsyms_CXX \
16691 file_list_spec_CXX \
16692 compiler_lib_search_dirs_CXX \
16693 predep_objects_CXX \
16694 postdep_objects_CXX \
16697 compiler_lib_search_path_CXX; do
16698 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16699 *[\\\\\\\`\\"\\\$]*)
16700 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16703 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16708 # Double-quote double-evaled strings.
16709 for var in reload_cmds \
16710 old_postinstall_cmds \
16711 old_postuninstall_cmds \
16713 extract_expsyms_cmds \
16714 old_archive_from_new_cmds \
16715 old_archive_from_expsyms_cmds \
16717 archive_expsym_cmds \
16719 module_expsym_cmds \
16720 export_symbols_cmds \
16723 postuninstall_cmds \
16725 sys_lib_search_path_spec \
16726 sys_lib_dlsearch_path_spec \
16727 old_archive_cmds_CXX \
16728 old_archive_from_new_cmds_CXX \
16729 old_archive_from_expsyms_cmds_CXX \
16731 archive_expsym_cmds_CXX \
16733 module_expsym_cmds_CXX \
16734 export_symbols_cmds_CXX \
16735 prelink_cmds_CXX; do
16736 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16737 *[\\\\\\\`\\"\\\$]*)
16738 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16741 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16746 # Fix-up fallback echo if it was mangled by the above quoting rules.
16748 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16752 ac_aux_dir='$ac_aux_dir'
16753 xsi_shell='$xsi_shell'
16754 lt_shell_append='$lt_shell_append'
16756 # See if we are running on zsh, and set the options which allow our
16757 # commands through without removal of \ escapes INIT.
16758 if test -n "\${ZSH_VERSION+set}" ; then
16759 setopt NO_GLOB_SUBST
16765 TIMESTAMP='$TIMESTAMP'
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778 # Handling of arguments.
16779 for ac_config_target in $ac_config_targets
16781 case $ac_config_target in
16782 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16783 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16784 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16786 "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
16787 "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
16788 "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
16790 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16795 # If the user did not use the arguments to specify the items to instantiate,
16796 # then the envvar interface is used. Set only those that are not.
16797 # We use the long form for the default assignment because of an extremely
16798 # bizarre bug on SunOS 4.1.3.
16799 if $ac_need_defaults; then
16800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16802 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16805 # Have a temporary directory for convenience. Make it in the build tree
16806 # simply because there is no reason against having it here, and in addition,
16807 # creating and moving files from /tmp can sometimes cause problems.
16808 # Hook for its removal unless debugging.
16809 # Note that there is a small window in which the directory will not be cleaned:
16810 # after its creation but before its name has been assigned to `$tmp'.
16814 trap 'exit_status=$?
16815 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16817 trap 'as_fn_exit 1' 1 2 13 15
16819 # Create a (secure) tmp directory for tmp files.
16822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16823 test -n "$tmp" && test -d "$tmp"
16826 tmp=./conf$$-$RANDOM
16827 (umask 077 && mkdir "$tmp")
16828 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16830 # Set up the scripts for CONFIG_FILES section.
16831 # No need to generate them if there are no CONFIG_FILES.
16832 # This happens for instance with `./config.status config.h'.
16833 if test -n "$CONFIG_FILES"; then
16836 ac_cr=`echo X | tr X '\015'`
16837 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16838 # But we know of no other shell where ac_cr would be empty at this
16839 # point, so we can use a bashism as a fallback.
16840 if test "x$ac_cr" = x; then
16841 eval ac_cr=\$\'\\r\'
16843 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16844 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16847 ac_cs_awk_cr=$ac_cr
16850 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16855 echo "cat >conf$$subs.awk <<_ACEOF" &&
16856 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16858 } >conf$$subs.sh ||
16859 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16860 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16862 for ac_last_try in false false false false false :; do
16863 . ./conf$$subs.sh ||
16864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16866 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16867 if test $ac_delim_n = $ac_delim_num; then
16869 elif $ac_last_try; then
16870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16872 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16875 rm -f conf$$subs.sh
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16882 s/^/S["/; s/!.*/"]=/
16892 s/\(.\{148\}\)..*/\1/
16894 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16906 s/\(.\{148\}\)..*/\1/
16908 s/["\\]/\\&/g; s/^/"/; s/$/"/
16912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16917 ' <conf$$subs.awk | sed '
16922 ' >>$CONFIG_STATUS || ac_write_fail=1
16923 rm -f conf$$subs.awk
16924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16926 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16927 for (key in S) S_is_set[key] = 1
16933 nfields = split(line, field, "@")
16935 len = length(field[1])
16936 for (i = 2; i < nfields; i++) {
16938 keylen = length(key)
16939 if (S_is_set[key]) {
16941 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16942 len += length(value) + length(field[++i])
16953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16954 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16955 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16958 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16959 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16962 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16963 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16964 # trailing colons and then remove the whole line if VPATH becomes empty
16965 # (actually we leave an empty line to preserve line numbers).
16966 if test "x$srcdir" = x.; then
16967 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16986 fi # test -n "$CONFIG_FILES"
16988 # Set up the scripts for CONFIG_HEADERS section.
16989 # No need to generate them if there are no CONFIG_HEADERS.
16990 # This happens for instance with `./config.status Makefile'.
16991 if test -n "$CONFIG_HEADERS"; then
16992 cat >"$tmp/defines.awk" <<\_ACAWK ||
16996 # Transform confdefs.h into an awk script `defines.awk', embedded as
16997 # here-document in config.status, that substitutes the proper values into
16998 # config.h.in to produce config.h.
17000 # Create a delimiter string that does not exist in confdefs.h, to ease
17001 # handling of long lines.
17003 for ac_last_try in false false :; do
17004 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17005 if test -z "$ac_t"; then
17007 elif $ac_last_try; then
17008 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17014 # For the awk script, D is an array of macro values keyed by name,
17015 # likewise P contains macro parameters if any. Preserve backslash
17016 # newline sequences.
17018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17020 s/.\{148\}/&'"$ac_delim"'/g
17023 s/^[ ]*#[ ]*define[ ][ ]*/ /
17030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17032 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17036 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17037 D["\1"]=" \3\\\\\\n"\\/p
17039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17044 s/.\{148\}/&'"$ac_delim"'/g
17049 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17052 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17054 ' <confdefs.h | sed '
17055 s/'"$ac_delim"'/"\\\
17056 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17059 for (key in D) D_is_set[key] = 1
17062 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17064 split(line, arg, " ")
17065 if (arg[1] == "#") {
17069 defundef = substr(arg[1], 2)
17072 split(mac1, mac2, "(") #)
17074 prefix = substr(line, 1, index(line, defundef) - 1)
17075 if (D_is_set[macro]) {
17076 # Preserve the white space surrounding the "#".
17077 print prefix "define", macro P[macro] D[macro]
17080 # Replace #undef with comments. This is necessary, for example,
17081 # in the case of _POSIX_SOURCE, which is predefined and required
17082 # on some systems where configure will not decide to define it.
17083 if (defundef == "undef") {
17084 print "/*", prefix defundef, macro, "*/"
17092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17094 fi # test -n "$CONFIG_HEADERS"
17097 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17102 :[FHLC]) ac_mode=$ac_tag; continue;;
17104 case $ac_mode$ac_tag in
17106 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17107 :[FH]-) ac_tag=-:-;;
17108 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17125 -) ac_f="$tmp/stdin";;
17126 *) # Look for the file first in the build tree, then in the source tree
17127 # (if the path is not absolute). The absolute path cannot be DOS-style,
17128 # because $ac_f cannot contain `:'.
17132 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17134 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17136 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17137 as_fn_append ac_file_inputs " '$ac_f'"
17140 # Let's still pretend it is `configure' which instantiates (i.e., don't
17141 # use $as_me), people would be surprised to read:
17142 # /* config.h. Generated by config.status. */
17143 configure_input='Generated from '`
17144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17146 if test x"$ac_file" != x-; then
17147 configure_input="$ac_file. $configure_input"
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17149 $as_echo "$as_me: creating $ac_file" >&6;}
17151 # Neutralize special characters interpreted by sed in replacement strings.
17152 case $configure_input in #(
17153 *\&* | *\|* | *\\* )
17154 ac_sed_conf_input=`$as_echo "$configure_input" |
17155 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17156 *) ac_sed_conf_input=$configure_input;;
17160 *:-:* | *:-) cat >"$tmp/stdin" \
17161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17166 ac_dir=`$as_dirname -- "$ac_file" ||
17167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17168 X"$ac_file" : 'X\(//\)[^/]' \| \
17169 X"$ac_file" : 'X\(//\)$' \| \
17170 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17171 $as_echo X"$ac_file" |
17172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17176 /^X\(\/\/\)[^/].*/{
17189 as_dir="$ac_dir"; as_fn_mkdir_p
17193 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17195 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17196 # A ".." for each directory in $ac_dir_suffix.
17197 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17198 case $ac_top_builddir_sub in
17199 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17200 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17203 ac_abs_top_builddir=$ac_pwd
17204 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17205 # for backward compatibility:
17206 ac_top_builddir=$ac_top_build_prefix
17209 .) # We are building in place.
17211 ac_top_srcdir=$ac_top_builddir_sub
17212 ac_abs_top_srcdir=$ac_pwd ;;
17213 [\\/]* | ?:[\\/]* ) # Absolute name.
17214 ac_srcdir=$srcdir$ac_dir_suffix;
17215 ac_top_srcdir=$srcdir
17216 ac_abs_top_srcdir=$srcdir ;;
17217 *) # Relative name.
17218 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17219 ac_top_srcdir=$ac_top_build_prefix$srcdir
17220 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17222 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17232 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17233 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17235 ac_MKDIR_P=$MKDIR_P
17237 [\\/$]* | ?:[\\/]* ) ;;
17238 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17243 # If the template does not know about datarootdir, expand it.
17244 # FIXME: This hack should be removed a few years after 2.60.
17245 ac_datarootdir_hack=; ac_datarootdir_seen=
17256 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17257 *datarootdir*) ac_datarootdir_seen=yes;;
17258 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17260 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17263 ac_datarootdir_hack='
17264 s&@datadir@&$datadir&g
17265 s&@docdir@&$docdir&g
17266 s&@infodir@&$infodir&g
17267 s&@localedir@&$localedir&g
17268 s&@mandir@&$mandir&g
17269 s&\\\${datarootdir}&$datarootdir&g' ;;
17273 # Neutralize VPATH when `$srcdir' = `.'.
17274 # Shell code in configure.ac might set extrasub.
17275 # FIXME: do we really want to maintain this feature?
17276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17277 ac_sed_extra="$ac_vpsub
17280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17283 s|@configure_input@|$ac_sed_conf_input|;t t
17284 s&@top_builddir@&$ac_top_builddir_sub&;t t
17285 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17286 s&@srcdir@&$ac_srcdir&;t t
17287 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17288 s&@top_srcdir@&$ac_top_srcdir&;t t
17289 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17290 s&@builddir@&$ac_builddir&;t t
17291 s&@abs_builddir@&$ac_abs_builddir&;t t
17292 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17293 s&@INSTALL@&$ac_INSTALL&;t t
17294 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17295 $ac_datarootdir_hack
17297 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17300 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17301 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17304 which seems to be undefined. Please make sure it is defined" >&5
17305 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17306 which seems to be undefined. Please make sure it is defined" >&2;}
17310 -) cat "$tmp/out" && rm -f "$tmp/out";;
17311 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17319 if test x"$ac_file" != x-; then
17321 $as_echo "/* $configure_input */" \
17322 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17323 } >"$tmp/config.h" \
17324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17325 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17327 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17330 mv "$tmp/config.h" "$ac_file" \
17331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17334 $as_echo "/* $configure_input */" \
17335 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17336 || as_fn_error $? "could not create -" "$LINENO" 5
17338 # Compute "$ac_file"'s index in $config_headers.
17341 for _am_header in $config_headers :; do
17342 case $_am_header in
17343 $_am_arg | $_am_arg:* )
17346 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17349 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17350 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17351 X"$_am_arg" : 'X\(//\)[^/]' \| \
17352 X"$_am_arg" : 'X\(//\)$' \| \
17353 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17354 $as_echo X"$_am_arg" |
17355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17359 /^X\(\/\/\)[^/].*/{
17371 s/.*/./; q'`/stamp-h$_am_stamp_count
17374 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17375 $as_echo "$as_me: executing $ac_file commands" >&6;}
17380 case $ac_file$ac_mode in
17381 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17382 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17383 # are listed without --file. Let's play safe and only enable the eval
17384 # if we detect the quoting.
17385 case $CONFIG_FILES in
17386 *\'*) eval set x "$CONFIG_FILES" ;;
17387 *) set x $CONFIG_FILES ;;
17392 # Strip MF so we end up with the name of the file.
17393 mf=`echo "$mf" | sed -e 's/:.*$//'`
17394 # Check whether this is an Automake generated Makefile or not.
17395 # We used to match only the files named `Makefile.in', but
17396 # some people rename them; so instead we look at the file content.
17397 # Grep'ing the first line is not enough: some people post-process
17398 # each Makefile.in and add a new line on top of each file to say so.
17399 # Grep'ing the whole file is not good either: AIX grep has a line
17400 # limit of 2048, but all sed's we know have understand at least 4000.
17401 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17402 dirpart=`$as_dirname -- "$mf" ||
17403 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17404 X"$mf" : 'X\(//\)[^/]' \| \
17405 X"$mf" : 'X\(//\)$' \| \
17406 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17412 /^X\(\/\/\)[^/].*/{
17428 # Extract the definition of DEPDIR, am__include, and am__quote
17429 # from the Makefile without running `make'.
17430 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17431 test -z "$DEPDIR" && continue
17432 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17433 test -z "am__include" && continue
17434 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17435 # When using ansi2knr, U may be empty or an underscore; expand it
17436 U=`sed -n 's/^U = //p' < "$mf"`
17437 # Find all dependency output files, they are included files with
17438 # $(DEPDIR) in their names. We invoke sed twice because it is the
17439 # simplest approach to changing $(DEPDIR) to its actual value in the
17441 for file in `sed -n "
17442 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17443 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17444 # Make sure the directory exists.
17445 test -f "$dirpart/$file" && continue
17446 fdir=`$as_dirname -- "$file" ||
17447 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17448 X"$file" : 'X\(//\)[^/]' \| \
17449 X"$file" : 'X\(//\)$' \| \
17450 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17451 $as_echo X"$file" |
17452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17456 /^X\(\/\/\)[^/].*/{
17469 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17470 # echo "creating $dirpart/$file"
17471 echo '# dummy' > "$dirpart/$file"
17478 # See if we are running on zsh, and set the options which allow our
17479 # commands through without removal of \ escapes.
17480 if test -n "${ZSH_VERSION+set}" ; then
17481 setopt NO_GLOB_SUBST
17484 cfgfile="${ofile}T"
17485 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17488 cat <<_LT_EOF >> "$cfgfile"
17491 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17492 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17494 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17496 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17497 # 2006, 2007, 2008 Free Software Foundation, Inc.
17498 # Written by Gordon Matzigkeit, 1996
17500 # This file is part of GNU Libtool.
17502 # GNU Libtool is free software; you can redistribute it and/or
17503 # modify it under the terms of the GNU General Public License as
17504 # published by the Free Software Foundation; either version 2 of
17505 # the License, or (at your option) any later version.
17507 # As a special exception to the GNU General Public License,
17508 # if you distribute this file as part of a program or library that
17509 # is built using GNU Libtool, you may include this file under the
17510 # same distribution terms that you use for the rest of that program.
17512 # GNU Libtool is distributed in the hope that it will be useful,
17513 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17514 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17515 # GNU General Public License for more details.
17517 # You should have received a copy of the GNU General Public License
17518 # along with GNU Libtool; see the file COPYING. If not, a copy
17519 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17520 # obtained by writing to the Free Software Foundation, Inc.,
17521 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17524 # The names of the tagged configurations supported by this script.
17525 available_tags="CXX "
17527 # ### BEGIN LIBTOOL CONFIG
17529 # Which release of libtool.m4 was used?
17530 macro_version=$macro_version
17531 macro_revision=$macro_revision
17533 # Whether or not to build static libraries.
17534 build_old_libs=$enable_static
17536 # Assembler program.
17539 # DLL creation program.
17542 # Object dumper program.
17545 # Whether or not to build shared libraries.
17546 build_libtool_libs=$enable_shared
17548 # What type of objects to build.
17551 # Whether or not to optimize for fast installation.
17552 fast_install=$enable_fast_install
17555 host_alias=$host_alias
17559 # The build system.
17560 build_alias=$build_alias
17564 # A sed program that does not truncate output.
17567 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17568 Xsed="\$SED -e 1s/^X//"
17570 # A grep program that handles long lines.
17576 # A literal string matcher.
17579 # A BSD- or MS-compatible name lister.
17582 # Whether we need soft or hard links.
17585 # What is the maximum length of a command?
17586 max_cmd_len=$max_cmd_len
17588 # Object file suffix (normally "o").
17591 # Executable file suffix (normally "").
17594 # whether the shell understands "unset".
17597 # turn spaces into newlines.
17600 # turn newlines into spaces.
17603 # How to create reloadable object files.
17604 reload_flag=$lt_reload_flag
17605 reload_cmds=$lt_reload_cmds
17607 # Method to check whether dependent libraries are shared objects.
17608 deplibs_check_method=$lt_deplibs_check_method
17610 # Command to use when deplibs_check_method == "file_magic".
17611 file_magic_cmd=$lt_file_magic_cmd
17615 AR_FLAGS=$lt_AR_FLAGS
17617 # A symbol stripping program.
17620 # Commands used to install an old-style archive.
17622 old_postinstall_cmds=$lt_old_postinstall_cmds
17623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17628 # LTCC compiler flags.
17629 LTCFLAGS=$lt_CFLAGS
17631 # Take the output of nm and produce a listing of raw symbols and C names.
17632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17634 # Transform the output of nm in a proper C declaration.
17635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17637 # Transform the output of nm in a C name address pair.
17638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17640 # Transform the output of nm in a C name address pair when lib prefix is needed.
17641 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17643 # The name of the directory that contains temporary libtool files.
17646 # Shell to use when invoking shell scripts.
17649 # An echo program that does not interpret backslashes.
17652 # Used to examine libraries when file_magic_cmd begins with "file".
17653 MAGIC_CMD=$MAGIC_CMD
17655 # Must we lock files when doing compilation?
17656 need_locks=$lt_need_locks
17658 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17659 DSYMUTIL=$lt_DSYMUTIL
17661 # Tool to change global to local symbols on Mac OS X.
17664 # Tool to manipulate fat objects and archives on Mac OS X.
17667 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17670 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17671 OTOOL64=$lt_OTOOL64
17673 # Old archive suffix (normally "a").
17676 # Shared library suffix (normally ".so").
17677 shrext_cmds=$lt_shrext_cmds
17679 # The commands to extract the exported symbol list from a shared archive.
17680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17682 # Variables whose values should be saved in libtool wrapper scripts and
17683 # restored at link time.
17684 variables_saved_for_relink=$lt_variables_saved_for_relink
17686 # Do we need the "lib" prefix for modules?
17687 need_lib_prefix=$need_lib_prefix
17689 # Do we need a version for libraries?
17690 need_version=$need_version
17692 # Library versioning type.
17693 version_type=$version_type
17695 # Shared library runtime path variable.
17696 runpath_var=$runpath_var
17698 # Shared library path variable.
17699 shlibpath_var=$shlibpath_var
17701 # Is shlibpath searched before the hard-coded library search path?
17702 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17704 # Format of library name prefix.
17705 libname_spec=$lt_libname_spec
17707 # List of archive names. First name is the real one, the rest are links.
17708 # The last name is the one that the linker finds with -lNAME
17709 library_names_spec=$lt_library_names_spec
17711 # The coded name of the library, if different from the real name.
17712 soname_spec=$lt_soname_spec
17714 # Command to use after installation of a shared archive.
17715 postinstall_cmds=$lt_postinstall_cmds
17717 # Command to use after uninstallation of a shared archive.
17718 postuninstall_cmds=$lt_postuninstall_cmds
17720 # Commands used to finish a libtool library installation in a directory.
17721 finish_cmds=$lt_finish_cmds
17723 # As "finish_cmds", except a single script fragment to be evaled but
17725 finish_eval=$lt_finish_eval
17727 # Whether we should hardcode library paths into libraries.
17728 hardcode_into_libs=$hardcode_into_libs
17730 # Compile-time system search path for libraries.
17731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17733 # Run-time system search path for libraries.
17734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17736 # Whether dlopen is supported.
17737 dlopen_support=$enable_dlopen
17739 # Whether dlopen of programs is supported.
17740 dlopen_self=$enable_dlopen_self
17742 # Whether dlopen of statically linked programs is supported.
17743 dlopen_self_static=$enable_dlopen_self_static
17745 # Commands to strip libraries.
17746 old_striplib=$lt_old_striplib
17747 striplib=$lt_striplib
17750 # The linker used to build libraries.
17753 # Commands used to build an old-style archive.
17754 old_archive_cmds=$lt_old_archive_cmds
17756 # A language specific compiler.
17759 # Is the compiler the GNU compiler?
17762 # Compiler flag to turn off builtin functions.
17763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17765 # How to pass a linker flag through the compiler.
17766 wl=$lt_lt_prog_compiler_wl
17768 # Additional compiler flags for building library objects.
17769 pic_flag=$lt_lt_prog_compiler_pic
17771 # Compiler flag to prevent dynamic linking.
17772 link_static_flag=$lt_lt_prog_compiler_static
17774 # Does compiler simultaneously support -c and -o options?
17775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17777 # Whether or not to add -lc for building shared libraries.
17778 build_libtool_need_lc=$archive_cmds_need_lc
17780 # Whether or not to disallow shared libs when runtime libs are static.
17781 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17783 # Compiler flag to allow reflexive dlopens.
17784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17786 # Compiler flag to generate shared objects directly from archives.
17787 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17789 # Whether the compiler copes with passing no objects directly.
17790 compiler_needs_object=$lt_compiler_needs_object
17792 # Create an old-style archive from a shared archive.
17793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17795 # Create a temporary old-style archive to link instead of a shared archive.
17796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17798 # Commands used to build a shared archive.
17799 archive_cmds=$lt_archive_cmds
17800 archive_expsym_cmds=$lt_archive_expsym_cmds
17802 # Commands used to build a loadable module if different from building
17803 # a shared archive.
17804 module_cmds=$lt_module_cmds
17805 module_expsym_cmds=$lt_module_expsym_cmds
17807 # Whether we are building with GNU ld or not.
17808 with_gnu_ld=$lt_with_gnu_ld
17810 # Flag that allows shared libraries with undefined symbols to be built.
17811 allow_undefined_flag=$lt_allow_undefined_flag
17813 # Flag that enforces no undefined symbols.
17814 no_undefined_flag=$lt_no_undefined_flag
17816 # Flag to hardcode \$libdir into a binary during linking.
17817 # This must work even if \$libdir does not exist
17818 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17820 # If ld is used when linking, flag to hardcode \$libdir into a binary
17821 # during linking. This must work even if \$libdir does not exist.
17822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17824 # Whether we need a single "-rpath" flag with a separated argument.
17825 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17827 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17828 # DIR into the resulting binary.
17829 hardcode_direct=$hardcode_direct
17831 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17832 # DIR into the resulting binary and the resulting library dependency is
17833 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17834 # library is relocated.
17835 hardcode_direct_absolute=$hardcode_direct_absolute
17837 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17838 # into the resulting binary.
17839 hardcode_minus_L=$hardcode_minus_L
17841 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17842 # into the resulting binary.
17843 hardcode_shlibpath_var=$hardcode_shlibpath_var
17845 # Set to "yes" if building a shared library automatically hardcodes DIR
17846 # into the library and all subsequent libraries and executables linked
17848 hardcode_automatic=$hardcode_automatic
17850 # Set to yes if linker adds runtime paths of dependent libraries
17851 # to runtime path list.
17852 inherit_rpath=$inherit_rpath
17854 # Whether libtool must link a program against all its dependency libraries.
17855 link_all_deplibs=$link_all_deplibs
17857 # Fix the shell variable \$srcfile for the compiler.
17858 fix_srcfile_path=$lt_fix_srcfile_path
17860 # Set to "yes" if exported symbols are required.
17861 always_export_symbols=$always_export_symbols
17863 # The commands to list exported symbols.
17864 export_symbols_cmds=$lt_export_symbols_cmds
17866 # Symbols that should not be listed in the preloaded symbols.
17867 exclude_expsyms=$lt_exclude_expsyms
17869 # Symbols that must always be exported.
17870 include_expsyms=$lt_include_expsyms
17872 # Commands necessary for linking programs (against libraries) with templates.
17873 prelink_cmds=$lt_prelink_cmds
17875 # Specify filename containing input files.
17876 file_list_spec=$lt_file_list_spec
17878 # How to hardcode a shared library path into an executable.
17879 hardcode_action=$hardcode_action
17881 # The directories searched by this compiler when creating a shared library.
17882 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17884 # Dependencies to place before and after the objects being linked to
17885 # create a shared library.
17886 predep_objects=$lt_predep_objects
17887 postdep_objects=$lt_postdep_objects
17888 predeps=$lt_predeps
17889 postdeps=$lt_postdeps
17891 # The library search path used internally by the compiler when linking
17892 # a shared library.
17893 compiler_lib_search_path=$lt_compiler_lib_search_path
17895 # ### END LIBTOOL CONFIG
17901 cat <<\_LT_EOF >> "$cfgfile"
17902 # AIX sometimes has problems with the GCC collect2 program. For some
17903 # reason, if we set the COLLECT_NAMES environment variable, the problems
17904 # vanish in a puff of smoke.
17905 if test "X${COLLECT_NAMES+set}" != Xset; then
17907 export COLLECT_NAMES
17914 ltmain="$ac_aux_dir/ltmain.sh"
17917 # We use sed instead of cat because bash on DJGPP gets confused if
17918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17919 # text mode, it properly converts lines to CR/LF. This bash problem
17920 # is reportedly fixed, but why not run on old versions too?
17921 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17922 || (rm -f "$cfgfile"; exit 1)
17926 cat << \_LT_EOF >> "$cfgfile"
17928 # func_dirname file append nondir_replacement
17929 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17930 # otherwise set result to NONDIR_REPLACEMENT.
17934 */*) func_dirname_result="${1%/*}${2}" ;;
17935 * ) func_dirname_result="${3}" ;;
17939 # func_basename file
17942 func_basename_result="${1##*/}"
17945 # func_dirname_and_basename file append nondir_replacement
17946 # perform func_basename and func_dirname in a single function
17948 # dirname: Compute the dirname of FILE. If nonempty,
17949 # add APPEND to the result, otherwise set result
17950 # to NONDIR_REPLACEMENT.
17951 # value returned in "$func_dirname_result"
17952 # basename: Compute filename of FILE.
17953 # value retuned in "$func_basename_result"
17954 # Implementation must be kept synchronized with func_dirname
17955 # and func_basename. For efficiency, we do not delegate to
17956 # those functions but instead duplicate the functionality here.
17957 func_dirname_and_basename ()
17960 */*) func_dirname_result="${1%/*}${2}" ;;
17961 * ) func_dirname_result="${3}" ;;
17963 func_basename_result="${1##*/}"
17966 # func_stripname prefix suffix name
17967 # strip PREFIX and SUFFIX off of NAME.
17968 # PREFIX and SUFFIX must not contain globbing or regex special
17969 # characters, hashes, percent signs, but SUFFIX may contain a leading
17970 # dot (in which case that matches only a dot).
17973 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17974 # positional parameters, so assign one to ordinary parameter first.
17975 func_stripname_result=${3}
17976 func_stripname_result=${func_stripname_result#"${1}"}
17977 func_stripname_result=${func_stripname_result%"${2}"}
17983 func_opt_split_opt=${1%%=*}
17984 func_opt_split_arg=${1#*=}
17991 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17992 *) func_lo2o_result=${1} ;;
17996 # func_xform libobj-or-source
17999 func_xform_result=${1%.*}.lo
18002 # func_arith arithmetic-term...
18005 func_arith_result=$(( $* ))
18009 # STRING may not start with a hyphen.
18012 func_len_result=${#1}
18017 *) # Bourne compatible functions.
18018 cat << \_LT_EOF >> "$cfgfile"
18020 # func_dirname file append nondir_replacement
18021 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18022 # otherwise set result to NONDIR_REPLACEMENT.
18025 # Extract subdirectory from the argument.
18026 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18027 if test "X$func_dirname_result" = "X${1}"; then
18028 func_dirname_result="${3}"
18030 func_dirname_result="$func_dirname_result${2}"
18034 # func_basename file
18037 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18041 # func_stripname prefix suffix name
18042 # strip PREFIX and SUFFIX off of NAME.
18043 # PREFIX and SUFFIX must not contain globbing or regex special
18044 # characters, hashes, percent signs, but SUFFIX may contain a leading
18045 # dot (in which case that matches only a dot).
18046 # func_strip_suffix prefix name
18050 .*) func_stripname_result=`$ECHO "X${3}" \
18051 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18052 *) func_stripname_result=`$ECHO "X${3}" \
18053 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18058 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18059 my_sed_long_arg='1s/^-[^=]*=//'
18064 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18065 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18071 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18074 # func_xform libobj-or-source
18077 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18080 # func_arith arithmetic-term...
18083 func_arith_result=`expr "$@"`
18087 # STRING may not start with a hyphen.
18090 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18096 case $lt_shell_append in
18098 cat << \_LT_EOF >> "$cfgfile"
18100 # func_append var value
18101 # Append VALUE to the end of shell variable VAR.
18109 cat << \_LT_EOF >> "$cfgfile"
18111 # func_append var value
18112 # Append VALUE to the end of shell variable VAR.
18123 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18124 || (rm -f "$cfgfile"; exit 1)
18126 mv -f "$cfgfile" "$ofile" ||
18127 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18131 cat <<_LT_EOF >> "$ofile"
18133 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18135 # The linker used to build libraries.
18138 # Commands used to build an old-style archive.
18139 old_archive_cmds=$lt_old_archive_cmds_CXX
18141 # A language specific compiler.
18142 CC=$lt_compiler_CXX
18144 # Is the compiler the GNU compiler?
18147 # Compiler flag to turn off builtin functions.
18148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18150 # How to pass a linker flag through the compiler.
18151 wl=$lt_lt_prog_compiler_wl_CXX
18153 # Additional compiler flags for building library objects.
18154 pic_flag=$lt_lt_prog_compiler_pic_CXX
18156 # Compiler flag to prevent dynamic linking.
18157 link_static_flag=$lt_lt_prog_compiler_static_CXX
18159 # Does compiler simultaneously support -c and -o options?
18160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18162 # Whether or not to add -lc for building shared libraries.
18163 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18165 # Whether or not to disallow shared libs when runtime libs are static.
18166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18168 # Compiler flag to allow reflexive dlopens.
18169 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18171 # Compiler flag to generate shared objects directly from archives.
18172 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18174 # Whether the compiler copes with passing no objects directly.
18175 compiler_needs_object=$lt_compiler_needs_object_CXX
18177 # Create an old-style archive from a shared archive.
18178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18180 # Create a temporary old-style archive to link instead of a shared archive.
18181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18183 # Commands used to build a shared archive.
18184 archive_cmds=$lt_archive_cmds_CXX
18185 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18187 # Commands used to build a loadable module if different from building
18188 # a shared archive.
18189 module_cmds=$lt_module_cmds_CXX
18190 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18192 # Whether we are building with GNU ld or not.
18193 with_gnu_ld=$lt_with_gnu_ld_CXX
18195 # Flag that allows shared libraries with undefined symbols to be built.
18196 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18198 # Flag that enforces no undefined symbols.
18199 no_undefined_flag=$lt_no_undefined_flag_CXX
18201 # Flag to hardcode \$libdir into a binary during linking.
18202 # This must work even if \$libdir does not exist
18203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18205 # If ld is used when linking, flag to hardcode \$libdir into a binary
18206 # during linking. This must work even if \$libdir does not exist.
18207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18209 # Whether we need a single "-rpath" flag with a separated argument.
18210 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18212 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18213 # DIR into the resulting binary.
18214 hardcode_direct=$hardcode_direct_CXX
18216 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18217 # DIR into the resulting binary and the resulting library dependency is
18218 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18219 # library is relocated.
18220 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18222 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18223 # into the resulting binary.
18224 hardcode_minus_L=$hardcode_minus_L_CXX
18226 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18227 # into the resulting binary.
18228 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18230 # Set to "yes" if building a shared library automatically hardcodes DIR
18231 # into the library and all subsequent libraries and executables linked
18233 hardcode_automatic=$hardcode_automatic_CXX
18235 # Set to yes if linker adds runtime paths of dependent libraries
18236 # to runtime path list.
18237 inherit_rpath=$inherit_rpath_CXX
18239 # Whether libtool must link a program against all its dependency libraries.
18240 link_all_deplibs=$link_all_deplibs_CXX
18242 # Fix the shell variable \$srcfile for the compiler.
18243 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18245 # Set to "yes" if exported symbols are required.
18246 always_export_symbols=$always_export_symbols_CXX
18248 # The commands to list exported symbols.
18249 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18251 # Symbols that should not be listed in the preloaded symbols.
18252 exclude_expsyms=$lt_exclude_expsyms_CXX
18254 # Symbols that must always be exported.
18255 include_expsyms=$lt_include_expsyms_CXX
18257 # Commands necessary for linking programs (against libraries) with templates.
18258 prelink_cmds=$lt_prelink_cmds_CXX
18260 # Specify filename containing input files.
18261 file_list_spec=$lt_file_list_spec_CXX
18263 # How to hardcode a shared library path into an executable.
18264 hardcode_action=$hardcode_action_CXX
18266 # The directories searched by this compiler when creating a shared library.
18267 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18269 # Dependencies to place before and after the objects being linked to
18270 # create a shared library.
18271 predep_objects=$lt_predep_objects_CXX
18272 postdep_objects=$lt_postdep_objects_CXX
18273 predeps=$lt_predeps_CXX
18274 postdeps=$lt_postdeps_CXX
18276 # The library search path used internally by the compiler when linking
18277 # a shared library.
18278 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18280 # ### END LIBTOOL TAG CONFIG: CXX
18291 ac_clean_files=$ac_clean_files_save
18293 test $ac_write_fail = 0 ||
18294 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18297 # configure is writing to config.log, and then calls config.status.
18298 # config.status does its own redirection, appending to config.log.
18299 # Unfortunately, on DOS this fails, as config.log is still kept open
18300 # by configure, so config.status won't be able to write to it; its
18301 # output is simply discarded. So we exec the FD to /dev/null,
18302 # effectively closing config.log, so it can be properly (re)opened and
18303 # appended to by config.status. When coming back to configure, we
18304 # need to make the FD available again.
18305 if test "$no_create" != yes; then
18307 ac_config_status_args=
18308 test "$silent" = yes &&
18309 ac_config_status_args="$ac_config_status_args --quiet"
18311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18314 # would make configure fail if this is the last instruction.
18315 $ac_cs_success || as_fn_exit 1
18317 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18319 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}