2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for mech_eap 0.1.
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.1'
705 PACKAGE_STRING='mech_eap 0.1'
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
766 SHIBRESOLVER_CXXFLAGS
782 GSSEAP_ENABLE_ACCEPTOR_FALSE
783 GSSEAP_ENABLE_ACCEPTOR_TRUE
784 GSSEAP_ENABLE_REAUTH_FALSE
785 GSSEAP_ENABLE_REAUTH_TRUE
822 MAINTAINER_MODE_FALSE
841 INSTALL_STRIP_PROGRAM
893 program_transform_name
906 enable_option_checking
907 enable_dependency_tracking
908 enable_maintainer_mode
925 ac_precious_vars='build_alias
940 # Initialize some variables set by options.
942 ac_init_version=false
943 ac_unrecognized_opts=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
954 program_transform_name=s,x,x,
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979 infodir='${datarootdir}/info'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
1000 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1031 -datadir | --datadir | --datadi | --datad)
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_$ac_useropt"
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1057 eval enable_$ac_useropt=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 htmldir=$ac_optarg ;;
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1128 -libdir | --libdir | --libdi | --libd)
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1219 -psdir | --psdir | --psdi | --psd | --ps)
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 sbindir=$ac_optarg ;;
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 sharedstatedir=$ac_optarg ;;
1245 -site | --site | --sit)
1247 -site=* | --site=* | --sit=*)
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1287 eval with_$ac_useropt=\$ac_optarg ;;
1289 -without-* | --without-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1303 eval with_$ac_useropt=no ;;
1306 # Obsolete; use --with-x.
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1323 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information"
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' | [0-9]* | *[!_$as_cr_alnum]* )
1332 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error $? "missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1356 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1374 # Be sure to have absolute directory names.
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1387 target=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used" >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403 test "$silent" = yes && exec 6>/dev/null
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error $? "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error $? "pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures mech_eap 0.1 to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking ...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/mech_eap]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 if test -n "$ac_init_help"; then
1549 case $ac_init_help in
1550 short | recursive ) echo "Configuration of mech_eap 0.1:";;
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --disable-dependency-tracking speeds up one-time build
1559 --enable-dependency-tracking do not reject slow dependency extractors
1560 --enable-maintainer-mode enable make rules and dependencies not useful
1561 (and sometimes confusing) to the casual installer
1562 --enable-static[=PKGS] build static libraries [default=no]
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-fast-install[=PKGS]
1565 optimize for fast installation [default=yes]
1566 --disable-libtool-lock avoid locking (might break parallel builds)
1567 --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1568 --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1573 --with-pic try to use only PIC/non-PIC objects [default=use
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-krb5 Use krb5 (in specified installation directory)
1577 --with-opensaml Use OpenSAML (in specified installation directory)
1578 --with-shibresolver Use Shibboleth resolver (in specified installation
1580 --with-shibsp Use shibspboleth (in specified installation
1582 --with-radsec Use radsec (in specified installation directory)
1583 --with-jansson Use jansson (in specified installation directory)
1584 --with-libmoonshot Use libmoonshot (in specified installation
1587 Some influential environment variables:
1588 CC C compiler command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
1592 LIBS libraries to pass to the linker, e.g. -l<library>
1593 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1594 you have headers in a nonstandard directory <include dir>
1596 CXX C++ compiler command
1597 CXXFLAGS C++ compiler flags
1598 CXXCPP C++ preprocessor
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 Report bugs to <bugs@project-moonshot.org>.
1608 if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1633 .) # We are building in place.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1666 mech_eap configure 0.1
1667 generated by GNU Autoconf 2.67
1669 Copyright (C) 2010 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 as_fn_set_status $ac_retval
1716 } # ac_fn_c_try_compile
1718 # ac_fn_c_try_cpp LINENO
1719 # ----------------------
1720 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } > conftest.i && {
1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 as_fn_set_status $ac_retval
1755 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1758 # the include files in INCLUDES and setting the cache variable VAR
1760 ac_fn_c_check_header_mongrel ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if eval "test \"\${$3+set}\"" = set; then :
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval "test \"\${$3+set}\"" = set; then :
1767 $as_echo_n "(cached) " >&6
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1773 # Is the header compilable?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1775 $as_echo_n "checking $2 usability... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 ac_header_compiler=yes
1784 ac_header_compiler=no
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1788 $as_echo "$ac_header_compiler" >&6; }
1790 # Is the header present?
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1792 $as_echo_n "checking $2 presence... " >&6; }
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1797 if ac_fn_c_try_cpp "$LINENO"; then :
1798 ac_header_preproc=yes
1800 ac_header_preproc=no
1802 rm -f conftest.err conftest.i conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1804 $as_echo "$ac_header_preproc" >&6; }
1806 # So? What about this header?
1807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1810 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1816 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1818 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1820 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1822 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ( $as_echo "## ---------------------------------------- ##
1826 ## Report this to bugs@project-moonshot.org ##
1827 ## ---------------------------------------- ##"
1828 ) | sed "s/^/$as_me: WARNING: /" >&2
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval "test \"\${$3+set}\"" = set; then :
1834 $as_echo_n "(cached) " >&6
1836 eval "$3=\$ac_header_compiler"
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 } # ac_fn_c_check_header_mongrel
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849 # that executables *can* be run.
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_link"
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>&5
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864 { { case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_try") 2>&5
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; }; }; then :
1876 $as_echo "$as_me: program exited with status $ac_status" >&5
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=$ac_status
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 as_fn_set_status $ac_retval
1888 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists and can be compiled using the include files in
1891 # INCLUDES, setting the cache variable VAR accordingly.
1892 ac_fn_c_check_header_compile ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval "test \"\${$3+set}\"" = set; then :
1898 $as_echo_n "(cached) " >&6
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1905 if ac_fn_c_try_compile "$LINENO"; then :
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 } # ac_fn_c_check_header_compile
1919 # ac_fn_c_try_link LINENO
1920 # -----------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 rm -f conftest.$ac_objext conftest$ac_exeext
1926 if { { ac_try="$ac_link"
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>conftest.err
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_c_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest$ac_exeext && {
1945 test "$cross_compiling" = yes ||
1946 $as_test_x conftest$ac_exeext
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1955 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957 # interfere with the next link command; also delete a directory that is
1958 # left behind by Apple's compiler. We do this before executing the actions.
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961 as_fn_set_status $ac_retval
1963 } # ac_fn_c_try_link
1965 # ac_fn_c_check_func LINENO FUNC VAR
1966 # ----------------------------------
1967 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1968 ac_fn_c_check_func ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if eval "test \"\${$3+set}\"" = set; then :
1974 $as_echo_n "(cached) " >&6
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1980 #define $2 innocuous_$2
1982 /* System header to define __stub macros and hopefully few prototypes,
1983 which can conflict with char $2 (); below.
1984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1985 <limits.h> exists even on freestanding compilers. */
1988 # include <limits.h>
1990 # include <assert.h>
1995 /* Override any GCC internal prototype to avoid an error.
1996 Use char because int might match the return type of a GCC
1997 builtin and then its argument prototype would still apply. */
2002 /* The GNU C library defines this for functions which it implements
2003 to always fail with ENOSYS. Some functions are actually named
2004 something starting with __ and the normal name is an alias. */
2005 #if defined __stub_$2 || defined __stub___$2
2017 if ac_fn_c_try_link "$LINENO"; then :
2022 rm -f core conftest.err conftest.$ac_objext \
2023 conftest$ac_exeext conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_c_check_func
2032 # ac_fn_cxx_try_compile LINENO
2033 # ----------------------------
2034 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2035 ac_fn_cxx_try_compile ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 rm -f conftest.$ac_objext
2039 if { { ac_try="$ac_compile"
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_compile") 2>conftest.err
2048 if test -s conftest.err; then
2049 grep -v '^ *+' conftest.err >conftest.er1
2050 cat conftest.er1 >&5
2051 mv -f conftest.er1 conftest.err
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } && {
2055 test -z "$ac_cxx_werror_flag" ||
2056 test ! -s conftest.err
2057 } && test -s conftest.$ac_objext; then :
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 as_fn_set_status $ac_retval
2068 } # ac_fn_cxx_try_compile
2070 # ac_fn_cxx_try_cpp LINENO
2071 # ------------------------
2072 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2073 ac_fn_cxx_try_cpp ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if { { ac_try="$ac_cpp conftest.$ac_ext"
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2085 if test -s conftest.err; then
2086 grep -v '^ *+' conftest.err >conftest.er1
2087 cat conftest.er1 >&5
2088 mv -f conftest.er1 conftest.err
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } > conftest.i && {
2092 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2093 test ! -s conftest.err
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 as_fn_set_status $ac_retval
2105 } # ac_fn_cxx_try_cpp
2107 # ac_fn_cxx_try_link LINENO
2108 # -------------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded.
2110 ac_fn_cxx_try_link ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 rm -f conftest.$ac_objext conftest$ac_exeext
2114 if { { ac_try="$ac_link"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_link") 2>conftest.err
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && {
2130 test -z "$ac_cxx_werror_flag" ||
2131 test ! -s conftest.err
2132 } && test -s conftest$ac_exeext && {
2133 test "$cross_compiling" = yes ||
2134 $as_test_x conftest$ac_exeext
2138 $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2143 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2144 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2145 # interfere with the next link command; also delete a directory that is
2146 # left behind by Apple's compiler. We do this before executing the actions.
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149 as_fn_set_status $ac_retval
2151 } # ac_fn_cxx_try_link
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2156 It was created by mech_eap $as_me 0.1, which was
2157 generated by GNU Autoconf 2.67. Invocation command line was
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 $as_echo "PATH: $as_dir"
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2217 ac_must_keep_next=false
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2228 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233 as_fn_append ac_configure_args1 " '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2246 -* ) ac_must_keep_next=true ;;
2249 as_fn_append ac_configure_args " '$ac_arg'"
2254 { ac_configure_args0=; unset ac_configure_args0;}
2255 { ac_configure_args1=; unset ac_configure_args1;}
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log. We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2267 $as_echo "## ---------------- ##
2268 ## Cache variables. ##
2269 ## ---------------- ##"
2271 # The following way of writing the cache mishandles newlines in values,
2273 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2274 eval ac_val=\$$ac_var
2278 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2279 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2282 _ | IFS | as_nl) ;; #(
2283 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2284 *) { eval $ac_var=; unset $ac_var;} ;;
2289 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2290 *${as_nl}ac_space=\ *)
2292 "s/'\''/'\''\\\\'\'''\''/g;
2293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2303 $as_echo "## ----------------- ##
2304 ## Output variables. ##
2305 ## ----------------- ##"
2307 for ac_var in $ac_subst_vars
2309 eval ac_val=\$$ac_var
2311 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313 $as_echo "$ac_var='\''$ac_val'\''"
2317 if test -n "$ac_subst_files"; then
2318 $as_echo "## ------------------- ##
2319 ## File substitutions. ##
2320 ## ------------------- ##"
2322 for ac_var in $ac_subst_files
2324 eval ac_val=\$$ac_var
2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 $as_echo "$ac_var='\''$ac_val'\''"
2333 if test -s confdefs.h; then
2334 $as_echo "## ----------- ##
2341 test "$ac_signal" != 0 &&
2342 $as_echo "$as_me: caught signal $ac_signal"
2343 $as_echo "$as_me: exit $exit_status"
2345 rm -f core *.core core.conftest.* &&
2346 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2349 for ac_signal in 1 2 13 15; do
2350 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2354 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2355 rm -f -r conftest* confdefs.h
2357 $as_echo "/* confdefs.h */" > confdefs.h
2359 # Predefined preprocessor variables.
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_NAME "$PACKAGE_NAME"
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_STRING "$PACKAGE_STRING"
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_URL "$PACKAGE_URL"
2386 # Let the site file select an alternate cache file if it wants to.
2387 # Prefer an explicitly selected file to automatically selected ones.
2390 if test -n "$CONFIG_SITE"; then
2391 # We do not want a PATH search for config.site.
2392 case $CONFIG_SITE in #((
2393 -*) ac_site_file1=./$CONFIG_SITE;;
2394 */*) ac_site_file1=$CONFIG_SITE;;
2395 *) ac_site_file1=./$CONFIG_SITE;;
2397 elif test "x$prefix" != xNONE; then
2398 ac_site_file1=$prefix/share/config.site
2399 ac_site_file2=$prefix/etc/config.site
2401 ac_site_file1=$ac_default_prefix/share/config.site
2402 ac_site_file2=$ac_default_prefix/etc/config.site
2404 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2406 test "x$ac_site_file" = xNONE && continue
2407 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2409 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2410 sed 's/^/| /' "$ac_site_file" >&5
2412 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 as_fn_error $? "failed to load site script $ac_site_file
2415 See \`config.log' for more details" "$LINENO" 5 ; }
2419 if test -r "$cache_file"; then
2420 # Some versions of bash will fail to source /dev/null (special files
2421 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2422 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424 $as_echo "$as_me: loading cache $cache_file" >&6;}
2426 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427 *) . "./$cache_file";;
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432 $as_echo "$as_me: creating cache $cache_file" >&6;}
2436 # Check that the precious variables saved in the cache have kept the same
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441 eval ac_new_set=\$ac_env_${ac_var}_set
2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443 eval ac_new_val=\$ac_env_${ac_var}_value
2444 case $ac_old_set,$ac_new_set in
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2455 if test "x$ac_old_val" != "x$ac_new_val"; then
2456 # differences in whitespace do not lead to failure.
2457 ac_old_val_w=`echo x $ac_old_val`
2458 ac_new_val_w=`echo x $ac_new_val`
2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462 ac_cache_corrupted=:
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466 eval $ac_var=\$ac_old_val
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2469 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2471 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2474 # Pass precious variables to config.status.
2475 if test "$ac_new_set" = set; then
2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 *) ac_arg=$ac_var=$ac_new_val ;;
2480 case " $ac_configure_args " in
2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486 if $ac_cache_corrupted; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 for ac_dir in build-aux "$srcdir"/build-aux; do
2507 if test -f "$ac_dir/install-sh"; then
2509 ac_install_sh="$ac_aux_dir/install-sh -c"
2511 elif test -f "$ac_dir/install.sh"; then
2513 ac_install_sh="$ac_aux_dir/install.sh -c"
2515 elif test -f "$ac_dir/shtool"; then
2517 ac_install_sh="$ac_aux_dir/shtool install -c"
2521 if test -z "$ac_aux_dir"; then
2522 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540 if test -n "$ac_tool_prefix"; then
2541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test -n "$CC"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2571 $as_echo "$CC" >&6; }
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2579 if test -z "$ac_cv_prog_CC"; then
2581 # Extract the first word of "gcc", so it can be a program name with args.
2582 set dummy gcc; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2588 if test -n "$ac_ct_CC"; then
2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_ac_ct_CC="gcc"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2611 $as_echo "$ac_ct_CC" >&6; }
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2617 if test "x$ac_ct_CC" = x; then
2620 case $cross_compiling:$ac_tool_warned in
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2624 ac_tool_warned=yes ;;
2632 if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}cc; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if test "${ac_cv_prog_CC+set}" = set; then :
2639 $as_echo_n "(cached) " >&6
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_CC="${ac_tool_prefix}cc"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 if test -n "$CC"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2664 $as_echo "$CC" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2673 if test -z "$CC"; then
2674 # Extract the first word of "cc", so it can be a program name with args.
2675 set dummy cc; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_CC+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2693 ac_prog_rejected=yes
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 if test $ac_prog_rejected = yes; then
2705 # We found a bogon in the path, so make sure we never use it.
2706 set dummy $ac_cv_prog_CC
2708 if test $# != 0; then
2709 # We chose a different compiler from the bogus one.
2710 # However, it has the same basename, so the bogon will be chosen
2711 # first if we set CC to just the basename; use the full file name.
2713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2719 if test -n "$CC"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721 $as_echo "$CC" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2729 if test -z "$CC"; then
2730 if test -n "$ac_tool_prefix"; then
2731 for ac_prog in cl.exe
2733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_CC+set}" = set; then :
2738 $as_echo_n "(cached) " >&6
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 if test -n "$CC"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763 $as_echo "$CC" >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2770 test -n "$CC" && break
2773 if test -z "$CC"; then
2775 for ac_prog in cl.exe
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2784 if test -n "$ac_ct_CC"; then
2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_ac_ct_CC="$ac_prog"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807 $as_echo "$ac_ct_CC" >&6; }
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2814 test -n "$ac_ct_CC" && break
2817 if test "x$ac_ct_CC" = x; then
2820 case $cross_compiling:$ac_tool_warned in
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2824 ac_tool_warned=yes ;;
2833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 as_fn_error $? "no acceptable C compiler found in \$PATH
2836 See \`config.log' for more details" "$LINENO" 5 ; }
2838 # Provide some information about the compiler.
2839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2842 for ac_option in --version -v -V -qversion; do
2843 { { ac_try="$ac_compiler $ac_option >&5"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849 $as_echo "$ac_try_echo"; } >&5
2850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2852 if test -s conftest.err; then
2854 ... rest of stderr output deleted ...
2855 10q' conftest.err >conftest.er1
2856 cat conftest.er1 >&5
2858 rm -f conftest.er1 conftest.err
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h. */
2874 ac_clean_files_save=$ac_clean_files
2875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2876 # Try to create an executable without -o first, disregard a.out.
2877 # It will help us diagnose broken compilers, and finding out an intuition
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2880 $as_echo_n "checking whether the C compiler works... " >&6; }
2881 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2883 # The possible output files:
2884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2887 for ac_file in $ac_files
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2896 if { { ac_try="$ac_link_default"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 $as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_link_default") 2>&5
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; then :
2907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2909 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2910 # so that the user can short-circuit this test for compilers unknown to
2912 for ac_file in $ac_files ''
2914 test -f "$ac_file" || continue
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2919 # We found the default executable, but exeext='' is most
2923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 # We set ac_cv_exeext here because the later test for it is not
2928 # safe: cross compilers may not add the suffix if given an `-o'
2929 # argument, so we may need to know it at that point already.
2930 # Even if this section looks crufty: it has the advantage of
2937 test "$ac_cv_exeext" = no && ac_cv_exeext=
2942 if test -z "$ac_file"; then :
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error 77 "C compiler cannot create executables
2951 See \`config.log' for more details" "$LINENO" 5 ; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2954 $as_echo "yes" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2957 $as_echo_n "checking for C compiler default output file name... " >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2959 $as_echo "$ac_file" >&6; }
2960 ac_exeext=$ac_cv_exeext
2962 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2963 ac_clean_files=$ac_clean_files_save
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2965 $as_echo_n "checking for suffix of executables... " >&6; }
2966 if { { ac_try="$ac_link"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973 (eval "$ac_link") 2>&5
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }; then :
2977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2979 # work properly (i.e., refer to `conftest.exe'), while it won't with
2981 for ac_file in conftest.exe conftest conftest.*; do
2982 test -f "$ac_file" || continue
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2994 See \`config.log' for more details" "$LINENO" 5 ; }
2996 rm -f conftest conftest$ac_cv_exeext
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2998 $as_echo "$ac_cv_exeext" >&6; }
3000 rm -f conftest.$ac_ext
3001 EXEEXT=$ac_cv_exeext
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3009 FILE *f = fopen ("conftest.out", "w");
3010 return ferror (f) || fclose (f) != 0;
3016 ac_clean_files="$ac_clean_files conftest.out"
3017 # Check that the compiler produces executables we can run. If not, either
3018 # the compiler is broken, or we cross compile.
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3020 $as_echo_n "checking whether we are cross compiling... " >&6; }
3021 if test "$cross_compiling" != yes; then
3022 { { ac_try="$ac_link"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_link") 2>&5
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }
3033 if { ac_try='./conftest$ac_cv_exeext'
3034 { { case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_try") 2>&5
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }; }; then
3046 if test "$cross_compiling" = maybe; then
3049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $? "cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details" "$LINENO" 5 ; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3058 $as_echo "$cross_compiling" >&6; }
3060 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3061 ac_clean_files=$ac_clean_files_save
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3063 $as_echo_n "checking for suffix of object files... " >&6; }
3064 if test "${ac_cv_objext+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h. */
3078 rm -f conftest.o conftest.obj
3079 if { { ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_compile") 2>&5
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; then :
3090 for ac_file in conftest.o conftest.obj conftest.*; do
3091 test -f "$ac_file" || continue;
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099 $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error $? "cannot compute suffix of object files: cannot compile
3105 See \`config.log' for more details" "$LINENO" 5 ; }
3107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3110 $as_echo "$ac_cv_objext" >&6; }
3111 OBJEXT=$ac_cv_objext
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3114 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3115 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3132 if ac_fn_c_try_compile "$LINENO"; then :
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3142 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3143 if test $ac_compiler_gnu = yes; then
3148 ac_test_CFLAGS=${CFLAGS+set}
3149 ac_save_CFLAGS=$CFLAGS
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3151 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3152 if test "${ac_cv_prog_cc_g+set}" = set; then :
3153 $as_echo_n "(cached) " >&6
3155 ac_save_c_werror_flag=$ac_c_werror_flag
3156 ac_c_werror_flag=yes
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3170 if ac_fn_c_try_compile "$LINENO"; then :
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3185 if ac_fn_c_try_compile "$LINENO"; then :
3188 ac_c_werror_flag=$ac_save_c_werror_flag
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3201 if ac_fn_c_try_compile "$LINENO"; then :
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3212 $as_echo "$ac_cv_prog_cc_g" >&6; }
3213 if test "$ac_test_CFLAGS" = set; then
3214 CFLAGS=$ac_save_CFLAGS
3215 elif test $ac_cv_prog_cc_g = yes; then
3216 if test "$GCC" = yes; then
3222 if test "$GCC" = yes; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3230 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3233 ac_cv_prog_cc_c89=no
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3239 #include <sys/types.h>
3240 #include <sys/stat.h>
3241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3242 struct buf { int x; };
3243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3244 static char *e (p, i)
3250 static char *f (char * (*g) (char **, int), char **p, ...)
3255 s = g (p, va_arg (v,int));
3260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3261 function prototypes and stuff, but not '\xHH' hex character constants.
3262 These don't provoke an error unfortunately, instead are silently treated
3263 as 'x'. The following induces an error, until -std is added to get
3264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3265 array size at least. It's necessary to write '\x00'==0 to get something
3266 that's true only with -std. */
3267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3270 inside strings and character constants. */
3272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3274 int test (int i, double x);
3275 struct s1 {int (*f) (int a);};
3276 struct s2 {int (*f) (double a);};
3277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3291 CC="$ac_save_CC $ac_arg"
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_prog_cc_c89=$ac_arg
3295 rm -f core conftest.err conftest.$ac_objext
3296 test "x$ac_cv_prog_cc_c89" != "xno" && break
3298 rm -f conftest.$ac_ext
3303 case "x$ac_cv_prog_cc_c89" in
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3306 $as_echo "none needed" >&6; } ;;
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3309 $as_echo "unsupported" >&6; } ;;
3311 CC="$CC $ac_cv_prog_cc_c89"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3315 if test "x$ac_cv_prog_cc_c89" != xno; then :
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3333 # On Suns, sometimes $CPP names a directory.
3334 if test -n "$CPP" && test -d "$CPP"; then
3337 if test -z "$CPP"; then
3338 if test "${ac_cv_prog_CPP+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3341 # Double quotes because CPP needs to be expanded
3342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3345 for ac_c_preproc_warn_flag in '' yes
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3356 # include <limits.h>
3358 # include <assert.h>
3362 if ac_fn_c_try_cpp "$LINENO"; then :
3365 # Broken: fails on valid input.
3368 rm -f conftest.err conftest.i conftest.$ac_ext
3370 # OK, works on sane cases. Now check whether nonexistent headers
3371 # can be detected and how.
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3376 if ac_fn_c_try_cpp "$LINENO"; then :
3377 # Broken: success on invalid input.
3380 # Passes both tests.
3384 rm -f conftest.err conftest.i conftest.$ac_ext
3387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3388 rm -f conftest.i conftest.err conftest.$ac_ext
3389 if $ac_preproc_ok; then :
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3402 $as_echo "$CPP" >&6; }
3404 for ac_c_preproc_warn_flag in '' yes
3406 # Use a header file that comes with gcc, so configuring glibc
3407 # with a fresh cross-compiler works.
3408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3409 # <limits.h> exists even on freestanding compilers.
3410 # On the NeXT, cc -E runs the code through the compiler's parser,
3411 # not just through cpp. "Syntax error" is here to catch this case.
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3415 # include <limits.h>
3417 # include <assert.h>
3421 if ac_fn_c_try_cpp "$LINENO"; then :
3424 # Broken: fails on valid input.
3427 rm -f conftest.err conftest.i conftest.$ac_ext
3429 # OK, works on sane cases. Now check whether nonexistent headers
3430 # can be detected and how.
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #include <ac_nonexistent.h>
3435 if ac_fn_c_try_cpp "$LINENO"; then :
3436 # Broken: success on invalid input.
3439 # Passes both tests.
3443 rm -f conftest.err conftest.i conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.i conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then :
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details" "$LINENO" 5 ; }
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3465 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3466 if test "${ac_cv_path_GREP+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -z "$GREP"; then
3470 ac_path_GREP_found=false
3471 # Loop through the user's path and test for each of PROGNAME-LIST
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3476 test -z "$as_dir" && as_dir=.
3477 for ac_prog in grep ggrep; do
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3480 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3481 # Check for GNU ac_path_GREP and select it if it is found.
3482 # Check for GNU $ac_path_GREP
3483 case `"$ac_path_GREP" --version 2>&1` in
3485 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3488 $as_echo_n 0123456789 >"conftest.in"
3491 cat "conftest.in" "conftest.in" >"conftest.tmp"
3492 mv "conftest.tmp" "conftest.in"
3493 cp "conftest.in" "conftest.nl"
3494 $as_echo 'GREP' >> "conftest.nl"
3495 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3497 as_fn_arith $ac_count + 1 && ac_count=$as_val
3498 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3499 # Best one so far, save it but keep looking for a better one
3500 ac_cv_path_GREP="$ac_path_GREP"
3501 ac_path_GREP_max=$ac_count
3503 # 10*(2^10) chars as input seems more than enough
3504 test $ac_count -gt 10 && break
3506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3509 $ac_path_GREP_found && break 3
3514 if test -z "$ac_cv_path_GREP"; then
3515 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3518 ac_cv_path_GREP=$GREP
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3523 $as_echo "$ac_cv_path_GREP" >&6; }
3524 GREP="$ac_cv_path_GREP"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3528 $as_echo_n "checking for egrep... " >&6; }
3529 if test "${ac_cv_path_EGREP+set}" = set; then :
3530 $as_echo_n "(cached) " >&6
3532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3533 then ac_cv_path_EGREP="$GREP -E"
3535 if test -z "$EGREP"; then
3536 ac_path_EGREP_found=false
3537 # Loop through the user's path and test for each of PROGNAME-LIST
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3542 test -z "$as_dir" && as_dir=.
3543 for ac_prog in egrep; do
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3546 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3547 # Check for GNU ac_path_EGREP and select it if it is found.
3548 # Check for GNU $ac_path_EGREP
3549 case `"$ac_path_EGREP" --version 2>&1` in
3551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3554 $as_echo_n 0123456789 >"conftest.in"
3557 cat "conftest.in" "conftest.in" >"conftest.tmp"
3558 mv "conftest.tmp" "conftest.in"
3559 cp "conftest.in" "conftest.nl"
3560 $as_echo 'EGREP' >> "conftest.nl"
3561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3563 as_fn_arith $ac_count + 1 && ac_count=$as_val
3564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3565 # Best one so far, save it but keep looking for a better one
3566 ac_cv_path_EGREP="$ac_path_EGREP"
3567 ac_path_EGREP_max=$ac_count
3569 # 10*(2^10) chars as input seems more than enough
3570 test $ac_count -gt 10 && break
3572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3575 $ac_path_EGREP_found && break 3
3580 if test -z "$ac_cv_path_EGREP"; then
3581 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3584 ac_cv_path_EGREP=$EGREP
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3590 $as_echo "$ac_cv_path_EGREP" >&6; }
3591 EGREP="$ac_cv_path_EGREP"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3595 $as_echo_n "checking for ANSI C header files... " >&6; }
3596 if test "${ac_cv_header_stdc+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_header_stdc=yes
3617 ac_cv_header_stdc=no
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 if test $ac_cv_header_stdc = yes; then
3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 $EGREP "memchr" >/dev/null 2>&1; then :
3632 ac_cv_header_stdc=no
3638 if test $ac_cv_header_stdc = yes; then
3639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646 $EGREP "free" >/dev/null 2>&1; then :
3649 ac_cv_header_stdc=no
3655 if test $ac_cv_header_stdc = yes; then
3656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3657 if test "$cross_compiling" = yes; then :
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3664 #if ((' ' & 0x0FF) == 0x020)
3665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3668 # define ISLOWER(c) \
3669 (('a' <= (c) && (c) <= 'i') \
3670 || ('j' <= (c) && (c) <= 'r') \
3671 || ('s' <= (c) && (c) <= 'z'))
3672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3680 for (i = 0; i < 256; i++)
3681 if (XOR (islower (i), ISLOWER (i))
3682 || toupper (i) != TOUPPER (i))
3687 if ac_fn_c_try_run "$LINENO"; then :
3690 ac_cv_header_stdc=no
3692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3693 conftest.$ac_objext conftest.beam conftest.$ac_ext
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3699 $as_echo "$ac_cv_header_stdc" >&6; }
3700 if test $ac_cv_header_stdc = yes; then
3702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3706 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3708 inttypes.h stdint.h unistd.h
3710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3711 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3714 cat >>confdefs.h <<_ACEOF
3715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3724 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3725 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3732 if test "$MINIX" = yes; then
3734 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3737 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3740 $as_echo "#define _MINIX 1" >>confdefs.h
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3746 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3747 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3753 # define __EXTENSIONS__ 1
3754 $ac_includes_default
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_cv_safe_to_define___extensions__=yes
3766 ac_cv_safe_to_define___extensions__=no
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3771 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3772 test $ac_cv_safe_to_define___extensions__ = yes &&
3773 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3775 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3777 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3779 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3781 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3784 am__api_version='1.11'
3786 # Find a good install program. We prefer a C program (faster),
3787 # so one script is as good as another. But avoid the broken or
3788 # incompatible versions:
3789 # SysV /etc/install, /usr/sbin/install
3790 # SunOS /usr/etc/install
3791 # IRIX /sbin/install
3793 # AmigaOS /C/install, which installs bootblocks on floppy discs
3794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797 # OS/2's system install, which has a completely different semantic
3798 # ./install, which can be erroneously created by make from ./install.sh.
3799 # Reject install programs that cannot install multiple files.
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3801 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3802 if test -z "$INSTALL"; then
3803 if test "${ac_cv_path_install+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 # Account for people who put trailing slashes in PATH elements.
3812 case $as_dir/ in #((
3813 ./ | .// | /[cC]/* | \
3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3818 # OSF1 and SCO ODT 3.0 have their own names for install.
3819 # Don't use installbsd from OSF since it installs stuff as root
3821 for ac_prog in ginstall scoinst install; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3824 if test $ac_prog = install &&
3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # AIX install. It has an incompatible calling convention.
3828 elif test $ac_prog = install &&
3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3830 # program-specific install script used by HP pwplus--don't use.
3833 rm -rf conftest.one conftest.two conftest.dir
3834 echo one > conftest.one
3835 echo two > conftest.two
3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3838 test -s conftest.one && test -s conftest.two &&
3839 test -s conftest.dir/conftest.one &&
3840 test -s conftest.dir/conftest.two
3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3855 rm -rf conftest.one conftest.two conftest.dir
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL=$ac_cv_path_install
3861 # As a last resort, use the slow shell script. Don't cache a
3862 # value for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the value is a relative name.
3865 INSTALL=$ac_install_sh
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3869 $as_echo "$INSTALL" >&6; }
3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872 # It thinks the first close brace ends the variable substitution.
3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3880 $as_echo_n "checking whether build environment is sane... " >&6; }
3883 echo timestamp > conftest.file
3884 # Reject unsafe characters in $srcdir or the absolute working directory
3885 # name. Accept space and tab only in the latter.
3889 *[\\\"\#\$\&\'\`$am_lf]*)
3890 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3893 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3894 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3897 # Do `set' in a subshell so we don't clobber the current shell's
3898 # arguments. Must try -L first in case configure is actually a
3899 # symlink; some systems play weird games with the mod time of symlinks
3900 # (eg FreeBSD returns the mod time of the symlink's containing
3903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3904 if test "$*" = "X"; then
3906 set X `ls -t "$srcdir/configure" conftest.file`
3909 if test "$*" != "X $srcdir/configure conftest.file" \
3910 && test "$*" != "X conftest.file $srcdir/configure"; then
3912 # If neither matched, then we have a broken ls. This can happen
3913 # if, for instance, CONFIG_SHELL is bash and it inherits a
3914 # broken ls alias from the environment. This has actually
3915 # happened. Such a system could not be considered "sane".
3916 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3917 alias in your environment" "$LINENO" 5
3920 test "$2" = conftest.file
3926 as_fn_error $? "newly created file is older than distributed files!
3927 Check your system clock" "$LINENO" 5
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3930 $as_echo "yes" >&6; }
3931 test "$program_prefix" != NONE &&
3932 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3933 # Use a double $ so make ignores it.
3934 test "$program_suffix" != NONE &&
3935 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3936 # Double any \ or $.
3937 # By default was `s,x,x', remove it if useless.
3938 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3939 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3941 # expand $ac_aux_dir to an absolute path
3942 am_aux_dir=`cd $ac_aux_dir && pwd`
3944 if test x"${MISSING+set}" != xset; then
3947 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3949 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3952 # Use eval to expand $SHELL
3953 if eval "$MISSING --run true"; then
3954 am_missing_run="$MISSING --run "
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3958 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3961 if test x"${install_sh}" != xset; then
3964 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3966 install_sh="\${SHELL} $am_aux_dir/install-sh"
3970 # Installed binaries are usually stripped using `strip' when the user
3971 # run `make install-strip'. However `strip' might not be the right
3972 # tool to use in cross-compilation environments, therefore Automake
3973 # will honor the `STRIP' environment variable to overrule this program.
3974 if test "$cross_compiling" != no; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}strip; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_STRIP+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3983 if test -n "$STRIP"; then
3984 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 STRIP=$ac_cv_prog_STRIP
4004 if test -n "$STRIP"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4006 $as_echo "$STRIP" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4014 if test -z "$ac_cv_prog_STRIP"; then
4016 # Extract the first word of "strip", so it can be a program name with args.
4017 set dummy strip; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4023 if test -n "$ac_ct_STRIP"; then
4024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_ac_ct_STRIP="strip"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4044 if test -n "$ac_ct_STRIP"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4046 $as_echo "$ac_ct_STRIP" >&6; }
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4052 if test "x$ac_ct_STRIP" = x; then
4055 case $cross_compiling:$ac_tool_warned in
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4064 STRIP="$ac_cv_prog_STRIP"
4068 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4071 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4072 if test -z "$MKDIR_P"; then
4073 if test "${ac_cv_path_mkdir+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in mkdir gmkdir; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4084 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4085 'mkdir (GNU coreutils) '* | \
4086 'mkdir (coreutils) '* | \
4087 'mkdir (fileutils) '4.1*)
4088 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4098 test -d ./--version && rmdir ./--version
4099 if test "${ac_cv_path_mkdir+set}" = set; then
4100 MKDIR_P="$ac_cv_path_mkdir -p"
4102 # As a last resort, use the slow shell script. Don't cache a
4103 # value for MKDIR_P within a source directory, because that will
4104 # break other packages using the cache if that directory is
4105 # removed, or if the value is a relative name.
4106 MKDIR_P="$ac_install_sh -d"
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4110 $as_echo "$MKDIR_P" >&6; }
4114 [\\/$]* | ?:[\\/]*) ;;
4115 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4118 for ac_prog in gawk mawk nawk awk
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_AWK+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$AWK"; then
4128 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_AWK="$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 if test -n "$AWK"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4150 $as_echo "$AWK" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 test -n "$AWK" && break
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4163 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 cat >conftest.make <<\_ACEOF
4170 @echo '@@@%%%=$(MAKE)=@@@%%%'
4172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4175 eval ac_cv_prog_make_${ac_make}_set=yes;;
4177 eval ac_cv_prog_make_${ac_make}_set=no;;
4181 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183 $as_echo "yes" >&6; }
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4188 SET_MAKE="MAKE=${MAKE-make}"
4191 rm -rf .tst 2>/dev/null
4192 mkdir .tst 2>/dev/null
4193 if test -d .tst; then
4198 rmdir .tst 2>/dev/null
4200 DEPDIR="${am__leading_dot}deps"
4202 ac_config_commands="$ac_config_commands depfiles"
4205 am_make=${MAKE-make}
4206 cat > confinc << 'END'
4208 @echo this is the am__doit target
4211 # If we don't find an include directive, just comment out the code.
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4217 # First try GNU make style include.
4218 echo "include confinc" > confmf
4219 # Ignore all kinds of additional output from `make'.
4220 case `$am_make -s -f confmf 2> /dev/null` in #(
4221 *the\ am__doit\ target*)
4227 # Now try BSD make style include.
4228 if test "$am__include" = "#"; then
4229 echo '.include "confinc"' > confmf
4230 case `$am_make -s -f confmf 2> /dev/null` in #(
4231 *the\ am__doit\ target*)
4232 am__include=.include
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4241 $as_echo "$_am_result" >&6; }
4242 rm -f confinc confmf
4244 # Check whether --enable-dependency-tracking was given.
4245 if test "${enable_dependency_tracking+set}" = set; then :
4246 enableval=$enable_dependency_tracking;
4249 if test "x$enable_dependency_tracking" != xno; then
4250 am_depcomp="$ac_aux_dir/depcomp"
4253 if test "x$enable_dependency_tracking" != xno; then
4262 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4263 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4264 # is not polluted with repeated "-I."
4265 am__isrc=' -I$(srcdir)'
4266 # test to see if srcdir already configured
4267 if test -f $srcdir/config.status; then
4268 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4272 # test whether we have cygpath
4273 if test -z "$CYGPATH_W"; then
4274 if (cygpath --version) >/dev/null 2>/dev/null; then
4275 CYGPATH_W='cygpath -w'
4282 # Define the identity of the package.
4287 cat >>confdefs.h <<_ACEOF
4288 #define PACKAGE "$PACKAGE"
4292 cat >>confdefs.h <<_ACEOF
4293 #define VERSION "$VERSION"
4296 # Some tools Automake needs.
4298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4312 # We need awk for the "check" target. The system "awk" is bad on
4314 # Always define AMTAR for backward compatibility.
4316 AMTAR=${AMTAR-"${am_missing_run}tar"}
4318 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4323 depcc="$CC" am_compiler_list=
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326 $as_echo_n "checking dependency style of $depcc... " >&6; }
4327 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331 # We make a subdir and do the tests there. Otherwise we can end up
4332 # making bogus files that we don't know about and never remove. For
4333 # instance it was reported that on HP-UX the gcc test will end up
4334 # making a dummy file named `D' -- because `-MD' means `put the output
4337 # Copy depcomp to subdir because otherwise we won't find it if we're
4338 # using a relative directory.
4339 cp "$am_depcomp" conftest.dir
4341 # We will build objects and dependencies in a subdirectory because
4342 # it helps to detect inapplicable dependency modes. For instance
4343 # both Tru64's cc and ICC support -MD to output dependencies as a
4344 # side effect of compilation, but ICC will put the dependencies in
4345 # the current directory while Tru64 will put them in the object
4349 am_cv_CC_dependencies_compiler_type=none
4350 if test "$am_compiler_list" = ""; then
4351 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4354 case " $depcc " in #(
4355 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4358 for depmode in $am_compiler_list; do
4359 # Setup a source with many dependencies, because some compilers
4360 # like to wrap large dependency lists on column 80 (with \), and
4361 # we should not choose a depcomp mode which is confused by this.
4363 # We need to recreate these files for each test, as the compiler may
4364 # overwrite some of them when testing with obscure command lines.
4365 # This happens at least with the AIX C compiler.
4367 for i in 1 2 3 4 5 6; do
4368 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4369 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4370 # Solaris 8's {/usr,}/bin/sh.
4371 touch sub/conftst$i.h
4373 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4376 # mode. It turns out that the SunPro C++ compiler does not properly
4377 # handle `-M -o', and we need to detect this. Also, some Intel
4378 # versions had trouble with output in subdirs
4379 am__obj=sub/conftest.${OBJEXT-o}
4380 am__minus_obj="-o $am__obj"
4383 # This depmode causes a compiler race in universal mode.
4384 test "$am__universal" = false || continue
4387 # after this tag, mechanisms are not by side-effect, so they'll
4388 # only be used when explicitly requested
4389 if test "x$enable_dependency_tracking" = xyes; then
4395 msvisualcpp | msvcmsys)
4396 # This compiler won't grok `-c -o', but also, the minuso test has
4397 # not run yet. These depmodes are late enough in the game, and
4398 # so weak that their functioning should not be impacted.
4399 am__obj=conftest.${OBJEXT-o}
4404 if depmode=$depmode \
4405 source=sub/conftest.c object=$am__obj \
4406 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4407 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4408 >/dev/null 2>conftest.err &&
4409 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4410 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4412 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4413 # icc doesn't choke on unknown options, it will just issue warnings
4414 # or remarks (even with -Werror). So we grep stderr for any message
4415 # that says an option was ignored or not supported.
4416 # When given -MP, icc 7.0 and 7.1 complain thusly:
4417 # icc: Command line warning: ignoring option '-M'; no argument required
4418 # The diagnosis changed in icc 8.0:
4419 # icc: Command line remark: option '-MP' not supported
4420 if (grep 'ignoring option' conftest.err ||
4421 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4422 am_cv_CC_dependencies_compiler_type=$depmode
4431 am_cv_CC_dependencies_compiler_type=none
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4436 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4437 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4440 test "x$enable_dependency_tracking" != xno \
4441 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443 am__fastdepCC_FALSE='#'
4445 am__fastdepCC_TRUE='#'
4446 am__fastdepCC_FALSE=
4451 if test "x$CC" != xcc; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4453 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4456 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4458 set dummy $CC; ac_cc=`$as_echo "$2" |
4459 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4460 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4461 $as_echo_n "(cached) " >&6
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4474 # Make sure it works both with $CC and with simple cc.
4475 # We do the test twice because some compilers refuse to overwrite an
4476 # existing .o file with -o, though they will create one.
4477 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4479 if { { case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_try") 2>&5
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; } &&
4489 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495 (eval "$ac_try") 2>&5
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; };
4500 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4501 if test "x$CC" != xcc; then
4502 # Test first that cc exists at all.
4503 if { ac_try='cc -c conftest.$ac_ext >&5'
4504 { { case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_try") 2>&5
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; }; then
4514 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4516 if { { case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_try") 2>&5
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; } &&
4526 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532 (eval "$ac_try") 2>&5
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; };
4540 # cc exists but doesn't like -o.
4541 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4546 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4548 rm -f core conftest*
4551 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4558 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4562 # FIXME: we rely on the cache variable name because
4563 # there is no other way.
4565 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4566 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4567 if test "$am_t" != yes; then
4568 # Losing compiler, so override with the script.
4569 # FIXME: It is wrong to rewrite CC.
4570 # But if we don't then we get into trouble of one sort or another.
4571 # A longer-term fix would be to have automake use am__CC in this case,
4572 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4573 CC="$am_aux_dir/compile $CC"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4579 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4580 # Check whether --enable-maintainer-mode was given.
4581 if test "${enable_maintainer_mode+set}" = set; then :
4582 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4584 USE_MAINTAINER_MODE=no
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4588 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4589 if test $USE_MAINTAINER_MODE = yes; then
4590 MAINTAINER_MODE_TRUE=
4591 MAINTAINER_MODE_FALSE='#'
4593 MAINTAINER_MODE_TRUE='#'
4594 MAINTAINER_MODE_FALSE=
4597 MAINT=$MAINTAINER_MODE_TRUE
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4604 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4609 macro_version='2.2.6b'
4610 macro_revision='1.3017'
4624 ltmain="$ac_aux_dir/ltmain.sh"
4626 # Make sure we can run config.sub.
4627 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4628 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4631 $as_echo_n "checking build system type... " >&6; }
4632 if test "${ac_cv_build+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4635 ac_build_alias=$build_alias
4636 test "x$ac_build_alias" = x &&
4637 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4638 test "x$ac_build_alias" = x &&
4639 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4640 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4645 $as_echo "$ac_cv_build" >&6; }
4646 case $ac_cv_build in
4648 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4651 ac_save_IFS=$IFS; IFS='-'
4657 # Remember, the first character of IFS is used to create $*,
4658 # except with old shells:
4661 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4665 $as_echo_n "checking host system type... " >&6; }
4666 if test "${ac_cv_host+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4669 if test "x$host_alias" = x; then
4670 ac_cv_host=$ac_cv_build
4672 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4673 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4678 $as_echo "$ac_cv_host" >&6; }
4681 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4684 ac_save_IFS=$IFS; IFS='-'
4690 # Remember, the first character of IFS is used to create $*,
4691 # except with old shells:
4694 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4698 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4699 if test "${ac_cv_path_SED+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4703 for ac_i in 1 2 3 4 5 6 7; do
4704 ac_script="$ac_script$as_nl$ac_script"
4706 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4707 { ac_script=; unset ac_script;}
4708 if test -z "$SED"; then
4709 ac_path_SED_found=false
4710 # Loop through the user's path and test for each of PROGNAME-LIST
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 test -z "$as_dir" && as_dir=.
4716 for ac_prog in sed gsed; do
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4719 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4720 # Check for GNU ac_path_SED and select it if it is found.
4721 # Check for GNU $ac_path_SED
4722 case `"$ac_path_SED" --version 2>&1` in
4724 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4727 $as_echo_n 0123456789 >"conftest.in"
4730 cat "conftest.in" "conftest.in" >"conftest.tmp"
4731 mv "conftest.tmp" "conftest.in"
4732 cp "conftest.in" "conftest.nl"
4733 $as_echo '' >> "conftest.nl"
4734 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736 as_fn_arith $ac_count + 1 && ac_count=$as_val
4737 if test $ac_count -gt ${ac_path_SED_max-0}; then
4738 # Best one so far, save it but keep looking for a better one
4739 ac_cv_path_SED="$ac_path_SED"
4740 ac_path_SED_max=$ac_count
4742 # 10*(2^10) chars as input seems more than enough
4743 test $ac_count -gt 10 && break
4745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4748 $ac_path_SED_found && break 3
4753 if test -z "$ac_cv_path_SED"; then
4754 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4762 $as_echo "$ac_cv_path_SED" >&6; }
4763 SED="$ac_cv_path_SED"
4766 test -z "$SED" && SED=sed
4767 Xsed="$SED -e 1s/^X//"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4780 $as_echo_n "checking for fgrep... " >&6; }
4781 if test "${ac_cv_path_FGREP+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4784 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4785 then ac_cv_path_FGREP="$GREP -F"
4787 if test -z "$FGREP"; then
4788 ac_path_FGREP_found=false
4789 # Loop through the user's path and test for each of PROGNAME-LIST
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4794 test -z "$as_dir" && as_dir=.
4795 for ac_prog in fgrep; do
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4798 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4799 # Check for GNU ac_path_FGREP and select it if it is found.
4800 # Check for GNU $ac_path_FGREP
4801 case `"$ac_path_FGREP" --version 2>&1` in
4803 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4806 $as_echo_n 0123456789 >"conftest.in"
4809 cat "conftest.in" "conftest.in" >"conftest.tmp"
4810 mv "conftest.tmp" "conftest.in"
4811 cp "conftest.in" "conftest.nl"
4812 $as_echo 'FGREP' >> "conftest.nl"
4813 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815 as_fn_arith $ac_count + 1 && ac_count=$as_val
4816 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4817 # Best one so far, save it but keep looking for a better one
4818 ac_cv_path_FGREP="$ac_path_FGREP"
4819 ac_path_FGREP_max=$ac_count
4821 # 10*(2^10) chars as input seems more than enough
4822 test $ac_count -gt 10 && break
4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4827 $ac_path_FGREP_found && break 3
4832 if test -z "$ac_cv_path_FGREP"; then
4833 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4836 ac_cv_path_FGREP=$FGREP
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4842 $as_echo "$ac_cv_path_FGREP" >&6; }
4843 FGREP="$ac_cv_path_FGREP"
4846 test -z "$GREP" && GREP=grep
4866 # Check whether --with-gnu-ld was given.
4867 if test "${with_gnu_ld+set}" = set; then :
4868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4874 if test "$GCC" = yes; then
4875 # Check if gcc -print-prog-name=ld gives a path.
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4877 $as_echo_n "checking for ld used by $CC... " >&6; }
4880 # gcc leaves a trailing carriage return which upsets mingw
4881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4886 # Accept absolute paths.
4888 re_direlt='/[^/][^/]*/\.\./'
4889 # Canonicalize the pathname of ld
4890 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4894 test -z "$LD" && LD="$ac_prog"
4897 # If it fails, then pretend we aren't using GCC.
4901 # If it is relative, then search for the first ld in PATH.
4905 elif test "$with_gnu_ld" = yes; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4907 $as_echo_n "checking for GNU ld... " >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4910 $as_echo_n "checking for non-GNU ld... " >&6; }
4912 if test "${lt_cv_path_LD+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4915 if test -z "$LD"; then
4916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4917 for ac_dir in $PATH; do
4919 test -z "$ac_dir" && ac_dir=.
4920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4921 lt_cv_path_LD="$ac_dir/$ac_prog"
4922 # Check to see if the program is GNU ld. I'd rather use --version,
4923 # but apparently some variants of GNU ld only accept -v.
4924 # Break only if it was the GNU/non-GNU ld that we prefer.
4925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4926 *GNU* | *'with BFD'*)
4927 test "$with_gnu_ld" != no && break
4930 test "$with_gnu_ld" != yes && break
4937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4942 if test -n "$LD"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4944 $as_echo "$LD" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4952 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4956 case `$LD -v 2>&1 </dev/null` in
4957 *GNU* | *'with BFD'*)
4958 lt_cv_prog_gnu_ld=yes
4961 lt_cv_prog_gnu_ld=no
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4967 with_gnu_ld=$lt_cv_prog_gnu_ld
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4978 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4979 if test "${lt_cv_path_NM+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4982 if test -n "$NM"; then
4983 # Let the user override the test.
4986 lt_nm_to_check="${ac_tool_prefix}nm"
4987 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4988 lt_nm_to_check="$lt_nm_to_check nm"
4990 for lt_tmp_nm in $lt_nm_to_check; do
4991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4992 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4994 test -z "$ac_dir" && ac_dir=.
4995 tmp_nm="$ac_dir/$lt_tmp_nm"
4996 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4997 # Check to see if the nm accepts a BSD-compat flag.
4998 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4999 # nm: unknown option "B" ignored
5000 # Tru64's nm complains that /dev/null is an invalid object file
5001 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5002 */dev/null* | *'Invalid file or object type'*)
5003 lt_cv_path_NM="$tmp_nm -B"
5007 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5009 lt_cv_path_NM="$tmp_nm -p"
5013 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5014 continue # so that we can try to find one that supports BSD flags
5023 : ${lt_cv_path_NM=no}
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5027 $as_echo "$lt_cv_path_NM" >&6; }
5028 if test "$lt_cv_path_NM" != "no"; then
5031 # Didn't find any BSD compatible name lister, look for dumpbin.
5032 if test -n "$ac_tool_prefix"; then
5033 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5042 if test -n "$DUMPBIN"; then
5043 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 DUMPBIN=$ac_cv_prog_DUMPBIN
5063 if test -n "$DUMPBIN"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5065 $as_echo "$DUMPBIN" >&6; }
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5072 test -n "$DUMPBIN" && break
5075 if test -z "$DUMPBIN"; then
5076 ac_ct_DUMPBIN=$DUMPBIN
5077 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5079 # Extract the first word of "$ac_prog", so it can be a program name with args.
5080 set dummy $ac_prog; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5086 if test -n "$ac_ct_DUMPBIN"; then
5087 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5107 if test -n "$ac_ct_DUMPBIN"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5109 $as_echo "$ac_ct_DUMPBIN" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5116 test -n "$ac_ct_DUMPBIN" && break
5119 if test "x$ac_ct_DUMPBIN" = x; then
5122 case $cross_compiling:$ac_tool_warned in
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5128 DUMPBIN=$ac_ct_DUMPBIN
5133 if test "$DUMPBIN" != ":"; then
5137 test -z "$NM" && NM=nm
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5145 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5146 if test "${lt_cv_nm_interface+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5149 lt_cv_nm_interface="BSD nm"
5150 echo "int some_variable = 0;" > conftest.$ac_ext
5151 (eval echo "\"\$as_me:5151: $ac_compile\"" >&5)
5152 (eval "$ac_compile" 2>conftest.err)
5153 cat conftest.err >&5
5154 (eval echo "\"\$as_me:5154: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5155 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5156 cat conftest.err >&5
5157 (eval echo "\"\$as_me:5157: output\"" >&5)
5158 cat conftest.out >&5
5159 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5160 lt_cv_nm_interface="MS dumpbin"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5165 $as_echo "$lt_cv_nm_interface" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5168 $as_echo_n "checking whether ln -s works... " >&6; }
5170 if test "$LN_S" = "ln -s"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5172 $as_echo "yes" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5175 $as_echo "no, using $LN_S" >&6; }
5178 # find the maximum length of command line arguments
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5180 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5181 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5189 # On DJGPP, this test can blow up pretty badly due to problems in libc
5190 # (any single argument exceeding 2000 bytes causes a buffer overrun
5191 # during glob expansion). Even if it were fixed, the result of this
5192 # check would be larger than it should be.
5193 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5197 # Under GNU Hurd, this test is not required because there is
5198 # no limit to the length of command line arguments.
5199 # Libtool will interpret -1 as no limit whatsoever
5200 lt_cv_sys_max_cmd_len=-1;
5203 cygwin* | mingw* | cegcc*)
5204 # On Win9x/ME, this test blows up -- it succeeds, but takes
5205 # about 5 minutes as the teststring grows exponentially.
5206 # Worse, since 9x/ME are not pre-emptively multitasking,
5207 # you end up with a "frozen" computer, even though with patience
5208 # the test eventually succeeds (with a max line length of 256k).
5209 # Instead, let's just punt: use the minimum linelength reported by
5210 # all of the supported platforms: 8192 (on NT/2K/XP).
5211 lt_cv_sys_max_cmd_len=8192;
5215 # On AmigaOS with pdksh, this test takes hours, literally.
5216 # So we just punt and use a minimum line length of 8192.
5217 lt_cv_sys_max_cmd_len=8192;
5220 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5221 # This has been around since 386BSD, at least. Likely further.
5222 if test -x /sbin/sysctl; then
5223 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5224 elif test -x /usr/sbin/sysctl; then
5225 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5227 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5229 # And add a safety zone
5230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5235 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5236 lt_cv_sys_max_cmd_len=196608
5240 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5241 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5242 # nice to cause kernel panics so lets avoid the loop below.
5243 # First set a reasonable default.
5244 lt_cv_sys_max_cmd_len=16384
5246 if test -x /sbin/sysconfig; then
5247 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5248 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5253 lt_cv_sys_max_cmd_len=102400
5255 sysv5* | sco5v6* | sysv4.2uw2*)
5256 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5257 if test -n "$kargmax"; then
5258 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5260 lt_cv_sys_max_cmd_len=32768
5264 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5265 if test -n "$lt_cv_sys_max_cmd_len"; then
5266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5269 # Make teststring a little bigger before we do anything with it.
5270 # a 1K string should be a reasonable start.
5271 for i in 1 2 3 4 5 6 7 8 ; do
5272 teststring=$teststring$teststring
5274 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5275 # If test is not a shell built-in, we'll probably end up computing a
5276 # maximum length that is only half of the actual maximum length, but
5278 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5279 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5280 test $i != 17 # 1/2 MB should be enough
5283 teststring=$teststring$teststring
5285 # Only check the string length outside the loop.
5286 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5288 # Add a significant safety factor because C++ compilers can tack on
5289 # massive amounts of additional arguments before passing them to the
5290 # linker. It appears as though 1/2 is a usable value.
5291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5298 if test -n $lt_cv_sys_max_cmd_len ; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5300 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5303 $as_echo "none" >&6; }
5305 max_cmd_len=$lt_cv_sys_max_cmd_len
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5317 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5318 # Try some XSI features
5321 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5323 && eval 'test $(( 1 + 1 )) -eq 2 \
5324 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5327 $as_echo "$xsi_shell" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5331 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5333 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5335 && lt_shell_append=yes
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5337 $as_echo "$lt_shell_append" >&6; }
5340 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5350 # test EBCDIC or ASCII
5351 case `echo X|tr X '\101'` in
5352 A) # ASCII based system
5353 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5354 lt_SP2NL='tr \040 \012'
5355 lt_NL2SP='tr \015\012 \040\040'
5357 *) # EBCDIC based system
5358 lt_SP2NL='tr \100 \n'
5359 lt_NL2SP='tr \r\n \100\100'
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5372 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5373 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5376 lt_cv_ld_reload_flag='-r'
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5379 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5380 reload_flag=$lt_cv_ld_reload_flag
5381 case $reload_flag in
5383 *) reload_flag=" $reload_flag" ;;
5385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5388 if test "$GCC" = yes; then
5389 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404 if test -n "$ac_tool_prefix"; then
5405 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5406 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5412 if test -n "$OBJDUMP"; then
5413 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 OBJDUMP=$ac_cv_prog_OBJDUMP
5433 if test -n "$OBJDUMP"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5435 $as_echo "$OBJDUMP" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5443 if test -z "$ac_cv_prog_OBJDUMP"; then
5444 ac_ct_OBJDUMP=$OBJDUMP
5445 # Extract the first word of "objdump", so it can be a program name with args.
5446 set dummy objdump; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5452 if test -n "$ac_ct_OBJDUMP"; then
5453 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5473 if test -n "$ac_ct_OBJDUMP"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5475 $as_echo "$ac_ct_OBJDUMP" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5481 if test "x$ac_ct_OBJDUMP" = x; then
5484 case $cross_compiling:$ac_tool_warned in
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned=yes ;;
5490 OBJDUMP=$ac_ct_OBJDUMP
5493 OBJDUMP="$ac_cv_prog_OBJDUMP"
5496 test -z "$OBJDUMP" && OBJDUMP=objdump
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5504 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5505 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5506 $as_echo_n "(cached) " >&6
5508 lt_cv_file_magic_cmd='$MAGIC_CMD'
5509 lt_cv_file_magic_test_file=
5510 lt_cv_deplibs_check_method='unknown'
5511 # Need to set the preceding variable on all platforms that support
5512 # interlibrary dependencies.
5513 # 'none' -- dependencies not supported.
5514 # `unknown' -- same as none, but documents that we really don't know.
5515 # 'pass_all' -- all dependencies passed with no checks.
5516 # 'test_compile' -- check by making test program.
5517 # 'file_magic [[regex]]' -- check by looking for files in library path
5518 # which responds to the $file_magic_cmd with a given extended regex.
5519 # If you have `file' or equivalent on your system and you're not sure
5520 # whether `pass_all' will *always* work, you probably want this one.
5524 lt_cv_deplibs_check_method=pass_all
5528 lt_cv_deplibs_check_method=pass_all
5532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5533 lt_cv_file_magic_cmd='/usr/bin/file -L'
5534 lt_cv_file_magic_test_file=/shlib/libc.so
5538 # func_win32_libid is a shell function defined in ltmain.sh
5539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5540 lt_cv_file_magic_cmd='func_win32_libid'
5544 # Base MSYS/MinGW do not provide the 'file' command needed by
5545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5546 # unless we find 'file', for example because we are cross-compiling.
5547 if ( file / ) >/dev/null 2>&1; then
5548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5549 lt_cv_file_magic_cmd='func_win32_libid'
5551 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5552 lt_cv_file_magic_cmd='$OBJDUMP -f'
5557 # use the weaker test based on 'objdump'. See mingw*.
5558 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5559 lt_cv_file_magic_cmd='$OBJDUMP -f'
5562 darwin* | rhapsody*)
5563 lt_cv_deplibs_check_method=pass_all
5566 freebsd* | dragonfly*)
5567 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5570 # Not sure whether the presence of OpenBSD here was a mistake.
5571 # Let's accept both of them until this is cleared up.
5572 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5573 lt_cv_file_magic_cmd=/usr/bin/file
5574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5578 lt_cv_deplibs_check_method=pass_all
5583 lt_cv_deplibs_check_method=pass_all
5586 hpux10.20* | hpux11*)
5587 lt_cv_file_magic_cmd=/usr/bin/file
5590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5591 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5594 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]'
5595 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5599 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5605 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5609 irix5* | irix6* | nonstopux*)
5611 *-32|*"-32 ") libmagic=32-bit;;
5612 *-n32|*"-n32 ") libmagic=N32;;
5613 *-64|*"-64 ") libmagic=64-bit;;
5614 *) libmagic=never-match;;
5616 lt_cv_deplibs_check_method=pass_all
5619 # This must be Linux ELF.
5620 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5621 lt_cv_deplibs_check_method=pass_all
5624 netbsd* | netbsdelf*-gnu)
5625 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5634 lt_cv_file_magic_cmd=/usr/bin/file
5635 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5639 lt_cv_deplibs_check_method=pass_all
5643 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5650 osf3* | osf4* | osf5*)
5651 lt_cv_deplibs_check_method=pass_all
5655 lt_cv_deplibs_check_method=pass_all
5659 lt_cv_deplibs_check_method=pass_all
5662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5663 lt_cv_deplibs_check_method=pass_all
5667 case $host_vendor in
5669 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]'
5670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5673 lt_cv_deplibs_check_method=pass_all
5676 lt_cv_file_magic_cmd='/bin/file'
5677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5680 lt_cv_file_magic_cmd='/bin/file'
5681 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5682 lt_cv_file_magic_test_file=/lib/libc.so
5685 lt_cv_deplibs_check_method=pass_all
5688 lt_cv_deplibs_check_method=pass_all
5694 lt_cv_deplibs_check_method=pass_all
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5700 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5701 file_magic_cmd=$lt_cv_file_magic_cmd
5702 deplibs_check_method=$lt_cv_deplibs_check_method
5703 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}ar; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_AR+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5724 if test -n "$AR"; then
5725 ac_cv_prog_AR="$AR" # Let the user override the test.
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_AR="${ac_tool_prefix}ar"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 if test -n "$AR"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5747 $as_echo "$AR" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5755 if test -z "$ac_cv_prog_AR"; then
5757 # Extract the first word of "ar", so it can be a program name with args.
5758 set dummy ar; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5764 if test -n "$ac_ct_AR"; then
5765 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_ac_ct_AR="ar"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5785 if test -n "$ac_ct_AR"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5787 $as_echo "$ac_ct_AR" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5793 if test "x$ac_ct_AR" = x; then
5796 case $cross_compiling:$ac_tool_warned in
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800 ac_tool_warned=yes ;;
5808 test -z "$AR" && AR=ar
5809 test -z "$AR_FLAGS" && AR_FLAGS=cru
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}strip; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_prog_STRIP+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5829 if test -n "$STRIP"; then
5830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 STRIP=$ac_cv_prog_STRIP
5850 if test -n "$STRIP"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5852 $as_echo "$STRIP" >&6; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5860 if test -z "$ac_cv_prog_STRIP"; then
5862 # Extract the first word of "strip", so it can be a program name with args.
5863 set dummy strip; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -n "$ac_ct_STRIP"; then
5870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_STRIP="strip"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5890 if test -n "$ac_ct_STRIP"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5892 $as_echo "$ac_ct_STRIP" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5898 if test "x$ac_ct_STRIP" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5910 STRIP="$ac_cv_prog_STRIP"
5913 test -z "$STRIP" && STRIP=:
5920 if test -n "$ac_tool_prefix"; then
5921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5928 if test -n "$RANLIB"; then
5929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 RANLIB=$ac_cv_prog_RANLIB
5949 if test -n "$RANLIB"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5951 $as_echo "$RANLIB" >&6; }
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5959 if test -z "$ac_cv_prog_RANLIB"; then
5960 ac_ct_RANLIB=$RANLIB
5961 # Extract the first word of "ranlib", so it can be a program name with args.
5962 set dummy ranlib; ac_word=$2
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5968 if test -n "$ac_ct_RANLIB"; then
5969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_prog_ac_ct_RANLIB="ranlib"
5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5989 if test -n "$ac_ct_RANLIB"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5991 $as_echo "$ac_ct_RANLIB" >&6; }
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5997 if test "x$ac_ct_RANLIB" = x; then
6000 case $cross_compiling:$ac_tool_warned in
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004 ac_tool_warned=yes ;;
6006 RANLIB=$ac_ct_RANLIB
6009 RANLIB="$ac_cv_prog_RANLIB"
6012 test -z "$RANLIB" && RANLIB=:
6019 # Determine commands to create old-style static archives.
6020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6021 old_postinstall_cmds='chmod 644 $oldlib'
6022 old_postuninstall_cmds=
6024 if test -n "$RANLIB"; then
6027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6033 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6069 # If no C compiler was specified, use CC.
6072 # If no C compiler flags were specified, use CFLAGS.
6073 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6075 # Allow CC to be a program name with arguments.
6079 # Check for command to grab the raw symbol name followed by C symbol from nm.
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6081 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6082 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6086 # These are sane defaults that work on at least a few old systems.
6087 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6089 # Character class describing NM global symbol codes.
6090 symcode='[BCDEGRST]'
6092 # Regexp to match symbols that can be accessed directly from C.
6093 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6095 # Define system-specific variables.
6100 cygwin* | mingw* | pw32* | cegcc*)
6101 symcode='[ABCDGISTW]'
6104 if test "$host_cpu" = ia64; then
6105 symcode='[ABCDEGRST]'
6109 symcode='[BCDEGRST]'
6112 symcode='[BCDEGQRST]'
6123 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6131 # If we're using GNU nm, then use its standard symbol codes.
6132 case `$NM -V 2>&1` in
6133 *GNU* | *'with BFD'*)
6134 symcode='[ABCDGIRSTW]' ;;
6137 # Transform an extracted symbol line into a proper C declaration.
6138 # Some systems (esp. on ia64) link data and code symbols differently,
6139 # so use this general approach.
6140 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6142 # Transform an extracted symbol line into symbol name and symbol address
6143 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6144 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'"
6146 # Handle CRLF in mingw tool chain
6150 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6154 # Try without a prefix underscore, then with it.
6155 for ac_symprfx in "" "_"; do
6157 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6158 symxfrm="\\1 $ac_symprfx\\2 \\2"
6160 # Write the raw and C identifiers.
6161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6162 # Fake it for dumpbin and say T for any non-static function
6163 # and D for any global variable.
6164 # Also find C++ and __fastcall symbols from MSVC++,
6165 # which start with @ or ?.
6166 lt_cv_sys_global_symbol_pipe="$AWK '"\
6167 " {last_section=section; section=\$ 3};"\
6168 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6169 " \$ 0!~/External *\|/{next};"\
6170 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6171 " {if(hide[section]) next};"\
6172 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6173 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6174 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6175 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6176 " ' prfx=^$ac_symprfx"
6178 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6181 # Check to see that the pipe works correctly.
6185 cat > conftest.$ac_ext <<_LT_EOF
6190 void nm_test_func(void);
6191 void nm_test_func(void){}
6195 int main(){nm_test_var='a';nm_test_func();return(0);}
6198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199 (eval $ac_compile) 2>&5
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }; then
6203 # Now try to grab the symbols.
6205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6206 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; } && test -s "$nlist"; then
6210 # Try sorting and uniquifying the output.
6211 if sort "$nlist" | uniq > "$nlist"T; then
6212 mv -f "$nlist"T "$nlist"
6217 # Make sure that we snagged all the symbols we need.
6218 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6219 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6220 cat <<_LT_EOF > conftest.$ac_ext
6226 # Now generate the symbol file.
6227 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6229 cat <<_LT_EOF >> conftest.$ac_ext
6231 /* The mapping between symbol names and symbols. */
6236 lt__PROGRAM__LTX_preloaded_symbols[] =
6238 { "@PROGRAM@", (void *) 0 },
6240 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6241 cat <<\_LT_EOF >> conftest.$ac_ext
6245 /* This works around a problem in FreeBSD linker */
6246 #ifdef FREEBSD_WORKAROUND
6247 static const void *lt_preloaded_setup() {
6248 return lt__PROGRAM__LTX_preloaded_symbols;
6256 # Now try linking the two files.
6257 mv conftest.$ac_objext conftstm.$ac_objext
6258 lt_save_LIBS="$LIBS"
6259 lt_save_CFLAGS="$CFLAGS"
6260 LIBS="conftstm.$ac_objext"
6261 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6263 (eval $ac_link) 2>&5
6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6269 LIBS="$lt_save_LIBS"
6270 CFLAGS="$lt_save_CFLAGS"
6272 echo "cannot find nm_test_func in $nlist" >&5
6275 echo "cannot find nm_test_var in $nlist" >&5
6278 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6281 echo "$progname: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 rm -rf conftest* conftst*
6286 # Do not use the global_symbol_pipe unless it works.
6287 if test "$pipe_works" = yes; then
6290 lt_cv_sys_global_symbol_pipe=
6296 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6297 lt_cv_sys_global_symbol_to_cdecl=
6299 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6301 $as_echo "failed" >&6; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6304 $as_echo "ok" >&6; }
6328 # Check whether --enable-libtool-lock was given.
6329 if test "${enable_libtool_lock+set}" = set; then :
6330 enableval=$enable_libtool_lock;
6333 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6335 # Some flags need to be propagated to the compiler or linker for good
6339 # Find out which ABI we are using.
6340 echo 'int i;' > conftest.$ac_ext
6341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6342 (eval $ac_compile) 2>&5
6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345 test $ac_status = 0; }; then
6346 case `/usr/bin/file conftest.$ac_objext` in
6358 # Find out which ABI we are using.
6359 echo '#line 6359 "configure"' > conftest.$ac_ext
6360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361 (eval $ac_compile) 2>&5
6363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364 test $ac_status = 0; }; then
6365 if test "$lt_cv_prog_gnu_ld" = yes; then
6366 case `/usr/bin/file conftest.$ac_objext` in
6368 LD="${LD-ld} -melf32bsmip"
6371 LD="${LD-ld} -melf32bmipn32"
6374 LD="${LD-ld} -melf64bmip"
6378 case `/usr/bin/file conftest.$ac_objext` in
6394 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6395 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6396 # Find out which ABI we are using.
6397 echo 'int i;' > conftest.$ac_ext
6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399 (eval $ac_compile) 2>&5
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }; then
6403 case `/usr/bin/file conftest.o` in
6406 x86_64-*kfreebsd*-gnu)
6407 LD="${LD-ld} -m elf_i386_fbsd"
6410 LD="${LD-ld} -m elf_i386"
6412 ppc64-*linux*|powerpc64-*linux*)
6413 LD="${LD-ld} -m elf32ppclinux"
6416 LD="${LD-ld} -m elf_s390"
6419 LD="${LD-ld} -m elf32_sparc"
6425 x86_64-*kfreebsd*-gnu)
6426 LD="${LD-ld} -m elf_x86_64_fbsd"
6429 LD="${LD-ld} -m elf_x86_64"
6431 ppc*-*linux*|powerpc*-*linux*)
6432 LD="${LD-ld} -m elf64ppc"
6434 s390*-*linux*|s390*-*tpf*)
6435 LD="${LD-ld} -m elf64_s390"
6438 LD="${LD-ld} -m elf64_sparc"
6448 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6449 SAVE_CFLAGS="$CFLAGS"
6450 CFLAGS="$CFLAGS -belf"
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6452 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6453 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6457 ac_cpp='$CPP $CPPFLAGS'
6458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6473 if ac_fn_c_try_link "$LINENO"; then :
6474 lt_cv_cc_needs_belf=yes
6476 lt_cv_cc_needs_belf=no
6478 rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6481 ac_cpp='$CPP $CPPFLAGS'
6482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6488 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6489 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6490 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6491 CFLAGS="$SAVE_CFLAGS"
6495 # Find out which ABI we are using.
6496 echo 'int i;' > conftest.$ac_ext
6497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6498 (eval $ac_compile) 2>&5
6500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6501 test $ac_status = 0; }; then
6502 case `/usr/bin/file conftest.o` in
6504 case $lt_cv_prog_gnu_ld in
6505 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6507 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6519 need_locks="$enable_libtool_lock"
6523 rhapsody* | darwin*)
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6530 $as_echo_n "(cached) " >&6
6532 if test -n "$DSYMUTIL"; then
6533 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6553 if test -n "$DSYMUTIL"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6555 $as_echo "$DSYMUTIL" >&6; }
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6563 if test -z "$ac_cv_prog_DSYMUTIL"; then
6564 ac_ct_DSYMUTIL=$DSYMUTIL
6565 # Extract the first word of "dsymutil", so it can be a program name with args.
6566 set dummy dsymutil; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6572 if test -n "$ac_ct_DSYMUTIL"; then
6573 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6593 if test -n "$ac_ct_DSYMUTIL"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6595 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6601 if test "x$ac_ct_DSYMUTIL" = x; then
6604 case $cross_compiling:$ac_tool_warned in
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608 ac_tool_warned=yes ;;
6610 DSYMUTIL=$ac_ct_DSYMUTIL
6613 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6616 if test -n "$ac_tool_prefix"; then
6617 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6618 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6622 $as_echo_n "(cached) " >&6
6624 if test -n "$NMEDIT"; then
6625 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 NMEDIT=$ac_cv_prog_NMEDIT
6645 if test -n "$NMEDIT"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6647 $as_echo "$NMEDIT" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6655 if test -z "$ac_cv_prog_NMEDIT"; then
6656 ac_ct_NMEDIT=$NMEDIT
6657 # Extract the first word of "nmedit", so it can be a program name with args.
6658 set dummy nmedit; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6662 $as_echo_n "(cached) " >&6
6664 if test -n "$ac_ct_NMEDIT"; then
6665 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6685 if test -n "$ac_ct_NMEDIT"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6687 $as_echo "$ac_ct_NMEDIT" >&6; }
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6693 if test "x$ac_ct_NMEDIT" = x; then
6696 case $cross_compiling:$ac_tool_warned in
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700 ac_tool_warned=yes ;;
6702 NMEDIT=$ac_ct_NMEDIT
6705 NMEDIT="$ac_cv_prog_NMEDIT"
6708 if test -n "$ac_tool_prefix"; then
6709 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if test "${ac_cv_prog_LIPO+set}" = set; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$LIPO"; then
6717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 LIPO=$ac_cv_prog_LIPO
6737 if test -n "$LIPO"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6739 $as_echo "$LIPO" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6747 if test -z "$ac_cv_prog_LIPO"; then
6749 # Extract the first word of "lipo", so it can be a program name with args.
6750 set dummy lipo; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6754 $as_echo_n "(cached) " >&6
6756 if test -n "$ac_ct_LIPO"; then
6757 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_prog_ac_ct_LIPO="lipo"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6777 if test -n "$ac_ct_LIPO"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6779 $as_echo "$ac_ct_LIPO" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6785 if test "x$ac_ct_LIPO" = x; then
6788 case $cross_compiling:$ac_tool_warned in
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6797 LIPO="$ac_cv_prog_LIPO"
6800 if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}otool; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6806 $as_echo_n "(cached) " >&6
6808 if test -n "$OTOOL"; then
6809 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 OTOOL=$ac_cv_prog_OTOOL
6829 if test -n "$OTOOL"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6831 $as_echo "$OTOOL" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6839 if test -z "$ac_cv_prog_OTOOL"; then
6841 # Extract the first word of "otool", so it can be a program name with args.
6842 set dummy otool; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6848 if test -n "$ac_ct_OTOOL"; then
6849 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_prog_ac_ct_OTOOL="otool"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6869 if test -n "$ac_ct_OTOOL"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6871 $as_echo "$ac_ct_OTOOL" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6877 if test "x$ac_ct_OTOOL" = x; then
6880 case $cross_compiling:$ac_tool_warned in
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6889 OTOOL="$ac_cv_prog_OTOOL"
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6900 if test -n "$OTOOL64"; then
6901 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 OTOOL64=$ac_cv_prog_OTOOL64
6921 if test -n "$OTOOL64"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6923 $as_echo "$OTOOL64" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6931 if test -z "$ac_cv_prog_OTOOL64"; then
6932 ac_ct_OTOOL64=$OTOOL64
6933 # Extract the first word of "otool64", so it can be a program name with args.
6934 set dummy otool64; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6940 if test -n "$ac_ct_OTOOL64"; then
6941 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950 ac_cv_prog_ac_ct_OTOOL64="otool64"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6961 if test -n "$ac_ct_OTOOL64"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6963 $as_echo "$ac_ct_OTOOL64" >&6; }
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6969 if test "x$ac_ct_OTOOL64" = x; then
6972 case $cross_compiling:$ac_tool_warned in
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6978 OTOOL64=$ac_ct_OTOOL64
6981 OTOOL64="$ac_cv_prog_OTOOL64"
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7011 $as_echo_n "checking for -single_module linker flag... " >&6; }
7012 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7015 lt_cv_apple_cc_single_mod=no
7016 if test -z "${LT_MULTI_MODULE}"; then
7017 # By default we will add the -single_module flag. You can override
7018 # by either setting the environment variable LT_MULTI_MODULE
7019 # non-empty at configure time, or by adding -multi_module to the
7021 rm -rf libconftest.dylib*
7022 echo "int foo(void){return 1;}" > conftest.c
7023 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7024 -dynamiclib -Wl,-single_module conftest.c" >&5
7025 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7026 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7028 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7029 lt_cv_apple_cc_single_mod=yes
7031 cat conftest.err >&5
7033 rm -rf libconftest.dylib*
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7038 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7041 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7044 lt_cv_ld_exported_symbols_list=no
7045 save_LDFLAGS=$LDFLAGS
7046 echo "_main" > conftest.sym
7047 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7059 if ac_fn_c_try_link "$LINENO"; then :
7060 lt_cv_ld_exported_symbols_list=yes
7062 lt_cv_ld_exported_symbols_list=no
7064 rm -f core conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 LDFLAGS="$save_LDFLAGS"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7072 rhapsody* | darwin1.[012])
7073 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7075 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7076 darwin*) # darwin 5.x on
7077 # if running on 10.5 or later, the deployment target defaults
7078 # to the OS version, if on x86, and 10.4, the deployment
7079 # target defaults to 10.4. Don't you love it?
7080 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7081 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7082 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7084 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7086 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7090 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7091 _lt_dar_single_mod='$single_module'
7093 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7094 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7096 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7098 if test "$DSYMUTIL" != ":"; then
7099 _lt_dsymutil='~$DSYMUTIL $lib || :'
7106 for ac_header in dlfcn.h
7108 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7110 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7111 cat >>confdefs.h <<_ACEOF
7112 #define HAVE_DLFCN_H 1
7123 # Check whether --enable-static was given.
7124 if test "${enable_static+set}" = set; then :
7125 enableval=$enable_static; p=${PACKAGE-default}
7127 yes) enable_static=yes ;;
7128 no) enable_static=no ;;
7131 # Look at the argument we got. We use all the common list separators.
7132 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7133 for pkg in $enableval; do
7135 if test "X$pkg" = "X$p"; then
7152 enable_win32_dll=yes
7155 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}as; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_AS+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7164 if test -n "$AS"; then
7165 ac_cv_prog_AS="$AS" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_AS="${ac_tool_prefix}as"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 if test -n "$AS"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7187 $as_echo "$AS" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7195 if test -z "$ac_cv_prog_AS"; then
7197 # Extract the first word of "as", so it can be a program name with args.
7198 set dummy as; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$ac_ct_AS"; then
7205 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_ac_ct_AS="as"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7225 if test -n "$ac_ct_AS"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7227 $as_echo "$ac_ct_AS" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7233 if test "x$ac_ct_AS" = x; then
7236 case $cross_compiling:$ac_tool_warned in
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7256 if test -n "$DLLTOOL"; then
7257 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 DLLTOOL=$ac_cv_prog_DLLTOOL
7277 if test -n "$DLLTOOL"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7279 $as_echo "$DLLTOOL" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7287 if test -z "$ac_cv_prog_DLLTOOL"; then
7288 ac_ct_DLLTOOL=$DLLTOOL
7289 # Extract the first word of "dlltool", so it can be a program name with args.
7290 set dummy dlltool; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$ac_ct_DLLTOOL"; then
7297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7317 if test -n "$ac_ct_DLLTOOL"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7319 $as_echo "$ac_ct_DLLTOOL" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7325 if test "x$ac_ct_DLLTOOL" = x; then
7328 case $cross_compiling:$ac_tool_warned in
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7334 DLLTOOL=$ac_ct_DLLTOOL
7337 DLLTOOL="$ac_cv_prog_DLLTOOL"
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7348 if test -n "$OBJDUMP"; then
7349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 OBJDUMP=$ac_cv_prog_OBJDUMP
7369 if test -n "$OBJDUMP"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7371 $as_echo "$OBJDUMP" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7379 if test -z "$ac_cv_prog_OBJDUMP"; then
7380 ac_ct_OBJDUMP=$OBJDUMP
7381 # Extract the first word of "objdump", so it can be a program name with args.
7382 set dummy objdump; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7388 if test -n "$ac_ct_OBJDUMP"; then
7389 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7409 if test -n "$ac_ct_OBJDUMP"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7411 $as_echo "$ac_ct_OBJDUMP" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7417 if test "x$ac_ct_OBJDUMP" = x; then
7420 case $cross_compiling:$ac_tool_warned in
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7426 OBJDUMP=$ac_ct_OBJDUMP
7429 OBJDUMP="$ac_cv_prog_OBJDUMP"
7435 test -z "$AS" && AS=as
7441 test -z "$DLLTOOL" && DLLTOOL=dlltool
7447 test -z "$OBJDUMP" && OBJDUMP=objdump
7457 # Check whether --enable-shared was given.
7458 if test "${enable_shared+set}" = set; then :
7459 enableval=$enable_shared; p=${PACKAGE-default}
7461 yes) enable_shared=yes ;;
7462 no) enable_shared=no ;;
7465 # Look at the argument we got. We use all the common list separators.
7466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7467 for pkg in $enableval; do
7469 if test "X$pkg" = "X$p"; then
7490 # Check whether --with-pic was given.
7491 if test "${with_pic+set}" = set; then :
7492 withval=$with_pic; pic_mode="$withval"
7498 test -z "$pic_mode" && pic_mode=default
7506 # Check whether --enable-fast-install was given.
7507 if test "${enable_fast_install+set}" = set; then :
7508 enableval=$enable_fast_install; p=${PACKAGE-default}
7510 yes) enable_fast_install=yes ;;
7511 no) enable_fast_install=no ;;
7513 enable_fast_install=no
7514 # Look at the argument we got. We use all the common list separators.
7515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7516 for pkg in $enableval; do
7518 if test "X$pkg" = "X$p"; then
7519 enable_fast_install=yes
7526 enable_fast_install=yes
7539 # This can be used to rebuild libtool when needed
7540 LIBTOOL_DEPS="$ltmain"
7542 # Always use our own libtool.
7543 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7569 test -z "$LN_S" && LN_S="ln -s"
7584 if test -n "${ZSH_VERSION+set}" ; then
7585 setopt NO_GLOB_SUBST
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7589 $as_echo_n "checking for objdir... " >&6; }
7590 if test "${lt_cv_objdir+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7593 rm -f .libs 2>/dev/null
7594 mkdir .libs 2>/dev/null
7595 if test -d .libs; then
7598 # MS-DOS does not allow filenames that begin with a dot.
7601 rmdir .libs 2>/dev/null
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7604 $as_echo "$lt_cv_objdir" >&6; }
7605 objdir=$lt_cv_objdir
7611 cat >>confdefs.h <<_ACEOF
7612 #define LT_OBJDIR "$lt_cv_objdir/"
7633 # AIX sometimes has problems with the GCC collect2 program. For some
7634 # reason, if we set the COLLECT_NAMES environment variable, the problems
7635 # vanish in a puff of smoke.
7636 if test "X${COLLECT_NAMES+set}" != Xset; then
7638 export COLLECT_NAMES
7643 # Sed substitution that helps us do robust quoting. It backslashifies
7644 # metacharacters that are still active within double-quoted strings.
7645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7647 # Same as above, but do not quote variable references.
7648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7650 # Sed substitution to delay expansion of an escaped shell variable in a
7651 # double_quote_subst'ed string.
7652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7654 # Sed substitution to delay expansion of an escaped single quote.
7655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7657 # Sed substitution to avoid accidental globbing in evaled expressions
7658 no_glob_subst='s/\*/\\\*/g'
7662 can_build_shared=yes
7664 # All known linkers require a `.a' archive for static linking (except MSVC,
7665 # which needs '.lib').
7668 with_gnu_ld="$lt_cv_prog_gnu_ld"
7671 old_CFLAGS="$CFLAGS"
7673 # Set sane defaults for various variables
7674 test -z "$CC" && CC=cc
7675 test -z "$LTCC" && LTCC=$CC
7676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7677 test -z "$LD" && LD=ld
7678 test -z "$ac_objext" && ac_objext=o
7680 for cc_temp in $compiler""; do
7682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7688 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7691 # Only perform the check for file, if the check method requires it
7692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7693 case $deplibs_check_method in
7695 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7698 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7699 $as_echo_n "(cached) " >&6
7703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7706 lt_save_MAGIC_CMD="$MAGIC_CMD"
7707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7709 for ac_dir in $ac_dummy; do
7711 test -z "$ac_dir" && ac_dir=.
7712 if test -f $ac_dir/${ac_tool_prefix}file; then
7713 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7714 if test -n "$file_magic_test_file"; then
7715 case $deplibs_check_method in
7717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7720 $EGREP "$file_magic_regex" > /dev/null; then
7725 *** Warning: the command libtool uses to detect shared libraries,
7726 *** $file_magic_cmd, produces output that libtool cannot recognize.
7727 *** The result is that libtool may fail to recognize shared libraries
7728 *** as such. This will affect the creation of libtool libraries that
7729 *** depend on shared libraries, but programs linked with such libtool
7730 *** libraries will work regardless of this problem. Nevertheless, you
7731 *** may want to report the problem to your system manager and/or to
7732 *** bug-libtool@gnu.org
7742 MAGIC_CMD="$lt_save_MAGIC_CMD"
7747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7748 if test -n "$MAGIC_CMD"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7750 $as_echo "$MAGIC_CMD" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7760 if test -z "$lt_cv_path_MAGIC_CMD"; then
7761 if test -n "$ac_tool_prefix"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7763 $as_echo_n "checking for file... " >&6; }
7764 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7772 lt_save_MAGIC_CMD="$MAGIC_CMD"
7773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7775 for ac_dir in $ac_dummy; do
7777 test -z "$ac_dir" && ac_dir=.
7778 if test -f $ac_dir/file; then
7779 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7780 if test -n "$file_magic_test_file"; then
7781 case $deplibs_check_method in
7783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7786 $EGREP "$file_magic_regex" > /dev/null; then
7791 *** Warning: the command libtool uses to detect shared libraries,
7792 *** $file_magic_cmd, produces output that libtool cannot recognize.
7793 *** The result is that libtool may fail to recognize shared libraries
7794 *** as such. This will affect the creation of libtool libraries that
7795 *** depend on shared libraries, but programs linked with such libtool
7796 *** libraries will work regardless of this problem. Nevertheless, you
7797 *** may want to report the problem to your system manager and/or to
7798 *** bug-libtool@gnu.org
7808 MAGIC_CMD="$lt_save_MAGIC_CMD"
7813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7814 if test -n "$MAGIC_CMD"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7816 $as_echo "$MAGIC_CMD" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7832 # Use C for the default configuration in the libtool script
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842 # Source file extension for C test sources.
7845 # Object file extension for compiled C test sources.
7849 # Code to be used in simple compile tests
7850 lt_simple_compile_test_code="int some_variable = 0;"
7852 # Code to be used in simple link tests
7853 lt_simple_link_test_code='int main(){return(0);}'
7861 # If no C compiler was specified, use CC.
7864 # If no C compiler flags were specified, use CFLAGS.
7865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7867 # Allow CC to be a program name with arguments.
7870 # Save the default compiler, since it gets overwritten when the other
7871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7872 compiler_DEFAULT=$CC
7874 # save warnings/boilerplate of simple test code
7875 ac_outfile=conftest.$ac_objext
7876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7878 _lt_compiler_boilerplate=`cat conftest.err`
7881 ac_outfile=conftest.$ac_objext
7882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7884 _lt_linker_boilerplate=`cat conftest.err`
7889 ## There is no encapsulation within the following macros, do not change
7890 ## the running order or otherwise move them around unless you know exactly
7891 ## what you are doing...
7892 if test -n "$compiler"; then
7894 lt_prog_compiler_no_builtin_flag=
7896 if test "$GCC" = yes; then
7897 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7900 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7901 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7904 lt_cv_prog_compiler_rtti_exceptions=no
7905 ac_outfile=conftest.$ac_objext
7906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7907 lt_compiler_flag="-fno-rtti -fno-exceptions"
7908 # Insert the option either (1) after the last *FLAGS variable, or
7909 # (2) before a word containing "conftest.", or (3) at the end.
7910 # Note that $ac_compile itself does not contain backslashes and begins
7911 # with a dollar sign (not a hyphen), so the echo should work correctly.
7912 # The option is referenced via a variable to avoid confusing sed.
7913 lt_compile=`echo "$ac_compile" | $SED \
7914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7916 -e 's:$: $lt_compiler_flag:'`
7917 (eval echo "\"\$as_me:7917: $lt_compile\"" >&5)
7918 (eval "$lt_compile" 2>conftest.err)
7920 cat conftest.err >&5
7921 echo "$as_me:7921: \$? = $ac_status" >&5
7922 if (exit $ac_status) && test -s "$ac_outfile"; then
7923 # The compiler can only warn and ignore the option if not recognized
7924 # So say no if there are warnings other than the usual output.
7925 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7928 lt_cv_prog_compiler_rtti_exceptions=yes
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7935 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7937 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7938 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7950 lt_prog_compiler_wl=
7951 lt_prog_compiler_pic=
7952 lt_prog_compiler_static=
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7957 if test "$GCC" = yes; then
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_static='-static'
7963 # All AIX code is PIC.
7964 if test "$host_cpu" = ia64; then
7965 # AIX 5 now supports IA64 processor
7966 lt_prog_compiler_static='-Bstatic'
7973 # see comment about AmigaOS4 .so support
7974 lt_prog_compiler_pic='-fPIC'
7977 # FIXME: we need at least 68020 code to build shared libraries, but
7978 # adding the `-m68020' flag to GCC prevents building anything better,
7980 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7986 # PIC is the default for these OSes.
7989 mingw* | cygwin* | pw32* | os2* | cegcc*)
7990 # This hack is so that the source file can tell whether it is being
7991 # built for inclusion in a dll (and should export symbols for example).
7992 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7993 # (--disable-auto-import) libraries
7994 lt_prog_compiler_pic='-DDLL_EXPORT'
7997 darwin* | rhapsody*)
7998 # PIC is the default on this platform
7999 # Common symbols not allowed in MH_DYLIB files
8000 lt_prog_compiler_pic='-fno-common'
8004 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8005 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8006 # sets the default TLS model and affects inlining.
8012 lt_prog_compiler_pic='-fPIC'
8018 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8019 # Instead, we relocate shared libraries at runtime.
8023 # Just because we use GCC doesn't mean we suddenly get shared libraries
8024 # on systems that don't support them.
8025 lt_prog_compiler_can_build_shared=no
8030 # QNX uses GNU C++, but need to define -shared option too, otherwise
8032 lt_prog_compiler_pic='-fPIC -shared'
8036 if test -d /usr/nec; then
8037 lt_prog_compiler_pic=-Kconform_pic
8042 lt_prog_compiler_pic='-fPIC'
8046 # PORTME Check for flag to pass linker flags through the system compiler.
8049 lt_prog_compiler_wl='-Wl,'
8050 if test "$host_cpu" = ia64; then
8051 # AIX 5 now supports IA64 processor
8052 lt_prog_compiler_static='-Bstatic'
8054 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8058 mingw* | cygwin* | pw32* | os2* | cegcc*)
8059 # This hack is so that the source file can tell whether it is being
8060 # built for inclusion in a dll (and should export symbols for example).
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
8064 hpux9* | hpux10* | hpux11*)
8065 lt_prog_compiler_wl='-Wl,'
8066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8073 lt_prog_compiler_pic='+Z'
8076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8077 lt_prog_compiler_static='${wl}-a ${wl}archive'
8080 irix5* | irix6* | nonstopux*)
8081 lt_prog_compiler_wl='-Wl,'
8082 # PIC (with -KPIC) is the default.
8083 lt_prog_compiler_static='-non_shared'
8086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8087 case $cc_basename in
8088 # old Intel for x86_64 which still supported -KPIC.
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_pic='-KPIC'
8092 lt_prog_compiler_static='-static'
8094 # icc used to be incompatible with GCC.
8095 # ICC 10 doesn't accept -KPIC any more.
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-fPIC'
8099 lt_prog_compiler_static='-static'
8101 # Lahey Fortran 8.1.
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='--shared'
8105 lt_prog_compiler_static='--static'
8107 pgcc* | pgf77* | pgf90* | pgf95*)
8108 # Portland Group compilers (*not* the Pentium gcc compiler,
8109 # which looks to be a dead project)
8110 lt_prog_compiler_wl='-Wl,'
8111 lt_prog_compiler_pic='-fpic'
8112 lt_prog_compiler_static='-Bstatic'
8115 lt_prog_compiler_wl='-Wl,'
8116 # All Alpha code is PIC.
8117 lt_prog_compiler_static='-non_shared'
8120 # IBM XL C 8.0/Fortran 10.1 on PPC
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='-qpic'
8123 lt_prog_compiler_static='-qstaticlink'
8126 case `$CC -V 2>&1 | sed 5q` in
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 lt_prog_compiler_wl='-Wl,'
8134 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_wl=''
8145 lt_prog_compiler_pic='-KPIC'
8146 lt_prog_compiler_static='-Bstatic'
8150 # QNX uses GNU C++, but need to define -shared option too, otherwise
8152 lt_prog_compiler_pic='-fPIC -shared'
8155 osf3* | osf4* | osf5*)
8156 lt_prog_compiler_wl='-Wl,'
8157 # All OSF/1 code is PIC.
8158 lt_prog_compiler_static='-non_shared'
8162 lt_prog_compiler_static='-non_shared'
8166 lt_prog_compiler_pic='-KPIC'
8167 lt_prog_compiler_static='-Bstatic'
8168 case $cc_basename in
8170 lt_prog_compiler_wl='-Qoption ld ';;
8172 lt_prog_compiler_wl='-Wl,';;
8177 lt_prog_compiler_wl='-Qoption ld '
8178 lt_prog_compiler_pic='-PIC'
8179 lt_prog_compiler_static='-Bstatic'
8182 sysv4 | sysv4.2uw2* | sysv4.3*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8189 if test -d /usr/nec ;then
8190 lt_prog_compiler_pic='-Kconform_pic'
8191 lt_prog_compiler_static='-Bstatic'
8195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8196 lt_prog_compiler_wl='-Wl,'
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_can_build_shared=no
8207 lt_prog_compiler_pic='-pic'
8208 lt_prog_compiler_static='-Bstatic'
8212 lt_prog_compiler_can_build_shared=no
8218 # For platforms which do not support PIC, -DPIC is meaningless:
8220 lt_prog_compiler_pic=
8223 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8227 $as_echo "$lt_prog_compiler_pic" >&6; }
8235 # Check to make sure the PIC flag actually works.
8237 if test -n "$lt_prog_compiler_pic"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8239 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8240 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8243 lt_cv_prog_compiler_pic_works=no
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8246 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8247 # Insert the option either (1) after the last *FLAGS variable, or
8248 # (2) before a word containing "conftest.", or (3) at the end.
8249 # Note that $ac_compile itself does not contain backslashes and begins
8250 # with a dollar sign (not a hyphen), so the echo should work correctly.
8251 # The option is referenced via a variable to avoid confusing sed.
8252 lt_compile=`echo "$ac_compile" | $SED \
8253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255 -e 's:$: $lt_compiler_flag:'`
8256 (eval echo "\"\$as_me:8256: $lt_compile\"" >&5)
8257 (eval "$lt_compile" 2>conftest.err)
8259 cat conftest.err >&5
8260 echo "$as_me:8260: \$? = $ac_status" >&5
8261 if (exit $ac_status) && test -s "$ac_outfile"; then
8262 # The compiler can only warn and ignore the option if not recognized
8263 # So say no if there are warnings other than the usual output.
8264 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8267 lt_cv_prog_compiler_pic_works=yes
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8274 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8276 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8277 case $lt_prog_compiler_pic in
8279 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8282 lt_prog_compiler_pic=
8283 lt_prog_compiler_can_build_shared=no
8294 # Check to make sure the static flag actually works.
8296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8299 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8302 lt_cv_prog_compiler_static_works=no
8303 save_LDFLAGS="$LDFLAGS"
8304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8307 # The linker can only warn and ignore the option if not recognized
8308 # So say no if there are warnings
8309 if test -s conftest.err; then
8310 # Append any errors to the config.log.
8311 cat conftest.err 1>&5
8312 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8314 if diff conftest.exp conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_static_works=yes
8318 lt_cv_prog_compiler_static_works=yes
8322 LDFLAGS="$save_LDFLAGS"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8331 lt_prog_compiler_static=
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8342 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8345 lt_cv_prog_compiler_c_o=no
8346 $RM -r conftest 2>/dev/null
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8352 lt_compiler_flag="-o out/conftest2.$ac_objext"
8353 # Insert the option either (1) after the last *FLAGS variable, or
8354 # (2) before a word containing "conftest.", or (3) at the end.
8355 # Note that $ac_compile itself does not contain backslashes and begins
8356 # with a dollar sign (not a hyphen), so the echo should work correctly.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>out/conftest.err)
8364 cat out/conftest.err >&5
8365 echo "$as_me:8365: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8368 # The compiler can only warn and ignore the option if not recognized
8369 # So say no if there are warnings
8370 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8373 lt_cv_prog_compiler_c_o=yes
8378 # SGI C++ compiler will create directory out/ii_files/ for
8379 # template instantiation
8380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8381 $RM out/* && rmdir out
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8397 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8400 lt_cv_prog_compiler_c_o=no
8401 $RM -r conftest 2>/dev/null
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8407 lt_compiler_flag="-o out/conftest2.$ac_objext"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
8416 (eval echo "\"\$as_me:8416: $lt_compile\"" >&5)
8417 (eval "$lt_compile" 2>out/conftest.err)
8419 cat out/conftest.err >&5
8420 echo "$as_me:8420: \$? = $ac_status" >&5
8421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings
8425 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_c_o=yes
8433 # SGI C++ compiler will create directory out/ii_files/ for
8434 # template instantiation
8435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436 $RM out/* && rmdir out
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8448 hard_links="nottested"
8449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8450 # do not overwrite the value of need_locks provided by the user
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8452 $as_echo_n "checking if we can lock with hard links... " >&6; }
8455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8457 ln conftest.a conftest.b 2>&5 || hard_links=no
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8460 $as_echo "$hard_links" >&6; }
8461 if test "$hard_links" = no; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8479 allow_undefined_flag=
8480 always_export_symbols=no
8482 archive_expsym_cmds=
8483 compiler_needs_object=no
8484 enable_shared_with_static_runtimes=no
8485 export_dynamic_flag_spec=
8486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8487 hardcode_automatic=no
8489 hardcode_direct_absolute=no
8490 hardcode_libdir_flag_spec=
8491 hardcode_libdir_flag_spec_ld=
8492 hardcode_libdir_separator=
8494 hardcode_shlibpath_var=unsupported
8496 link_all_deplibs=unknown
8499 old_archive_from_new_cmds=
8500 old_archive_from_expsyms_cmds=
8501 thread_safe_flag_spec=
8502 whole_archive_flag_spec=
8503 # include_expsyms should be a list of space-separated symbols to be *always*
8504 # included in the symbol list
8506 # exclude_expsyms can be an extended regexp of symbols to exclude
8507 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8508 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8509 # as well as any symbol that contains `d'.
8510 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8512 # platforms (ab)use it in PIC code, but their linkers get confused if
8513 # the symbol is explicitly referenced. Since portable code cannot
8514 # rely on this symbol name, it's probably fine to never include it in
8515 # preloaded symbol tables.
8516 # Exclude shared library initialization/finalization symbols.
8517 extract_expsyms_cmds=
8520 cygwin* | mingw* | pw32* | cegcc*)
8521 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8522 # When not using gcc, we currently assume that we are using
8523 # Microsoft Visual C++.
8524 if test "$GCC" != yes; then
8529 # we just hope/assume this is gcc and not c89 (= MSVC++)
8535 linux* | k*bsd*-gnu)
8541 if test "$with_gnu_ld" = yes; then
8542 # If archive_cmds runs LD, not CC, wlarc should be empty
8545 # Set some defaults for GNU ld with shared library support. These
8546 # are reset later if shared libraries are not supported. Putting them
8547 # here allows them to be overridden if necessary.
8548 runpath_var=LD_RUN_PATH
8549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8550 export_dynamic_flag_spec='${wl}--export-dynamic'
8551 # ancient GNU ld didn't support --whole-archive et. al.
8552 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8553 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8555 whole_archive_flag_spec=
8557 supports_anon_versioning=no
8558 case `$LD -v 2>&1` in
8559 *GNU\ gold*) supports_anon_versioning=yes ;;
8560 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8561 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8562 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8563 *\ 2.11.*) ;; # other 2.11 versions
8564 *) supports_anon_versioning=yes ;;
8567 # See if GNU ld supports shared libraries.
8570 # On AIX/PPC, the GNU linker is very broken
8571 if test "$host_cpu" != ia64; then
8575 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8576 *** to be unable to reliably create shared libraries on AIX.
8577 *** Therefore, libtool is disabling shared libraries support. If you
8578 *** really care for shared libraries, you may want to modify your PATH
8579 *** so that a non-GNU linker is found, and then restart.
8588 # see comment about AmigaOS4 .so support
8589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590 archive_expsym_cmds=''
8593 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)'
8594 hardcode_libdir_flag_spec='-L$libdir'
8595 hardcode_minus_L=yes
8601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8602 allow_undefined_flag=unsupported
8603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8604 # support --undefined. This deserves some investigation. FIXME
8605 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611 cygwin* | mingw* | pw32* | cegcc*)
8612 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8613 # as there is no search path for DLLs.
8614 hardcode_libdir_flag_spec='-L$libdir'
8615 allow_undefined_flag=unsupported
8616 always_export_symbols=no
8617 enable_shared_with_static_runtimes=yes
8618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8620 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8622 # If the export-symbols file already is a .def file (1st line
8623 # is EXPORTS), use it as is; otherwise, prepend...
8624 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8625 cp $export_symbols $output_objdir/$soname.def;
8627 echo EXPORTS > $output_objdir/$soname.def;
8628 cat $export_symbols >> $output_objdir/$soname.def;
8630 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8638 hardcode_shlibpath_var=no
8639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8640 export_dynamic_flag_spec='${wl}-E'
8641 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8642 # Instead, shared libraries are loaded at an image base (0x10000000 by
8643 # default) and relocated if they conflict, which is a slow very memory
8644 # consuming and fragmenting process. To avoid this, we pick a random,
8645 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8646 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8647 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8648 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'
8651 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8653 if test "$host_os" = linux-dietlibc; then
8654 case $cc_basename in
8655 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8658 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8659 && test "$tmp_diet" = no
8662 tmp_sharedflag='-shared'
8663 case $cc_basename,$host_cpu in
8664 pgcc*) # Portland Group C compiler
8665 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'
8666 tmp_addflag=' $pic_flag'
8668 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8669 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'
8670 tmp_addflag=' $pic_flag -Mnomain' ;;
8671 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8672 tmp_addflag=' -i_dynamic' ;;
8673 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8674 tmp_addflag=' -i_dynamic -nofor_main' ;;
8675 ifc* | ifort*) # Intel Fortran compiler
8676 tmp_addflag=' -nofor_main' ;;
8677 lf95*) # Lahey Fortran 8.1
8678 whole_archive_flag_spec=
8679 tmp_sharedflag='--shared' ;;
8680 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8681 tmp_sharedflag='-qmkshrobj'
8684 case `$CC -V 2>&1 | sed 5q` in
8685 *Sun\ C*) # Sun C 5.9
8686 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'
8687 compiler_needs_object=yes
8688 tmp_sharedflag='-G' ;;
8689 *Sun\ F*) # Sun Fortran 8.3
8690 tmp_sharedflag='-G' ;;
8692 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 if test "x$supports_anon_versioning" = xyes; then
8695 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8697 echo "local: *; };" >> $output_objdir/$libname.ver~
8698 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8701 case $cc_basename in
8703 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8704 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8705 hardcode_libdir_flag_spec=
8706 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8707 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8708 if test "x$supports_anon_versioning" = xyes; then
8709 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8710 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8711 echo "local: *; };" >> $output_objdir/$libname.ver~
8712 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8721 netbsd* | netbsdelf*-gnu)
8722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8723 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8737 *** create shared libraries on Solaris systems. Therefore, libtool
8738 *** is disabling shared libraries support. We urge you to upgrade GNU
8739 *** binutils to release 2.9.1 or newer. Another option is to modify
8740 *** your PATH or compiler configuration so that the native linker is
8741 *** used, and then restart.
8744 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8753 case `$LD -v 2>&1` in
8754 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8758 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8759 *** reliably create shared libraries on SCO systems. Therefore, libtool
8760 *** is disabling shared libraries support. We urge you to upgrade GNU
8761 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8762 *** your PATH or compiler configuration so that the native linker is
8763 *** used, and then restart.
8768 # For security reasons, it is highly recommended that you always
8769 # use absolute paths for naming shared libraries, and exclude the
8770 # DT_RUNPATH tag from executables and libraries. But doing so
8771 # requires that you compile everything twice, which is a pain.
8772 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8784 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_shlibpath_var=no
8791 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800 if test "$ld_shlibs" = no; then
8802 hardcode_libdir_flag_spec=
8803 export_dynamic_flag_spec=
8804 whole_archive_flag_spec=
8807 # PORTME fill in a description of your system's linker (not GNU ld)
8810 allow_undefined_flag=unsupported
8811 always_export_symbols=yes
8812 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'
8813 # Note: this linker hardcodes the directories in LIBPATH if there
8814 # are no directories specified by -L.
8815 hardcode_minus_L=yes
8816 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8817 # Neither direct hardcoding nor static linking is supported with a
8819 hardcode_direct=unsupported
8824 if test "$host_cpu" = ia64; then
8825 # On IA64, the linker does run time linking by default, so we don't
8826 # have to do anything special.
8827 aix_use_runtimelinking=no
8828 exp_sym_flag='-Bexport'
8831 # If we're using GNU nm, then we don't want the "-C" option.
8832 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8833 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8834 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'
8836 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'
8838 aix_use_runtimelinking=no
8840 # Test if we are trying to use run time linking or normal
8841 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8842 # need to do runtime linking.
8843 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8844 for ld_flag in $LDFLAGS; do
8845 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8846 aix_use_runtimelinking=yes
8853 exp_sym_flag='-bexport'
8854 no_entry_flag='-bnoentry'
8857 # When large executables or shared objects are built, AIX ld can
8858 # have problems creating the table of contents. If linking a library
8859 # or program results in "error TOC overflow" add -mminimal-toc to
8860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8865 hardcode_direct_absolute=yes
8866 hardcode_libdir_separator=':'
8867 link_all_deplibs=yes
8868 file_list_spec='${wl}-f,'
8870 if test "$GCC" = yes; then
8871 case $host_os in aix4.[012]|aix4.[012].*)
8872 # We only want to do this on AIX 4.2 and lower, the check
8873 # below for broken collect2 doesn't work under 4.3+
8874 collect2name=`${CC} -print-prog-name=collect2`
8875 if test -f "$collect2name" &&
8876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8878 # We have reworked collect2
8881 # We have old collect2
8882 hardcode_direct=unsupported
8883 # It fails to find uninstalled libraries when the uninstalled
8884 # path is not listed in the libpath. Setting hardcode_minus_L
8885 # to unsupported forces relinking
8886 hardcode_minus_L=yes
8887 hardcode_libdir_flag_spec='-L$libdir'
8888 hardcode_libdir_separator=
8892 shared_flag='-shared'
8893 if test "$aix_use_runtimelinking" = yes; then
8894 shared_flag="$shared_flag "'${wl}-G'
8899 if test "$host_cpu" = ia64; then
8900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8901 # chokes on -Wl,-G. The following line is correct:
8904 if test "$aix_use_runtimelinking" = yes; then
8905 shared_flag='${wl}-G'
8907 shared_flag='${wl}-bM:SRE'
8912 export_dynamic_flag_spec='${wl}-bexpall'
8913 # It seems that -bexpall does not export symbols beginning with
8914 # underscore (_), so it is better to generate a list of symbols to export.
8915 always_export_symbols=yes
8916 if test "$aix_use_runtimelinking" = yes; then
8917 # Warning - without using the other runtime loading flags (-brtl),
8918 # -berok will link without error, but may produce a broken library.
8919 allow_undefined_flag='-berok'
8920 # Determine the default libpath from the value encoded in an
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8933 if ac_fn_c_try_link "$LINENO"; then :
8935 lt_aix_libpath_sed='
8936 /Import File Strings/,/^$/ {
8942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8943 # Check for a 64-bit object if we didn't find anything.
8944 if test -z "$aix_libpath"; then
8945 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8948 rm -f core conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8950 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8952 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8953 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"
8955 if test "$host_cpu" = ia64; then
8956 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8957 allow_undefined_flag="-z nodefs"
8958 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"
8960 # Determine the default libpath from the value encoded in an
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8973 if ac_fn_c_try_link "$LINENO"; then :
8975 lt_aix_libpath_sed='
8976 /Import File Strings/,/^$/ {
8982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8983 # Check for a 64-bit object if we didn't find anything.
8984 if test -z "$aix_libpath"; then
8985 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8988 rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext conftest.$ac_ext
8990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8992 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8993 # Warning - without using the other run time loading flags,
8994 # -berok will link without error, but may produce a broken library.
8995 no_undefined_flag=' ${wl}-bernotok'
8996 allow_undefined_flag=' ${wl}-berok'
8997 # Exported symbols can be pulled into shared objects from archives
8998 whole_archive_flag_spec='$convenience'
8999 archive_cmds_need_lc=yes
9000 # This is similar to how AIX traditionally builds its shared libraries.
9001 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'
9009 # see comment about AmigaOS4 .so support
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 archive_expsym_cmds=''
9014 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)'
9015 hardcode_libdir_flag_spec='-L$libdir'
9016 hardcode_minus_L=yes
9022 export_dynamic_flag_spec=-rdynamic
9025 cygwin* | mingw* | pw32* | cegcc*)
9026 # When not using gcc, we currently assume that we are using
9027 # Microsoft Visual C++.
9028 # hardcode_libdir_flag_spec is actually meaningless, as there is
9029 # no search path for DLLs.
9030 hardcode_libdir_flag_spec=' '
9031 allow_undefined_flag=unsupported
9032 # Tell ltmain to make .lib files, not .a files.
9034 # Tell ltmain to make .dll files, not .so files.
9036 # FIXME: Setting linknames here is a bad hack.
9037 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9038 # The linker will automatically build a .lib file if we build a DLL.
9039 old_archive_from_new_cmds='true'
9040 # FIXME: Should let the user specify the lib program.
9041 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9042 fix_srcfile_path='`cygpath -w "$srcfile"`'
9043 enable_shared_with_static_runtimes=yes
9046 darwin* | rhapsody*)
9049 archive_cmds_need_lc=no
9051 hardcode_automatic=yes
9052 hardcode_shlibpath_var=unsupported
9053 whole_archive_flag_spec=''
9054 link_all_deplibs=yes
9055 allow_undefined_flag="$_lt_dar_allow_undefined"
9056 case $cc_basename in
9057 ifort*) _lt_dar_can_shared=yes ;;
9058 *) _lt_dar_can_shared=$GCC ;;
9060 if test "$_lt_dar_can_shared" = "yes"; then
9061 output_verbose_link_cmd=echo
9062 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9063 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9064 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}"
9065 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}"
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_libdir_flag_spec='-L$libdir'
9076 hardcode_shlibpath_var=no
9083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9084 # support. Future versions do this automatically, but an explicit c++rt0.o
9085 # does not break anything, and helps significantly (at the cost of a little
9088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9089 hardcode_libdir_flag_spec='-R$libdir'
9091 hardcode_shlibpath_var=no
9094 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_minus_L=yes
9099 hardcode_shlibpath_var=no
9102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9103 freebsd* | dragonfly*)
9104 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9105 hardcode_libdir_flag_spec='-R$libdir'
9107 hardcode_shlibpath_var=no
9111 if test "$GCC" = yes; then
9112 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'
9114 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'
9116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9117 hardcode_libdir_separator=:
9120 # hardcode_minus_L: Not really in the search PATH,
9121 # but as the default location of the library.
9122 hardcode_minus_L=yes
9123 export_dynamic_flag_spec='${wl}-E'
9127 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9132 if test "$with_gnu_ld" = no; then
9133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9134 hardcode_libdir_flag_spec_ld='+b $libdir'
9135 hardcode_libdir_separator=:
9137 hardcode_direct_absolute=yes
9138 export_dynamic_flag_spec='${wl}-E'
9139 # hardcode_minus_L: Not really in the search PATH,
9140 # but as the default location of the library.
9141 hardcode_minus_L=yes
9146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9149 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9171 if test "$with_gnu_ld" = no; then
9172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9173 hardcode_libdir_separator=:
9178 hardcode_shlibpath_var=no
9182 hardcode_direct_absolute=yes
9183 export_dynamic_flag_spec='${wl}-E'
9185 # hardcode_minus_L: Not really in the search PATH,
9186 # but as the default location of the library.
9187 hardcode_minus_L=yes
9193 irix5* | irix6* | nonstopux*)
9194 if test "$GCC" = yes; then
9195 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'
9196 # Try to use the -exported_symbol ld option, if it does not
9197 # work, assume that -exports_file does not work either and
9198 # implicitly export all symbols.
9199 save_LDFLAGS="$LDFLAGS"
9200 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9205 if ac_fn_c_try_link "$LINENO"; then :
9206 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'
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 LDFLAGS="$save_LDFLAGS"
9213 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'
9214 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'
9216 archive_cmds_need_lc='no'
9217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9218 hardcode_libdir_separator=:
9220 link_all_deplibs=yes
9223 netbsd* | netbsdelf*-gnu)
9224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9227 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9229 hardcode_libdir_flag_spec='-R$libdir'
9231 hardcode_shlibpath_var=no
9235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238 hardcode_libdir_separator=:
9239 hardcode_shlibpath_var=no
9246 if test -f /usr/libexec/ld.so; then
9248 hardcode_shlibpath_var=no
9249 hardcode_direct_absolute=yes
9250 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9251 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9252 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9254 export_dynamic_flag_spec='${wl}-E'
9257 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9258 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9259 hardcode_libdir_flag_spec='-R$libdir'
9262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9263 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 hardcode_libdir_flag_spec='-L$libdir'
9274 hardcode_minus_L=yes
9275 allow_undefined_flag=unsupported
9276 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'
9277 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9281 if test "$GCC" = yes; then
9282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9283 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'
9285 allow_undefined_flag=' -expect_unresolved \*'
9286 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'
9288 archive_cmds_need_lc='no'
9289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9290 hardcode_libdir_separator=:
9293 osf4* | osf5*) # as osf3* with the addition of -msym flag
9294 if test "$GCC" = yes; then
9295 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9296 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'
9297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299 allow_undefined_flag=' -expect_unresolved \*'
9300 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'
9301 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~
9302 $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'
9304 # Both c and cxx compiler support -rpath directly
9305 hardcode_libdir_flag_spec='-rpath $libdir'
9307 archive_cmds_need_lc='no'
9308 hardcode_libdir_separator=:
9312 no_undefined_flag=' -z defs'
9313 if test "$GCC" = yes; then
9315 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9319 case `$CC -V 2>&1` in
9322 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9324 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9328 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9330 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9334 hardcode_libdir_flag_spec='-R$libdir'
9335 hardcode_shlibpath_var=no
9337 solaris2.[0-5] | solaris2.[0-5].*) ;;
9339 # The compiler driver will combine and reorder linker options,
9340 # but understands `-z linker_flag'. GCC discards it without `$wl',
9341 # but is careful enough not to reorder.
9342 # Supported since Solaris 2.6 (maybe 2.5.1?)
9343 if test "$GCC" = yes; then
9344 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9346 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9350 link_all_deplibs=yes
9354 if test "x$host_vendor" = xsequent; then
9355 # Use $CC to link under sequent, because it throws in some extra .o
9356 # files that make .init and .fini sections work.
9357 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9359 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_minus_L=yes
9364 hardcode_shlibpath_var=no
9368 case $host_vendor in
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_direct=yes # is this really true???
9374 ## LD is ld it makes a PLAMLIB
9375 ## CC just makes a GrossModule.
9376 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9377 reload_cmds='$CC -r -o $output$reload_objs'
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9385 runpath_var='LD_RUN_PATH'
9386 hardcode_shlibpath_var=no
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_shlibpath_var=no
9392 export_dynamic_flag_spec='-Bexport'
9396 if test -d /usr/nec; then
9397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_shlibpath_var=no
9399 runpath_var=LD_RUN_PATH
9400 hardcode_runpath_var=yes
9405 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9406 no_undefined_flag='${wl}-z,text'
9407 archive_cmds_need_lc=no
9408 hardcode_shlibpath_var=no
9409 runpath_var='LD_RUN_PATH'
9411 if test "$GCC" = yes; then
9412 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 sysv5* | sco3.2v5* | sco5v6*)
9421 # Note: We can NOT use -z defs as we might desire, because we do not
9422 # link with -lc, and that would cause any symbols used from libc to
9423 # always be unresolved, which means just about no library would
9424 # ever link correctly. If we're not using GNU ld we use -z text
9425 # though, which does catch some bad symbols but isn't as heavy-handed
9427 no_undefined_flag='${wl}-z,text'
9428 allow_undefined_flag='${wl}-z,nodefs'
9429 archive_cmds_need_lc=no
9430 hardcode_shlibpath_var=no
9431 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9432 hardcode_libdir_separator=':'
9433 link_all_deplibs=yes
9434 export_dynamic_flag_spec='${wl}-Bexport'
9435 runpath_var='LD_RUN_PATH'
9437 if test "$GCC" = yes; then
9438 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9448 hardcode_libdir_flag_spec='-L$libdir'
9449 hardcode_shlibpath_var=no
9457 if test x$host_vendor = xsni; then
9459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9460 export_dynamic_flag_spec='${wl}-Blargedynsym'
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9467 $as_echo "$ld_shlibs" >&6; }
9468 test "$ld_shlibs" = no && can_build_shared=no
9470 with_gnu_ld=$with_gnu_ld
9487 # Do we need to explicitly link libc?
9489 case "x$archive_cmds_need_lc" in
9491 # Assume -lc should be added
9492 archive_cmds_need_lc=yes
9494 if test "$enable_shared" = yes && test "$GCC" = yes; then
9495 case $archive_cmds in
9497 # FIXME: we may have to deal with multi-command sequences.
9500 # Test whether the compiler implicitly links with -lc since on some
9501 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9502 # to ld, don't add -lc before -lgcc.
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9504 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9509 (eval $ac_compile) 2>&5
9511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9512 test $ac_status = 0; } 2>conftest.err; then
9515 libobjs=conftest.$ac_objext
9517 wl=$lt_prog_compiler_wl
9518 pic_flag=$lt_prog_compiler_pic
9524 lt_save_allow_undefined_flag=$allow_undefined_flag
9525 allow_undefined_flag=
9526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9527 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9530 test $ac_status = 0; }
9532 archive_cmds_need_lc=no
9534 archive_cmds_need_lc=yes
9536 allow_undefined_flag=$lt_save_allow_undefined_flag
9538 cat conftest.err 1>&5
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9542 $as_echo "$archive_cmds_need_lc" >&6; }
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9706 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9708 if test "$GCC" = yes; then
9710 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9711 *) lt_awk_arg="/^libraries:/" ;;
9713 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9714 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9715 # if the path contains ";" then we assume it to be the separator
9716 # otherwise default to the standard path separator (i.e. ":") - it is
9717 # assumed that no part of a normal pathname contains ";" but that should
9718 # okay in the real world where ";" in dirpaths is itself problematic.
9719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9721 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9723 # Ok, now we have the path, separated by spaces, we can step through it
9724 # and add multilib dir if necessary.
9725 lt_tmp_lt_search_path_spec=
9726 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9727 for lt_sys_path in $lt_search_path_spec; do
9728 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9731 test -d "$lt_sys_path" && \
9732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9735 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9736 BEGIN {RS=" "; FS="/|\n";} {
9739 for (lt_i = NF; lt_i > 0; lt_i--) {
9740 if ($lt_i != "" && $lt_i != ".") {
9741 if ($lt_i == "..") {
9744 if (lt_count == 0) {
9745 lt_foo="/" $lt_i lt_foo;
9752 if (lt_foo != "") { lt_freq[lt_foo]++; }
9753 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9755 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9760 libname_spec='lib$name'
9768 shlibpath_overrides_runpath=unknown
9770 dynamic_linker="$host_os ld.so"
9771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9772 need_lib_prefix=unknown
9773 hardcode_into_libs=no
9775 # when you set need_version to no, make sure it does not cause -set_version
9776 # flags to be left without arguments
9777 need_version=unknown
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9783 shlibpath_var=LIBPATH
9785 # AIX 3 has no versioning support, so we append a major version to the name.
9786 soname_spec='${libname}${release}${shared_ext}$major'
9793 hardcode_into_libs=yes
9794 if test "$host_cpu" = ia64; then
9795 # AIX 5 supports IA64
9796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9797 shlibpath_var=LD_LIBRARY_PATH
9799 # With GCC up to 2.95.x, collect2 would create an import file
9800 # for dependence libraries. The import file would start with
9801 # the line `#! .'. This would cause the generated library to
9802 # depend on `.', always an invalid library. This was fixed in
9803 # development snapshots of GCC prior to 3.0.
9805 aix4 | aix4.[01] | aix4.[01].*)
9806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9808 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9816 # soname into executable. Probably we can add versioning support to
9817 # collect2, so additional links can be useful in future.
9818 if test "$aix_use_runtimelinking" = yes; then
9819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9820 # instead of lib<name>.a to let people know that these are not
9821 # typical AIX shared libraries.
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824 # We preserve .a as extension for shared libraries through AIX4.2
9825 # and later when we are not doing run time linking.
9826 library_names_spec='${libname}${release}.a $libname.a'
9827 soname_spec='${libname}${release}${shared_ext}$major'
9829 shlibpath_var=LIBPATH
9836 # Since July 2007 AmigaOS4 officially supports .so libraries.
9837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 library_names_spec='$libname.ixlibrary $libname.a'
9842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9843 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'
9849 library_names_spec='${libname}${shared_ext}'
9850 dynamic_linker="$host_os ld.so"
9851 shlibpath_var=LIBRARY_PATH
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9863 # the default ld.so.conf also contains /usr/contrib/lib and
9864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9865 # libtool to hard-code these into programs
9868 cygwin* | mingw* | pw32* | cegcc*)
9869 version_type=windows
9874 case $GCC,$host_os in
9875 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9876 library_names_spec='$libname.dll.a'
9877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9878 postinstall_cmds='base_file=`basename \${file}`~
9879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9880 dldir=$destdir/`dirname \$dlpath`~
9881 test -d \$dldir || mkdir -p \$dldir~
9882 $install_prog $dir/$dlname \$dldir/$dlname~
9883 chmod a+x \$dldir/$dlname~
9884 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9885 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9888 dlpath=$dir/\$dldll~
9890 shlibpath_overrides_runpath=yes
9894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9899 # MinGW DLLs use traditional 'lib' prefix
9900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9901 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9902 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9903 # It is most probably a Windows format PATH printed by
9904 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9905 # path with ; separators, and with drive letters. We can handle the
9906 # drive letters (cygwin fileutils understands them), so leave them,
9907 # especially as we might pass files found there to a mingw objdump,
9908 # which wouldn't understand a cygwinified path. Ahh.
9909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9915 # pw32 DLLs use 'pw' prefix rather than 'lib'
9916 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9925 dynamic_linker='Win32 ld.exe'
9926 # FIXME: first we should search . and the directory the executable is in
9930 darwin* | rhapsody*)
9931 dynamic_linker="$host_os dyld"
9935 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9936 soname_spec='${libname}${release}${major}$shared_ext'
9937 shlibpath_overrides_runpath=yes
9938 shlibpath_var=DYLD_LIBRARY_PATH
9939 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9941 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9958 freebsd* | dragonfly*)
9959 # DragonFly does not have aout. When/if they implement a new
9960 # versioning mechanism, adjust this.
9961 if test -x /usr/bin/objformat; then
9962 objformat=`/usr/bin/objformat`
9965 freebsd[123]*) objformat=aout ;;
9969 version_type=freebsd-$objformat
9970 case $version_type in
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9981 shlibpath_var=LD_LIBRARY_PATH
9984 shlibpath_overrides_runpath=yes
9986 freebsd3.[01]* | freebsdelf3.[01]*)
9987 shlibpath_overrides_runpath=yes
9988 hardcode_into_libs=yes
9990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9992 shlibpath_overrides_runpath=no
9993 hardcode_into_libs=yes
9995 *) # from 4.6 on, and DragonFly
9996 shlibpath_overrides_runpath=yes
9997 hardcode_into_libs=yes
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 shlibpath_var=LD_LIBRARY_PATH
10009 hardcode_into_libs=yes
10012 hpux9* | hpux10* | hpux11*)
10013 # Give a soname corresponding to the major version so that dld.sl refuses to
10014 # link against other versions.
10021 hardcode_into_libs=yes
10022 dynamic_linker="$host_os dld.so"
10023 shlibpath_var=LD_LIBRARY_PATH
10024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 if test "X$HPUX_IA64_MODE" = X32; then
10028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10036 hardcode_into_libs=yes
10037 dynamic_linker="$host_os dld.sl"
10038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10047 dynamic_linker="$host_os dld.sl"
10048 shlibpath_var=SHLIB_PATH
10049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10054 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10055 postinstall_cmds='chmod 555 $lib'
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 shlibpath_overrides_runpath=no
10067 hardcode_into_libs=yes
10070 irix5* | irix6* | nonstopux*)
10072 nonstopux*) version_type=nonstopux ;;
10074 if test "$lt_cv_prog_gnu_ld" = yes; then
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10085 irix5* | nonstopux*)
10086 libsuff= shlibsuff=
10089 case $LD in # libtool.m4 will add one of these switches to LD
10090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10091 libsuff= shlibsuff= libmagic=32-bit;;
10092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10093 libsuff=32 shlibsuff=N32 libmagic=N32;;
10094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10096 *) libsuff= shlibsuff= libmagic=never-match;;
10100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10101 shlibpath_overrides_runpath=no
10102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10104 hardcode_into_libs=yes
10107 # No shared lib support for Linux oldld, aout, or coff.
10108 linux*oldld* | linux*aout* | linux*coff*)
10112 # This must be Linux ELF.
10113 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=no
10122 # Some binutils ld are patched to set DT_RUNPATH
10123 save_LDFLAGS=$LDFLAGS
10124 save_libdir=$libdir
10125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10138 if ac_fn_c_try_link "$LINENO"; then :
10139 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10140 shlibpath_overrides_runpath=yes
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LDFLAGS=$save_LDFLAGS
10146 libdir=$save_libdir
10148 # This implies no fast_install, which is unacceptable.
10149 # Some rework will be needed to allow for fast_install
10150 # before this can be enabled.
10151 hardcode_into_libs=yes
10153 # Append ld.so.conf contents to the search path
10154 if test -f /etc/ld.so.conf; then
10155 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' ' '`
10156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10159 # We used to test for /lib/ld.so.1 and disable shared libraries on
10160 # powerpc, because MkLinux only supported shared libraries with the
10161 # GNU dynamic linker. Since this was broken with cross compilers,
10162 # most powerpc-linux boxes support dynamic linking these days and
10163 # people can always --disable-shared, the test was removed, and we
10164 # assume the GNU/Linux dynamic linker is in use.
10165 dynamic_linker='GNU/Linux ld.so'
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=no
10176 hardcode_into_libs=yes
10177 dynamic_linker='NetBSD ld.elf_so'
10184 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10187 dynamic_linker='NetBSD (a.out) ld.so'
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 dynamic_linker='NetBSD ld.elf_so'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=yes
10195 hardcode_into_libs=yes
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=yes
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213 hardcode_into_libs=yes
10214 dynamic_linker='ldqnx.so'
10219 sys_lib_dlsearch_path_spec="/usr/lib"
10221 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10223 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10224 *) need_version=no ;;
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231 openbsd2.[89] | openbsd2.[89].*)
10232 shlibpath_overrides_runpath=no
10235 shlibpath_overrides_runpath=yes
10239 shlibpath_overrides_runpath=yes
10244 libname_spec='$name'
10247 library_names_spec='$libname${shared_ext} $libname.a'
10248 dynamic_linker='OS/2 ld.exe'
10249 shlibpath_var=LIBPATH
10252 osf3* | osf4* | osf5*)
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10260 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 shlibpath_overrides_runpath=yes
10275 hardcode_into_libs=yes
10276 # ldd complains unless libraries are executable
10277 postinstall_cmds='chmod +x $lib'
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 shlibpath_overrides_runpath=yes
10286 if test "$with_gnu_ld" = yes; then
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 case $host_vendor in
10299 shlibpath_overrides_runpath=no
10301 runpath_var=LD_RUN_PATH
10309 shlibpath_overrides_runpath=no
10310 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10316 if test -d /usr/nec ;then
10318 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10319 soname_spec='$libname${shared_ext}.$major'
10320 shlibpath_var=LD_LIBRARY_PATH
10324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10325 version_type=freebsd-elf
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes
10332 hardcode_into_libs=yes
10333 if test "$with_gnu_ld" = yes; then
10334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10336 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10339 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10343 sys_lib_dlsearch_path_spec='/usr/lib'
10347 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=no
10354 hardcode_into_libs=yes
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10369 $as_echo "$dynamic_linker" >&6; }
10370 test "$dynamic_linker" = no && can_build_shared=no
10372 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10373 if test "$GCC" = yes; then
10374 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10377 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10378 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10380 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10381 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10471 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10473 if test -n "$hardcode_libdir_flag_spec" ||
10474 test -n "$runpath_var" ||
10475 test "X$hardcode_automatic" = "Xyes" ; then
10477 # We can hardcode non-existent directories.
10478 if test "$hardcode_direct" != no &&
10479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10480 # have to relink, otherwise we might link with an installed library
10481 # when we should be linking with a yet-to-be-installed one
10482 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10483 test "$hardcode_minus_L" != no; then
10484 # Linking always hardcodes the temporary library directory.
10485 hardcode_action=relink
10487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10488 hardcode_action=immediate
10491 # We cannot hardcode anything, or else we can only hardcode existing
10493 hardcode_action=unsupported
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10496 $as_echo "$hardcode_action" >&6; }
10498 if test "$hardcode_action" = relink ||
10499 test "$inherit_rpath" = yes; then
10500 # Fast installation is not supported
10501 enable_fast_install=no
10502 elif test "$shlibpath_overrides_runpath" = yes ||
10503 test "$enable_shared" = no; then
10504 # Fast installation is not necessary
10505 enable_fast_install=needless
10513 if test "x$enable_dlopen" != xyes; then
10514 enable_dlopen=unknown
10515 enable_dlopen_self=unknown
10516 enable_dlopen_self_static=unknown
10523 lt_cv_dlopen="load_add_on"
10525 lt_cv_dlopen_self=yes
10528 mingw* | pw32* | cegcc*)
10529 lt_cv_dlopen="LoadLibrary"
10534 lt_cv_dlopen="dlopen"
10539 # if libdl is installed we need to link against it
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10542 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10545 ac_check_lib_save_LIBS=$LIBS
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10565 if ac_fn_c_try_link "$LINENO"; then :
10566 ac_cv_lib_dl_dlopen=yes
10568 ac_cv_lib_dl_dlopen=no
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10575 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10576 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10580 lt_cv_dlopen="dyld"
10582 lt_cv_dlopen_self=yes
10589 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10590 if test "x$ac_cv_func_shl_load" = x""yes; then :
10591 lt_cv_dlopen="shl_load"
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10594 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10595 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
10598 ac_check_lib_save_LIBS=$LIBS
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 /* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10613 return shl_load ();
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 ac_cv_lib_dld_shl_load=yes
10621 ac_cv_lib_dld_shl_load=no
10623 rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10628 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10629 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10630 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10632 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10633 if test "x$ac_cv_func_dlopen" = x""yes; then :
10634 lt_cv_dlopen="dlopen"
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10639 $as_echo_n "(cached) " >&6
10641 ac_check_lib_save_LIBS=$LIBS
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10646 /* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 ac_cv_lib_dl_dlopen=yes
10664 ac_cv_lib_dl_dlopen=no
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10672 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10676 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10677 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-lsvld $LIBS"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 ac_cv_lib_svld_dlopen=yes
10703 ac_cv_lib_svld_dlopen=no
10705 rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10710 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10711 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10715 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10719 ac_check_lib_save_LIBS=$LIBS
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10734 return dld_link ();
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 ac_cv_lib_dld_dld_link=yes
10742 ac_cv_lib_dld_dld_link=no
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10749 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10750 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10751 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10772 if test "x$lt_cv_dlopen" != xno; then
10778 case $lt_cv_dlopen in
10780 save_CPPFLAGS="$CPPFLAGS"
10781 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10783 save_LDFLAGS="$LDFLAGS"
10784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10787 LIBS="$lt_cv_dlopen_libs $LIBS"
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10790 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10791 if test "${lt_cv_dlopen_self+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
10794 if test "$cross_compiling" = yes; then :
10795 lt_cv_dlopen_self=cross
10797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10798 lt_status=$lt_dlunknown
10799 cat > conftest.$ac_ext <<_LT_EOF
10800 #line 10800 "configure"
10801 #include "confdefs.h"
10810 # define LT_DLGLOBAL RTLD_GLOBAL
10813 # define LT_DLGLOBAL DL_GLOBAL
10815 # define LT_DLGLOBAL 0
10819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10820 find out it does not work in some platform. */
10821 #ifndef LT_DLLAZY_OR_NOW
10823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10826 # define LT_DLLAZY_OR_NOW DL_LAZY
10829 # define LT_DLLAZY_OR_NOW RTLD_NOW
10832 # define LT_DLLAZY_OR_NOW DL_NOW
10834 # define LT_DLLAZY_OR_NOW 0
10841 void fnord() { int i=42;}
10844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10845 int status = $lt_dlunknown;
10849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10851 /* dlclose (self); */
10859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10860 (eval $ac_link) 2>&5
10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10864 (./conftest; exit; ) >&5 2>/dev/null
10866 case x$lt_status in
10867 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10868 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10869 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10872 # compilation failed
10873 lt_cv_dlopen_self=no
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10881 $as_echo "$lt_cv_dlopen_self" >&6; }
10883 if test "x$lt_cv_dlopen_self" = xyes; then
10884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10886 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10887 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10890 if test "$cross_compiling" = yes; then :
10891 lt_cv_dlopen_self_static=cross
10893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894 lt_status=$lt_dlunknown
10895 cat > conftest.$ac_ext <<_LT_EOF
10896 #line 10896 "configure"
10897 #include "confdefs.h"
10906 # define LT_DLGLOBAL RTLD_GLOBAL
10909 # define LT_DLGLOBAL DL_GLOBAL
10911 # define LT_DLGLOBAL 0
10915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916 find out it does not work in some platform. */
10917 #ifndef LT_DLLAZY_OR_NOW
10919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10922 # define LT_DLLAZY_OR_NOW DL_LAZY
10925 # define LT_DLLAZY_OR_NOW RTLD_NOW
10928 # define LT_DLLAZY_OR_NOW DL_NOW
10930 # define LT_DLLAZY_OR_NOW 0
10937 void fnord() { int i=42;}
10940 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10941 int status = $lt_dlunknown;
10945 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10946 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10947 /* dlclose (self); */
10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10956 (eval $ac_link) 2>&5
10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10960 (./conftest; exit; ) >&5 2>/dev/null
10962 case x$lt_status in
10963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10965 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10968 # compilation failed
10969 lt_cv_dlopen_self_static=no
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10977 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10980 CPPFLAGS="$save_CPPFLAGS"
10981 LDFLAGS="$save_LDFLAGS"
10986 case $lt_cv_dlopen_self in
10987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10988 *) enable_dlopen_self=unknown ;;
10991 case $lt_cv_dlopen_self_static in
10992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10993 *) enable_dlopen_self_static=unknown ;;
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11016 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11017 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11023 # FIXME - insert some real tests, host_os isn't really good enough
11026 if test -n "$STRIP" ; then
11027 striplib="$STRIP -x"
11028 old_striplib="$STRIP -S"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11030 $as_echo "yes" >&6; }
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11054 # Report which library types will actually be built
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11056 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11058 $as_echo "$can_build_shared" >&6; }
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11061 $as_echo_n "checking whether to build shared libraries... " >&6; }
11062 test "$can_build_shared" = "no" && enable_shared=no
11064 # On AIX, shared libraries and static libraries use the same namespace, and
11065 # are all built from PIC.
11068 test "$enable_shared" = yes && enable_static=no
11069 if test -n "$RANLIB"; then
11070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11071 postinstall_cmds='$RANLIB $lib'
11076 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11077 test "$enable_shared" = yes && enable_static=no
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11082 $as_echo "$enable_shared" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11085 $as_echo_n "checking whether to build static libraries... " >&6; }
11086 # Make sure either enable_shared or enable_static is yes.
11087 test "$enable_shared" = yes || enable_static=yes
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11089 $as_echo "$enable_static" >&6; }
11096 ac_cpp='$CPP $CPPFLAGS'
11097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11115 ac_config_commands="$ac_config_commands libtool"
11120 # Only expand once:
11125 ac_cpp='$CXXCPP $CPPFLAGS'
11126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11129 if test -z "$CXX"; then
11130 if test -n "$CCC"; then
11133 if test -n "$ac_tool_prefix"; then
11134 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139 $as_echo_n "checking for $ac_word... " >&6; }
11140 if test "${ac_cv_prog_CXX+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11143 if test -n "$CXX"; then
11144 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 CXX=$ac_cv_prog_CXX
11164 if test -n "$CXX"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11166 $as_echo "$CXX" >&6; }
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11173 test -n "$CXX" && break
11176 if test -z "$CXX"; then
11178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11180 # Extract the first word of "$ac_prog", so it can be a program name with args.
11181 set dummy $ac_prog; ac_word=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11187 if test -n "$ac_ct_CXX"; then
11188 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_prog_ac_ct_CXX="$ac_prog"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11208 if test -n "$ac_ct_CXX"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11210 $as_echo "$ac_ct_CXX" >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11217 test -n "$ac_ct_CXX" && break
11220 if test "x$ac_ct_CXX" = x; then
11223 case $cross_compiling:$ac_tool_warned in
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11227 ac_tool_warned=yes ;;
11235 # Provide some information about the compiler.
11236 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11239 for ac_option in --version -v -V -qversion; do
11240 { { ac_try="$ac_compiler $ac_option >&5"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11246 $as_echo "$ac_try_echo"; } >&5
11247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11249 if test -s conftest.err; then
11251 ... rest of stderr output deleted ...
11252 10q' conftest.err >conftest.er1
11253 cat conftest.er1 >&5
11255 rm -f conftest.er1 conftest.err
11256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11257 test $ac_status = 0; }
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11261 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11262 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11279 if ac_fn_cxx_try_compile "$LINENO"; then :
11280 ac_compiler_gnu=yes
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11289 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11290 if test $ac_compiler_gnu = yes; then
11295 ac_test_CXXFLAGS=${CXXFLAGS+set}
11296 ac_save_CXXFLAGS=$CXXFLAGS
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11298 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11299 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11302 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11303 ac_cxx_werror_flag=yes
11304 ac_cv_prog_cxx_g=no
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11317 if ac_fn_cxx_try_compile "$LINENO"; then :
11318 ac_cv_prog_cxx_g=yes
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11332 if ac_fn_cxx_try_compile "$LINENO"; then :
11335 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11348 if ac_fn_cxx_try_compile "$LINENO"; then :
11349 ac_cv_prog_cxx_g=yes
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11359 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11360 if test "$ac_test_CXXFLAGS" = set; then
11361 CXXFLAGS=$ac_save_CXXFLAGS
11362 elif test $ac_cv_prog_cxx_g = yes; then
11363 if test "$GXX" = yes; then
11369 if test "$GXX" = yes; then
11376 ac_cpp='$CPP $CPPFLAGS'
11377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11381 depcc="$CXX" am_compiler_list=
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11384 $as_echo_n "checking dependency style of $depcc... " >&6; }
11385 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
11388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11389 # We make a subdir and do the tests there. Otherwise we can end up
11390 # making bogus files that we don't know about and never remove. For
11391 # instance it was reported that on HP-UX the gcc test will end up
11392 # making a dummy file named `D' -- because `-MD' means `put the output
11395 # Copy depcomp to subdir because otherwise we won't find it if we're
11396 # using a relative directory.
11397 cp "$am_depcomp" conftest.dir
11399 # We will build objects and dependencies in a subdirectory because
11400 # it helps to detect inapplicable dependency modes. For instance
11401 # both Tru64's cc and ICC support -MD to output dependencies as a
11402 # side effect of compilation, but ICC will put the dependencies in
11403 # the current directory while Tru64 will put them in the object
11407 am_cv_CXX_dependencies_compiler_type=none
11408 if test "$am_compiler_list" = ""; then
11409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11411 am__universal=false
11412 case " $depcc " in #(
11413 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11416 for depmode in $am_compiler_list; do
11417 # Setup a source with many dependencies, because some compilers
11418 # like to wrap large dependency lists on column 80 (with \), and
11419 # we should not choose a depcomp mode which is confused by this.
11421 # We need to recreate these files for each test, as the compiler may
11422 # overwrite some of them when testing with obscure command lines.
11423 # This happens at least with the AIX C compiler.
11425 for i in 1 2 3 4 5 6; do
11426 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11427 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11428 # Solaris 8's {/usr,}/bin/sh.
11429 touch sub/conftst$i.h
11431 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11433 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11434 # mode. It turns out that the SunPro C++ compiler does not properly
11435 # handle `-M -o', and we need to detect this. Also, some Intel
11436 # versions had trouble with output in subdirs
11437 am__obj=sub/conftest.${OBJEXT-o}
11438 am__minus_obj="-o $am__obj"
11441 # This depmode causes a compiler race in universal mode.
11442 test "$am__universal" = false || continue
11445 # after this tag, mechanisms are not by side-effect, so they'll
11446 # only be used when explicitly requested
11447 if test "x$enable_dependency_tracking" = xyes; then
11453 msvisualcpp | msvcmsys)
11454 # This compiler won't grok `-c -o', but also, the minuso test has
11455 # not run yet. These depmodes are late enough in the game, and
11456 # so weak that their functioning should not be impacted.
11457 am__obj=conftest.${OBJEXT-o}
11462 if depmode=$depmode \
11463 source=sub/conftest.c object=$am__obj \
11464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11465 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11466 >/dev/null 2>conftest.err &&
11467 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11469 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11471 # icc doesn't choke on unknown options, it will just issue warnings
11472 # or remarks (even with -Werror). So we grep stderr for any message
11473 # that says an option was ignored or not supported.
11474 # When given -MP, icc 7.0 and 7.1 complain thusly:
11475 # icc: Command line warning: ignoring option '-M'; no argument required
11476 # The diagnosis changed in icc 8.0:
11477 # icc: Command line remark: option '-MP' not supported
11478 if (grep 'ignoring option' conftest.err ||
11479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11480 am_cv_CXX_dependencies_compiler_type=$depmode
11487 rm -rf conftest.dir
11489 am_cv_CXX_dependencies_compiler_type=none
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11494 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11495 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11498 test "x$enable_dependency_tracking" != xno \
11499 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11500 am__fastdepCXX_TRUE=
11501 am__fastdepCXX_FALSE='#'
11503 am__fastdepCXX_TRUE='#'
11504 am__fastdepCXX_FALSE=
11510 ac_cpp='$CXXCPP $CPPFLAGS'
11511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11514 if test -z "$CXX"; then
11515 if test -n "$CCC"; then
11518 if test -n "$ac_tool_prefix"; then
11519 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if test "${ac_cv_prog_CXX+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11528 if test -n "$CXX"; then
11529 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 CXX=$ac_cv_prog_CXX
11549 if test -n "$CXX"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11551 $as_echo "$CXX" >&6; }
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11558 test -n "$CXX" && break
11561 if test -z "$CXX"; then
11563 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11565 # Extract the first word of "$ac_prog", so it can be a program name with args.
11566 set dummy $ac_prog; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11572 if test -n "$ac_ct_CXX"; then
11573 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_prog_ac_ct_CXX="$ac_prog"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11593 if test -n "$ac_ct_CXX"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11595 $as_echo "$ac_ct_CXX" >&6; }
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11602 test -n "$ac_ct_CXX" && break
11605 if test "x$ac_ct_CXX" = x; then
11608 case $cross_compiling:$ac_tool_warned in
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11612 ac_tool_warned=yes ;;
11620 # Provide some information about the compiler.
11621 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11624 for ac_option in --version -v -V -qversion; do
11625 { { ac_try="$ac_compiler $ac_option >&5"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11631 $as_echo "$ac_try_echo"; } >&5
11632 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11634 if test -s conftest.err; then
11636 ... rest of stderr output deleted ...
11637 10q' conftest.err >conftest.er1
11638 cat conftest.er1 >&5
11640 rm -f conftest.er1 conftest.err
11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642 test $ac_status = 0; }
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11646 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11647 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11664 if ac_fn_cxx_try_compile "$LINENO"; then :
11665 ac_compiler_gnu=yes
11669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11674 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11675 if test $ac_compiler_gnu = yes; then
11680 ac_test_CXXFLAGS=${CXXFLAGS+set}
11681 ac_save_CXXFLAGS=$CXXFLAGS
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11683 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11684 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11687 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11688 ac_cxx_werror_flag=yes
11689 ac_cv_prog_cxx_g=no
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11702 if ac_fn_cxx_try_compile "$LINENO"; then :
11703 ac_cv_prog_cxx_g=yes
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11717 if ac_fn_cxx_try_compile "$LINENO"; then :
11720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11733 if ac_fn_cxx_try_compile "$LINENO"; then :
11734 ac_cv_prog_cxx_g=yes
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11744 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11745 if test "$ac_test_CXXFLAGS" = set; then
11746 CXXFLAGS=$ac_save_CXXFLAGS
11747 elif test $ac_cv_prog_cxx_g = yes; then
11748 if test "$GXX" = yes; then
11754 if test "$GXX" = yes; then
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11766 depcc="$CXX" am_compiler_list=
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11769 $as_echo_n "checking dependency style of $depcc... " >&6; }
11770 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11771 $as_echo_n "(cached) " >&6
11773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11774 # We make a subdir and do the tests there. Otherwise we can end up
11775 # making bogus files that we don't know about and never remove. For
11776 # instance it was reported that on HP-UX the gcc test will end up
11777 # making a dummy file named `D' -- because `-MD' means `put the output
11780 # Copy depcomp to subdir because otherwise we won't find it if we're
11781 # using a relative directory.
11782 cp "$am_depcomp" conftest.dir
11784 # We will build objects and dependencies in a subdirectory because
11785 # it helps to detect inapplicable dependency modes. For instance
11786 # both Tru64's cc and ICC support -MD to output dependencies as a
11787 # side effect of compilation, but ICC will put the dependencies in
11788 # the current directory while Tru64 will put them in the object
11792 am_cv_CXX_dependencies_compiler_type=none
11793 if test "$am_compiler_list" = ""; then
11794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11796 am__universal=false
11797 case " $depcc " in #(
11798 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11801 for depmode in $am_compiler_list; do
11802 # Setup a source with many dependencies, because some compilers
11803 # like to wrap large dependency lists on column 80 (with \), and
11804 # we should not choose a depcomp mode which is confused by this.
11806 # We need to recreate these files for each test, as the compiler may
11807 # overwrite some of them when testing with obscure command lines.
11808 # This happens at least with the AIX C compiler.
11810 for i in 1 2 3 4 5 6; do
11811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11813 # Solaris 8's {/usr,}/bin/sh.
11814 touch sub/conftst$i.h
11816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11818 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11819 # mode. It turns out that the SunPro C++ compiler does not properly
11820 # handle `-M -o', and we need to detect this. Also, some Intel
11821 # versions had trouble with output in subdirs
11822 am__obj=sub/conftest.${OBJEXT-o}
11823 am__minus_obj="-o $am__obj"
11826 # This depmode causes a compiler race in universal mode.
11827 test "$am__universal" = false || continue
11830 # after this tag, mechanisms are not by side-effect, so they'll
11831 # only be used when explicitly requested
11832 if test "x$enable_dependency_tracking" = xyes; then
11838 msvisualcpp | msvcmsys)
11839 # This compiler won't grok `-c -o', but also, the minuso test has
11840 # not run yet. These depmodes are late enough in the game, and
11841 # so weak that their functioning should not be impacted.
11842 am__obj=conftest.${OBJEXT-o}
11847 if depmode=$depmode \
11848 source=sub/conftest.c object=$am__obj \
11849 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11850 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11851 >/dev/null 2>conftest.err &&
11852 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11853 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11854 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11855 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11856 # icc doesn't choke on unknown options, it will just issue warnings
11857 # or remarks (even with -Werror). So we grep stderr for any message
11858 # that says an option was ignored or not supported.
11859 # When given -MP, icc 7.0 and 7.1 complain thusly:
11860 # icc: Command line warning: ignoring option '-M'; no argument required
11861 # The diagnosis changed in icc 8.0:
11862 # icc: Command line remark: option '-MP' not supported
11863 if (grep 'ignoring option' conftest.err ||
11864 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11865 am_cv_CXX_dependencies_compiler_type=$depmode
11872 rm -rf conftest.dir
11874 am_cv_CXX_dependencies_compiler_type=none
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11879 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11880 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11883 test "x$enable_dependency_tracking" != xno \
11884 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11885 am__fastdepCXX_TRUE=
11886 am__fastdepCXX_FALSE='#'
11888 am__fastdepCXX_TRUE='#'
11889 am__fastdepCXX_FALSE=
11893 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11894 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11895 (test "X$CXX" != "Xg++"))) ; then
11897 ac_cpp='$CXXCPP $CPPFLAGS'
11898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11902 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11903 if test -z "$CXXCPP"; then
11904 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
11907 # Double quotes because CXXCPP needs to be expanded
11908 for CXXCPP in "$CXX -E" "/lib/cpp"
11910 ac_preproc_ok=false
11911 for ac_cxx_preproc_warn_flag in '' yes
11913 # Use a header file that comes with gcc, so configuring glibc
11914 # with a fresh cross-compiler works.
11915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 # <limits.h> exists even on freestanding compilers.
11917 # On the NeXT, cc -E runs the code through the compiler's parser,
11918 # not just through cpp. "Syntax error" is here to catch this case.
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11922 # include <limits.h>
11924 # include <assert.h>
11928 if ac_fn_cxx_try_cpp "$LINENO"; then :
11931 # Broken: fails on valid input.
11934 rm -f conftest.err conftest.i conftest.$ac_ext
11936 # OK, works on sane cases. Now check whether nonexistent headers
11937 # can be detected and how.
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940 #include <ac_nonexistent.h>
11942 if ac_fn_cxx_try_cpp "$LINENO"; then :
11943 # Broken: success on invalid input.
11946 # Passes both tests.
11950 rm -f conftest.err conftest.i conftest.$ac_ext
11953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11954 rm -f conftest.i conftest.err conftest.$ac_ext
11955 if $ac_preproc_ok; then :
11960 ac_cv_prog_CXXCPP=$CXXCPP
11963 CXXCPP=$ac_cv_prog_CXXCPP
11965 ac_cv_prog_CXXCPP=$CXXCPP
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11968 $as_echo "$CXXCPP" >&6; }
11969 ac_preproc_ok=false
11970 for ac_cxx_preproc_warn_flag in '' yes
11972 # Use a header file that comes with gcc, so configuring glibc
11973 # with a fresh cross-compiler works.
11974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 # <limits.h> exists even on freestanding compilers.
11976 # On the NeXT, cc -E runs the code through the compiler's parser,
11977 # not just through cpp. "Syntax error" is here to catch this case.
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11981 # include <limits.h>
11983 # include <assert.h>
11987 if ac_fn_cxx_try_cpp "$LINENO"; then :
11990 # Broken: fails on valid input.
11993 rm -f conftest.err conftest.i conftest.$ac_ext
11995 # OK, works on sane cases. Now check whether nonexistent headers
11996 # can be detected and how.
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999 #include <ac_nonexistent.h>
12001 if ac_fn_cxx_try_cpp "$LINENO"; then :
12002 # Broken: success on invalid input.
12005 # Passes both tests.
12009 rm -f conftest.err conftest.i conftest.$ac_ext
12012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12013 rm -f conftest.i conftest.err conftest.$ac_ext
12014 if $ac_preproc_ok; then :
12017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12019 _lt_caught_CXX_error=yes; }
12023 ac_cpp='$CPP $CPPFLAGS'
12024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029 _lt_caught_CXX_error=yes
12036 ac_cpp='$CXXCPP $CPPFLAGS'
12037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12041 archive_cmds_need_lc_CXX=no
12042 allow_undefined_flag_CXX=
12043 always_export_symbols_CXX=no
12044 archive_expsym_cmds_CXX=
12045 compiler_needs_object_CXX=no
12046 export_dynamic_flag_spec_CXX=
12047 hardcode_direct_CXX=no
12048 hardcode_direct_absolute_CXX=no
12049 hardcode_libdir_flag_spec_CXX=
12050 hardcode_libdir_flag_spec_ld_CXX=
12051 hardcode_libdir_separator_CXX=
12052 hardcode_minus_L_CXX=no
12053 hardcode_shlibpath_var_CXX=unsupported
12054 hardcode_automatic_CXX=no
12055 inherit_rpath_CXX=no
12057 module_expsym_cmds_CXX=
12058 link_all_deplibs_CXX=unknown
12059 old_archive_cmds_CXX=$old_archive_cmds
12060 no_undefined_flag_CXX=
12061 whole_archive_flag_spec_CXX=
12062 enable_shared_with_static_runtimes_CXX=no
12064 # Source file extension for C++ test sources.
12067 # Object file extension for compiled C++ test sources.
12071 # No sense in running all these tests if we already determined that
12072 # the CXX compiler isn't working. Some variables (like enable_shared)
12073 # are currently assumed to apply to all compilers on this platform,
12074 # and will be corrupted by setting them based on a non-working compiler.
12075 if test "$_lt_caught_CXX_error" != yes; then
12076 # Code to be used in simple compile tests
12077 lt_simple_compile_test_code="int some_variable = 0;"
12079 # Code to be used in simple link tests
12080 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12089 # If no C compiler was specified, use CC.
12092 # If no C compiler flags were specified, use CFLAGS.
12093 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12095 # Allow CC to be a program name with arguments.
12099 # save warnings/boilerplate of simple test code
12100 ac_outfile=conftest.$ac_objext
12101 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12102 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12103 _lt_compiler_boilerplate=`cat conftest.err`
12106 ac_outfile=conftest.$ac_objext
12107 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12108 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12109 _lt_linker_boilerplate=`cat conftest.err`
12113 # Allow CC to be a program name with arguments.
12118 lt_save_with_gnu_ld=$with_gnu_ld
12119 lt_save_path_LD=$lt_cv_path_LD
12120 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12121 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12123 $as_unset lt_cv_prog_gnu_ld
12125 if test -n "${lt_cv_path_LDCXX+set}"; then
12126 lt_cv_path_LD=$lt_cv_path_LDCXX
12128 $as_unset lt_cv_path_LD
12130 test -z "${LDCXX+set}" || LD=$LDCXX
12134 for cc_temp in $compiler""; do
12136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12142 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12145 if test -n "$compiler"; then
12146 # We don't want -fno-exception when compiling C++ code, so set the
12147 # no_builtin_flag separately
12148 if test "$GXX" = yes; then
12149 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12151 lt_prog_compiler_no_builtin_flag_CXX=
12154 if test "$GXX" = yes; then
12155 # Set up default GNU C++ configuration
12159 # Check whether --with-gnu-ld was given.
12160 if test "${with_gnu_ld+set}" = set; then :
12161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12167 if test "$GCC" = yes; then
12168 # Check if gcc -print-prog-name=ld gives a path.
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12170 $as_echo_n "checking for ld used by $CC... " >&6; }
12173 # gcc leaves a trailing carriage return which upsets mingw
12174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12179 # Accept absolute paths.
12181 re_direlt='/[^/][^/]*/\.\./'
12182 # Canonicalize the pathname of ld
12183 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12184 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12185 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12187 test -z "$LD" && LD="$ac_prog"
12190 # If it fails, then pretend we aren't using GCC.
12194 # If it is relative, then search for the first ld in PATH.
12195 with_gnu_ld=unknown
12198 elif test "$with_gnu_ld" = yes; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12200 $as_echo_n "checking for GNU ld... " >&6; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12203 $as_echo_n "checking for non-GNU ld... " >&6; }
12205 if test "${lt_cv_path_LD+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12208 if test -z "$LD"; then
12209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12210 for ac_dir in $PATH; do
12212 test -z "$ac_dir" && ac_dir=.
12213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12214 lt_cv_path_LD="$ac_dir/$ac_prog"
12215 # Check to see if the program is GNU ld. I'd rather use --version,
12216 # but apparently some variants of GNU ld only accept -v.
12217 # Break only if it was the GNU/non-GNU ld that we prefer.
12218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12219 *GNU* | *'with BFD'*)
12220 test "$with_gnu_ld" != no && break
12223 test "$with_gnu_ld" != yes && break
12230 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12234 LD="$lt_cv_path_LD"
12235 if test -n "$LD"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12237 $as_echo "$LD" >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12242 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12244 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12245 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12246 $as_echo_n "(cached) " >&6
12248 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12249 case `$LD -v 2>&1 </dev/null` in
12250 *GNU* | *'with BFD'*)
12251 lt_cv_prog_gnu_ld=yes
12254 lt_cv_prog_gnu_ld=no
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12259 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12260 with_gnu_ld=$lt_cv_prog_gnu_ld
12268 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12269 # archiving commands below assume that GNU ld is being used.
12270 if test "$with_gnu_ld" = yes; then
12271 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272 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'
12274 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12275 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12277 # If archive_cmds runs LD, not CC, wlarc should be empty
12278 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12279 # investigate it a little bit more. (MM)
12282 # ancient GNU ld didn't support --whole-archive et. al.
12283 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12284 $GREP 'no-whole-archive' > /dev/null; then
12285 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12287 whole_archive_flag_spec_CXX=
12293 # A generic and very simple default shared library creation
12294 # command for GNU C++ for the case where it uses the native
12295 # linker, instead of GNU ld. If possible, this setting should
12296 # overridden to take advantage of the native linker features on
12297 # the platform it is being used on.
12298 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12301 # Commands to make compiler produce verbose output that lists
12302 # what "hidden" libraries, object files and flags are used when
12303 # linking a shared library.
12304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12312 # PORTME: fill in a description of your system's C++ link characteristics
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12314 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12318 # FIXME: insert proper C++ library support
12322 if test "$host_cpu" = ia64; then
12323 # On IA64, the linker does run time linking by default, so we don't
12324 # have to do anything special.
12325 aix_use_runtimelinking=no
12326 exp_sym_flag='-Bexport'
12329 aix_use_runtimelinking=no
12331 # Test if we are trying to use run time linking or normal
12332 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12333 # need to do runtime linking.
12334 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12335 for ld_flag in $LDFLAGS; do
12338 aix_use_runtimelinking=yes
12346 exp_sym_flag='-bexport'
12347 no_entry_flag='-bnoentry'
12350 # When large executables or shared objects are built, AIX ld can
12351 # have problems creating the table of contents. If linking a library
12352 # or program results in "error TOC overflow" add -mminimal-toc to
12353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12356 archive_cmds_CXX=''
12357 hardcode_direct_CXX=yes
12358 hardcode_direct_absolute_CXX=yes
12359 hardcode_libdir_separator_CXX=':'
12360 link_all_deplibs_CXX=yes
12361 file_list_spec_CXX='${wl}-f,'
12363 if test "$GXX" = yes; then
12364 case $host_os in aix4.[012]|aix4.[012].*)
12365 # We only want to do this on AIX 4.2 and lower, the check
12366 # below for broken collect2 doesn't work under 4.3+
12367 collect2name=`${CC} -print-prog-name=collect2`
12368 if test -f "$collect2name" &&
12369 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12371 # We have reworked collect2
12374 # We have old collect2
12375 hardcode_direct_CXX=unsupported
12376 # It fails to find uninstalled libraries when the uninstalled
12377 # path is not listed in the libpath. Setting hardcode_minus_L
12378 # to unsupported forces relinking
12379 hardcode_minus_L_CXX=yes
12380 hardcode_libdir_flag_spec_CXX='-L$libdir'
12381 hardcode_libdir_separator_CXX=
12384 shared_flag='-shared'
12385 if test "$aix_use_runtimelinking" = yes; then
12386 shared_flag="$shared_flag "'${wl}-G'
12390 if test "$host_cpu" = ia64; then
12391 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12392 # chokes on -Wl,-G. The following line is correct:
12395 if test "$aix_use_runtimelinking" = yes; then
12396 shared_flag='${wl}-G'
12398 shared_flag='${wl}-bM:SRE'
12403 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12404 # It seems that -bexpall does not export symbols beginning with
12405 # underscore (_), so it is better to generate a list of symbols to
12407 always_export_symbols_CXX=yes
12408 if test "$aix_use_runtimelinking" = yes; then
12409 # Warning - without using the other runtime loading flags (-brtl),
12410 # -berok will link without error, but may produce a broken library.
12411 allow_undefined_flag_CXX='-berok'
12412 # Determine the default libpath from the value encoded in an empty
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12425 if ac_fn_cxx_try_link "$LINENO"; then :
12427 lt_aix_libpath_sed='
12428 /Import File Strings/,/^$/ {
12434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12435 # Check for a 64-bit object if we didn't find anything.
12436 if test -z "$aix_libpath"; then
12437 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12444 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12446 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"
12448 if test "$host_cpu" = ia64; then
12449 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12450 allow_undefined_flag_CXX="-z nodefs"
12451 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"
12453 # Determine the default libpath from the value encoded in an
12454 # empty executable.
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12466 if ac_fn_cxx_try_link "$LINENO"; then :
12468 lt_aix_libpath_sed='
12469 /Import File Strings/,/^$/ {
12475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12476 # Check for a 64-bit object if we didn't find anything.
12477 if test -z "$aix_libpath"; then
12478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12481 rm -f core conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12485 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12486 # Warning - without using the other run time loading flags,
12487 # -berok will link without error, but may produce a broken library.
12488 no_undefined_flag_CXX=' ${wl}-bernotok'
12489 allow_undefined_flag_CXX=' ${wl}-berok'
12490 # Exported symbols can be pulled into shared objects from archives
12491 whole_archive_flag_spec_CXX='$convenience'
12492 archive_cmds_need_lc_CXX=yes
12493 # This is similar to how AIX traditionally builds its shared
12495 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'
12501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12502 allow_undefined_flag_CXX=unsupported
12503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12504 # support --undefined. This deserves some investigation. FIXME
12505 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12512 case $cc_basename in
12514 # FIXME: insert proper C++ library support
12520 cygwin* | mingw* | pw32* | cegcc*)
12521 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12522 # as there is no search path for DLLs.
12523 hardcode_libdir_flag_spec_CXX='-L$libdir'
12524 allow_undefined_flag_CXX=unsupported
12525 always_export_symbols_CXX=no
12526 enable_shared_with_static_runtimes_CXX=yes
12528 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12529 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'
12530 # If the export-symbols file already is a .def file (1st line
12531 # is EXPORTS), use it as is; otherwise, prepend...
12532 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12533 cp $export_symbols $output_objdir/$soname.def;
12535 echo EXPORTS > $output_objdir/$soname.def;
12536 cat $export_symbols >> $output_objdir/$soname.def;
12538 $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'
12543 darwin* | rhapsody*)
12546 archive_cmds_need_lc_CXX=no
12547 hardcode_direct_CXX=no
12548 hardcode_automatic_CXX=yes
12549 hardcode_shlibpath_var_CXX=unsupported
12550 whole_archive_flag_spec_CXX=''
12551 link_all_deplibs_CXX=yes
12552 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12553 case $cc_basename in
12554 ifort*) _lt_dar_can_shared=yes ;;
12555 *) _lt_dar_can_shared=$GCC ;;
12557 if test "$_lt_dar_can_shared" = "yes"; then
12558 output_verbose_link_cmd=echo
12559 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}"
12560 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12561 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}"
12562 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}"
12563 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12564 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}"
12565 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}"
12575 case $cc_basename in
12577 # FIXME: insert proper C++ library support
12581 # Green Hills C++ Compiler
12582 # FIXME: insert proper C++ library support
12586 # FIXME: insert proper C++ library support
12593 # C++ shared libraries reported to be fairly broken before
12599 archive_cmds_need_lc_CXX=no
12602 freebsd* | dragonfly*)
12603 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12612 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12613 hardcode_libdir_separator_CXX=:
12614 export_dynamic_flag_spec_CXX='${wl}-E'
12615 hardcode_direct_CXX=yes
12616 hardcode_minus_L_CXX=yes # Not in the search PATH,
12617 # but as the default
12618 # location of the library.
12620 case $cc_basename in
12622 # FIXME: insert proper C++ library support
12626 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'
12627 # Commands to make compiler produce verbose output that lists
12628 # what "hidden" libraries, object files and flags are used when
12629 # linking a shared library.
12631 # There doesn't appear to be a way to prevent this compiler from
12632 # explicitly linking system object files so we need to strip them
12633 # from the output so that they don't get included in the library
12635 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'
12638 if test "$GXX" = yes; then
12639 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'
12641 # FIXME: insert proper C++ library support
12649 if test $with_gnu_ld = no; then
12650 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12651 hardcode_libdir_separator_CXX=:
12657 export_dynamic_flag_spec_CXX='${wl}-E'
12663 hardcode_direct_CXX=no
12664 hardcode_shlibpath_var_CXX=no
12667 hardcode_direct_CXX=yes
12668 hardcode_direct_absolute_CXX=yes
12669 hardcode_minus_L_CXX=yes # Not in the search PATH,
12670 # but as the default
12671 # location of the library.
12675 case $cc_basename in
12677 # FIXME: insert proper C++ library support
12683 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12686 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12689 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12692 # Commands to make compiler produce verbose output that lists
12693 # what "hidden" libraries, object files and flags are used when
12694 # linking a shared library.
12696 # There doesn't appear to be a way to prevent this compiler from
12697 # explicitly linking system object files so we need to strip them
12698 # from the output so that they don't get included in the library
12700 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'
12703 if test "$GXX" = yes; then
12704 if test $with_gnu_ld = no; then
12707 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12710 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12713 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'
12718 # FIXME: insert proper C++ library support
12726 hardcode_direct_CXX=no
12727 hardcode_shlibpath_var_CXX=no
12728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12729 export_dynamic_flag_spec_CXX='${wl}-E'
12730 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12731 # Instead, shared libraries are loaded at an image base (0x10000000 by
12732 # default) and relocated if they conflict, which is a slow very memory
12733 # consuming and fragmenting process. To avoid this, we pick a random,
12734 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12735 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12736 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'
12737 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'
12740 case $cc_basename in
12743 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'
12745 # Archives containing C++ object files must be created using
12746 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12747 # necessary to make sure instantiated templates are included
12749 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12752 if test "$GXX" = yes; then
12753 if test "$with_gnu_ld" = no; then
12754 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'
12756 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'
12759 link_all_deplibs_CXX=yes
12762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12763 hardcode_libdir_separator_CXX=:
12764 inherit_rpath_CXX=yes
12767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12768 case $cc_basename in
12770 # Kuck and Associates, Inc. (KAI) C++ Compiler
12772 # KCC will only create a shared library if the output file
12773 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12774 # to its proper name (with version) after linking.
12775 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'
12776 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'
12777 # Commands to make compiler produce verbose output that lists
12778 # what "hidden" libraries, object files and flags are used when
12779 # linking a shared library.
12781 # There doesn't appear to be a way to prevent this compiler from
12782 # explicitly linking system object files so we need to strip them
12783 # from the output so that they don't get included in the library
12785 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'
12787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12790 # Archives containing C++ object files must be created using
12791 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12792 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12797 # version 8.0 and above of icpc choke on multiply defined symbols
12798 # if we add $predep_objects and $postdep_objects, however 7.1 and
12799 # earlier do not add the objects themselves.
12800 case `$CC -V 2>&1` in
12802 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803 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'
12805 *) # Version 8.0 or newer
12808 ia64*) tmp_idyn=' -i_dynamic';;
12810 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12811 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'
12814 archive_cmds_need_lc_CXX=no
12815 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12816 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12817 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12820 # Portland Group C++ compiler
12822 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12823 prelink_cmds_CXX='tpldir=Template.dir~
12825 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12826 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12827 old_archive_cmds_CXX='tpldir=Template.dir~
12829 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12830 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12832 archive_cmds_CXX='tpldir=Template.dir~
12834 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12835 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12836 archive_expsym_cmds_CXX='tpldir=Template.dir~
12838 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12839 $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'
12841 *) # Version 6 will use weak symbols
12842 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12843 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'
12847 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12848 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12849 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'
12853 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12854 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'
12856 runpath_var=LD_RUN_PATH
12857 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12858 hardcode_libdir_separator_CXX=:
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12864 # There doesn't appear to be a way to prevent this compiler from
12865 # explicitly linking system object files so we need to strip them
12866 # from the output so that they don't get included in the library
12868 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'
12871 # IBM XL 8.0 on PPC, with GNU ld
12872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12874 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875 if test "x$supports_anon_versioning" = xyes; then
12876 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12878 echo "local: *; };" >> $output_objdir/$libname.ver~
12879 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12883 case `$CC -V 2>&1 | sed 5q` in
12886 no_undefined_flag_CXX=' -zdefs'
12887 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12888 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'
12889 hardcode_libdir_flag_spec_CXX='-R$libdir'
12890 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'
12891 compiler_needs_object_CXX=yes
12893 # Not sure whether something based on
12894 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12896 output_verbose_link_cmd='echo'
12898 # Archives containing C++ object files must be created using
12899 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12900 # necessary to make sure instantiated templates are included
12902 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12910 # FIXME: insert proper C++ library support
12915 # FIXME: insert proper C++ library support
12920 case $cc_basename in
12922 # FIXME: insert proper C++ library support
12926 # FIXME: insert proper C++ library support
12933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12934 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12936 hardcode_libdir_flag_spec_CXX='-R$libdir'
12937 hardcode_direct_CXX=yes
12938 hardcode_shlibpath_var_CXX=no
12940 # Workaround some broken pre-1.5 toolchains
12941 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12949 # C++ shared libraries are fairly broken
12954 if test -f /usr/libexec/ld.so; then
12955 hardcode_direct_CXX=yes
12956 hardcode_shlibpath_var_CXX=no
12957 hardcode_direct_absolute_CXX=yes
12958 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12961 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12962 export_dynamic_flag_spec_CXX='${wl}-E'
12963 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12965 output_verbose_link_cmd=echo
12971 osf3* | osf4* | osf5*)
12972 case $cc_basename in
12974 # Kuck and Associates, Inc. (KAI) C++ Compiler
12976 # KCC will only create a shared library if the output file
12977 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12978 # to its proper name (with version) after linking.
12979 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'
12981 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12982 hardcode_libdir_separator_CXX=:
12984 # Archives containing C++ object files must be created using
12985 # the KAI C++ compiler.
12987 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12988 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12992 # Rational C++ 2.4.1
12993 # FIXME: insert proper C++ library support
12999 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13000 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'
13001 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004 allow_undefined_flag_CXX=' -expect_unresolved \*'
13005 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'
13006 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13007 echo "-hidden">> $lib.exp~
13008 $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~
13010 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13014 hardcode_libdir_separator_CXX=:
13016 # Commands to make compiler produce verbose output that lists
13017 # what "hidden" libraries, object files and flags are used when
13018 # linking a shared library.
13020 # There doesn't appear to be a way to prevent this compiler from
13021 # explicitly linking system object files so we need to strip them
13022 # from the output so that they don't get included in the library
13024 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'
13027 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13028 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13031 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'
13034 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'
13038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13039 hardcode_libdir_separator_CXX=:
13041 # Commands to make compiler produce verbose output that lists
13042 # what "hidden" libraries, object files and flags are used when
13043 # linking a shared library.
13044 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13047 # FIXME: insert proper C++ library support
13055 # FIXME: insert proper C++ library support
13060 case $cc_basename in
13063 # FIXME: insert proper C++ library support
13068 # FIXME: insert proper C++ library support
13072 # FIXME: insert proper C++ library support
13079 case $cc_basename in
13081 # Sun C++ 4.2, 5.x and Centerline C++
13082 archive_cmds_need_lc_CXX=yes
13083 no_undefined_flag_CXX=' -zdefs'
13084 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13085 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13086 $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'
13088 hardcode_libdir_flag_spec_CXX='-R$libdir'
13089 hardcode_shlibpath_var_CXX=no
13091 solaris2.[0-5] | solaris2.[0-5].*) ;;
13093 # The compiler driver will combine and reorder linker options,
13094 # but understands `-z linker_flag'.
13095 # Supported since Solaris 2.6 (maybe 2.5.1?)
13096 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13099 link_all_deplibs_CXX=yes
13101 output_verbose_link_cmd='echo'
13103 # Archives containing C++ object files must be created using
13104 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13105 # necessary to make sure instantiated templates are included
13107 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13110 # Green Hills C++ Compiler
13111 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13113 # The C++ compiler must be used to create the archive.
13114 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13117 # GNU C++ compiler with Solaris linker
13118 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13119 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13120 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13121 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13122 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13123 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13125 # Commands to make compiler produce verbose output that lists
13126 # what "hidden" libraries, object files and flags are used when
13127 # linking a shared library.
13128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13130 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13132 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13133 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13134 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13136 # Commands to make compiler produce verbose output that lists
13137 # what "hidden" libraries, object files and flags are used when
13138 # linking a shared library.
13139 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13142 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13144 solaris2.[0-5] | solaris2.[0-5].*) ;;
13146 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13154 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13155 no_undefined_flag_CXX='${wl}-z,text'
13156 archive_cmds_need_lc_CXX=no
13157 hardcode_shlibpath_var_CXX=no
13158 runpath_var='LD_RUN_PATH'
13160 case $cc_basename in
13162 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13163 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13166 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13167 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172 sysv5* | sco3.2v5* | sco5v6*)
13173 # Note: We can NOT use -z defs as we might desire, because we do not
13174 # link with -lc, and that would cause any symbols used from libc to
13175 # always be unresolved, which means just about no library would
13176 # ever link correctly. If we're not using GNU ld we use -z text
13177 # though, which does catch some bad symbols but isn't as heavy-handed
13179 no_undefined_flag_CXX='${wl}-z,text'
13180 allow_undefined_flag_CXX='${wl}-z,nodefs'
13181 archive_cmds_need_lc_CXX=no
13182 hardcode_shlibpath_var_CXX=no
13183 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13184 hardcode_libdir_separator_CXX=':'
13185 link_all_deplibs_CXX=yes
13186 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13187 runpath_var='LD_RUN_PATH'
13189 case $cc_basename in
13191 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13192 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13195 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13196 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202 case $cc_basename in
13204 # NonStop-UX NCC 3.20
13205 # FIXME: insert proper C++ library support
13209 # FIXME: insert proper C++ library support
13216 # FIXME: insert proper C++ library support
13221 # FIXME: insert proper C++ library support
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13227 $as_echo "$ld_shlibs_CXX" >&6; }
13228 test "$ld_shlibs_CXX" = no && can_build_shared=no
13234 ## There is no encapsulation within the following macros, do not change
13235 ## the running order or otherwise move them around unless you know exactly
13236 ## what you are doing...
13237 # Dependencies to place before and after the object being linked:
13238 predep_objects_CXX=
13239 postdep_objects_CXX=
13242 compiler_lib_search_path_CXX=
13244 cat > conftest.$ac_ext <<_LT_EOF
13248 Foo (void) { a = 0; }
13254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13255 (eval $ac_compile) 2>&5
13257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13258 test $ac_status = 0; }; then
13259 # Parse the compiler output and extract the necessary
13260 # objects, libraries and library flags.
13262 # Sentinel used to keep track of whether or not we are before
13263 # the conftest object file.
13264 pre_test_object_deps_done=no
13266 for p in `eval "$output_verbose_link_cmd"`; do
13270 # Some compilers place space between "-{L,R}" and the path.
13271 # Remove the space.
13272 if test $p = "-L" ||
13273 test $p = "-R"; then
13280 if test "$pre_test_object_deps_done" = no; then
13283 # Internal compiler library paths should come after those
13284 # provided the user. The postdeps already come after the
13285 # user supplied libs so there is no need to process them.
13286 if test -z "$compiler_lib_search_path_CXX"; then
13287 compiler_lib_search_path_CXX="${prev}${p}"
13289 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13292 # The "-l" case would never come before the object being
13293 # linked, so don't bother handling this case.
13296 if test -z "$postdeps_CXX"; then
13297 postdeps_CXX="${prev}${p}"
13299 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13305 # This assumes that the test object file only shows up
13306 # once in the compiler output.
13307 if test "$p" = "conftest.$objext"; then
13308 pre_test_object_deps_done=yes
13312 if test "$pre_test_object_deps_done" = no; then
13313 if test -z "$predep_objects_CXX"; then
13314 predep_objects_CXX="$p"
13316 predep_objects_CXX="$predep_objects_CXX $p"
13319 if test -z "$postdep_objects_CXX"; then
13320 postdep_objects_CXX="$p"
13322 postdep_objects_CXX="$postdep_objects_CXX $p"
13327 *) ;; # Ignore the rest.
13335 echo "libtool.m4: error: problem compiling CXX test program"
13338 $RM -f confest.$objext
13340 # PORTME: override above test on systems where it is broken
13343 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13344 # hack all around it, let's just trust "g++" to DTRT.
13345 predep_objects_CXX=
13346 postdep_objects_CXX=
13351 case `$CC -V 2>&1 | sed 5q` in
13355 # The more standards-conforming stlport4 library is
13356 # incompatible with the Cstd library. Avoid specifying
13357 # it if it's in CXXFLAGS. Ignore libCrun as
13358 # -library=stlport4 depends on it.
13359 case " $CXX $CXXFLAGS " in
13360 *" -library=stlport4 "*)
13361 solaris_use_stlport4=yes
13365 if test "$solaris_use_stlport4" != yes; then
13366 postdeps_CXX='-library=Cstd -library=Crun'
13373 case $cc_basename in
13375 # The more standards-conforming stlport4 library is
13376 # incompatible with the Cstd library. Avoid specifying
13377 # it if it's in CXXFLAGS. Ignore libCrun as
13378 # -library=stlport4 depends on it.
13379 case " $CXX $CXXFLAGS " in
13380 *" -library=stlport4 "*)
13381 solaris_use_stlport4=yes
13385 # Adding this requires a known-good setup of shared libraries for
13386 # Sun compiler versions before 5.6, else PIC objects from an old
13387 # archive will be linked into the output, leading to subtle bugs.
13388 if test "$solaris_use_stlport4" != yes; then
13389 postdeps_CXX='-library=Cstd -library=Crun'
13397 case " $postdeps_CXX " in
13398 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13400 compiler_lib_search_dirs_CXX=
13401 if test -n "${compiler_lib_search_path_CXX}"; then
13402 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13435 lt_prog_compiler_wl_CXX=
13436 lt_prog_compiler_pic_CXX=
13437 lt_prog_compiler_static_CXX=
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13440 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13442 # C++ specific cases for pic, static, wl, etc.
13443 if test "$GXX" = yes; then
13444 lt_prog_compiler_wl_CXX='-Wl,'
13445 lt_prog_compiler_static_CXX='-static'
13449 # All AIX code is PIC.
13450 if test "$host_cpu" = ia64; then
13451 # AIX 5 now supports IA64 processor
13452 lt_prog_compiler_static_CXX='-Bstatic'
13459 # see comment about AmigaOS4 .so support
13460 lt_prog_compiler_pic_CXX='-fPIC'
13463 # FIXME: we need at least 68020 code to build shared libraries, but
13464 # adding the `-m68020' flag to GCC prevents building anything better,
13466 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13472 # PIC is the default for these OSes.
13474 mingw* | cygwin* | os2* | pw32* | cegcc*)
13475 # This hack is so that the source file can tell whether it is being
13476 # built for inclusion in a dll (and should export symbols for example).
13477 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13478 # (--disable-auto-import) libraries
13479 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13481 darwin* | rhapsody*)
13482 # PIC is the default on this platform
13483 # Common symbols not allowed in MH_DYLIB files
13484 lt_prog_compiler_pic_CXX='-fno-common'
13487 # DJGPP does not support shared libraries at all
13488 lt_prog_compiler_pic_CXX=
13491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13492 # Instead, we relocate shared libraries at runtime.
13495 if test -d /usr/nec; then
13496 lt_prog_compiler_pic_CXX=-Kconform_pic
13500 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13501 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13502 # sets the default TLS model and affects inlining.
13507 lt_prog_compiler_pic_CXX='-fPIC'
13512 # QNX uses GNU C++, but need to define -shared option too, otherwise
13513 # it will coredump.
13514 lt_prog_compiler_pic_CXX='-fPIC -shared'
13517 lt_prog_compiler_pic_CXX='-fPIC'
13523 # All AIX code is PIC.
13524 if test "$host_cpu" = ia64; then
13525 # AIX 5 now supports IA64 processor
13526 lt_prog_compiler_static_CXX='-Bstatic'
13528 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13532 case $cc_basename in
13534 # Green Hills C++ Compiler
13535 # _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"
13540 case $cc_basename in
13542 lt_prog_compiler_pic_CXX='-KPIC'
13545 # Green Hills C++ Compiler
13546 lt_prog_compiler_pic_CXX='-pic'
13552 freebsd* | dragonfly*)
13553 # FreeBSD uses GNU C++
13555 hpux9* | hpux10* | hpux11*)
13556 case $cc_basename in
13558 lt_prog_compiler_wl_CXX='-Wl,'
13559 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13560 if test "$host_cpu" != ia64; then
13561 lt_prog_compiler_pic_CXX='+Z'
13565 lt_prog_compiler_wl_CXX='-Wl,'
13566 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13572 lt_prog_compiler_pic_CXX='+Z'
13581 # This is c89, which is MS Visual C++ (no shared libs)
13582 # Anyone wants to do a port?
13584 irix5* | irix6* | nonstopux*)
13585 case $cc_basename in
13587 lt_prog_compiler_wl_CXX='-Wl,'
13588 lt_prog_compiler_static_CXX='-non_shared'
13589 # CC pic flag -KPIC is the default.
13595 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13596 case $cc_basename in
13599 lt_prog_compiler_wl_CXX='--backend -Wl,'
13600 lt_prog_compiler_pic_CXX='-fPIC'
13603 # old Intel C++ for x86_64 which still supported -KPIC.
13604 lt_prog_compiler_wl_CXX='-Wl,'
13605 lt_prog_compiler_pic_CXX='-KPIC'
13606 lt_prog_compiler_static_CXX='-static'
13609 # Intel C++, used to be incompatible with GCC.
13610 # ICC 10 doesn't accept -KPIC any more.
13611 lt_prog_compiler_wl_CXX='-Wl,'
13612 lt_prog_compiler_pic_CXX='-fPIC'
13613 lt_prog_compiler_static_CXX='-static'
13616 # Portland Group C++ compiler
13617 lt_prog_compiler_wl_CXX='-Wl,'
13618 lt_prog_compiler_pic_CXX='-fpic'
13619 lt_prog_compiler_static_CXX='-Bstatic'
13623 # Make sure the PIC flag is empty. It appears that all Alpha
13624 # Linux and Compaq Tru64 Unix objects are PIC.
13625 lt_prog_compiler_pic_CXX=
13626 lt_prog_compiler_static_CXX='-non_shared'
13629 # IBM XL 8.0 on PPC
13630 lt_prog_compiler_wl_CXX='-Wl,'
13631 lt_prog_compiler_pic_CXX='-qpic'
13632 lt_prog_compiler_static_CXX='-qstaticlink'
13635 case `$CC -V 2>&1 | sed 5q` in
13638 lt_prog_compiler_pic_CXX='-KPIC'
13639 lt_prog_compiler_static_CXX='-Bstatic'
13640 lt_prog_compiler_wl_CXX='-Qoption ld '
13651 case $cc_basename in
13653 lt_prog_compiler_pic_CXX='-W c,exportall'
13659 netbsd* | netbsdelf*-gnu)
13662 # QNX uses GNU C++, but need to define -shared option too, otherwise
13663 # it will coredump.
13664 lt_prog_compiler_pic_CXX='-fPIC -shared'
13666 osf3* | osf4* | osf5*)
13667 case $cc_basename in
13669 lt_prog_compiler_wl_CXX='--backend -Wl,'
13672 # Rational C++ 2.4.1
13673 lt_prog_compiler_pic_CXX='-pic'
13676 # Digital/Compaq C++
13677 lt_prog_compiler_wl_CXX='-Wl,'
13678 # Make sure the PIC flag is empty. It appears that all Alpha
13679 # Linux and Compaq Tru64 Unix objects are PIC.
13680 lt_prog_compiler_pic_CXX=
13681 lt_prog_compiler_static_CXX='-non_shared'
13690 case $cc_basename in
13692 # Sun C++ 4.2, 5.x and Centerline C++
13693 lt_prog_compiler_pic_CXX='-KPIC'
13694 lt_prog_compiler_static_CXX='-Bstatic'
13695 lt_prog_compiler_wl_CXX='-Qoption ld '
13698 # Green Hills C++ Compiler
13699 lt_prog_compiler_pic_CXX='-PIC'
13706 case $cc_basename in
13709 lt_prog_compiler_pic_CXX='-pic'
13710 lt_prog_compiler_static_CXX='-Bstatic'
13714 lt_prog_compiler_pic_CXX='-pic'
13720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13721 case $cc_basename in
13723 lt_prog_compiler_wl_CXX='-Wl,'
13724 lt_prog_compiler_pic_CXX='-KPIC'
13725 lt_prog_compiler_static_CXX='-Bstatic'
13730 case $cc_basename in
13732 # NonStop-UX NCC 3.20
13733 lt_prog_compiler_pic_CXX='-KPIC'
13742 lt_prog_compiler_can_build_shared_CXX=no
13748 # For platforms which do not support PIC, -DPIC is meaningless:
13750 lt_prog_compiler_pic_CXX=
13753 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13757 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13762 # Check to make sure the PIC flag actually works.
13764 if test -n "$lt_prog_compiler_pic_CXX"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13766 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13767 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13770 lt_cv_prog_compiler_pic_works_CXX=no
13771 ac_outfile=conftest.$ac_objext
13772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13773 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13774 # Insert the option either (1) after the last *FLAGS variable, or
13775 # (2) before a word containing "conftest.", or (3) at the end.
13776 # Note that $ac_compile itself does not contain backslashes and begins
13777 # with a dollar sign (not a hyphen), so the echo should work correctly.
13778 # The option is referenced via a variable to avoid confusing sed.
13779 lt_compile=`echo "$ac_compile" | $SED \
13780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13782 -e 's:$: $lt_compiler_flag:'`
13783 (eval echo "\"\$as_me:13783: $lt_compile\"" >&5)
13784 (eval "$lt_compile" 2>conftest.err)
13786 cat conftest.err >&5
13787 echo "$as_me:13787: \$? = $ac_status" >&5
13788 if (exit $ac_status) && test -s "$ac_outfile"; then
13789 # The compiler can only warn and ignore the option if not recognized
13790 # So say no if there are warnings other than the usual output.
13791 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13794 lt_cv_prog_compiler_pic_works_CXX=yes
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13801 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13803 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13804 case $lt_prog_compiler_pic_CXX in
13806 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13809 lt_prog_compiler_pic_CXX=
13810 lt_prog_compiler_can_build_shared_CXX=no
13818 # Check to make sure the static flag actually works.
13820 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13822 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13823 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13826 lt_cv_prog_compiler_static_works_CXX=no
13827 save_LDFLAGS="$LDFLAGS"
13828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13831 # The linker can only warn and ignore the option if not recognized
13832 # So say no if there are warnings
13833 if test -s conftest.err; then
13834 # Append any errors to the config.log.
13835 cat conftest.err 1>&5
13836 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13838 if diff conftest.exp conftest.er2 >/dev/null; then
13839 lt_cv_prog_compiler_static_works_CXX=yes
13842 lt_cv_prog_compiler_static_works_CXX=yes
13846 LDFLAGS="$save_LDFLAGS"
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13850 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13852 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13855 lt_prog_compiler_static_CXX=
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13863 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13866 lt_cv_prog_compiler_c_o_CXX=no
13867 $RM -r conftest 2>/dev/null
13871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13873 lt_compiler_flag="-o out/conftest2.$ac_objext"
13874 # Insert the option either (1) after the last *FLAGS variable, or
13875 # (2) before a word containing "conftest.", or (3) at the end.
13876 # Note that $ac_compile itself does not contain backslashes and begins
13877 # with a dollar sign (not a hyphen), so the echo should work correctly.
13878 lt_compile=`echo "$ac_compile" | $SED \
13879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13881 -e 's:$: $lt_compiler_flag:'`
13882 (eval echo "\"\$as_me:13882: $lt_compile\"" >&5)
13883 (eval "$lt_compile" 2>out/conftest.err)
13885 cat out/conftest.err >&5
13886 echo "$as_me:13886: \$? = $ac_status" >&5
13887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13889 # The compiler can only warn and ignore the option if not recognized
13890 # So say no if there are warnings
13891 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13894 lt_cv_prog_compiler_c_o_CXX=yes
13899 # SGI C++ compiler will create directory out/ii_files/ for
13900 # template instantiation
13901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13902 $RM out/* && rmdir out
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13909 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13914 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13915 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13918 lt_cv_prog_compiler_c_o_CXX=no
13919 $RM -r conftest 2>/dev/null
13923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13925 lt_compiler_flag="-o out/conftest2.$ac_objext"
13926 # Insert the option either (1) after the last *FLAGS variable, or
13927 # (2) before a word containing "conftest.", or (3) at the end.
13928 # Note that $ac_compile itself does not contain backslashes and begins
13929 # with a dollar sign (not a hyphen), so the echo should work correctly.
13930 lt_compile=`echo "$ac_compile" | $SED \
13931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13933 -e 's:$: $lt_compiler_flag:'`
13934 (eval echo "\"\$as_me:13934: $lt_compile\"" >&5)
13935 (eval "$lt_compile" 2>out/conftest.err)
13937 cat out/conftest.err >&5
13938 echo "$as_me:13938: \$? = $ac_status" >&5
13939 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13941 # The compiler can only warn and ignore the option if not recognized
13942 # So say no if there are warnings
13943 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13946 lt_cv_prog_compiler_c_o_CXX=yes
13951 # SGI C++ compiler will create directory out/ii_files/ for
13952 # template instantiation
13953 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13954 $RM out/* && rmdir out
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13961 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13966 hard_links="nottested"
13967 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13968 # do not overwrite the value of need_locks provided by the user
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13970 $as_echo_n "checking if we can lock with hard links... " >&6; }
13973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13975 ln conftest.a conftest.b 2>&5 || hard_links=no
13976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13978 $as_echo "$hard_links" >&6; }
13979 if test "$hard_links" = no; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13981 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13996 # If we're using GNU nm, then we don't want the "-C" option.
13997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13998 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13999 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'
14001 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'
14005 export_symbols_cmds_CXX="$ltdll_cmds"
14007 cygwin* | mingw* | cegcc*)
14008 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'
14010 linux* | k*bsd*-gnu)
14011 link_all_deplibs_CXX=no
14014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14017 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14020 $as_echo "$ld_shlibs_CXX" >&6; }
14021 test "$ld_shlibs_CXX" = no && can_build_shared=no
14023 with_gnu_ld_CXX=$with_gnu_ld
14031 # Do we need to explicitly link libc?
14033 case "x$archive_cmds_need_lc_CXX" in
14035 # Assume -lc should be added
14036 archive_cmds_need_lc_CXX=yes
14038 if test "$enable_shared" = yes && test "$GCC" = yes; then
14039 case $archive_cmds_CXX in
14041 # FIXME: we may have to deal with multi-command sequences.
14044 # Test whether the compiler implicitly links with -lc since on some
14045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14046 # to ld, don't add -lc before -lgcc.
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14048 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14053 (eval $ac_compile) 2>&5
14055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14056 test $ac_status = 0; } 2>conftest.err; then
14059 libobjs=conftest.$ac_objext
14061 wl=$lt_prog_compiler_wl_CXX
14062 pic_flag=$lt_prog_compiler_pic_CXX
14068 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14069 allow_undefined_flag_CXX=
14070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14071 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14074 test $ac_status = 0; }
14076 archive_cmds_need_lc_CXX=no
14078 archive_cmds_need_lc_CXX=yes
14080 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14082 cat conftest.err 1>&5
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14086 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14157 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14159 library_names_spec=
14160 libname_spec='lib$name'
14164 postuninstall_cmds=
14168 shlibpath_overrides_runpath=unknown
14170 dynamic_linker="$host_os ld.so"
14171 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14172 need_lib_prefix=unknown
14173 hardcode_into_libs=no
14175 # when you set need_version to no, make sure it does not cause -set_version
14176 # flags to be left without arguments
14177 need_version=unknown
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14183 shlibpath_var=LIBPATH
14185 # AIX 3 has no versioning support, so we append a major version to the name.
14186 soname_spec='${libname}${release}${shared_ext}$major'
14193 hardcode_into_libs=yes
14194 if test "$host_cpu" = ia64; then
14195 # AIX 5 supports IA64
14196 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14197 shlibpath_var=LD_LIBRARY_PATH
14199 # With GCC up to 2.95.x, collect2 would create an import file
14200 # for dependence libraries. The import file would start with
14201 # the line `#! .'. This would cause the generated library to
14202 # depend on `.', always an invalid library. This was fixed in
14203 # development snapshots of GCC prior to 3.0.
14205 aix4 | aix4.[01] | aix4.[01].*)
14206 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14208 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14211 can_build_shared=no
14215 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14216 # soname into executable. Probably we can add versioning support to
14217 # collect2, so additional links can be useful in future.
14218 if test "$aix_use_runtimelinking" = yes; then
14219 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14220 # instead of lib<name>.a to let people know that these are not
14221 # typical AIX shared libraries.
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224 # We preserve .a as extension for shared libraries through AIX4.2
14225 # and later when we are not doing run time linking.
14226 library_names_spec='${libname}${release}.a $libname.a'
14227 soname_spec='${libname}${release}${shared_ext}$major'
14229 shlibpath_var=LIBPATH
14236 # Since July 2007 AmigaOS4 officially supports .so libraries.
14237 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241 library_names_spec='$libname.ixlibrary $libname.a'
14242 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14243 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'
14249 library_names_spec='${libname}${shared_ext}'
14250 dynamic_linker="$host_os ld.so"
14251 shlibpath_var=LIBRARY_PATH
14257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14258 soname_spec='${libname}${release}${shared_ext}$major'
14259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14260 shlibpath_var=LD_LIBRARY_PATH
14261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14263 # the default ld.so.conf also contains /usr/contrib/lib and
14264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14265 # libtool to hard-code these into programs
14268 cygwin* | mingw* | pw32* | cegcc*)
14269 version_type=windows
14274 case $GCC,$host_os in
14275 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14276 library_names_spec='$libname.dll.a'
14277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14278 postinstall_cmds='base_file=`basename \${file}`~
14279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14280 dldir=$destdir/`dirname \$dlpath`~
14281 test -d \$dldir || mkdir -p \$dldir~
14282 $install_prog $dir/$dlname \$dldir/$dlname~
14283 chmod a+x \$dldir/$dlname~
14284 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14285 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14287 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14288 dlpath=$dir/\$dldll~
14290 shlibpath_overrides_runpath=yes
14294 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14295 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14296 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14299 # MinGW DLLs use traditional 'lib' prefix
14300 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14301 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14302 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14303 # It is most probably a Windows format PATH printed by
14304 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14305 # path with ; separators, and with drive letters. We can handle the
14306 # drive letters (cygwin fileutils understands them), so leave them,
14307 # especially as we might pass files found there to a mingw objdump,
14308 # which wouldn't understand a cygwinified path. Ahh.
14309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14315 # pw32 DLLs use 'pw' prefix rather than 'lib'
14316 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14325 dynamic_linker='Win32 ld.exe'
14326 # FIXME: first we should search . and the directory the executable is in
14330 darwin* | rhapsody*)
14331 dynamic_linker="$host_os dyld"
14332 version_type=darwin
14335 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14336 soname_spec='${libname}${release}${major}$shared_ext'
14337 shlibpath_overrides_runpath=yes
14338 shlibpath_var=DYLD_LIBRARY_PATH
14339 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14341 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14357 freebsd* | dragonfly*)
14358 # DragonFly does not have aout. When/if they implement a new
14359 # versioning mechanism, adjust this.
14360 if test -x /usr/bin/objformat; then
14361 objformat=`/usr/bin/objformat`
14364 freebsd[123]*) objformat=aout ;;
14365 *) objformat=elf ;;
14368 version_type=freebsd-$objformat
14369 case $version_type in
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14380 shlibpath_var=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath=yes
14385 freebsd3.[01]* | freebsdelf3.[01]*)
14386 shlibpath_overrides_runpath=yes
14387 hardcode_into_libs=yes
14389 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14390 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14391 shlibpath_overrides_runpath=no
14392 hardcode_into_libs=yes
14394 *) # from 4.6 on, and DragonFly
14395 shlibpath_overrides_runpath=yes
14396 hardcode_into_libs=yes
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 hardcode_into_libs=yes
14411 hpux9* | hpux10* | hpux11*)
14412 # Give a soname corresponding to the major version so that dld.sl refuses to
14413 # link against other versions.
14420 hardcode_into_libs=yes
14421 dynamic_linker="$host_os dld.so"
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 if test "X$HPUX_IA64_MODE" = X32; then
14427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14435 hardcode_into_libs=yes
14436 dynamic_linker="$host_os dld.sl"
14437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14446 dynamic_linker="$host_os dld.sl"
14447 shlibpath_var=SHLIB_PATH
14448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14453 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14454 postinstall_cmds='chmod 555 $lib'
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=no
14466 hardcode_into_libs=yes
14469 irix5* | irix6* | nonstopux*)
14471 nonstopux*) version_type=nonstopux ;;
14473 if test "$lt_cv_prog_gnu_ld" = yes; then
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14484 irix5* | nonstopux*)
14485 libsuff= shlibsuff=
14488 case $LD in # libtool.m4 will add one of these switches to LD
14489 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14490 libsuff= shlibsuff= libmagic=32-bit;;
14491 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14492 libsuff=32 shlibsuff=N32 libmagic=N32;;
14493 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14494 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14495 *) libsuff= shlibsuff= libmagic=never-match;;
14499 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14500 shlibpath_overrides_runpath=no
14501 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14502 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14503 hardcode_into_libs=yes
14506 # No shared lib support for Linux oldld, aout, or coff.
14507 linux*oldld* | linux*aout* | linux*coff*)
14511 # This must be Linux ELF.
14512 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 shlibpath_overrides_runpath=no
14521 # Some binutils ld are patched to set DT_RUNPATH
14522 save_LDFLAGS=$LDFLAGS
14523 save_libdir=$libdir
14524 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14525 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14537 if ac_fn_cxx_try_link "$LINENO"; then :
14538 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14539 shlibpath_overrides_runpath=yes
14542 rm -f core conftest.err conftest.$ac_objext \
14543 conftest$ac_exeext conftest.$ac_ext
14544 LDFLAGS=$save_LDFLAGS
14545 libdir=$save_libdir
14547 # This implies no fast_install, which is unacceptable.
14548 # Some rework will be needed to allow for fast_install
14549 # before this can be enabled.
14550 hardcode_into_libs=yes
14552 # Append ld.so.conf contents to the search path
14553 if test -f /etc/ld.so.conf; then
14554 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' ' '`
14555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14558 # We used to test for /lib/ld.so.1 and disable shared libraries on
14559 # powerpc, because MkLinux only supported shared libraries with the
14560 # GNU dynamic linker. Since this was broken with cross compilers,
14561 # most powerpc-linux boxes support dynamic linking these days and
14562 # people can always --disable-shared, the test was removed, and we
14563 # assume the GNU/Linux dynamic linker is in use.
14564 dynamic_linker='GNU/Linux ld.so'
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath=no
14575 hardcode_into_libs=yes
14576 dynamic_linker='NetBSD ld.elf_so'
14583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14586 dynamic_linker='NetBSD (a.out) ld.so'
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 dynamic_linker='NetBSD ld.elf_so'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 shlibpath_overrides_runpath=yes
14594 hardcode_into_libs=yes
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=yes
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=no
14612 hardcode_into_libs=yes
14613 dynamic_linker='ldqnx.so'
14618 sys_lib_dlsearch_path_spec="/usr/lib"
14620 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14622 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14623 *) need_version=no ;;
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14630 openbsd2.[89] | openbsd2.[89].*)
14631 shlibpath_overrides_runpath=no
14634 shlibpath_overrides_runpath=yes
14638 shlibpath_overrides_runpath=yes
14643 libname_spec='$name'
14646 library_names_spec='$libname${shared_ext} $libname.a'
14647 dynamic_linker='OS/2 ld.exe'
14648 shlibpath_var=LIBPATH
14651 osf3* | osf4* | osf5*)
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14659 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes
14674 hardcode_into_libs=yes
14675 # ldd complains unless libraries are executable
14676 postinstall_cmds='chmod +x $lib'
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14682 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes
14685 if test "$with_gnu_ld" = yes; then
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 case $host_vendor in
14698 shlibpath_overrides_runpath=no
14700 runpath_var=LD_RUN_PATH
14708 shlibpath_overrides_runpath=no
14709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14715 if test -d /usr/nec ;then
14717 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14718 soname_spec='$libname${shared_ext}.$major'
14719 shlibpath_var=LD_LIBRARY_PATH
14723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14724 version_type=freebsd-elf
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14728 soname_spec='${libname}${release}${shared_ext}$major'
14729 shlibpath_var=LD_LIBRARY_PATH
14730 shlibpath_overrides_runpath=yes
14731 hardcode_into_libs=yes
14732 if test "$with_gnu_ld" = yes; then
14733 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14738 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14742 sys_lib_dlsearch_path_spec='/usr/lib'
14746 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=no
14753 hardcode_into_libs=yes
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14768 $as_echo "$dynamic_linker" >&6; }
14769 test "$dynamic_linker" = no && can_build_shared=no
14771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14772 if test "$GCC" = yes; then
14773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14776 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14777 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14779 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14780 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14820 hardcode_action_CXX=
14821 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14822 test -n "$runpath_var_CXX" ||
14823 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14825 # We can hardcode non-existent directories.
14826 if test "$hardcode_direct_CXX" != no &&
14827 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14828 # have to relink, otherwise we might link with an installed library
14829 # when we should be linking with a yet-to-be-installed one
14830 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14831 test "$hardcode_minus_L_CXX" != no; then
14832 # Linking always hardcodes the temporary library directory.
14833 hardcode_action_CXX=relink
14835 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14836 hardcode_action_CXX=immediate
14839 # We cannot hardcode anything, or else we can only hardcode existing
14841 hardcode_action_CXX=unsupported
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14844 $as_echo "$hardcode_action_CXX" >&6; }
14846 if test "$hardcode_action_CXX" = relink ||
14847 test "$inherit_rpath_CXX" = yes; then
14848 # Fast installation is not supported
14849 enable_fast_install=no
14850 elif test "$shlibpath_overrides_runpath" = yes ||
14851 test "$enable_shared" = no; then
14852 # Fast installation is not necessary
14853 enable_fast_install=needless
14862 fi # test -n "$compiler"
14868 with_gnu_ld=$lt_save_with_gnu_ld
14869 lt_cv_path_LDCXX=$lt_cv_path_LD
14870 lt_cv_path_LD=$lt_save_path_LD
14871 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14872 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14873 fi # test "$_lt_caught_CXX_error" != yes
14876 ac_cpp='$CPP $CPPFLAGS'
14877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14882 ac_config_headers="$ac_config_headers config.h"
14884 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
14886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14889 cat >>confdefs.h <<_ACEOF
14890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14897 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14898 if test "x$ac_cv_func_vasprintf" = x""yes; then :
14899 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14902 case " $LIBOBJS " in
14903 *" vasprintf.$ac_objext "* ) ;;
14904 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14914 # Check whether --enable-reauth was given.
14915 if test "${enable_reauth+set}" = set; then :
14916 enableval=$enable_reauth; if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
14919 echo "--enable-reauth argument must be yes or no"
14926 if test "x$reauth" = "xyes" ; then
14927 echo "Fast reauthentication protocol enabled"
14928 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
14930 if test "x$reauth" != "xno"; then
14931 GSSEAP_ENABLE_REAUTH_TRUE=
14932 GSSEAP_ENABLE_REAUTH_FALSE='#'
14934 GSSEAP_ENABLE_REAUTH_TRUE='#'
14935 GSSEAP_ENABLE_REAUTH_FALSE=
14940 # Check whether --enable-acceptor was given.
14941 if test "${enable_acceptor+set}" = set; then :
14942 enableval=$enable_acceptor; if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
14943 acceptor=$enableval
14945 echo "--enable-acceptor argument must be yes or no"
14952 if test "x$acceptor" = "xyes" ; then
14953 echo "acceptor enabled"
14954 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
14956 if test "x$acceptor" != "xno"; then
14957 GSSEAP_ENABLE_ACCEPTOR_TRUE=
14958 GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
14960 GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
14961 GSSEAP_ENABLE_ACCEPTOR_FALSE=
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
14968 $as_echo_n "checking for windows... " >&6; }
14969 target_windows="no"
14970 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14971 if test "x$ac_cv_header_windows_h" = x""yes; then :
14972 target_windows="yes"
14974 target_windows="no"
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
14979 $as_echo "$target_windows" >&6; }
14980 if test "x$target_windows" = "xyes"; then
14981 TARGET_WINDOWS_TRUE=
14982 TARGET_WINDOWS_FALSE='#'
14984 TARGET_WINDOWS_TRUE='#'
14985 TARGET_WINDOWS_FALSE=
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
14990 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
14994 # Check whether --with-krb5 was given.
14995 if test "${with_krb5+set}" = set; then :
14996 withval=$with_krb5; check_krb5_dir="$withval"
15001 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15003 if test -x "$dir/bin/krb5-config"; then
15005 if test "x$target_windows" = "xyes"; then
15006 KRB5_CFLAGS=-I"$check_krb5_dir/include";
15007 KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15008 KRB5_LIBS="-lkrb5_32 -lgssapi32";
15009 COMPILE_ET="$check_krb5_dir/bin/compile_et";
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15011 $as_echo "yes" >&6; }
15013 KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15014 KRB5_LDFLAGS="-L$dir/lib";
15015 KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15017 $as_echo "yes" >&6; }
15018 # Extract the first word of "compile_et", so it can be a program name with args.
15019 set dummy compile_et; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15021 $as_echo_n "checking for $ac_word... " >&6; }
15022 if test "${ac_cv_path_COMPILE_ET+set}" = set; then :
15023 $as_echo_n "(cached) " >&6
15025 case $COMPILE_ET in
15027 ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15031 for as_dir in $dir/bin$PATH_SEPARATOr
15034 test -z "$as_dir" && as_dir=.
15035 for ac_exec_ext in '' $ac_executable_extensions; do
15036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15037 ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15045 test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15049 COMPILE_ET=$ac_cv_path_COMPILE_ET
15050 if test -n "$COMPILE_ET"; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15052 $as_echo "$COMPILE_ET" >&6; }
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15055 $as_echo "no" >&6; }
15063 if test x_$found_krb5 != x_yes; then
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15065 $as_echo "$found_krb5" >&6; }
15067 ----------------------------------------------------------------------
15068 Cannot find GSS-API/Kerberos libraries.
15070 Please install MIT or Heimdal or specify installation directory with
15072 ----------------------------------------------------------------------
15075 printf "Kerberos found in $krb5dir\n";
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15081 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15082 if test "${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+set}" = set; then :
15083 $as_echo_n "(cached) " >&6
15085 ac_check_lib_save_LIBS=$LIBS
15086 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15090 /* Override any GCC internal prototype to avoid an error.
15091 Use char because int might match the return type of a GCC
15092 builtin and then its argument prototype would still apply. */
15096 char GSS_C_NT_COMPOSITE_EXPORT ();
15100 return GSS_C_NT_COMPOSITE_EXPORT ();
15105 if ac_fn_c_try_link "$LINENO"; then :
15106 ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15108 ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15110 rm -f core conftest.err conftest.$ac_objext \
15111 conftest$ac_exeext conftest.$ac_ext
15112 LIBS=$ac_check_lib_save_LIBS
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15115 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15116 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = x""yes; then :
15118 cat >>confdefs.h <<_ACEOF
15119 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15125 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15126 if test "${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+set}" = set; then :
15127 $as_echo_n "(cached) " >&6
15129 ac_check_lib_save_LIBS=$LIBS
15130 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15134 /* Override any GCC internal prototype to avoid an error.
15135 Use char because int might match the return type of a GCC
15136 builtin and then its argument prototype would still apply. */
15140 char gss_inquire_attrs_for_mech ();
15144 return gss_inquire_attrs_for_mech ();
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
15152 ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
15154 rm -f core conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_check_lib_save_LIBS
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
15159 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
15160 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = x""yes; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
15169 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
15170 if test "${ac_cv_lib_krb5_gss_krb5_import_cred+set}" = set; then :
15171 $as_echo_n "(cached) " >&6
15173 ac_check_lib_save_LIBS=$LIBS
15174 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15184 char gss_krb5_import_cred ();
15188 return gss_krb5_import_cred ();
15193 if ac_fn_c_try_link "$LINENO"; then :
15194 ac_cv_lib_krb5_gss_krb5_import_cred=yes
15196 ac_cv_lib_krb5_gss_krb5_import_cred=no
15198 rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200 LIBS=$ac_check_lib_save_LIBS
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
15203 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
15204 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = x""yes; then :
15206 cat >>confdefs.h <<_ACEOF
15207 #define HAVE_GSS_KRB5_IMPORT_CRED 1
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
15213 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
15214 if test "${ac_cv_lib_krb5_heimdal_version+set}" = set; then :
15215 $as_echo_n "(cached) " >&6
15217 ac_check_lib_save_LIBS=$LIBS
15218 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15222 /* Override any GCC internal prototype to avoid an error.
15223 Use char because int might match the return type of a GCC
15224 builtin and then its argument prototype would still apply. */
15228 char heimdal_version ();
15232 return heimdal_version ();
15237 if ac_fn_c_try_link "$LINENO"; then :
15238 ac_cv_lib_krb5_heimdal_version=yes
15240 ac_cv_lib_krb5_heimdal_version=no
15242 rm -f core conftest.err conftest.$ac_objext \
15243 conftest$ac_exeext conftest.$ac_ext
15244 LIBS=$ac_check_lib_save_LIBS
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
15247 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
15248 if test "x$ac_cv_lib_krb5_heimdal_version" = x""yes; then :
15250 cat >>confdefs.h <<_ACEOF
15251 #define HAVE_HEIMDAL_VERSION 1
15258 if test "x$heimdal" != "xno"; then
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
15269 $as_echo_n "checking for OpenSAML implementation... " >&6; }
15271 found_opensaml="no"
15273 # Check whether --with-opensaml was given.
15274 if test "${with_opensaml+set}" = set; then :
15275 withval=$with_opensaml; check_opensaml_dir="$withval"
15277 check_opensaml_dir=
15280 if test x_$check_opensaml_dir != x_no; then
15281 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
15283 if test -f "$dir/include/saml/Assertion.h"; then
15284 found_opensaml="yes";
15285 OPENSAML_DIR="${opensamldir}"
15286 OPENSAML_CXXFLAGS="-I$opensamldir/include";
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
15292 $as_echo "$found_opensaml" >&6; }
15293 if test x_$check_opensaml_dir != x_no; then
15294 if test x_$found_opensaml != x_yes; then
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15296 ----------------------------------------------------------------------
15297 Cannot find OpenSAML libraries, building without OpenSAML support.
15299 Please install OpenSAML or specify installation directory with
15300 --with-opensaml=(dir).
15301 ----------------------------------------------------------------------
15303 $as_echo "$as_me: WARNING:
15304 ----------------------------------------------------------------------
15305 Cannot find OpenSAML libraries, building without OpenSAML support.
15307 Please install OpenSAML or specify installation directory with
15308 --with-opensaml=(dir).
15309 ----------------------------------------------------------------------
15312 printf "OpenSAML found in $opensamldir\n";
15313 OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
15314 OPENSAML_LDFLAGS="-L$opensamldir/lib";
15319 cat >>confdefs.h <<_ACEOF
15320 #define HAVE_OPENSAML 1
15326 if test "x_$check_opensaml_dir" != "x_no"; then
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
15336 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
15338 found_shibresolver="no"
15340 # Check whether --with-shibresolver was given.
15341 if test "${with_shibresolver+set}" = set; then :
15342 withval=$with_shibresolver; check_shibresolver_dir="$withval"
15344 check_shibresolver_dir=
15347 if test x_$check_shibresolver_dir != x_no; then
15348 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
15349 shibresolverdir="$dir"
15350 if test -f "$dir/include/shibresolver/resolver.h"; then
15351 found_shibresolver="yes";
15352 SHIBRESOLVER_DIR="${shibresolverdir}"
15353 SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
15359 $as_echo "$found_shibresolver" >&6; }
15360 if test x_$check_shibresolver_dir != x_no; then
15361 if test x_$found_shibresolver != x_yes; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15363 ----------------------------------------------------------------------
15364 Cannot find Shibboleth resolver libraries, building without
15365 Shibboleth support.
15367 Please install Shibboleth or specify installation directory with
15368 --with-shibresolver=(dir).
15369 ----------------------------------------------------------------------
15371 $as_echo "$as_me: WARNING:
15372 ----------------------------------------------------------------------
15373 Cannot find Shibboleth resolver libraries, building without
15374 Shibboleth support.
15376 Please install Shibboleth or specify installation directory with
15377 --with-shibresolver=(dir).
15378 ----------------------------------------------------------------------
15381 printf "Shibboleth resolver found in $shibresolverdir\n";
15382 SHIBRESOLVER_LIBS="-lshibresolver";
15383 SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
15388 cat >>confdefs.h <<_ACEOF
15389 #define HAVE_SHIBRESOLVER 1
15395 if test "x_$check_shibresolver_dir" != "x_no"; then
15397 SHIBRESOLVER_FALSE='#'
15399 SHIBRESOLVER_TRUE='#'
15400 SHIBRESOLVER_FALSE=
15403 if test x_$found_shibresolver = x_yes; then
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
15405 $as_echo_n "checking for Shibboleth implementation... " >&6; }
15409 # Check whether --with-shibsp was given.
15410 if test "${with_shibsp+set}" = set; then :
15411 withval=$with_shibsp; check_shibsp_dir="$withval"
15416 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
15418 if test -f "$dir/include/shibsp/SPConfig.h"; then
15419 found_shibsp="yes";
15420 SHIBSP_DIR="${shibspdir}"
15421 SHIBSP_CXXFLAGS="-I$shibspdir/include";
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
15426 $as_echo "$found_shibsp" >&6; }
15427 if test x_$found_shibsp != x_yes; then
15429 ----------------------------------------------------------------------
15430 Cannot find Shibboleth libraries.
15432 Please install Shibboleth or specify installation directory with
15433 --with-shibsp=(dir).
15434 ----------------------------------------------------------------------
15437 printf "Shibboleth found in $shibspdir\n";
15438 SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
15439 SHIBSP_LDFLAGS="-L$shibspdir/lib";
15444 cat >>confdefs.h <<_ACEOF
15445 #define HAVE_SHIBSP 1
15452 if test "x$acceptor" = "xyes" ; then
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
15454 $as_echo_n "checking for radsec... " >&6; }
15458 # Check whether --with-radsec was given.
15459 if test "${with_radsec+set}" = set; then :
15460 withval=$with_radsec; check_radsec_dir="$withval"
15465 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
15467 if test -f "$dir/include/radsec/radsec.h"; then
15468 found_radsec="yes";
15469 RADSEC_DIR="${radsecdir}"
15470 RADSEC_CFLAGS="-I$radsecdir/include";
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
15475 $as_echo "$found_radsec" >&6; }
15476 if test x_$found_radsec != x_yes; then
15478 ----------------------------------------------------------------------
15479 Cannot find radsec libraries.
15481 Please install libradsec or specify installation directory with
15482 --with-radsec=(dir).
15483 ----------------------------------------------------------------------
15486 printf "radsec found in $radsecdir\n";
15487 RADSEC_LIBS="-lradsec";
15488 RADSEC_LDFLAGS="-L$radsecdir/lib";
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15495 $as_echo_n "checking for jansson... " >&6; }
15499 # Check whether --with-jansson was given.
15500 if test "${with_jansson+set}" = set; then :
15501 withval=$with_jansson; check_jansson_dir="$withval"
15506 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
15508 if test -f "$dir/include/jansson.h"; then
15509 found_jansson="yes";
15510 JANSSON_DIR="${janssondir}"
15511 JANSSON_CFLAGS="-I$janssondir/include";
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
15516 $as_echo "$found_jansson" >&6; }
15517 if test x_$found_jansson != x_yes; then
15519 ----------------------------------------------------------------------
15520 Cannot find jansson libraries.
15522 Please install libjansson or specify installation directory with
15523 --with-jansson=(dir).
15524 ----------------------------------------------------------------------
15527 printf "jansson found in $janssondir\n";
15528 JANSSON_LIBS="-ljansson";
15529 JANSSON_LDFLAGS="-L$janssondir/lib";
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
15538 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
15540 LIBMOONSHOT_CFLAGS=
15541 LIBMOONSHOT_LDFLAGS=
15543 found_libmoonshot="no"
15545 # Check whether --with-libmoonshot was given.
15546 if test "${with_libmoonshot+set}" = set; then :
15547 withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
15549 check_libmoonshot_dir=
15552 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
15553 libmoonshotdir="$dir"
15554 if test -f "$dir/include/libmoonshot.h"; then
15555 found_libmoonshot="yes";
15556 LIBMOONSHOT_DIR="${libmoonshotdir}"
15557 LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
15562 $as_echo "$found_libmoonshot" >&6; }
15563 if test x_$found_libmoonshot = x_yes; then
15564 printf "libmoonshot found in $libmoonshotdir\n";
15565 LIBMOONSHOT_LIBS="-lmoonshot";
15566 LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
15568 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
15569 if test "${ac_cv_lib_moonshot_moonshot_get_identity+set}" = set; then :
15570 $as_echo_n "(cached) " >&6
15572 ac_check_lib_save_LIBS=$LIBS
15573 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15577 /* Override any GCC internal prototype to avoid an error.
15578 Use char because int might match the return type of a GCC
15579 builtin and then its argument prototype would still apply. */
15583 char moonshot_get_identity ();
15587 return moonshot_get_identity ();
15592 if ac_fn_c_try_link "$LINENO"; then :
15593 ac_cv_lib_moonshot_moonshot_get_identity=yes
15595 ac_cv_lib_moonshot_moonshot_get_identity=no
15597 rm -f core conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
15602 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
15603 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = x""yes; then :
15605 cat >>confdefs.h <<_ACEOF
15606 #define HAVE_MOONSHOT_GET_IDENTITY 1
15615 if test "x$found_libmoonshot" != "xno"; then
15617 LIBMOONSHOT_FALSE='#'
15619 LIBMOONSHOT_TRUE='#'
15624 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
15626 cat >confcache <<\_ACEOF
15627 # This file is a shell script that caches the results of configure
15628 # tests run on this system so they can be shared between configure
15629 # scripts and configure runs, see configure's option --config-cache.
15630 # It is not useful on other systems. If it contains results you don't
15631 # want to keep, you may remove or edit it.
15633 # config.status only pays attention to the cache file if you give it
15634 # the --recheck option to rerun configure.
15636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15638 # following values.
15642 # The following way of writing the cache mishandles newlines in values,
15643 # but we know of no workaround that is simple, portable, and efficient.
15644 # So, we kill variables containing newlines.
15645 # Ultrix sh set writes to stderr and can't be redirected directly,
15646 # and sets the high bit in the cache file unless we assign to the vars.
15648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15649 eval ac_val=\$$ac_var
15653 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15654 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15657 _ | IFS | as_nl) ;; #(
15658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15659 *) { eval $ac_var=; unset $ac_var;} ;;
15665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15666 *${as_nl}ac_space=\ *)
15667 # `set' does not quote correctly, so add quotes: double-quote
15668 # substitution turns \\\\ into \\, and sed turns \\ into \.
15671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15674 # `set' quotes correctly as required by POSIX, so do not add quotes.
15675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15689 if test -w "$cache_file"; then
15690 test "x$cache_file" != "x/dev/null" &&
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15692 $as_echo "$as_me: updating cache $cache_file" >&6;}
15693 cat confcache >$cache_file
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15696 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15702 # Let make expand exec_prefix.
15703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15705 DEFS=-DHAVE_CONFIG_H
15710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15711 # 1. Remove the extension, and $U if already installed.
15712 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15713 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15714 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15715 # will be set to the directory where LIBOBJS objects are built.
15716 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15717 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15719 LIBOBJS=$ac_libobjs
15721 LTLIBOBJS=$ac_ltlibobjs
15724 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15725 as_fn_error $? "conditional \"AMDEP\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15729 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15732 if test -n "$EXEEXT"; then
15734 am__EXEEXT_FALSE='#'
15736 am__EXEEXT_TRUE='#'
15740 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15741 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15744 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15745 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15748 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15749 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
15753 as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
15757 as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
15761 as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
15762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15764 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
15765 as_fn_error $? "conditional \"HEIMDAL\" was never defined.
15766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15768 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
15769 as_fn_error $? "conditional \"OPENSAML\" was never defined.
15770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15772 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
15773 as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
15774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15776 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
15777 as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
15778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15781 : ${CONFIG_STATUS=./config.status}
15783 ac_clean_files_save=$ac_clean_files
15784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15786 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15788 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15790 # Generated by $as_me.
15791 # Run this file to recreate the current configuration.
15792 # Compiler output produced by configure, useful for debugging
15793 # configure, is in config.log if it exists.
15796 ac_cs_recheck=false
15799 SHELL=\${CONFIG_SHELL-$SHELL}
15802 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15803 ## -------------------- ##
15804 ## M4sh Initialization. ##
15805 ## -------------------- ##
15807 # Be more Bourne compatible
15808 DUALCASE=1; export DUALCASE # for MKS sh
15809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15813 # is contrary to our usage. Disable this feature.
15814 alias -g '${1+"$@"}'='"$@"'
15815 setopt NO_GLOB_SUBST
15817 case `(set -o) 2>/dev/null` in #(
15829 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15830 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15833 # Prefer a ksh shell builtin over an external printf program on Solaris,
15834 # but without wasting forks for bash or zsh.
15835 if test -z "$BASH_VERSION$ZSH_VERSION" \
15836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15837 as_echo='print -r --'
15838 as_echo_n='print -rn --'
15839 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15840 as_echo='printf %s\n'
15841 as_echo_n='printf %s'
15843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15845 as_echo_n='/usr/ucb/echo -n'
15847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15848 as_echo_n_body='eval
15852 expr "X$arg" : "X\\(.*\\)$as_nl";
15853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15857 export as_echo_n_body
15858 as_echo_n='sh -c $as_echo_n_body as_echo'
15860 export as_echo_body
15861 as_echo='sh -c $as_echo_body as_echo'
15864 # The user is always right.
15865 if test "${PATH_SEPARATOR+set}" != set; then
15867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15875 # We need space, tab and new line, in precisely that order. Quoting is
15876 # there to prevent editors from complaining about space-tab.
15877 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15878 # splitting by setting IFS to empty value.)
15881 # Find who we are. Look in the path if we contain no directory separator.
15883 *[\\/]* ) as_myself=$0 ;;
15884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH
15888 test -z "$as_dir" && as_dir=.
15889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15895 # We did not find ourselves, most probably we were run as `sh COMMAND'
15896 # in which case we are not to be found in the path.
15897 if test "x$as_myself" = x; then
15900 if test ! -f "$as_myself"; then
15901 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15905 # Unset variables that we do not need and which cause bugs (e.g. in
15906 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15907 # suppresses any "Segmentation fault" message there. '((' could
15908 # trigger a bug in pdksh 5.2.14.
15909 for as_var in BASH_ENV ENV MAIL MAILPATH
15910 do eval test x\${$as_var+set} = xset \
15911 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15924 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15927 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15928 # ----------------------------------------
15929 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15930 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15931 # script with STATUS, using 1 if that was 0.
15934 as_status=$1; test $as_status -eq 0 && as_status=1
15936 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15937 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15939 $as_echo "$as_me: error: $2" >&2
15940 as_fn_exit $as_status
15944 # as_fn_set_status STATUS
15945 # -----------------------
15946 # Set $? to STATUS, without forking.
15947 as_fn_set_status ()
15950 } # as_fn_set_status
15952 # as_fn_exit STATUS
15953 # -----------------
15954 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15958 as_fn_set_status $1
15964 # Portably unset VAR.
15967 { eval $1=; unset $1;}
15969 as_unset=as_fn_unset
15970 # as_fn_append VAR VALUE
15971 # ----------------------
15972 # Append the text in VALUE to the end of the definition contained in VAR. Take
15973 # advantage of any shell optimizations that allow amortized linear growth over
15974 # repeated appends, instead of the typical quadratic growth present in naive
15976 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15977 eval 'as_fn_append ()
15988 # as_fn_arith ARG...
15989 # ------------------
15990 # Perform arithmetic evaluation on the ARGs, and store the result in the
15991 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15992 # must be portable across $(()) and expr.
15993 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15994 eval 'as_fn_arith ()
16001 as_val=`expr "$@" || test $? -eq 1`
16006 if expr a : '\(a\)' >/dev/null 2>&1 &&
16007 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16013 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16014 as_basename=basename
16019 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16025 as_me=`$as_basename -- "$0" ||
16026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16027 X"$0" : 'X\(//\)$' \| \
16028 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16030 sed '/^.*\/\([^/][^/]*\)\/*$/{
16044 # Avoid depending upon Character Ranges.
16045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16048 as_cr_digits='0123456789'
16049 as_cr_alnum=$as_cr_Letters$as_cr_digits
16051 ECHO_C= ECHO_N= ECHO_T=
16052 case `echo -n x` in #(((((
16054 case `echo 'xy\c'` in
16055 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16057 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16064 rm -f conf$$ conf$$.exe conf$$.file
16065 if test -d conf$$.dir; then
16066 rm -f conf$$.dir/conf$$.file
16069 mkdir conf$$.dir 2>/dev/null
16071 if (echo >conf$$.file) 2>/dev/null; then
16072 if ln -s conf$$.file conf$$ 2>/dev/null; then
16074 # ... but there are two gotchas:
16075 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16076 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16077 # In both cases, we have to default to `cp -p'.
16078 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16080 elif ln conf$$.file conf$$ 2>/dev/null; then
16088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16089 rmdir conf$$.dir 2>/dev/null
16094 # Create "$as_dir" as a directory, including parents if necessary.
16099 -*) as_dir=./$as_dir;;
16101 test -d "$as_dir" || eval $as_mkdir_p || {
16105 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16106 *) as_qdir=$as_dir;;
16108 as_dirs="'$as_qdir' $as_dirs"
16109 as_dir=`$as_dirname -- "$as_dir" ||
16110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16111 X"$as_dir" : 'X\(//\)[^/]' \| \
16112 X"$as_dir" : 'X\(//\)$' \| \
16113 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16114 $as_echo X"$as_dir" |
16115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16119 /^X\(\/\/\)[^/].*/{
16132 test -d "$as_dir" && break
16134 test -z "$as_dirs" || eval "mkdir $as_dirs"
16135 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16139 if mkdir -p . 2>/dev/null; then
16140 as_mkdir_p='mkdir -p "$as_dir"'
16142 test -d ./-p && rmdir ./-p
16146 if test -x / >/dev/null 2>&1; then
16147 as_test_x='test -x'
16149 if ls -dL / >/dev/null 2>&1; then
16156 if test -d "$1"; then
16162 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16163 ???[sx]*):;;*)false;;esac;fi
16167 as_executable_p=$as_test_x
16169 # Sed expression to map a string onto a valid CPP name.
16170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16172 # Sed expression to map a string onto a valid variable name.
16173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16177 ## ----------------------------------- ##
16178 ## Main body of $CONFIG_STATUS script. ##
16179 ## ----------------------------------- ##
16181 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 # Save the log message, to keep $0 and so on meaningful, and to
16185 # report actual input values of CONFIG_FILES etc. instead of their
16186 # values after options handling.
16188 This file was extended by mech_eap $as_me 0.1, which was
16189 generated by GNU Autoconf 2.67. Invocation command line was
16191 CONFIG_FILES = $CONFIG_FILES
16192 CONFIG_HEADERS = $CONFIG_HEADERS
16193 CONFIG_LINKS = $CONFIG_LINKS
16194 CONFIG_COMMANDS = $CONFIG_COMMANDS
16197 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16202 case $ac_config_files in *"
16203 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16206 case $ac_config_headers in *"
16207 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212 # Files that config.status was made for.
16213 config_files="$ac_config_files"
16214 config_headers="$ac_config_headers"
16215 config_commands="$ac_config_commands"
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16221 \`$as_me' instantiates files and other configuration actions
16222 from templates according to the current configuration. Unless the files
16223 and actions are specified as TAGs, all are instantiated by default.
16225 Usage: $0 [OPTION]... [TAG]...
16227 -h, --help print this help, then exit
16228 -V, --version print version number and configuration settings, then exit
16229 --config print configuration, then exit
16230 -q, --quiet, --silent
16231 do not print progress messages
16232 -d, --debug don't remove temporary files
16233 --recheck update $as_me by reconfiguring in the same conditions
16234 --file=FILE[:TEMPLATE]
16235 instantiate the configuration file FILE
16236 --header=FILE[:TEMPLATE]
16237 instantiate the configuration header FILE
16239 Configuration files:
16242 Configuration headers:
16245 Configuration commands:
16248 Report bugs to <bugs@project-moonshot.org>."
16251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16254 mech_eap config.status 0.1
16255 configured by $0, generated by GNU Autoconf 2.67,
16256 with options \\"\$ac_cs_config\\"
16258 Copyright (C) 2010 Free Software Foundation, Inc.
16259 This config.status script is free software; the Free Software Foundation
16260 gives unlimited permission to copy, distribute and modify it."
16267 test -n "\$AWK" || AWK=awk
16270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16271 # The default lists apply if the user does not specify any file.
16277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16294 # Handling of the options.
16295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16298 $as_echo "$ac_cs_version"; exit ;;
16299 --config | --confi | --conf | --con | --co | --c )
16300 $as_echo "$ac_cs_config"; exit ;;
16301 --debug | --debu | --deb | --de | --d | -d )
16303 --file | --fil | --fi | --f )
16306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16307 '') as_fn_error $? "missing file argument" ;;
16309 as_fn_append CONFIG_FILES " '$ac_optarg'"
16310 ac_need_defaults=false;;
16311 --header | --heade | --head | --hea )
16314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16316 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16317 ac_need_defaults=false;;
16319 # Conflict between --help and --header
16320 as_fn_error $? "ambiguous option: \`$1'
16321 Try \`$0 --help' for more information.";;
16322 --help | --hel | -h )
16323 $as_echo "$ac_cs_usage"; exit ;;
16324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16328 # This is an error.
16329 -*) as_fn_error $? "unrecognized option: \`$1'
16330 Try \`$0 --help' for more information." ;;
16332 *) as_fn_append ac_config_targets " $1"
16333 ac_need_defaults=false ;;
16339 ac_configure_extra_args=
16341 if $ac_cs_silent; then
16343 ac_configure_extra_args="$ac_configure_extra_args --silent"
16347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16348 if \$ac_cs_recheck; then
16349 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16352 CONFIG_SHELL='$SHELL'
16353 export CONFIG_SHELL
16358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16363 ## Running $as_me. ##
16369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16376 # The HP-UX ksh and POSIX shell print the target directory to stdout
16377 # if CDPATH is set.
16378 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16380 sed_quote_subst='$sed_quote_subst'
16381 double_quote_subst='$double_quote_subst'
16382 delay_variable_subst='$delay_variable_subst'
16383 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16384 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16385 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16386 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16387 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16388 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16389 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16390 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16391 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16392 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16393 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16394 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16395 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16396 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16397 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16398 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16399 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16400 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16401 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16402 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16403 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16404 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16405 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16406 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16407 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16408 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16409 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16410 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16411 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16412 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16413 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16414 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16415 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16416 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16417 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16418 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16419 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16420 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16421 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16422 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16423 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16424 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16425 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16426 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16427 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16428 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16429 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"`'
16430 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"`'
16431 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16432 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16433 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16434 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16435 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16436 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16437 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16438 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16439 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16440 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16441 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16442 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16443 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16444 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16445 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16446 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16447 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16448 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16449 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16450 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16451 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16452 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16453 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16454 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16455 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16456 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16457 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16458 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16459 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16460 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16461 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16462 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16463 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16464 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16465 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16466 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16467 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16468 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16469 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16470 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16471 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16472 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16473 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16474 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16475 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16476 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16477 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16478 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16479 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16480 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16481 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16482 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16483 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16484 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16485 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16486 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16487 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16488 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16489 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16490 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16491 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16492 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16493 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16494 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16495 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16496 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16497 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16498 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16499 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16500 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16501 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16502 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16503 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16504 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16505 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16506 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16507 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16508 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16509 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16510 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16511 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16512 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16513 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16514 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16515 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16516 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16517 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16518 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16519 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16520 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16521 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16522 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16523 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16524 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16525 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16526 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16527 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16528 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16529 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16530 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16531 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16532 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16533 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16534 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16535 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16536 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16537 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16538 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16539 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16540 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16541 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16542 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16543 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16544 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16545 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16546 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16547 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16548 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16549 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16550 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16551 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16552 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16553 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16554 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16555 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16558 LTCFLAGS='$LTCFLAGS'
16559 compiler='$compiler_DEFAULT'
16561 # Quote evaled strings.
16572 deplibs_check_method \
16581 lt_cv_sys_global_symbol_pipe \
16582 lt_cv_sys_global_symbol_to_cdecl \
16583 lt_cv_sys_global_symbol_to_c_name_address \
16584 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16587 lt_prog_compiler_no_builtin_flag \
16588 lt_prog_compiler_wl \
16589 lt_prog_compiler_pic \
16590 lt_prog_compiler_static \
16591 lt_cv_prog_compiler_c_o \
16599 export_dynamic_flag_spec \
16600 whole_archive_flag_spec \
16601 compiler_needs_object \
16603 allow_undefined_flag \
16604 no_undefined_flag \
16605 hardcode_libdir_flag_spec \
16606 hardcode_libdir_flag_spec_ld \
16607 hardcode_libdir_separator \
16612 variables_saved_for_relink \
16614 library_names_spec \
16619 compiler_lib_search_dirs \
16624 compiler_lib_search_path \
16627 lt_prog_compiler_no_builtin_flag_CXX \
16628 lt_prog_compiler_wl_CXX \
16629 lt_prog_compiler_pic_CXX \
16630 lt_prog_compiler_static_CXX \
16631 lt_cv_prog_compiler_c_o_CXX \
16632 export_dynamic_flag_spec_CXX \
16633 whole_archive_flag_spec_CXX \
16634 compiler_needs_object_CXX \
16636 allow_undefined_flag_CXX \
16637 no_undefined_flag_CXX \
16638 hardcode_libdir_flag_spec_CXX \
16639 hardcode_libdir_flag_spec_ld_CXX \
16640 hardcode_libdir_separator_CXX \
16641 fix_srcfile_path_CXX \
16642 exclude_expsyms_CXX \
16643 include_expsyms_CXX \
16644 file_list_spec_CXX \
16645 compiler_lib_search_dirs_CXX \
16646 predep_objects_CXX \
16647 postdep_objects_CXX \
16650 compiler_lib_search_path_CXX; do
16651 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16652 *[\\\\\\\`\\"\\\$]*)
16653 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16656 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16661 # Double-quote double-evaled strings.
16662 for var in reload_cmds \
16663 old_postinstall_cmds \
16664 old_postuninstall_cmds \
16666 extract_expsyms_cmds \
16667 old_archive_from_new_cmds \
16668 old_archive_from_expsyms_cmds \
16670 archive_expsym_cmds \
16672 module_expsym_cmds \
16673 export_symbols_cmds \
16676 postuninstall_cmds \
16678 sys_lib_search_path_spec \
16679 sys_lib_dlsearch_path_spec \
16680 old_archive_cmds_CXX \
16681 old_archive_from_new_cmds_CXX \
16682 old_archive_from_expsyms_cmds_CXX \
16684 archive_expsym_cmds_CXX \
16686 module_expsym_cmds_CXX \
16687 export_symbols_cmds_CXX \
16688 prelink_cmds_CXX; do
16689 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16690 *[\\\\\\\`\\"\\\$]*)
16691 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16694 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16699 # Fix-up fallback echo if it was mangled by the above quoting rules.
16701 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16705 ac_aux_dir='$ac_aux_dir'
16706 xsi_shell='$xsi_shell'
16707 lt_shell_append='$lt_shell_append'
16709 # See if we are running on zsh, and set the options which allow our
16710 # commands through without removal of \ escapes INIT.
16711 if test -n "\${ZSH_VERSION+set}" ; then
16712 setopt NO_GLOB_SUBST
16718 TIMESTAMP='$TIMESTAMP'
16729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16731 # Handling of arguments.
16732 for ac_config_target in $ac_config_targets
16734 case $ac_config_target in
16735 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16736 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16737 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16738 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16739 "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
16740 "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
16741 "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
16743 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16748 # If the user did not use the arguments to specify the items to instantiate,
16749 # then the envvar interface is used. Set only those that are not.
16750 # We use the long form for the default assignment because of an extremely
16751 # bizarre bug on SunOS 4.1.3.
16752 if $ac_need_defaults; then
16753 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16754 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16755 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16758 # Have a temporary directory for convenience. Make it in the build tree
16759 # simply because there is no reason against having it here, and in addition,
16760 # creating and moving files from /tmp can sometimes cause problems.
16761 # Hook for its removal unless debugging.
16762 # Note that there is a small window in which the directory will not be cleaned:
16763 # after its creation but before its name has been assigned to `$tmp'.
16767 trap 'exit_status=$?
16768 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16770 trap 'as_fn_exit 1' 1 2 13 15
16772 # Create a (secure) tmp directory for tmp files.
16775 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16776 test -n "$tmp" && test -d "$tmp"
16779 tmp=./conf$$-$RANDOM
16780 (umask 077 && mkdir "$tmp")
16781 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16783 # Set up the scripts for CONFIG_FILES section.
16784 # No need to generate them if there are no CONFIG_FILES.
16785 # This happens for instance with `./config.status config.h'.
16786 if test -n "$CONFIG_FILES"; then
16789 ac_cr=`echo X | tr X '\015'`
16790 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16791 # But we know of no other shell where ac_cr would be empty at this
16792 # point, so we can use a bashism as a fallback.
16793 if test "x$ac_cr" = x; then
16794 eval ac_cr=\$\'\\r\'
16796 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16797 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16800 ac_cs_awk_cr=$ac_cr
16803 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16808 echo "cat >conf$$subs.awk <<_ACEOF" &&
16809 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16811 } >conf$$subs.sh ||
16812 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16813 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16815 for ac_last_try in false false false false false :; do
16816 . ./conf$$subs.sh ||
16817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16819 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16820 if test $ac_delim_n = $ac_delim_num; then
16822 elif $ac_last_try; then
16823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16828 rm -f conf$$subs.sh
16830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16835 s/^/S["/; s/!.*/"]=/
16845 s/\(.\{148\}\)..*/\1/
16847 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16859 s/\(.\{148\}\)..*/\1/
16861 s/["\\]/\\&/g; s/^/"/; s/$/"/
16865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16870 ' <conf$$subs.awk | sed '
16875 ' >>$CONFIG_STATUS || ac_write_fail=1
16876 rm -f conf$$subs.awk
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16879 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16880 for (key in S) S_is_set[key] = 1
16886 nfields = split(line, field, "@")
16888 len = length(field[1])
16889 for (i = 2; i < nfields; i++) {
16891 keylen = length(key)
16892 if (S_is_set[key]) {
16894 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16895 len += length(value) + length(field[++i])
16906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16907 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16908 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16911 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16912 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16915 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16916 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16917 # trailing colons and then remove the whole line if VPATH becomes empty
16918 # (actually we leave an empty line to preserve line numbers).
16919 if test "x$srcdir" = x.; then
16920 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16939 fi # test -n "$CONFIG_FILES"
16941 # Set up the scripts for CONFIG_HEADERS section.
16942 # No need to generate them if there are no CONFIG_HEADERS.
16943 # This happens for instance with `./config.status Makefile'.
16944 if test -n "$CONFIG_HEADERS"; then
16945 cat >"$tmp/defines.awk" <<\_ACAWK ||
16949 # Transform confdefs.h into an awk script `defines.awk', embedded as
16950 # here-document in config.status, that substitutes the proper values into
16951 # config.h.in to produce config.h.
16953 # Create a delimiter string that does not exist in confdefs.h, to ease
16954 # handling of long lines.
16956 for ac_last_try in false false :; do
16957 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16958 if test -z "$ac_t"; then
16960 elif $ac_last_try; then
16961 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16967 # For the awk script, D is an array of macro values keyed by name,
16968 # likewise P contains macro parameters if any. Preserve backslash
16969 # newline sequences.
16971 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16973 s/.\{148\}/&'"$ac_delim"'/g
16976 s/^[ ]*#[ ]*define[ ][ ]*/ /
16983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16990 D["\1"]=" \3\\\\\\n"\\/p
16992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16997 s/.\{148\}/&'"$ac_delim"'/g
17002 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17005 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17007 ' <confdefs.h | sed '
17008 s/'"$ac_delim"'/"\\\
17009 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17012 for (key in D) D_is_set[key] = 1
17015 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17017 split(line, arg, " ")
17018 if (arg[1] == "#") {
17022 defundef = substr(arg[1], 2)
17025 split(mac1, mac2, "(") #)
17027 prefix = substr(line, 1, index(line, defundef) - 1)
17028 if (D_is_set[macro]) {
17029 # Preserve the white space surrounding the "#".
17030 print prefix "define", macro P[macro] D[macro]
17033 # Replace #undef with comments. This is necessary, for example,
17034 # in the case of _POSIX_SOURCE, which is predefined and required
17035 # on some systems where configure will not decide to define it.
17036 if (defundef == "undef") {
17037 print "/*", prefix defundef, macro, "*/"
17045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17046 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17047 fi # test -n "$CONFIG_HEADERS"
17050 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17055 :[FHLC]) ac_mode=$ac_tag; continue;;
17057 case $ac_mode$ac_tag in
17059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17060 :[FH]-) ac_tag=-:-;;
17061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17078 -) ac_f="$tmp/stdin";;
17079 *) # Look for the file first in the build tree, then in the source tree
17080 # (if the path is not absolute). The absolute path cannot be DOS-style,
17081 # because $ac_f cannot contain `:'.
17085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17087 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17089 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17090 as_fn_append ac_file_inputs " '$ac_f'"
17093 # Let's still pretend it is `configure' which instantiates (i.e., don't
17094 # use $as_me), people would be surprised to read:
17095 # /* config.h. Generated by config.status. */
17096 configure_input='Generated from '`
17097 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17099 if test x"$ac_file" != x-; then
17100 configure_input="$ac_file. $configure_input"
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17102 $as_echo "$as_me: creating $ac_file" >&6;}
17104 # Neutralize special characters interpreted by sed in replacement strings.
17105 case $configure_input in #(
17106 *\&* | *\|* | *\\* )
17107 ac_sed_conf_input=`$as_echo "$configure_input" |
17108 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17109 *) ac_sed_conf_input=$configure_input;;
17113 *:-:* | *:-) cat >"$tmp/stdin" \
17114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17119 ac_dir=`$as_dirname -- "$ac_file" ||
17120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17121 X"$ac_file" : 'X\(//\)[^/]' \| \
17122 X"$ac_file" : 'X\(//\)$' \| \
17123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17124 $as_echo X"$ac_file" |
17125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17129 /^X\(\/\/\)[^/].*/{
17142 as_dir="$ac_dir"; as_fn_mkdir_p
17146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17149 # A ".." for each directory in $ac_dir_suffix.
17150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17151 case $ac_top_builddir_sub in
17152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17156 ac_abs_top_builddir=$ac_pwd
17157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17158 # for backward compatibility:
17159 ac_top_builddir=$ac_top_build_prefix
17162 .) # We are building in place.
17164 ac_top_srcdir=$ac_top_builddir_sub
17165 ac_abs_top_srcdir=$ac_pwd ;;
17166 [\\/]* | ?:[\\/]* ) # Absolute name.
17167 ac_srcdir=$srcdir$ac_dir_suffix;
17168 ac_top_srcdir=$srcdir
17169 ac_abs_top_srcdir=$srcdir ;;
17170 *) # Relative name.
17171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17172 ac_top_srcdir=$ac_top_build_prefix$srcdir
17173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17186 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17188 ac_MKDIR_P=$MKDIR_P
17190 [\\/$]* | ?:[\\/]* ) ;;
17191 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17196 # If the template does not know about datarootdir, expand it.
17197 # FIXME: This hack should be removed a few years after 2.60.
17198 ac_datarootdir_hack=; ac_datarootdir_seen=
17209 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17210 *datarootdir*) ac_datarootdir_seen=yes;;
17211 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17213 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216 ac_datarootdir_hack='
17217 s&@datadir@&$datadir&g
17218 s&@docdir@&$docdir&g
17219 s&@infodir@&$infodir&g
17220 s&@localedir@&$localedir&g
17221 s&@mandir@&$mandir&g
17222 s&\\\${datarootdir}&$datarootdir&g' ;;
17226 # Neutralize VPATH when `$srcdir' = `.'.
17227 # Shell code in configure.ac might set extrasub.
17228 # FIXME: do we really want to maintain this feature?
17229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17230 ac_sed_extra="$ac_vpsub
17233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17236 s|@configure_input@|$ac_sed_conf_input|;t t
17237 s&@top_builddir@&$ac_top_builddir_sub&;t t
17238 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17239 s&@srcdir@&$ac_srcdir&;t t
17240 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17241 s&@top_srcdir@&$ac_top_srcdir&;t t
17242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17243 s&@builddir@&$ac_builddir&;t t
17244 s&@abs_builddir@&$ac_abs_builddir&;t t
17245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17246 s&@INSTALL@&$ac_INSTALL&;t t
17247 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17248 $ac_datarootdir_hack
17250 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17253 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17254 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17255 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17257 which seems to be undefined. Please make sure it is defined" >&5
17258 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17259 which seems to be undefined. Please make sure it is defined" >&2;}
17263 -) cat "$tmp/out" && rm -f "$tmp/out";;
17264 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17272 if test x"$ac_file" != x-; then
17274 $as_echo "/* $configure_input */" \
17275 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17276 } >"$tmp/config.h" \
17277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17278 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17280 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17283 mv "$tmp/config.h" "$ac_file" \
17284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17287 $as_echo "/* $configure_input */" \
17288 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17289 || as_fn_error $? "could not create -" "$LINENO" 5
17291 # Compute "$ac_file"'s index in $config_headers.
17294 for _am_header in $config_headers :; do
17295 case $_am_header in
17296 $_am_arg | $_am_arg:* )
17299 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17302 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17303 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17304 X"$_am_arg" : 'X\(//\)[^/]' \| \
17305 X"$_am_arg" : 'X\(//\)$' \| \
17306 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17307 $as_echo X"$_am_arg" |
17308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17312 /^X\(\/\/\)[^/].*/{
17324 s/.*/./; q'`/stamp-h$_am_stamp_count
17327 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17328 $as_echo "$as_me: executing $ac_file commands" >&6;}
17333 case $ac_file$ac_mode in
17334 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17335 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17336 # are listed without --file. Let's play safe and only enable the eval
17337 # if we detect the quoting.
17338 case $CONFIG_FILES in
17339 *\'*) eval set x "$CONFIG_FILES" ;;
17340 *) set x $CONFIG_FILES ;;
17345 # Strip MF so we end up with the name of the file.
17346 mf=`echo "$mf" | sed -e 's/:.*$//'`
17347 # Check whether this is an Automake generated Makefile or not.
17348 # We used to match only the files named `Makefile.in', but
17349 # some people rename them; so instead we look at the file content.
17350 # Grep'ing the first line is not enough: some people post-process
17351 # each Makefile.in and add a new line on top of each file to say so.
17352 # Grep'ing the whole file is not good either: AIX grep has a line
17353 # limit of 2048, but all sed's we know have understand at least 4000.
17354 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17355 dirpart=`$as_dirname -- "$mf" ||
17356 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17357 X"$mf" : 'X\(//\)[^/]' \| \
17358 X"$mf" : 'X\(//\)$' \| \
17359 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17365 /^X\(\/\/\)[^/].*/{
17381 # Extract the definition of DEPDIR, am__include, and am__quote
17382 # from the Makefile without running `make'.
17383 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17384 test -z "$DEPDIR" && continue
17385 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17386 test -z "am__include" && continue
17387 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17388 # When using ansi2knr, U may be empty or an underscore; expand it
17389 U=`sed -n 's/^U = //p' < "$mf"`
17390 # Find all dependency output files, they are included files with
17391 # $(DEPDIR) in their names. We invoke sed twice because it is the
17392 # simplest approach to changing $(DEPDIR) to its actual value in the
17394 for file in `sed -n "
17395 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17396 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17397 # Make sure the directory exists.
17398 test -f "$dirpart/$file" && continue
17399 fdir=`$as_dirname -- "$file" ||
17400 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17401 X"$file" : 'X\(//\)[^/]' \| \
17402 X"$file" : 'X\(//\)$' \| \
17403 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17404 $as_echo X"$file" |
17405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17409 /^X\(\/\/\)[^/].*/{
17422 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17423 # echo "creating $dirpart/$file"
17424 echo '# dummy' > "$dirpart/$file"
17431 # See if we are running on zsh, and set the options which allow our
17432 # commands through without removal of \ escapes.
17433 if test -n "${ZSH_VERSION+set}" ; then
17434 setopt NO_GLOB_SUBST
17437 cfgfile="${ofile}T"
17438 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17441 cat <<_LT_EOF >> "$cfgfile"
17444 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17445 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17446 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17447 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17449 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17450 # 2006, 2007, 2008 Free Software Foundation, Inc.
17451 # Written by Gordon Matzigkeit, 1996
17453 # This file is part of GNU Libtool.
17455 # GNU Libtool is free software; you can redistribute it and/or
17456 # modify it under the terms of the GNU General Public License as
17457 # published by the Free Software Foundation; either version 2 of
17458 # the License, or (at your option) any later version.
17460 # As a special exception to the GNU General Public License,
17461 # if you distribute this file as part of a program or library that
17462 # is built using GNU Libtool, you may include this file under the
17463 # same distribution terms that you use for the rest of that program.
17465 # GNU Libtool is distributed in the hope that it will be useful,
17466 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17467 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17468 # GNU General Public License for more details.
17470 # You should have received a copy of the GNU General Public License
17471 # along with GNU Libtool; see the file COPYING. If not, a copy
17472 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17473 # obtained by writing to the Free Software Foundation, Inc.,
17474 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17477 # The names of the tagged configurations supported by this script.
17478 available_tags="CXX "
17480 # ### BEGIN LIBTOOL CONFIG
17482 # Which release of libtool.m4 was used?
17483 macro_version=$macro_version
17484 macro_revision=$macro_revision
17486 # Whether or not to build static libraries.
17487 build_old_libs=$enable_static
17489 # Assembler program.
17492 # DLL creation program.
17495 # Object dumper program.
17498 # Whether or not to build shared libraries.
17499 build_libtool_libs=$enable_shared
17501 # What type of objects to build.
17504 # Whether or not to optimize for fast installation.
17505 fast_install=$enable_fast_install
17508 host_alias=$host_alias
17512 # The build system.
17513 build_alias=$build_alias
17517 # A sed program that does not truncate output.
17520 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17521 Xsed="\$SED -e 1s/^X//"
17523 # A grep program that handles long lines.
17529 # A literal string matcher.
17532 # A BSD- or MS-compatible name lister.
17535 # Whether we need soft or hard links.
17538 # What is the maximum length of a command?
17539 max_cmd_len=$max_cmd_len
17541 # Object file suffix (normally "o").
17544 # Executable file suffix (normally "").
17547 # whether the shell understands "unset".
17550 # turn spaces into newlines.
17553 # turn newlines into spaces.
17556 # How to create reloadable object files.
17557 reload_flag=$lt_reload_flag
17558 reload_cmds=$lt_reload_cmds
17560 # Method to check whether dependent libraries are shared objects.
17561 deplibs_check_method=$lt_deplibs_check_method
17563 # Command to use when deplibs_check_method == "file_magic".
17564 file_magic_cmd=$lt_file_magic_cmd
17568 AR_FLAGS=$lt_AR_FLAGS
17570 # A symbol stripping program.
17573 # Commands used to install an old-style archive.
17575 old_postinstall_cmds=$lt_old_postinstall_cmds
17576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17581 # LTCC compiler flags.
17582 LTCFLAGS=$lt_CFLAGS
17584 # Take the output of nm and produce a listing of raw symbols and C names.
17585 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17587 # Transform the output of nm in a proper C declaration.
17588 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17590 # Transform the output of nm in a C name address pair.
17591 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17593 # Transform the output of nm in a C name address pair when lib prefix is needed.
17594 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17596 # The name of the directory that contains temporary libtool files.
17599 # Shell to use when invoking shell scripts.
17602 # An echo program that does not interpret backslashes.
17605 # Used to examine libraries when file_magic_cmd begins with "file".
17606 MAGIC_CMD=$MAGIC_CMD
17608 # Must we lock files when doing compilation?
17609 need_locks=$lt_need_locks
17611 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17612 DSYMUTIL=$lt_DSYMUTIL
17614 # Tool to change global to local symbols on Mac OS X.
17617 # Tool to manipulate fat objects and archives on Mac OS X.
17620 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17623 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17624 OTOOL64=$lt_OTOOL64
17626 # Old archive suffix (normally "a").
17629 # Shared library suffix (normally ".so").
17630 shrext_cmds=$lt_shrext_cmds
17632 # The commands to extract the exported symbol list from a shared archive.
17633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17635 # Variables whose values should be saved in libtool wrapper scripts and
17636 # restored at link time.
17637 variables_saved_for_relink=$lt_variables_saved_for_relink
17639 # Do we need the "lib" prefix for modules?
17640 need_lib_prefix=$need_lib_prefix
17642 # Do we need a version for libraries?
17643 need_version=$need_version
17645 # Library versioning type.
17646 version_type=$version_type
17648 # Shared library runtime path variable.
17649 runpath_var=$runpath_var
17651 # Shared library path variable.
17652 shlibpath_var=$shlibpath_var
17654 # Is shlibpath searched before the hard-coded library search path?
17655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17657 # Format of library name prefix.
17658 libname_spec=$lt_libname_spec
17660 # List of archive names. First name is the real one, the rest are links.
17661 # The last name is the one that the linker finds with -lNAME
17662 library_names_spec=$lt_library_names_spec
17664 # The coded name of the library, if different from the real name.
17665 soname_spec=$lt_soname_spec
17667 # Command to use after installation of a shared archive.
17668 postinstall_cmds=$lt_postinstall_cmds
17670 # Command to use after uninstallation of a shared archive.
17671 postuninstall_cmds=$lt_postuninstall_cmds
17673 # Commands used to finish a libtool library installation in a directory.
17674 finish_cmds=$lt_finish_cmds
17676 # As "finish_cmds", except a single script fragment to be evaled but
17678 finish_eval=$lt_finish_eval
17680 # Whether we should hardcode library paths into libraries.
17681 hardcode_into_libs=$hardcode_into_libs
17683 # Compile-time system search path for libraries.
17684 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17686 # Run-time system search path for libraries.
17687 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17689 # Whether dlopen is supported.
17690 dlopen_support=$enable_dlopen
17692 # Whether dlopen of programs is supported.
17693 dlopen_self=$enable_dlopen_self
17695 # Whether dlopen of statically linked programs is supported.
17696 dlopen_self_static=$enable_dlopen_self_static
17698 # Commands to strip libraries.
17699 old_striplib=$lt_old_striplib
17700 striplib=$lt_striplib
17703 # The linker used to build libraries.
17706 # Commands used to build an old-style archive.
17707 old_archive_cmds=$lt_old_archive_cmds
17709 # A language specific compiler.
17712 # Is the compiler the GNU compiler?
17715 # Compiler flag to turn off builtin functions.
17716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17718 # How to pass a linker flag through the compiler.
17719 wl=$lt_lt_prog_compiler_wl
17721 # Additional compiler flags for building library objects.
17722 pic_flag=$lt_lt_prog_compiler_pic
17724 # Compiler flag to prevent dynamic linking.
17725 link_static_flag=$lt_lt_prog_compiler_static
17727 # Does compiler simultaneously support -c and -o options?
17728 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17730 # Whether or not to add -lc for building shared libraries.
17731 build_libtool_need_lc=$archive_cmds_need_lc
17733 # Whether or not to disallow shared libs when runtime libs are static.
17734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17736 # Compiler flag to allow reflexive dlopens.
17737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17739 # Compiler flag to generate shared objects directly from archives.
17740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17742 # Whether the compiler copes with passing no objects directly.
17743 compiler_needs_object=$lt_compiler_needs_object
17745 # Create an old-style archive from a shared archive.
17746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17748 # Create a temporary old-style archive to link instead of a shared archive.
17749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17751 # Commands used to build a shared archive.
17752 archive_cmds=$lt_archive_cmds
17753 archive_expsym_cmds=$lt_archive_expsym_cmds
17755 # Commands used to build a loadable module if different from building
17756 # a shared archive.
17757 module_cmds=$lt_module_cmds
17758 module_expsym_cmds=$lt_module_expsym_cmds
17760 # Whether we are building with GNU ld or not.
17761 with_gnu_ld=$lt_with_gnu_ld
17763 # Flag that allows shared libraries with undefined symbols to be built.
17764 allow_undefined_flag=$lt_allow_undefined_flag
17766 # Flag that enforces no undefined symbols.
17767 no_undefined_flag=$lt_no_undefined_flag
17769 # Flag to hardcode \$libdir into a binary during linking.
17770 # This must work even if \$libdir does not exist
17771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17773 # If ld is used when linking, flag to hardcode \$libdir into a binary
17774 # during linking. This must work even if \$libdir does not exist.
17775 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17777 # Whether we need a single "-rpath" flag with a separated argument.
17778 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17780 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17781 # DIR into the resulting binary.
17782 hardcode_direct=$hardcode_direct
17784 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17785 # DIR into the resulting binary and the resulting library dependency is
17786 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17787 # library is relocated.
17788 hardcode_direct_absolute=$hardcode_direct_absolute
17790 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17791 # into the resulting binary.
17792 hardcode_minus_L=$hardcode_minus_L
17794 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17795 # into the resulting binary.
17796 hardcode_shlibpath_var=$hardcode_shlibpath_var
17798 # Set to "yes" if building a shared library automatically hardcodes DIR
17799 # into the library and all subsequent libraries and executables linked
17801 hardcode_automatic=$hardcode_automatic
17803 # Set to yes if linker adds runtime paths of dependent libraries
17804 # to runtime path list.
17805 inherit_rpath=$inherit_rpath
17807 # Whether libtool must link a program against all its dependency libraries.
17808 link_all_deplibs=$link_all_deplibs
17810 # Fix the shell variable \$srcfile for the compiler.
17811 fix_srcfile_path=$lt_fix_srcfile_path
17813 # Set to "yes" if exported symbols are required.
17814 always_export_symbols=$always_export_symbols
17816 # The commands to list exported symbols.
17817 export_symbols_cmds=$lt_export_symbols_cmds
17819 # Symbols that should not be listed in the preloaded symbols.
17820 exclude_expsyms=$lt_exclude_expsyms
17822 # Symbols that must always be exported.
17823 include_expsyms=$lt_include_expsyms
17825 # Commands necessary for linking programs (against libraries) with templates.
17826 prelink_cmds=$lt_prelink_cmds
17828 # Specify filename containing input files.
17829 file_list_spec=$lt_file_list_spec
17831 # How to hardcode a shared library path into an executable.
17832 hardcode_action=$hardcode_action
17834 # The directories searched by this compiler when creating a shared library.
17835 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17837 # Dependencies to place before and after the objects being linked to
17838 # create a shared library.
17839 predep_objects=$lt_predep_objects
17840 postdep_objects=$lt_postdep_objects
17841 predeps=$lt_predeps
17842 postdeps=$lt_postdeps
17844 # The library search path used internally by the compiler when linking
17845 # a shared library.
17846 compiler_lib_search_path=$lt_compiler_lib_search_path
17848 # ### END LIBTOOL CONFIG
17854 cat <<\_LT_EOF >> "$cfgfile"
17855 # AIX sometimes has problems with the GCC collect2 program. For some
17856 # reason, if we set the COLLECT_NAMES environment variable, the problems
17857 # vanish in a puff of smoke.
17858 if test "X${COLLECT_NAMES+set}" != Xset; then
17860 export COLLECT_NAMES
17867 ltmain="$ac_aux_dir/ltmain.sh"
17870 # We use sed instead of cat because bash on DJGPP gets confused if
17871 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17872 # text mode, it properly converts lines to CR/LF. This bash problem
17873 # is reportedly fixed, but why not run on old versions too?
17874 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17875 || (rm -f "$cfgfile"; exit 1)
17879 cat << \_LT_EOF >> "$cfgfile"
17881 # func_dirname file append nondir_replacement
17882 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17883 # otherwise set result to NONDIR_REPLACEMENT.
17887 */*) func_dirname_result="${1%/*}${2}" ;;
17888 * ) func_dirname_result="${3}" ;;
17892 # func_basename file
17895 func_basename_result="${1##*/}"
17898 # func_dirname_and_basename file append nondir_replacement
17899 # perform func_basename and func_dirname in a single function
17901 # dirname: Compute the dirname of FILE. If nonempty,
17902 # add APPEND to the result, otherwise set result
17903 # to NONDIR_REPLACEMENT.
17904 # value returned in "$func_dirname_result"
17905 # basename: Compute filename of FILE.
17906 # value retuned in "$func_basename_result"
17907 # Implementation must be kept synchronized with func_dirname
17908 # and func_basename. For efficiency, we do not delegate to
17909 # those functions but instead duplicate the functionality here.
17910 func_dirname_and_basename ()
17913 */*) func_dirname_result="${1%/*}${2}" ;;
17914 * ) func_dirname_result="${3}" ;;
17916 func_basename_result="${1##*/}"
17919 # func_stripname prefix suffix name
17920 # strip PREFIX and SUFFIX off of NAME.
17921 # PREFIX and SUFFIX must not contain globbing or regex special
17922 # characters, hashes, percent signs, but SUFFIX may contain a leading
17923 # dot (in which case that matches only a dot).
17926 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17927 # positional parameters, so assign one to ordinary parameter first.
17928 func_stripname_result=${3}
17929 func_stripname_result=${func_stripname_result#"${1}"}
17930 func_stripname_result=${func_stripname_result%"${2}"}
17936 func_opt_split_opt=${1%%=*}
17937 func_opt_split_arg=${1#*=}
17944 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17945 *) func_lo2o_result=${1} ;;
17949 # func_xform libobj-or-source
17952 func_xform_result=${1%.*}.lo
17955 # func_arith arithmetic-term...
17958 func_arith_result=$(( $* ))
17962 # STRING may not start with a hyphen.
17965 func_len_result=${#1}
17970 *) # Bourne compatible functions.
17971 cat << \_LT_EOF >> "$cfgfile"
17973 # func_dirname file append nondir_replacement
17974 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17975 # otherwise set result to NONDIR_REPLACEMENT.
17978 # Extract subdirectory from the argument.
17979 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17980 if test "X$func_dirname_result" = "X${1}"; then
17981 func_dirname_result="${3}"
17983 func_dirname_result="$func_dirname_result${2}"
17987 # func_basename file
17990 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17994 # func_stripname prefix suffix name
17995 # strip PREFIX and SUFFIX off of NAME.
17996 # PREFIX and SUFFIX must not contain globbing or regex special
17997 # characters, hashes, percent signs, but SUFFIX may contain a leading
17998 # dot (in which case that matches only a dot).
17999 # func_strip_suffix prefix name
18003 .*) func_stripname_result=`$ECHO "X${3}" \
18004 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18005 *) func_stripname_result=`$ECHO "X${3}" \
18006 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18011 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18012 my_sed_long_arg='1s/^-[^=]*=//'
18017 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18018 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18024 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18027 # func_xform libobj-or-source
18030 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18033 # func_arith arithmetic-term...
18036 func_arith_result=`expr "$@"`
18040 # STRING may not start with a hyphen.
18043 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18049 case $lt_shell_append in
18051 cat << \_LT_EOF >> "$cfgfile"
18053 # func_append var value
18054 # Append VALUE to the end of shell variable VAR.
18062 cat << \_LT_EOF >> "$cfgfile"
18064 # func_append var value
18065 # Append VALUE to the end of shell variable VAR.
18076 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18077 || (rm -f "$cfgfile"; exit 1)
18079 mv -f "$cfgfile" "$ofile" ||
18080 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18084 cat <<_LT_EOF >> "$ofile"
18086 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18088 # The linker used to build libraries.
18091 # Commands used to build an old-style archive.
18092 old_archive_cmds=$lt_old_archive_cmds_CXX
18094 # A language specific compiler.
18095 CC=$lt_compiler_CXX
18097 # Is the compiler the GNU compiler?
18100 # Compiler flag to turn off builtin functions.
18101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18103 # How to pass a linker flag through the compiler.
18104 wl=$lt_lt_prog_compiler_wl_CXX
18106 # Additional compiler flags for building library objects.
18107 pic_flag=$lt_lt_prog_compiler_pic_CXX
18109 # Compiler flag to prevent dynamic linking.
18110 link_static_flag=$lt_lt_prog_compiler_static_CXX
18112 # Does compiler simultaneously support -c and -o options?
18113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18115 # Whether or not to add -lc for building shared libraries.
18116 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18118 # Whether or not to disallow shared libs when runtime libs are static.
18119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18121 # Compiler flag to allow reflexive dlopens.
18122 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18124 # Compiler flag to generate shared objects directly from archives.
18125 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18127 # Whether the compiler copes with passing no objects directly.
18128 compiler_needs_object=$lt_compiler_needs_object_CXX
18130 # Create an old-style archive from a shared archive.
18131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18133 # Create a temporary old-style archive to link instead of a shared archive.
18134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18136 # Commands used to build a shared archive.
18137 archive_cmds=$lt_archive_cmds_CXX
18138 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18140 # Commands used to build a loadable module if different from building
18141 # a shared archive.
18142 module_cmds=$lt_module_cmds_CXX
18143 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18145 # Whether we are building with GNU ld or not.
18146 with_gnu_ld=$lt_with_gnu_ld_CXX
18148 # Flag that allows shared libraries with undefined symbols to be built.
18149 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18151 # Flag that enforces no undefined symbols.
18152 no_undefined_flag=$lt_no_undefined_flag_CXX
18154 # Flag to hardcode \$libdir into a binary during linking.
18155 # This must work even if \$libdir does not exist
18156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18158 # If ld is used when linking, flag to hardcode \$libdir into a binary
18159 # during linking. This must work even if \$libdir does not exist.
18160 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18162 # Whether we need a single "-rpath" flag with a separated argument.
18163 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18165 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18166 # DIR into the resulting binary.
18167 hardcode_direct=$hardcode_direct_CXX
18169 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18170 # DIR into the resulting binary and the resulting library dependency is
18171 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18172 # library is relocated.
18173 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18175 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18176 # into the resulting binary.
18177 hardcode_minus_L=$hardcode_minus_L_CXX
18179 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18180 # into the resulting binary.
18181 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18183 # Set to "yes" if building a shared library automatically hardcodes DIR
18184 # into the library and all subsequent libraries and executables linked
18186 hardcode_automatic=$hardcode_automatic_CXX
18188 # Set to yes if linker adds runtime paths of dependent libraries
18189 # to runtime path list.
18190 inherit_rpath=$inherit_rpath_CXX
18192 # Whether libtool must link a program against all its dependency libraries.
18193 link_all_deplibs=$link_all_deplibs_CXX
18195 # Fix the shell variable \$srcfile for the compiler.
18196 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18198 # Set to "yes" if exported symbols are required.
18199 always_export_symbols=$always_export_symbols_CXX
18201 # The commands to list exported symbols.
18202 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18204 # Symbols that should not be listed in the preloaded symbols.
18205 exclude_expsyms=$lt_exclude_expsyms_CXX
18207 # Symbols that must always be exported.
18208 include_expsyms=$lt_include_expsyms_CXX
18210 # Commands necessary for linking programs (against libraries) with templates.
18211 prelink_cmds=$lt_prelink_cmds_CXX
18213 # Specify filename containing input files.
18214 file_list_spec=$lt_file_list_spec_CXX
18216 # How to hardcode a shared library path into an executable.
18217 hardcode_action=$hardcode_action_CXX
18219 # The directories searched by this compiler when creating a shared library.
18220 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18222 # Dependencies to place before and after the objects being linked to
18223 # create a shared library.
18224 predep_objects=$lt_predep_objects_CXX
18225 postdep_objects=$lt_postdep_objects_CXX
18226 predeps=$lt_predeps_CXX
18227 postdeps=$lt_postdeps_CXX
18229 # The library search path used internally by the compiler when linking
18230 # a shared library.
18231 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18233 # ### END LIBTOOL TAG CONFIG: CXX
18244 ac_clean_files=$ac_clean_files_save
18246 test $ac_write_fail = 0 ||
18247 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18250 # configure is writing to config.log, and then calls config.status.
18251 # config.status does its own redirection, appending to config.log.
18252 # Unfortunately, on DOS this fails, as config.log is still kept open
18253 # by configure, so config.status won't be able to write to it; its
18254 # output is simply discarded. So we exec the FD to /dev/null,
18255 # effectively closing config.log, so it can be properly (re)opened and
18256 # appended to by config.status. When coming back to configure, we
18257 # need to make the FD available again.
18258 if test "$no_create" != yes; then
18260 ac_config_status_args=
18261 test "$silent" = yes &&
18262 ac_config_status_args="$ac_config_status_args --quiet"
18264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18267 # would make configure fail if this is the last instruction.
18268 $ac_cs_success || as_fn_exit 1
18270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}