2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for nlassert g4646da4.
5 # Report bugs to <nlassert-users@google.com>.
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: nlassert-users@google.com about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='nlassert'
572 PACKAGE_TARNAME='nlassert'
573 PACKAGE_VERSION='g4646da4'
574 PACKAGE_STRING='nlassert g4646da4'
575 PACKAGE_BUGREPORT='nlassert-users@google.com'
576 PACKAGE_URL='https://github.com/nestlabs/nlassert/'
578 ac_unique_file="include/nlassert.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 enable_option_checking=no
617 ac_subst_vars='am__EXEEXT_FALSE
621 NLUNIT_TEST_FOREIGN_SUBDIR_DEPENDENCY
623 NLASSERT_WITH_NLUNIT_TEST_INTERNAL_FALSE
624 NLASSERT_WITH_NLUNIT_TEST_INTERNAL_TRUE
630 NLASSERT_BUILD_DOCS_FALSE
631 NLASSERT_BUILD_DOCS_TRUE
635 NLASSERT_BUILD_TESTS_FALSE
636 NLASSERT_BUILD_TESTS_TRUE
637 NLASSERT_BUILD_OPTIMIZED_FALSE
638 NLASSERT_BUILD_OPTIMIZED_TRUE
639 NLASSERT_BUILD_COVERAGE_REPORTS_FALSE
640 NLASSERT_BUILD_COVERAGE_REPORTS_TRUE
643 NLASSERT_BUILD_COVERAGE_FALSE
644 NLASSERT_BUILD_COVERAGE_TRUE
645 NLASSERT_BUILD_DEBUG_FALSE
646 NLASSERT_BUILD_DEBUG_TRUE
698 MAINTAINER_MODE_FALSE
712 INSTALL_STRIP_PROGRAM
727 nl_filtered_target_os
728 nl_filtered_target_vendor
729 nl_filtered_target_cpu
732 nl_filtered_host_vendor
736 nl_filtered_build_vendor
737 nl_filtered_build_cpu
751 LIBNLASSERT_VERSION_INFO
752 LIBNLASSERT_VERSION_REVISION
753 LIBNLASSERT_VERSION_AGE
754 LIBNLASSERT_VERSION_CURRENT
755 abs_top_nlbuild_autotools_dir
756 nlbuild_autotools_stem
784 program_transform_name
797 enable_option_checking
799 enable_maintainer_mode
800 enable_dependency_tracking
810 enable_coverage_reports
815 with_nlunit_test_includes
816 with_nlunit_test_libs
818 ac_precious_vars='build_alias
836 ac_subdirs_all='third_party/nlunit-test/repo'
838 # Initialize some variables set by options.
840 ac_init_version=false
841 ac_unrecognized_opts=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
852 program_transform_name=s,x,x,
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
996 -help | --help | --hel | --he | -h)
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1145 -site=* | --site=* | --sit=*)
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=no ;;
1204 # Obsolete; use --with-x.
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1272 # Be sure to have absolute directory names.
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used" >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures nlassert g4646da4 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/nlassert]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of nlassert g4646da4:";;
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful (and
1461 sometimes confusing) to the casual installer
1462 --enable-dependency-tracking
1463 do not reject slow dependency extractors
1464 --disable-dependency-tracking
1465 speeds up one-time build
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --enable-debug Enable the generation of debug instances
1473 --enable-coverage Enable the generation of code-coverage instances
1475 --enable-coverage-reports
1476 Enable the generation of code coverage reports
1477 (requires lcov) [default=auto].
1478 --enable-optimization Enable the generation of code-optimized instances
1480 --enable-tests Enable building of tests [default=yes].
1481 --disable-docs Enable building documentation (requires Doxygen)
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-sysroot=DIR Search for dependent libraries within DIR
1491 (or the compiler's sysroot if not specified).
1492 --with-nlunit_test=DIR Specify location of the required Nlunit-test headers
1493 and libraries [default=internal].
1494 --with-nlunit_test-includes=DIR
1495 Specify location of required Nlunit-test headers
1497 --with-nlunit_test-libs=DIR
1498 Specify location of required Nlunit-test libraries
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1512 CXXCPP C++ preprocessor
1513 DOXYGEN Doxygen executable
1514 DOT GraphViz 'dot' executable, which may be used, when present, to
1515 generate Doxygen class graphs
1516 NLUNIT_TEST_CPPFLAGS
1517 Nlunit-test C preprocessor flags
1519 Nlunit-test linker flags
1521 Nlunit-test linker libraries
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1526 Report bugs to <nlassert-users@google.com>.
1527 nlassert home page: <https://github.com/nestlabs/nlassert/>.
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1557 .) # We are building in place.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1590 nlassert configure g4646da4
1591 generated by GNU Autoconf 2.68
1593 Copyright (C) 2010 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_compile
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } > conftest.i && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1679 # ac_fn_cxx_try_compile LINENO
1680 # ----------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_cxx_try_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_cxx_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_cxx_try_compile
1717 # ac_fn_cxx_try_cpp LINENO
1718 # ------------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_cxx_try_cpp ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } > conftest.i && {
1739 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1740 test ! -s conftest.err
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_cxx_try_cpp
1754 # ac_fn_c_try_link LINENO
1755 # -----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext conftest$ac_exeext
1761 if { { ac_try="$ac_link"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest$ac_exeext && {
1780 test "$cross_compiling" = yes ||
1781 $as_test_x conftest$ac_exeext
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792 # interfere with the next link command; also delete a directory that is
1793 # left behind by Apple's compiler. We do this before executing the actions.
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1798 } # ac_fn_c_try_link
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_header_compile
1831 # ac_fn_c_try_run LINENO
1832 # ----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834 # that executables *can* be run.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { { ac_try="$ac_link"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849 { { case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_try") 2>&5
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; }; }; then :
1861 $as_echo "$as_me: program exited with status $ac_status" >&5
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=$ac_status
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1884 if test x$ac_no_link = xyes; then
1885 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891 #define $2 innocuous_$2
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
1899 # include <limits.h>
1901 # include <assert.h>
1906 /* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined __stub_$2 || defined __stub___$2
1928 if ac_fn_c_try_link "$LINENO"; then :
1933 rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 } # ac_fn_c_check_func
1943 # ac_fn_cxx_try_link LINENO
1944 # -------------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_cxx_try_link ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext conftest$ac_exeext
1950 if { { ac_try="$ac_link"
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>conftest.err
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_cxx_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest$ac_exeext && {
1969 test "$cross_compiling" = yes ||
1970 $as_test_x conftest$ac_exeext
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1979 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1980 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1981 # interfere with the next link command; also delete a directory that is
1982 # left behind by Apple's compiler. We do this before executing the actions.
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1987 } # ac_fn_cxx_try_link
1989 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1990 # -------------------------------------------------------
1991 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1992 # the include files in INCLUDES and setting the cache variable VAR
1994 ac_fn_c_check_header_mongrel ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if eval \${$3+:} false; then :
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2007 # Is the header compilable?
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2009 $as_echo_n "checking $2 usability... " >&6; }
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_header_compiler=yes
2018 ac_header_compiler=no
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2022 $as_echo "$ac_header_compiler" >&6; }
2024 # Is the header present?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2026 $as_echo_n "checking $2 presence... " >&6; }
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 if ac_fn_c_try_cpp "$LINENO"; then :
2032 ac_header_preproc=yes
2034 ac_header_preproc=no
2036 rm -f conftest.err conftest.i conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2038 $as_echo "$ac_header_preproc" >&6; }
2040 # So? What about this header?
2041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2044 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2050 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2052 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2054 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2056 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 ( $as_echo "## ---------------------------------------- ##
2060 ## Report this to nlassert-users@google.com ##
2061 ## ---------------------------------------- ##"
2062 ) | sed "s/^/$as_me: WARNING: /" >&2
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2070 eval "$3=\$ac_header_compiler"
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_header_mongrel
2080 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2081 # -------------------------------------------
2082 # Tests whether TYPE exists after having included INCLUDES, setting cache
2083 # variable VAR accordingly.
2084 ac_fn_c_check_type ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if eval \${$3+:} false; then :
2090 $as_echo_n "(cached) " >&6
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2118 if ac_fn_c_try_compile "$LINENO"; then :
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_type
2134 # ac_fn_c_find_intX_t LINENO BITS VAR
2135 # -----------------------------------
2136 # Finds a signed integer type with width BITS, setting cache variable VAR
2138 ac_fn_c_find_intX_t ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2142 $as_echo_n "checking for int$2_t... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2147 # Order is important - never check a type that is potentially smaller
2148 # than half of the expected target width.
2149 for ac_type in int$2_t 'int' 'long int' \
2150 'long long int' 'short int' 'signed char'; do
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 $ac_includes_default
2154 enum { N = $2 / 2 - 1 };
2158 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 $ac_includes_default
2169 enum { N = $2 / 2 - 1 };
2173 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2174 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2188 eval "$3=\$ac_type" ;;
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 if eval test \"x\$"$3"\" = x"no"; then :
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_c_find_intX_t
2208 # ac_fn_c_find_uintX_t LINENO BITS VAR
2209 # ------------------------------------
2210 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2212 ac_fn_c_find_uintX_t ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2216 $as_echo_n "checking for uint$2_t... " >&6; }
2217 if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2221 # Order is important - never check a type that is potentially smaller
2222 # than half of the expected target width.
2223 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2224 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2227 $ac_includes_default
2231 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2238 if ac_fn_c_try_compile "$LINENO"; then :
2243 eval "$3=\$ac_type" ;;
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 if eval test \"x\$"$3"\" = x"no"; then :
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_c_find_uintX_t
2260 cat >config.log <<_ACEOF
2261 This file contains any messages produced by compilers while
2262 running configure, to aid debugging if configure makes a mistake.
2264 It was created by nlassert $as_me g4646da4, which was
2265 generated by GNU Autoconf 2.68. Invocation command line was
2277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2286 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2287 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2288 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2290 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2291 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2292 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 $as_echo "PATH: $as_dir"
2317 # Keep a trace of the command line.
2318 # Strip out --no-create and --no-recursion so they do not pile up.
2319 # Strip out --silent because we don't want to record it for future runs.
2320 # Also quote any args containing shell meta-characters.
2321 # Make two passes to allow for proper duplicate-argument suppression.
2325 ac_must_keep_next=false
2331 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2333 | -silent | --silent | --silen | --sile | --sil)
2336 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2341 as_fn_append ac_configure_args1 " '$ac_arg'"
2342 if test $ac_must_keep_next = true; then
2343 ac_must_keep_next=false # Got value, back to normal.
2346 *=* | --config-cache | -C | -disable-* | --disable-* \
2347 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2348 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2349 | -with-* | --with-* | -without-* | --without-* | --x)
2350 case "$ac_configure_args0 " in
2351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 -* ) ac_must_keep_next=true ;;
2357 as_fn_append ac_configure_args " '$ac_arg'"
2362 { ac_configure_args0=; unset ac_configure_args0;}
2363 { ac_configure_args1=; unset ac_configure_args1;}
2365 # When interrupted or exit'd, cleanup temporary files, and complete
2366 # config.log. We remove comments because anyway the quotes in there
2367 # would cause problems or look ugly.
2368 # WARNING: Use '\'' to represent an apostrophe within the trap.
2369 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2370 trap 'exit_status=$?
2371 # Save into config.log some information that might help in debugging.
2375 $as_echo "## ---------------- ##
2376 ## Cache variables. ##
2377 ## ---------------- ##"
2379 # The following way of writing the cache mishandles newlines in values,
2381 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2382 eval ac_val=\$$ac_var
2386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2387 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2390 _ | IFS | as_nl) ;; #(
2391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2392 *) { eval $ac_var=; unset $ac_var;} ;;
2397 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2398 *${as_nl}ac_space=\ *)
2400 "s/'\''/'\''\\\\'\'''\''/g;
2401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411 $as_echo "## ----------------- ##
2412 ## Output variables. ##
2413 ## ----------------- ##"
2415 for ac_var in $ac_subst_vars
2417 eval ac_val=\$$ac_var
2419 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 $as_echo "$ac_var='\''$ac_val'\''"
2425 if test -n "$ac_subst_files"; then
2426 $as_echo "## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##"
2430 for ac_var in $ac_subst_files
2432 eval ac_val=\$$ac_var
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 $as_echo "$ac_var='\''$ac_val'\''"
2441 if test -s confdefs.h; then
2442 $as_echo "## ----------- ##
2449 test "$ac_signal" != 0 &&
2450 $as_echo "$as_me: caught signal $ac_signal"
2451 $as_echo "$as_me: exit $exit_status"
2453 rm -f core *.core core.conftest.* &&
2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 for ac_signal in 1 2 13 15; do
2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2463 rm -f -r conftest* confdefs.h
2465 $as_echo "/* confdefs.h */" > confdefs.h
2467 # Predefined preprocessor variables.
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_URL "$PACKAGE_URL"
2494 # Let the site file select an alternate cache file if it wants to.
2495 # Prefer an explicitly selected file to automatically selected ones.
2498 if test -n "$CONFIG_SITE"; then
2499 # We do not want a PATH search for config.site.
2500 case $CONFIG_SITE in #((
2501 -*) ac_site_file1=./$CONFIG_SITE;;
2502 */*) ac_site_file1=$CONFIG_SITE;;
2503 *) ac_site_file1=./$CONFIG_SITE;;
2505 elif test "x$prefix" != xNONE; then
2506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
2509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
2512 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2514 test "x$ac_site_file" = xNONE && continue
2515 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518 sed 's/^/| /' "$ac_site_file" >&5
2520 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 as_fn_error $? "failed to load site script $ac_site_file
2523 See \`config.log' for more details" "$LINENO" 5; }
2527 if test -r "$cache_file"; then
2528 # Some versions of bash will fail to source /dev/null (special files
2529 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2530 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532 $as_echo "$as_me: loading cache $cache_file" >&6;}
2534 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2535 *) . "./$cache_file";;
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540 $as_echo "$as_me: creating cache $cache_file" >&6;}
2544 # Check that the precious variables saved in the cache have kept the same
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2594 if $ac_cache_corrupted; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2601 ## -------------------- ##
2602 ## Main body of script. ##
2603 ## -------------------- ##
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 # Tell the rest of the build system the absolute path where the
2614 # nlbuild-autotools repository is rooted at.
2616 nlbuild_autotools_stem=third_party/nlbuild-autotools/repo
2618 abs_top_nlbuild_autotools_dir=\${abs_top_srcdir}/\${nlbuild_autotools_stem}
2622 # NLASSERT interface current, revision, and age versions.
2624 # Maintainters: Please manage these fields as follows:
2626 # Interfaces removed: CURRENT++, AGE = 0, REVISION = 0
2627 # Interfaces added: CURRENT++, AGE++, REVISION = 0
2628 # No interfaces changed: REVISION++
2631 LIBNLASSERT_VERSION_CURRENT=1
2633 LIBNLASSERT_VERSION_AGE=0
2635 LIBNLASSERT_VERSION_REVISION=0
2637 LIBNLASSERT_VERSION_INFO=${LIBNLASSERT_VERSION_CURRENT}:${LIBNLASSERT_VERSION_REVISION}:${LIBNLASSERT_VERSION_AGE}
2641 # Check the sanity of the source directory by checking for the
2642 # presence of a key watch file
2647 # Tell autoconf where to find auxilliary build tools (e.g. config.guess,
2648 # install-sh, missing, etc.)
2651 for ac_dir in third_party/nlbuild-autotools/repo/third_party/autoconf "$srcdir"/third_party/nlbuild-autotools/repo/third_party/autoconf; do
2652 if test -f "$ac_dir/install-sh"; then
2654 ac_install_sh="$ac_aux_dir/install-sh -c"
2656 elif test -f "$ac_dir/install.sh"; then
2658 ac_install_sh="$ac_aux_dir/install.sh -c"
2660 elif test -f "$ac_dir/shtool"; then
2662 ac_install_sh="$ac_aux_dir/shtool install -c"
2666 if test -z "$ac_aux_dir"; then
2667 as_fn_error $? "cannot find install-sh, install.sh, or shtool in third_party/nlbuild-autotools/repo/third_party/autoconf \"$srcdir\"/third_party/nlbuild-autotools/repo/third_party/autoconf" "$LINENO" 5
2670 # These three variables are undocumented and unsupported,
2671 # and are intended to be withdrawn in a future Autoconf release.
2672 # They can cause serious problems if a builder's source tree is in a directory
2673 # whose full name contains unusual characters.
2674 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2675 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2676 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2681 # Tell autoconf where to find auxilliary M4 macros
2686 # Tell autoconf what file the package is using to aggregate C preprocessor
2689 ac_config_headers="$ac_config_headers include/nlassert-config.h"
2693 # Figure out what the canonical build, host and target tuples are.
2695 # Make sure we can run config.sub.
2696 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2697 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2700 $as_echo_n "checking build system type... " >&6; }
2701 if ${ac_cv_build+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 ac_build_alias=$build_alias
2705 test "x$ac_build_alias" = x &&
2706 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2707 test "x$ac_build_alias" = x &&
2708 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2709 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2710 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2714 $as_echo "$ac_cv_build" >&6; }
2715 case $ac_cv_build in
2717 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2720 ac_save_IFS=$IFS; IFS='-'
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2730 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2734 $as_echo_n "checking host system type... " >&6; }
2735 if ${ac_cv_host+:} false; then :
2736 $as_echo_n "(cached) " >&6
2738 if test "x$host_alias" = x; then
2739 ac_cv_host=$ac_cv_build
2741 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2742 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2747 $as_echo "$ac_cv_host" >&6; }
2750 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2753 ac_save_IFS=$IFS; IFS='-'
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2763 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2767 $as_echo_n "checking target system type... " >&6; }
2768 if ${ac_cv_target+:} false; then :
2769 $as_echo_n "(cached) " >&6
2771 if test "x$target_alias" = x; then
2772 ac_cv_target=$ac_cv_host
2774 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2780 $as_echo "$ac_cv_target" >&6; }
2781 case $ac_cv_target in
2783 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2785 target=$ac_cv_target
2786 ac_save_IFS=$IFS; IFS='-'
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2796 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2799 # The aliases save the names the user supplied, while $host etc.
2800 # will get canonicalized.
2801 test -n "$target_alias" &&
2802 test "$program_prefix$program_suffix$program_transform_name" = \
2804 program_prefix=${target_alias}-
2807 # Mac OS X / Darwin ends up putting some versioning cruft on the end of its
2808 # tuple that we don't care about in this script. Create "clean" variables
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking filtered build system type" >&5
2816 $as_echo_n "checking filtered build system type... " >&6; }
2817 if ${nl_cv_filtered_build+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 nl_cv_filtered_build=`echo ${build} | sed -e 's/[[:digit:].]*$//g'`
2821 nl_filtered_build=${nl_cv_filtered_build}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_filtered_build" >&5
2824 $as_echo "$nl_cv_filtered_build" >&6; }
2827 case ${nl_cv_filtered_build} in
2830 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2834 nl_filtered_build=$nl_cv_filtered_build
2837 nl_save_IFS=$IFS; IFS='-'
2838 set x $nl_cv_filtered_build
2841 nl_filtered_build_cpu=$1
2843 nl_filtered_build_vendor=$2
2847 # Remember, the first character of IFS is used to create $*,
2848 # except with old shells:
2849 nl_filtered_build_os=$*
2852 case nl_filtered_$build_os in
2854 *\ *) nl_filtered_build_os=`echo "$build_os" | sed 's/ /-/g'`;;
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking filtered host system type" >&5
2866 $as_echo_n "checking filtered host system type... " >&6; }
2867 if ${nl_cv_filtered_host+:} false; then :
2868 $as_echo_n "(cached) " >&6
2870 nl_cv_filtered_host=`echo ${host} | sed -e 's/[[:digit:].]*$//g'`
2871 nl_filtered_host=${nl_cv_filtered_host}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_filtered_host" >&5
2874 $as_echo "$nl_cv_filtered_host" >&6; }
2877 case ${nl_cv_filtered_host} in
2880 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2884 nl_filtered_host=$nl_cv_filtered_host
2887 nl_save_IFS=$IFS; IFS='-'
2888 set x $nl_cv_filtered_host
2891 nl_filtered_host_cpu=$1
2893 nl_filtered_host_vendor=$2
2897 # Remember, the first character of IFS is used to create $*,
2898 # except with old shells:
2899 nl_filtered_host_os=$*
2902 case nl_filtered_$host_os in
2904 *\ *) nl_filtered_host_os=`echo "$host_os" | sed 's/ /-/g'`;;
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking filtered target system type" >&5
2916 $as_echo_n "checking filtered target system type... " >&6; }
2917 if ${nl_cv_filtered_target+:} false; then :
2918 $as_echo_n "(cached) " >&6
2920 nl_cv_filtered_target=`echo ${target} | sed -e 's/[[:digit:].]*$//g'`
2921 nl_filtered_target=${nl_cv_filtered_target}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_filtered_target" >&5
2924 $as_echo "$nl_cv_filtered_target" >&6; }
2927 case ${nl_cv_filtered_target} in
2930 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2934 nl_filtered_target=$nl_cv_filtered_target
2937 nl_save_IFS=$IFS; IFS='-'
2938 set x $nl_cv_filtered_target
2941 nl_filtered_target_cpu=$1
2943 nl_filtered_target_vendor=$2
2947 # Remember, the first character of IFS is used to create $*,
2948 # except with old shells:
2949 nl_filtered_target_os=$*
2952 case nl_filtered_$target_os in
2954 *\ *) nl_filtered_target_os=`echo "$target_os" | sed 's/ /-/g'`;;
2964 # Configure automake with the desired options, indicating that this is not
2965 # a native GNU package, that we want "silent" build rules, and that we want
2966 # objects built in the same subdirectory as their source rather than collapsed
2967 # together at the top-level directory.
2969 # Disable silent build rules by either passing --disable-silent-rules to
2970 # configure or passing V=1 to make
2972 am__api_version='1.14'
2974 # Find a good install program. We prefer a C program (faster),
2975 # so one script is as good as another. But avoid the broken or
2976 # incompatible versions:
2977 # SysV /etc/install, /usr/sbin/install
2978 # SunOS /usr/etc/install
2979 # IRIX /sbin/install
2981 # AmigaOS /C/install, which installs bootblocks on floppy discs
2982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2985 # OS/2's system install, which has a completely different semantic
2986 # ./install, which can be erroneously created by make from ./install.sh.
2987 # Reject install programs that cannot install multiple files.
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2989 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2990 if test -z "$INSTALL"; then
2991 if ${ac_cv_path_install+:} false; then :
2992 $as_echo_n "(cached) " >&6
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 # Account for people who put trailing slashes in PATH elements.
3000 case $as_dir/ in #((
3001 ./ | .// | /[cC]/* | \
3002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3003 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3006 # OSF1 and SCO ODT 3.0 have their own names for install.
3007 # Don't use installbsd from OSF since it installs stuff as root
3009 for ac_prog in ginstall scoinst install; do
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3012 if test $ac_prog = install &&
3013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3014 # AIX install. It has an incompatible calling convention.
3016 elif test $ac_prog = install &&
3017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3018 # program-specific install script used by HP pwplus--don't use.
3021 rm -rf conftest.one conftest.two conftest.dir
3022 echo one > conftest.one
3023 echo two > conftest.two
3025 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3026 test -s conftest.one && test -s conftest.two &&
3027 test -s conftest.dir/conftest.one &&
3028 test -s conftest.dir/conftest.two
3030 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3043 rm -rf conftest.one conftest.two conftest.dir
3046 if test "${ac_cv_path_install+set}" = set; then
3047 INSTALL=$ac_cv_path_install
3049 # As a last resort, use the slow shell script. Don't cache a
3050 # value for INSTALL within a source directory, because that will
3051 # break other packages using the cache if that directory is
3052 # removed, or if the value is a relative name.
3053 INSTALL=$ac_install_sh
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3057 $as_echo "$INSTALL" >&6; }
3059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3060 # It thinks the first close brace ends the variable substitution.
3061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3068 $as_echo_n "checking whether build environment is sane... " >&6; }
3069 # Reject unsafe characters in $srcdir or the absolute working directory
3070 # name. Accept space and tab only in the latter.
3074 *[\\\"\#\$\&\'\`$am_lf]*)
3075 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3078 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3079 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3082 # Do 'set' in a subshell so we don't clobber the current shell's
3083 # arguments. Must try -L first in case configure is actually a
3084 # symlink; some systems play weird games with the mod time of symlinks
3085 # (eg FreeBSD returns the mod time of the symlink's containing
3089 for am_try in 1 2; do
3090 echo "timestamp, slept: $am_has_slept" > conftest.file
3091 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3092 if test "$*" = "X"; then
3094 set X `ls -t "$srcdir/configure" conftest.file`
3096 if test "$*" != "X $srcdir/configure conftest.file" \
3097 && test "$*" != "X conftest.file $srcdir/configure"; then
3099 # If neither matched, then we have a broken ls. This can happen
3100 # if, for instance, CONFIG_SHELL is bash and it inherits a
3101 # broken ls alias from the environment. This has actually
3102 # happened. Such a system could not be considered "sane".
3103 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3104 alias in your environment" "$LINENO" 5
3106 if test "$2" = conftest.file || test $am_try -eq 2; then
3113 test "$2" = conftest.file
3119 as_fn_error $? "newly created file is older than distributed files!
3120 Check your system clock" "$LINENO" 5
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3123 $as_echo "yes" >&6; }
3124 # If we didn't sleep, we still need to ensure time stamps of config.status and
3125 # generated files are strictly newer.
3127 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3134 test "$program_prefix" != NONE &&
3135 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3136 # Use a double $ so make ignores it.
3137 test "$program_suffix" != NONE &&
3138 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3139 # Double any \ or $.
3140 # By default was `s,x,x', remove it if useless.
3141 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3142 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3144 # expand $ac_aux_dir to an absolute path
3145 am_aux_dir=`cd $ac_aux_dir && pwd`
3147 if test x"${MISSING+set}" != xset; then
3150 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3152 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3155 # Use eval to expand $SHELL
3156 if eval "$MISSING --is-lightweight"; then
3157 am_missing_run="$MISSING "
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3161 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3164 if test x"${install_sh}" != xset; then
3167 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3169 install_sh="\${SHELL} $am_aux_dir/install-sh"
3173 # Installed binaries are usually stripped using 'strip' when the user
3174 # run "make install-strip". However 'strip' might not be the right
3175 # tool to use in cross-compilation environments, therefore Automake
3176 # will honor the 'STRIP' environment variable to overrule this program.
3177 if test "$cross_compiling" != no; then
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}strip; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_STRIP+:} false; then :
3184 $as_echo_n "(cached) " >&6
3186 if test -n "$STRIP"; then
3187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 STRIP=$ac_cv_prog_STRIP
3207 if test -n "$STRIP"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3209 $as_echo "$STRIP" >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3217 if test -z "$ac_cv_prog_STRIP"; then
3219 # Extract the first word of "strip", so it can be a program name with args.
3220 set dummy strip; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3224 $as_echo_n "(cached) " >&6
3226 if test -n "$ac_ct_STRIP"; then
3227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_ac_ct_STRIP="strip"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3247 if test -n "$ac_ct_STRIP"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3249 $as_echo "$ac_ct_STRIP" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3255 if test "x$ac_ct_STRIP" = x; then
3258 case $cross_compiling:$ac_tool_warned in
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262 ac_tool_warned=yes ;;
3267 STRIP="$ac_cv_prog_STRIP"
3271 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3274 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3275 if test -z "$MKDIR_P"; then
3276 if ${ac_cv_path_mkdir+:} false; then :
3277 $as_echo_n "(cached) " >&6
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3283 test -z "$as_dir" && as_dir=.
3284 for ac_prog in mkdir gmkdir; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3288 'mkdir (GNU coreutils) '* | \
3289 'mkdir (coreutils) '* | \
3290 'mkdir (fileutils) '4.1*)
3291 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3301 test -d ./--version && rmdir ./--version
3302 if test "${ac_cv_path_mkdir+set}" = set; then
3303 MKDIR_P="$ac_cv_path_mkdir -p"
3305 # As a last resort, use the slow shell script. Don't cache a
3306 # value for MKDIR_P within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the value is a relative name.
3309 MKDIR_P="$ac_install_sh -d"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3313 $as_echo "$MKDIR_P" >&6; }
3315 for ac_prog in gawk mawk nawk awk
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_AWK+:} false; then :
3322 $as_echo_n "(cached) " >&6
3324 if test -n "$AWK"; then
3325 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_AWK="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 if test -n "$AWK"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3347 $as_echo "$AWK" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3354 test -n "$AWK" && break
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3358 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3360 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3361 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3362 $as_echo_n "(cached) " >&6
3364 cat >conftest.make <<\_ACEOF
3367 @echo '@@@%%%=$(MAKE)=@@@%%%'
3369 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3370 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3372 eval ac_cv_prog_make_${ac_make}_set=yes;;
3374 eval ac_cv_prog_make_${ac_make}_set=no;;
3378 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 SET_MAKE="MAKE=${MAKE-make}"
3388 rm -rf .tst 2>/dev/null
3389 mkdir .tst 2>/dev/null
3390 if test -d .tst; then
3395 rmdir .tst 2>/dev/null
3397 # Check whether --enable-silent-rules was given.
3398 if test "${enable_silent_rules+set}" = set; then :
3399 enableval=$enable_silent_rules;
3402 case $enable_silent_rules in # (((
3403 yes) AM_DEFAULT_VERBOSITY=0;;
3404 no) AM_DEFAULT_VERBOSITY=1;;
3405 *) AM_DEFAULT_VERBOSITY=1;;
3407 am_make=${MAKE-make}
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3409 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3410 if ${am_cv_make_support_nested_variables+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 if $as_echo 'TRUE=$(BAR$(V))
3419 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3420 am_cv_make_support_nested_variables=yes
3422 am_cv_make_support_nested_variables=no
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3426 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3427 if test $am_cv_make_support_nested_variables = yes; then
3429 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3431 AM_V=$AM_DEFAULT_VERBOSITY
3432 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3436 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3437 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3438 # is not polluted with repeated "-I."
3439 am__isrc=' -I$(srcdir)'
3440 # test to see if srcdir already configured
3441 if test -f $srcdir/config.status; then
3442 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3446 # test whether we have cygpath
3447 if test -z "$CYGPATH_W"; then
3448 if (cygpath --version) >/dev/null 2>/dev/null; then
3449 CYGPATH_W='cygpath -w'
3456 # Define the identity of the package.
3461 cat >>confdefs.h <<_ACEOF
3462 #define PACKAGE "$PACKAGE"
3466 cat >>confdefs.h <<_ACEOF
3467 #define VERSION "$VERSION"
3470 # Some tools Automake needs.
3472 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3475 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3478 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3481 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3484 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3486 # For better backward compatibility. To be removed once Automake 1.9.x
3487 # dies out for good. For more background, see:
3488 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3489 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3490 mkdir_p='$(MKDIR_P)'
3492 # We need awk for the "check" target. The system "awk" is bad on
3494 # Always define AMTAR for backward compatibility. Yes, it's still used
3495 # in the wild :-( We should find a proper way to deprecate it ...
3499 # We'll loop over all known methods to create a tar archive until one works.
3500 _am_tools='gnutar pax cpio none'
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3505 $as_echo_n "checking how to create a pax tar archive... " >&6; }
3507 # Go ahead even if we have the value already cached. We do so because we
3508 # need to set the values for the 'am__tar' and 'am__untar' variables.
3509 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3511 for _am_tool in $_am_tools; do
3514 for _am_tar in tar gnutar gtar; do
3515 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3516 ($_am_tar --version) >&5 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && break
3521 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3522 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3523 am__untar="$_am_tar -xf -"
3526 # Must skip GNU tar: if it does not support --format= it doesn't create
3527 # ustar tarball either.
3528 (tar --version) >/dev/null 2>&1 && continue
3529 am__tar='tar chf - "$$tardir"'
3530 am__tar_='tar chf - "$tardir"'
3531 am__untar='tar xf -'
3534 am__tar='pax -L -x pax -w "$$tardir"'
3535 am__tar_='pax -L -x pax -w "$tardir"'
3539 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3540 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3541 am__untar='cpio -i -H pax -d'
3550 # If the value was cached, stop now. We just wanted to have am__tar
3551 # and am__untar set.
3552 test -n "${am_cv_prog_tar_pax}" && break
3554 # tar/untar a dummy directory, and stop if the command works.
3557 echo GrepMe > conftest.dir/file
3558 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3559 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3564 if test -s conftest.tar; then
3565 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3566 ($am__untar <conftest.tar) >&5 2>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }
3570 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3571 (cat conftest.dir/file) >&5 2>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3575 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3580 if ${am_cv_prog_tar_pax+:} false; then :
3581 $as_echo_n "(cached) " >&6
3583 am_cv_prog_tar_pax=$_am_tool
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3587 $as_echo "$am_cv_prog_tar_pax" >&6; }
3594 # POSIX will say in a future version that running "rm -f" with no argument
3595 # is OK; and we want to be able to make that assumption in our Makefile
3596 # recipes. So use an aggressive probe to check that the usage we want is
3597 # actually supported "in the wild" to an acceptable degree.
3598 # See automake bug#10828.
3599 # To make any issue more visible, cause the running configure to be aborted
3600 # by default if the 'rm' program in use doesn't match our expectations; the
3601 # user can still override this though.
3602 if rm -f && rm -fr && rm -rf; then : OK; else
3606 Your 'rm' program seems unable to run without file operands specified
3607 on the command line, even when the '-f' option is present. This is contrary
3608 to the behaviour of most rm programs out there, and not conforming with
3609 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3611 Please tell bug-automake@gnu.org about your system, including the value
3612 of your $PATH and any error possibly output before this message. This
3613 can help us improve future automake versions.
3616 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3617 echo 'Configuration will proceed anyway, since you have set the' >&2
3618 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3622 Aborting the configuration process, to ensure you take notice of the issue.
3624 You can download and install GNU coreutils to get an 'rm' implementation
3625 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3627 If you want to complete the configuration process using your problematic
3628 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3629 to "yes", and re-run configure.
3632 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3637 # Silent build rules requires at least automake-1.11. Employ
3638 # techniques for not breaking earlier versions of automake.
3640 # Check whether --enable-silent-rules was given.
3641 if test "${enable_silent_rules+set}" = set; then :
3642 enableval=$enable_silent_rules;
3645 case $enable_silent_rules in # (((
3646 yes) AM_DEFAULT_VERBOSITY=0;;
3647 no) AM_DEFAULT_VERBOSITY=1;;
3648 *) AM_DEFAULT_VERBOSITY=0;;
3650 am_make=${MAKE-make}
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3652 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3653 if ${am_cv_make_support_nested_variables+:} false; then :
3654 $as_echo_n "(cached) " >&6
3656 if $as_echo 'TRUE=$(BAR$(V))
3662 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3663 am_cv_make_support_nested_variables=yes
3665 am_cv_make_support_nested_variables=no
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3669 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3670 if test $am_cv_make_support_nested_variables = yes; then
3672 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3674 AM_V=$AM_DEFAULT_VERBOSITY
3675 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3679 # Check whether --enable-silent-rules was given.
3680 if test "${enable_silent_rules+set}" = set; then :
3681 enableval=$enable_silent_rules;
3684 case $enable_silent_rules in # (((
3685 yes) AM_DEFAULT_VERBOSITY=0;;
3686 no) AM_DEFAULT_VERBOSITY=1;;
3687 *) AM_DEFAULT_VERBOSITY=0;;
3689 am_make=${MAKE-make}
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3691 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3692 if ${am_cv_make_support_nested_variables+:} false; then :
3693 $as_echo_n "(cached) " >&6
3695 if $as_echo 'TRUE=$(BAR$(V))
3701 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3702 am_cv_make_support_nested_variables=yes
3704 am_cv_make_support_nested_variables=no
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3708 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3709 if test $am_cv_make_support_nested_variables = yes; then
3711 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3713 AM_V=$AM_DEFAULT_VERBOSITY
3714 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3720 # Enable maintainer mode to prevent the package from constantly trying
3721 # to rebuild configure, Makefile.in, etc. Rebuilding such files rarely,
3722 # if ever, needs to be done "in the field".
3724 # Use the included 'bootstrap' script instead when necessary.
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3728 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3729 # Check whether --enable-maintainer-mode was given.
3730 if test "${enable_maintainer_mode+set}" = set; then :
3731 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3733 USE_MAINTAINER_MODE=no
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3737 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3738 if test $USE_MAINTAINER_MODE = yes; then
3739 MAINTAINER_MODE_TRUE=
3740 MAINTAINER_MODE_FALSE='#'
3742 MAINTAINER_MODE_TRUE='#'
3743 MAINTAINER_MODE_FALSE=
3746 MAINT=$MAINTAINER_MODE_TRUE
3751 # Checks for build host programs
3754 # If we are cross-compiling and we are on an embedded target that
3755 # doesn't support independent, standalone executables, then all
3756 # compiler tests that attempt to create an executable will fail. In
3757 # such circumstances, set AC_NO_EXECUTABLES (see http://sourceware.org/
3758 # ml/newlib/2006/msg00353.html).
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable executable checking" >&5
3761 $as_echo_n "checking whether to disable executable checking... " >&6; }
3762 if test "$cross_compiling" = yes; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3765 $as_echo "yes" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3771 # Passing -Werror to GCC-based or -compatible compilers breaks some
3772 # autoconf tests (see
3773 # http://lists.gnu.org/archive/html/autoconf-patches/2008-09/msg00014.html).
3775 # If -Werror has been passed transform it into -Wno-error. We'll
3776 # transform it back later with NL_RESTORE_WERROR.
3780 if echo "${CPPFLAGS}" | grep -q '\-Werror'; then
3781 CPPFLAGS="`echo ${CPPFLAGS} | sed -e 's,-Werror\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Wno-error\1\2,g'`"
3782 nl_had_CPPFLAGS_werror=yes
3784 nl_had_CPPFLAGS_werror=no
3788 if echo "${CFLAGS}" | grep -q '\-Werror'; then
3789 CFLAGS="`echo ${CFLAGS} | sed -e 's,-Werror\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Wno-error\1\2,g'`"
3790 nl_had_CFLAGS_werror=yes
3792 nl_had_CFLAGS_werror=no
3796 if echo "${CXXFLAGS}" | grep -q '\-Werror'; then
3797 CXXFLAGS="`echo ${CXXFLAGS} | sed -e 's,-Werror\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Wno-error\1\2,g'`"
3798 nl_had_CXXFLAGS_werror=yes
3800 nl_had_CXXFLAGS_werror=no
3804 if echo "${OBJCFLAGS}" | grep -q '\-Werror'; then
3805 OBJCFLAGS="`echo ${OBJCFLAGS} | sed -e 's,-Werror\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Wno-error\1\2,g'`"
3806 nl_had_OBJCFLAGS_werror=yes
3808 nl_had_OBJCFLAGS_werror=no
3812 if echo "${OBJCXXFLAGS}" | grep -q '\-Werror'; then
3813 OBJCXXFLAGS="`echo ${OBJCXXFLAGS} | sed -e 's,-Werror\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Wno-error\1\2,g'`"
3814 nl_had_OBJCXXFLAGS_werror=yes
3816 nl_had_OBJCXXFLAGS_werror=no
3821 # Check for compilers.
3823 # These should be checked BEFORE we check for and, implicitly,
3824 # initialize libtool such that libtool knows what languages it has to
3827 DEPDIR="${am__leading_dot}deps"
3829 ac_config_commands="$ac_config_commands depfiles"
3832 am_make=${MAKE-make}
3833 cat > confinc << 'END'
3835 @echo this is the am__doit target
3838 # If we don't find an include directive, just comment out the code.
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3840 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3844 # First try GNU make style include.
3845 echo "include confinc" > confmf
3846 # Ignore all kinds of additional output from 'make'.
3847 case `$am_make -s -f confmf 2> /dev/null` in #(
3848 *the\ am__doit\ target*)
3854 # Now try BSD make style include.
3855 if test "$am__include" = "#"; then
3856 echo '.include "confinc"' > confmf
3857 case `$am_make -s -f confmf 2> /dev/null` in #(
3858 *the\ am__doit\ target*)
3859 am__include=.include
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3868 $as_echo "$_am_result" >&6; }
3869 rm -f confinc confmf
3871 # Check whether --enable-dependency-tracking was given.
3872 if test "${enable_dependency_tracking+set}" = set; then :
3873 enableval=$enable_dependency_tracking;
3876 if test "x$enable_dependency_tracking" != xno; then
3877 am_depcomp="$ac_aux_dir/depcomp"
3881 if test "x$enable_dependency_tracking" != xno; then
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3897 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if ${ac_cv_prog_CC+:} false; then :
3901 $as_echo_n "(cached) " >&6
3903 if test -n "$CC"; then
3904 ac_cv_prog_CC="$CC" # Let the user override the test.
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 if test -n "$CC"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3926 $as_echo "$CC" >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3934 if test -z "$ac_cv_prog_CC"; then
3936 # Extract the first word of "gcc", so it can be a program name with args.
3937 set dummy gcc; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -n "$ac_ct_CC"; then
3944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953 ac_cv_prog_ac_ct_CC="gcc"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3964 if test -n "$ac_ct_CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3966 $as_echo "$ac_ct_CC" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3972 if test "x$ac_ct_CC" = x; then
3975 case $cross_compiling:$ac_tool_warned in
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3979 ac_tool_warned=yes ;;
3987 if test -z "$CC"; then
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}cc; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if ${ac_cv_prog_CC+:} false; then :
3994 $as_echo_n "(cached) " >&6
3996 if test -n "$CC"; then
3997 ac_cv_prog_CC="$CC" # Let the user override the test.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_CC="${ac_tool_prefix}cc"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 if test -n "$CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019 $as_echo "$CC" >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4028 if test -z "$CC"; then
4029 # Extract the first word of "cc", so it can be a program name with args.
4030 set dummy cc; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_prog_CC+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 if test -n "$CC"; then
4037 ac_cv_prog_CC="$CC" # Let the user override the test.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4048 ac_prog_rejected=yes
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 if test $ac_prog_rejected = yes; then
4060 # We found a bogon in the path, so make sure we never use it.
4061 set dummy $ac_cv_prog_CC
4063 if test $# != 0; then
4064 # We chose a different compiler from the bogus one.
4065 # However, it has the same basename, so the bogon will be chosen
4066 # first if we set CC to just the basename; use the full file name.
4068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4074 if test -n "$CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4084 if test -z "$CC"; then
4085 if test -n "$ac_tool_prefix"; then
4086 for ac_prog in cl.exe
4088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_CC+:} false; then :
4093 $as_echo_n "(cached) " >&6
4095 if test -n "$CC"; then
4096 ac_cv_prog_CC="$CC" # Let the user override the test.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 if test -n "$CC"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4118 $as_echo "$CC" >&6; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4125 test -n "$CC" && break
4128 if test -z "$CC"; then
4130 for ac_prog in cl.exe
4132 # Extract the first word of "$ac_prog", so it can be a program name with args.
4133 set dummy $ac_prog; ac_word=$2
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135 $as_echo_n "checking for $ac_word... " >&6; }
4136 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4137 $as_echo_n "(cached) " >&6
4139 if test -n "$ac_ct_CC"; then
4140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149 ac_cv_prog_ac_ct_CC="$ac_prog"
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4160 if test -n "$ac_ct_CC"; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4162 $as_echo "$ac_ct_CC" >&6; }
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 $as_echo "no" >&6; }
4169 test -n "$ac_ct_CC" && break
4172 if test "x$ac_ct_CC" = x; then
4175 case $cross_compiling:$ac_tool_warned in
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4179 ac_tool_warned=yes ;;
4188 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4190 as_fn_error $? "no acceptable C compiler found in \$PATH
4191 See \`config.log' for more details" "$LINENO" 5; }
4193 # Provide some information about the compiler.
4194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4197 for ac_option in --version -v -V -qversion; do
4198 { { ac_try="$ac_compiler $ac_option >&5"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4207 if test -s conftest.err; then
4209 ... rest of stderr output deleted ...
4210 10q' conftest.err >conftest.er1
4211 cat conftest.er1 >&5
4213 rm -f conftest.er1 conftest.err
4214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4229 if { { ac_try="$ac_link"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_link") 2>&5
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }; then
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4252 ac_clean_files_save=$ac_clean_files
4253 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4254 # Try to create an executable without -o first, disregard a.out.
4255 # It will help us diagnose broken compilers, and finding out an intuition
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4258 $as_echo_n "checking whether the C compiler works... " >&6; }
4259 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4261 # The possible output files:
4262 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4265 for ac_file in $ac_files
4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4274 if { { ac_try="$ac_link_default"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_link_default") 2>&5
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }; then :
4285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4286 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4287 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4288 # so that the user can short-circuit this test for compilers unknown to
4290 for ac_file in $ac_files ''
4292 test -f "$ac_file" || continue
4294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4297 # We found the default executable, but exeext='' is most
4301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4305 # We set ac_cv_exeext here because the later test for it is not
4306 # safe: cross compilers may not add the suffix if given an `-o'
4307 # argument, so we may need to know it at that point already.
4308 # Even if this section looks crufty: it has the advantage of
4315 test "$ac_cv_exeext" = no && ac_cv_exeext=
4320 if test -z "$ac_file"; then :
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 $as_echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328 as_fn_error 77 "C compiler cannot create executables
4329 See \`config.log' for more details" "$LINENO" 5; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332 $as_echo "yes" >&6; }
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4335 $as_echo_n "checking for C compiler default output file name... " >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4337 $as_echo "$ac_file" >&6; }
4338 ac_exeext=$ac_cv_exeext
4340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4341 ac_clean_files=$ac_clean_files_save
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4343 $as_echo_n "checking for suffix of executables... " >&6; }
4344 if { { ac_try="$ac_link"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_link") 2>&5
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }; then :
4355 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4356 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4357 # work properly (i.e., refer to `conftest.exe'), while it won't with
4359 for ac_file in conftest.exe conftest conftest.*; do
4360 test -f "$ac_file" || continue
4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4363 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4372 See \`config.log' for more details" "$LINENO" 5; }
4374 rm -f conftest conftest$ac_cv_exeext
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4376 $as_echo "$ac_cv_exeext" >&6; }
4378 rm -f conftest.$ac_ext
4379 EXEEXT=$ac_cv_exeext
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4387 FILE *f = fopen ("conftest.out", "w");
4388 return ferror (f) || fclose (f) != 0;
4394 ac_clean_files="$ac_clean_files conftest.out"
4395 # Check that the compiler produces executables we can run. If not, either
4396 # the compiler is broken, or we cross compile.
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4398 $as_echo_n "checking whether we are cross compiling... " >&6; }
4399 if test "$cross_compiling" != yes; then
4400 { { ac_try="$ac_link"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 $as_echo "$ac_try_echo"; } >&5
4407 (eval "$ac_link") 2>&5
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4411 if { ac_try='./conftest$ac_cv_exeext'
4412 { { case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_try") 2>&5
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }; }; then
4424 if test "$cross_compiling" = maybe; then
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429 as_fn_error $? "cannot run C compiled programs.
4430 If you meant to cross compile, use \`--host'.
4431 See \`config.log' for more details" "$LINENO" 5; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4436 $as_echo "$cross_compiling" >&6; }
4438 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4439 ac_clean_files=$ac_clean_files_save
4442 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.o conftest.obj conftest.dSYM
4444 # Setting cross_compile will disable run tests; it will
4445 # also disable AC_CHECK_FILE but that's generally
4446 # correct if we can't link.
4449 # Check that the compiler produces executables we can run. If not, either
4450 # the compiler is broken, or we cross compile.
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4452 $as_echo_n "checking whether we are cross compiling... " >&6; }
4453 if test "$cross_compiling" != yes; then
4454 { { ac_try="$ac_link"
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_link") 2>&5
4463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464 test $ac_status = 0; }
4465 if { ac_try='./conftest$ac_cv_exeext'
4466 { { case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471 $as_echo "$ac_try_echo"; } >&5
4472 (eval "$ac_try") 2>&5
4474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475 test $ac_status = 0; }; }; then
4478 if test "$cross_compiling" = maybe; then
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error $? "cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details" "$LINENO" 5; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4490 $as_echo "$cross_compiling" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4494 $as_echo_n "checking for suffix of object files... " >&6; }
4495 if ${ac_cv_objext+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4509 rm -f conftest.o conftest.obj
4510 if { { ac_try="$ac_compile"
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compile") 2>&5
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }; then :
4521 for ac_file in conftest.o conftest.obj conftest.*; do
4522 test -f "$ac_file" || continue;
4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4530 $as_echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4535 as_fn_error $? "cannot compute suffix of object files: cannot compile
4536 See \`config.log' for more details" "$LINENO" 5; }
4538 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4541 $as_echo "$ac_cv_objext" >&6; }
4542 OBJEXT=$ac_cv_objext
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4546 if ${ac_cv_c_compiler_gnu+:} false; then :
4547 $as_echo_n "(cached) " >&6
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4563 if ac_fn_c_try_compile "$LINENO"; then :
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4574 if test $ac_compiler_gnu = yes; then
4579 ac_test_CFLAGS=${CFLAGS+set}
4580 ac_save_CFLAGS=$CFLAGS
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4583 if ${ac_cv_prog_cc_g+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 ac_save_c_werror_flag=$ac_c_werror_flag
4587 ac_c_werror_flag=yes
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4601 if ac_fn_c_try_compile "$LINENO"; then :
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4616 if ac_fn_c_try_compile "$LINENO"; then :
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4632 if ac_fn_c_try_compile "$LINENO"; then :
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_c_werror_flag=$ac_save_c_werror_flag
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4643 $as_echo "$ac_cv_prog_cc_g" >&6; }
4644 if test "$ac_test_CFLAGS" = set; then
4645 CFLAGS=$ac_save_CFLAGS
4646 elif test $ac_cv_prog_cc_g = yes; then
4647 if test "$GCC" = yes; then
4653 if test "$GCC" = yes; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4661 if ${ac_cv_prog_cc_c89+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 ac_cv_prog_cc_c89=no
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4670 #include <sys/types.h>
4671 #include <sys/stat.h>
4672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4673 struct buf { int x; };
4674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4675 static char *e (p, i)
4681 static char *f (char * (*g) (char **, int), char **p, ...)
4686 s = g (p, va_arg (v,int));
4691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4692 function prototypes and stuff, but not '\xHH' hex character constants.
4693 These don't provoke an error unfortunately, instead are silently treated
4694 as 'x'. The following induces an error, until -std is added to get
4695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4696 array size at least. It's necessary to write '\x00'==0 to get something
4697 that's true only with -std. */
4698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4701 inside strings and character constants. */
4703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4705 int test (int i, double x);
4706 struct s1 {int (*f) (int a);};
4707 struct s2 {int (*f) (double a);};
4708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4722 CC="$ac_save_CC $ac_arg"
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_prog_cc_c89=$ac_arg
4726 rm -f core conftest.err conftest.$ac_objext
4727 test "x$ac_cv_prog_cc_c89" != "xno" && break
4729 rm -f conftest.$ac_ext
4734 case "x$ac_cv_prog_cc_c89" in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4737 $as_echo "none needed" >&6; } ;;
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4740 $as_echo "unsupported" >&6; } ;;
4742 CC="$CC $ac_cv_prog_cc_c89"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4746 if test "x$ac_cv_prog_cc_c89" != xno; then :
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4762 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4763 if ${am_cv_prog_cc_c_o+:} false; then :
4764 $as_echo_n "(cached) " >&6
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4777 # Make sure it works both with $CC and with simple cc.
4778 # Following AC_PROG_CC_C_O, we do the test twice because some
4779 # compilers refuse to overwrite an existing .o file with -o,
4780 # though they will create one.
4781 am_cv_prog_cc_c_o=yes
4783 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4784 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } \
4788 && test -f conftest2.$ac_objext; then
4791 am_cv_prog_cc_c_o=no
4795 rm -f core conftest*
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4799 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4800 if test "$am_cv_prog_cc_c_o" != yes; then
4801 # Losing compiler, so override with the script.
4802 # FIXME: It is wrong to rewrite CC.
4803 # But if we don't then we get into trouble of one sort or another.
4804 # A longer-term fix would be to have automake use am__CC in this case,
4805 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4806 CC="$am_aux_dir/compile $CC"
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 depcc="$CC" am_compiler_list=
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4818 $as_echo_n "checking dependency style of $depcc... " >&6; }
4819 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4823 # We make a subdir and do the tests there. Otherwise we can end up
4824 # making bogus files that we don't know about and never remove. For
4825 # instance it was reported that on HP-UX the gcc test will end up
4826 # making a dummy file named 'D' -- because '-MD' means "put the output
4830 # Copy depcomp to subdir because otherwise we won't find it if we're
4831 # using a relative directory.
4832 cp "$am_depcomp" conftest.dir
4834 # We will build objects and dependencies in a subdirectory because
4835 # it helps to detect inapplicable dependency modes. For instance
4836 # both Tru64's cc and ICC support -MD to output dependencies as a
4837 # side effect of compilation, but ICC will put the dependencies in
4838 # the current directory while Tru64 will put them in the object
4842 am_cv_CC_dependencies_compiler_type=none
4843 if test "$am_compiler_list" = ""; then
4844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4847 case " $depcc " in #(
4848 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4851 for depmode in $am_compiler_list; do
4852 # Setup a source with many dependencies, because some compilers
4853 # like to wrap large dependency lists on column 80 (with \), and
4854 # we should not choose a depcomp mode which is confused by this.
4856 # We need to recreate these files for each test, as the compiler may
4857 # overwrite some of them when testing with obscure command lines.
4858 # This happens at least with the AIX C compiler.
4860 for i in 1 2 3 4 5 6; do
4861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4862 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4863 # Solaris 10 /bin/sh.
4864 echo '/* dummy */' > sub/conftst$i.h
4866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4868 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4869 # mode. It turns out that the SunPro C++ compiler does not properly
4870 # handle '-M -o', and we need to detect this. Also, some Intel
4871 # versions had trouble with output in subdirs.
4872 am__obj=sub/conftest.${OBJEXT-o}
4873 am__minus_obj="-o $am__obj"
4876 # This depmode causes a compiler race in universal mode.
4877 test "$am__universal" = false || continue
4880 # After this tag, mechanisms are not by side-effect, so they'll
4881 # only be used when explicitly requested.
4882 if test "x$enable_dependency_tracking" = xyes; then
4888 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4889 # This compiler won't grok '-c -o', but also, the minuso test has
4890 # not run yet. These depmodes are late enough in the game, and
4891 # so weak that their functioning should not be impacted.
4892 am__obj=conftest.${OBJEXT-o}
4897 if depmode=$depmode \
4898 source=sub/conftest.c object=$am__obj \
4899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4901 >/dev/null 2>conftest.err &&
4902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4906 # icc doesn't choke on unknown options, it will just issue warnings
4907 # or remarks (even with -Werror). So we grep stderr for any message
4908 # that says an option was ignored or not supported.
4909 # When given -MP, icc 7.0 and 7.1 complain thusly:
4910 # icc: Command line warning: ignoring option '-M'; no argument required
4911 # The diagnosis changed in icc 8.0:
4912 # icc: Command line remark: option '-MP' not supported
4913 if (grep 'ignoring option' conftest.err ||
4914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4915 am_cv_CC_dependencies_compiler_type=$depmode
4924 am_cv_CC_dependencies_compiler_type=none
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4929 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4930 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4933 test "x$enable_dependency_tracking" != xno \
4934 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4936 am__fastdepCC_FALSE='#'
4938 am__fastdepCC_TRUE='#'
4939 am__fastdepCC_FALSE=
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4949 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4950 # On Suns, sometimes $CPP names a directory.
4951 if test -n "$CPP" && test -d "$CPP"; then
4954 if test -z "$CPP"; then
4955 if ${ac_cv_prog_CPP+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 # Double quotes because CPP needs to be expanded
4959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4962 for ac_c_preproc_warn_flag in '' yes
4964 # Use a header file that comes with gcc, so configuring glibc
4965 # with a fresh cross-compiler works.
4966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967 # <limits.h> exists even on freestanding compilers.
4968 # On the NeXT, cc -E runs the code through the compiler's parser,
4969 # not just through cpp. "Syntax error" is here to catch this case.
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4973 # include <limits.h>
4975 # include <assert.h>
4979 if ac_fn_c_try_cpp "$LINENO"; then :
4982 # Broken: fails on valid input.
4985 rm -f conftest.err conftest.i conftest.$ac_ext
4987 # OK, works on sane cases. Now check whether nonexistent headers
4988 # can be detected and how.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #include <ac_nonexistent.h>
4993 if ac_fn_c_try_cpp "$LINENO"; then :
4994 # Broken: success on invalid input.
4997 # Passes both tests.
5001 rm -f conftest.err conftest.i conftest.$ac_ext
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.i conftest.err conftest.$ac_ext
5006 if $ac_preproc_ok; then :
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5019 $as_echo "$CPP" >&6; }
5021 for ac_c_preproc_warn_flag in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5032 # include <limits.h>
5034 # include <assert.h>
5038 if ac_fn_c_try_cpp "$LINENO"; then :
5041 # Broken: fails on valid input.
5044 rm -f conftest.err conftest.i conftest.$ac_ext
5046 # OK, works on sane cases. Now check whether nonexistent headers
5047 # can be detected and how.
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #include <ac_nonexistent.h>
5052 if ac_fn_c_try_cpp "$LINENO"; then :
5053 # Broken: success on invalid input.
5056 # Passes both tests.
5060 rm -f conftest.err conftest.i conftest.$ac_ext
5063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5064 rm -f conftest.i conftest.err conftest.$ac_ext
5065 if $ac_preproc_ok; then :
5068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5070 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5071 See \`config.log' for more details" "$LINENO" 5; }
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 ac_c_preproc_warn_flag=yes
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087 if test -n "$ac_tool_prefix"; then
5088 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5089 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_CC+:} false; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -n "$CC"; then
5096 ac_cv_prog_CC="$CC" # Let the user override the test.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 if test -n "$CC"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5118 $as_echo "$CC" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5126 if test -z "$ac_cv_prog_CC"; then
5128 # Extract the first word of "gcc", so it can be a program name with args.
5129 set dummy gcc; ac_word=$2
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131 $as_echo_n "checking for $ac_word... " >&6; }
5132 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5133 $as_echo_n "(cached) " >&6
5135 if test -n "$ac_ct_CC"; then
5136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_prog_ac_ct_CC="gcc"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5156 if test -n "$ac_ct_CC"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5158 $as_echo "$ac_ct_CC" >&6; }
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5164 if test "x$ac_ct_CC" = x; then
5167 case $cross_compiling:$ac_tool_warned in
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5179 if test -z "$CC"; then
5180 if test -n "$ac_tool_prefix"; then
5181 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5182 set dummy ${ac_tool_prefix}cc; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_prog_CC+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 if test -n "$CC"; then
5189 ac_cv_prog_CC="$CC" # Let the user override the test.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198 ac_cv_prog_CC="${ac_tool_prefix}cc"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 if test -n "$CC"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5211 $as_echo "$CC" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5220 if test -z "$CC"; then
5221 # Extract the first word of "cc", so it can be a program name with args.
5222 set dummy cc; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_CC+:} false; then :
5226 $as_echo_n "(cached) " >&6
5228 if test -n "$CC"; then
5229 ac_cv_prog_CC="$CC" # Let the user override the test.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5240 ac_prog_rejected=yes
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 if test $ac_prog_rejected = yes; then
5252 # We found a bogon in the path, so make sure we never use it.
5253 set dummy $ac_cv_prog_CC
5255 if test $# != 0; then
5256 # We chose a different compiler from the bogus one.
5257 # However, it has the same basename, so the bogon will be chosen
5258 # first if we set CC to just the basename; use the full file name.
5260 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5266 if test -n "$CC"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5268 $as_echo "$CC" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5276 if test -z "$CC"; then
5277 if test -n "$ac_tool_prefix"; then
5278 for ac_prog in cl.exe
5280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if ${ac_cv_prog_CC+:} false; then :
5285 $as_echo_n "(cached) " >&6
5287 if test -n "$CC"; then
5288 ac_cv_prog_CC="$CC" # Let the user override the test.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 if test -n "$CC"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5310 $as_echo "$CC" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5317 test -n "$CC" && break
5320 if test -z "$CC"; then
5322 for ac_prog in cl.exe
5324 # Extract the first word of "$ac_prog", so it can be a program name with args.
5325 set dummy $ac_prog; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5329 $as_echo_n "(cached) " >&6
5331 if test -n "$ac_ct_CC"; then
5332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_ac_ct_CC="$ac_prog"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5352 if test -n "$ac_ct_CC"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5354 $as_echo "$ac_ct_CC" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5361 test -n "$ac_ct_CC" && break
5364 if test "x$ac_ct_CC" = x; then
5367 case $cross_compiling:$ac_tool_warned in
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5371 ac_tool_warned=yes ;;
5380 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5382 as_fn_error $? "no acceptable C compiler found in \$PATH
5383 See \`config.log' for more details" "$LINENO" 5; }
5385 # Provide some information about the compiler.
5386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5389 for ac_option in --version -v -V -qversion; do
5390 { { ac_try="$ac_compiler $ac_option >&5"
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5396 $as_echo "$ac_try_echo"; } >&5
5397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5399 if test -s conftest.err; then
5401 ... rest of stderr output deleted ...
5402 10q' conftest.err >conftest.er1
5403 cat conftest.er1 >&5
5405 rm -f conftest.er1 conftest.err
5406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5407 test $ac_status = 0; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5411 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5412 if ${ac_cv_c_compiler_gnu+:} false; then :
5413 $as_echo_n "(cached) " >&6
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5429 if ac_fn_c_try_compile "$LINENO"; then :
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5439 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5440 if test $ac_compiler_gnu = yes; then
5445 ac_test_CFLAGS=${CFLAGS+set}
5446 ac_save_CFLAGS=$CFLAGS
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5448 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5449 if ${ac_cv_prog_cc_g+:} false; then :
5450 $as_echo_n "(cached) " >&6
5452 ac_save_c_werror_flag=$ac_c_werror_flag
5453 ac_c_werror_flag=yes
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5467 if ac_fn_c_try_compile "$LINENO"; then :
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5482 if ac_fn_c_try_compile "$LINENO"; then :
5485 ac_c_werror_flag=$ac_save_c_werror_flag
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5498 if ac_fn_c_try_compile "$LINENO"; then :
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ac_c_werror_flag=$ac_save_c_werror_flag
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5509 $as_echo "$ac_cv_prog_cc_g" >&6; }
5510 if test "$ac_test_CFLAGS" = set; then
5511 CFLAGS=$ac_save_CFLAGS
5512 elif test $ac_cv_prog_cc_g = yes; then
5513 if test "$GCC" = yes; then
5519 if test "$GCC" = yes; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5526 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5527 if ${ac_cv_prog_cc_c89+:} false; then :
5528 $as_echo_n "(cached) " >&6
5530 ac_cv_prog_cc_c89=no
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 #include <sys/stat.h>
5538 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5539 struct buf { int x; };
5540 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5541 static char *e (p, i)
5547 static char *f (char * (*g) (char **, int), char **p, ...)
5552 s = g (p, va_arg (v,int));
5557 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5558 function prototypes and stuff, but not '\xHH' hex character constants.
5559 These don't provoke an error unfortunately, instead are silently treated
5560 as 'x'. The following induces an error, until -std is added to get
5561 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5562 array size at least. It's necessary to write '\x00'==0 to get something
5563 that's true only with -std. */
5564 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5566 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5567 inside strings and character constants. */
5569 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5571 int test (int i, double x);
5572 struct s1 {int (*f) (int a);};
5573 struct s2 {int (*f) (double a);};
5574 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5580 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5585 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5586 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5588 CC="$ac_save_CC $ac_arg"
5589 if ac_fn_c_try_compile "$LINENO"; then :
5590 ac_cv_prog_cc_c89=$ac_arg
5592 rm -f core conftest.err conftest.$ac_objext
5593 test "x$ac_cv_prog_cc_c89" != "xno" && break
5595 rm -f conftest.$ac_ext
5600 case "x$ac_cv_prog_cc_c89" in
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5603 $as_echo "none needed" >&6; } ;;
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5606 $as_echo "unsupported" >&6; } ;;
5608 CC="$CC $ac_cv_prog_cc_c89"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5610 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5612 if test "x$ac_cv_prog_cc_c89" != xno; then :
5617 ac_cpp='$CPP $CPPFLAGS'
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623 ac_cpp='$CPP $CPPFLAGS'
5624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5628 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5629 if ${am_cv_prog_cc_c_o+:} false; then :
5630 $as_echo_n "(cached) " >&6
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5643 # Make sure it works both with $CC and with simple cc.
5644 # Following AC_PROG_CC_C_O, we do the test twice because some
5645 # compilers refuse to overwrite an existing .o file with -o,
5646 # though they will create one.
5647 am_cv_prog_cc_c_o=yes
5649 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5650 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } \
5654 && test -f conftest2.$ac_objext; then
5657 am_cv_prog_cc_c_o=no
5661 rm -f core conftest*
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5665 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5666 if test "$am_cv_prog_cc_c_o" != yes; then
5667 # Losing compiler, so override with the script.
5668 # FIXME: It is wrong to rewrite CC.
5669 # But if we don't then we get into trouble of one sort or another.
5670 # A longer-term fix would be to have automake use am__CC in this case,
5671 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5672 CC="$am_aux_dir/compile $CC"
5675 ac_cpp='$CPP $CPPFLAGS'
5676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681 depcc="$CC" am_compiler_list=
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5684 $as_echo_n "checking dependency style of $depcc... " >&6; }
5685 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5686 $as_echo_n "(cached) " >&6
5688 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5689 # We make a subdir and do the tests there. Otherwise we can end up
5690 # making bogus files that we don't know about and never remove. For
5691 # instance it was reported that on HP-UX the gcc test will end up
5692 # making a dummy file named 'D' -- because '-MD' means "put the output
5696 # Copy depcomp to subdir because otherwise we won't find it if we're
5697 # using a relative directory.
5698 cp "$am_depcomp" conftest.dir
5700 # We will build objects and dependencies in a subdirectory because
5701 # it helps to detect inapplicable dependency modes. For instance
5702 # both Tru64's cc and ICC support -MD to output dependencies as a
5703 # side effect of compilation, but ICC will put the dependencies in
5704 # the current directory while Tru64 will put them in the object
5708 am_cv_CC_dependencies_compiler_type=none
5709 if test "$am_compiler_list" = ""; then
5710 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5713 case " $depcc " in #(
5714 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5717 for depmode in $am_compiler_list; do
5718 # Setup a source with many dependencies, because some compilers
5719 # like to wrap large dependency lists on column 80 (with \), and
5720 # we should not choose a depcomp mode which is confused by this.
5722 # We need to recreate these files for each test, as the compiler may
5723 # overwrite some of them when testing with obscure command lines.
5724 # This happens at least with the AIX C compiler.
5726 for i in 1 2 3 4 5 6; do
5727 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5728 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5729 # Solaris 10 /bin/sh.
5730 echo '/* dummy */' > sub/conftst$i.h
5732 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5734 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5735 # mode. It turns out that the SunPro C++ compiler does not properly
5736 # handle '-M -o', and we need to detect this. Also, some Intel
5737 # versions had trouble with output in subdirs.
5738 am__obj=sub/conftest.${OBJEXT-o}
5739 am__minus_obj="-o $am__obj"
5742 # This depmode causes a compiler race in universal mode.
5743 test "$am__universal" = false || continue
5746 # After this tag, mechanisms are not by side-effect, so they'll
5747 # only be used when explicitly requested.
5748 if test "x$enable_dependency_tracking" = xyes; then
5754 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5755 # This compiler won't grok '-c -o', but also, the minuso test has
5756 # not run yet. These depmodes are late enough in the game, and
5757 # so weak that their functioning should not be impacted.
5758 am__obj=conftest.${OBJEXT-o}
5763 if depmode=$depmode \
5764 source=sub/conftest.c object=$am__obj \
5765 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5766 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5767 >/dev/null 2>conftest.err &&
5768 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5769 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5770 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5771 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5772 # icc doesn't choke on unknown options, it will just issue warnings
5773 # or remarks (even with -Werror). So we grep stderr for any message
5774 # that says an option was ignored or not supported.
5775 # When given -MP, icc 7.0 and 7.1 complain thusly:
5776 # icc: Command line warning: ignoring option '-M'; no argument required
5777 # The diagnosis changed in icc 8.0:
5778 # icc: Command line remark: option '-MP' not supported
5779 if (grep 'ignoring option' conftest.err ||
5780 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5781 am_cv_CC_dependencies_compiler_type=$depmode
5790 am_cv_CC_dependencies_compiler_type=none
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5795 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5796 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5799 test "x$enable_dependency_tracking" != xno \
5800 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5802 am__fastdepCC_FALSE='#'
5804 am__fastdepCC_TRUE='#'
5805 am__fastdepCC_FALSE=
5809 if test "x$CC" != xcc; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5811 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5814 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5816 set dummy $CC; ac_cc=`$as_echo "$2" |
5817 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5818 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5819 $as_echo_n "(cached) " >&6
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5832 # Make sure it works both with $CC and with simple cc.
5833 # We do the test twice because some compilers refuse to overwrite an
5834 # existing .o file with -o, though they will create one.
5835 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5837 if { { case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5842 $as_echo "$ac_try_echo"; } >&5
5843 (eval "$ac_try") 2>&5
5845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846 test $ac_status = 0; } &&
5847 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5852 $as_echo "$ac_try_echo"; } >&5
5853 (eval "$ac_try") 2>&5
5855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856 test $ac_status = 0; };
5858 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5859 if test "x$CC" != xcc; then
5860 # Test first that cc exists at all.
5861 if { ac_try='cc -c conftest.$ac_ext >&5'
5862 { { case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5867 $as_echo "$ac_try_echo"; } >&5
5868 (eval "$ac_try") 2>&5
5870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5871 test $ac_status = 0; }; }; then
5872 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5874 if { { case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5879 $as_echo "$ac_try_echo"; } >&5
5880 (eval "$ac_try") 2>&5
5882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5883 test $ac_status = 0; } &&
5884 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5889 $as_echo "$ac_try_echo"; } >&5
5890 (eval "$ac_try") 2>&5
5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893 test $ac_status = 0; };
5898 # cc exists but doesn't like -o.
5899 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5904 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5906 rm -f core conftest*
5909 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5911 $as_echo "yes" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5916 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5922 ac_cpp='$CXXCPP $CPPFLAGS'
5923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5926 if test -z "$CXX"; then
5927 if test -n "$CCC"; then
5930 if test -n "$ac_tool_prefix"; then
5931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if ${ac_cv_prog_CXX+:} false; then :
5938 $as_echo_n "(cached) " >&6
5940 if test -n "$CXX"; then
5941 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 if test -n "$CXX"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5963 $as_echo "$CXX" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5970 test -n "$CXX" && break
5973 if test -z "$CXX"; then
5975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5977 # Extract the first word of "$ac_prog", so it can be a program name with args.
5978 set dummy $ac_prog; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5982 $as_echo_n "(cached) " >&6
5984 if test -n "$ac_ct_CXX"; then
5985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_ac_ct_CXX="$ac_prog"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6005 if test -n "$ac_ct_CXX"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6007 $as_echo "$ac_ct_CXX" >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6014 test -n "$ac_ct_CXX" && break
6017 if test "x$ac_ct_CXX" = x; then
6020 case $cross_compiling:$ac_tool_warned in
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6032 # Provide some information about the compiler.
6033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6036 for ac_option in --version -v -V -qversion; do
6037 { { ac_try="$ac_compiler $ac_option >&5"
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6043 $as_echo "$ac_try_echo"; } >&5
6044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6046 if test -s conftest.err; then
6048 ... rest of stderr output deleted ...
6049 10q' conftest.err >conftest.er1
6050 cat conftest.er1 >&5
6052 rm -f conftest.er1 conftest.err
6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054 test $ac_status = 0; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6058 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6059 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6060 $as_echo_n "(cached) " >&6
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6076 if ac_fn_cxx_try_compile "$LINENO"; then :
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6086 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6087 if test $ac_compiler_gnu = yes; then
6092 ac_test_CXXFLAGS=${CXXFLAGS+set}
6093 ac_save_CXXFLAGS=$CXXFLAGS
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6095 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6096 if ${ac_cv_prog_cxx_g+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6100 ac_cxx_werror_flag=yes
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6114 if ac_fn_cxx_try_compile "$LINENO"; then :
6115 ac_cv_prog_cxx_g=yes
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6129 if ac_fn_cxx_try_compile "$LINENO"; then :
6132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6145 if ac_fn_cxx_try_compile "$LINENO"; then :
6146 ac_cv_prog_cxx_g=yes
6148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6156 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6157 if test "$ac_test_CXXFLAGS" = set; then
6158 CXXFLAGS=$ac_save_CXXFLAGS
6159 elif test $ac_cv_prog_cxx_g = yes; then
6160 if test "$GXX" = yes; then
6166 if test "$GXX" = yes; then
6173 ac_cpp='$CPP $CPPFLAGS'
6174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178 depcc="$CXX" am_compiler_list=
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6181 $as_echo_n "checking dependency style of $depcc... " >&6; }
6182 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6186 # We make a subdir and do the tests there. Otherwise we can end up
6187 # making bogus files that we don't know about and never remove. For
6188 # instance it was reported that on HP-UX the gcc test will end up
6189 # making a dummy file named 'D' -- because '-MD' means "put the output
6193 # Copy depcomp to subdir because otherwise we won't find it if we're
6194 # using a relative directory.
6195 cp "$am_depcomp" conftest.dir
6197 # We will build objects and dependencies in a subdirectory because
6198 # it helps to detect inapplicable dependency modes. For instance
6199 # both Tru64's cc and ICC support -MD to output dependencies as a
6200 # side effect of compilation, but ICC will put the dependencies in
6201 # the current directory while Tru64 will put them in the object
6205 am_cv_CXX_dependencies_compiler_type=none
6206 if test "$am_compiler_list" = ""; then
6207 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6210 case " $depcc " in #(
6211 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6214 for depmode in $am_compiler_list; do
6215 # Setup a source with many dependencies, because some compilers
6216 # like to wrap large dependency lists on column 80 (with \), and
6217 # we should not choose a depcomp mode which is confused by this.
6219 # We need to recreate these files for each test, as the compiler may
6220 # overwrite some of them when testing with obscure command lines.
6221 # This happens at least with the AIX C compiler.
6223 for i in 1 2 3 4 5 6; do
6224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6225 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6226 # Solaris 10 /bin/sh.
6227 echo '/* dummy */' > sub/conftst$i.h
6229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6231 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6232 # mode. It turns out that the SunPro C++ compiler does not properly
6233 # handle '-M -o', and we need to detect this. Also, some Intel
6234 # versions had trouble with output in subdirs.
6235 am__obj=sub/conftest.${OBJEXT-o}
6236 am__minus_obj="-o $am__obj"
6239 # This depmode causes a compiler race in universal mode.
6240 test "$am__universal" = false || continue
6243 # After this tag, mechanisms are not by side-effect, so they'll
6244 # only be used when explicitly requested.
6245 if test "x$enable_dependency_tracking" = xyes; then
6251 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6252 # This compiler won't grok '-c -o', but also, the minuso test has
6253 # not run yet. These depmodes are late enough in the game, and
6254 # so weak that their functioning should not be impacted.
6255 am__obj=conftest.${OBJEXT-o}
6260 if depmode=$depmode \
6261 source=sub/conftest.c object=$am__obj \
6262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6264 >/dev/null 2>conftest.err &&
6265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6269 # icc doesn't choke on unknown options, it will just issue warnings
6270 # or remarks (even with -Werror). So we grep stderr for any message
6271 # that says an option was ignored or not supported.
6272 # When given -MP, icc 7.0 and 7.1 complain thusly:
6273 # icc: Command line warning: ignoring option '-M'; no argument required
6274 # The diagnosis changed in icc 8.0:
6275 # icc: Command line remark: option '-MP' not supported
6276 if (grep 'ignoring option' conftest.err ||
6277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6278 am_cv_CXX_dependencies_compiler_type=$depmode
6287 am_cv_CXX_dependencies_compiler_type=none
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6292 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6293 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6296 test "x$enable_dependency_tracking" != xno \
6297 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6298 am__fastdepCXX_TRUE=
6299 am__fastdepCXX_FALSE='#'
6301 am__fastdepCXX_TRUE='#'
6302 am__fastdepCXX_FALSE=
6307 ac_cpp='$CXXCPP $CPPFLAGS'
6308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6312 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6313 if test -z "$CXXCPP"; then
6314 if ${ac_cv_prog_CXXCPP+:} false; then :
6315 $as_echo_n "(cached) " >&6
6317 # Double quotes because CXXCPP needs to be expanded
6318 for CXXCPP in "$CXX -E" "/lib/cpp"
6321 for ac_cxx_preproc_warn_flag in '' yes
6323 # Use a header file that comes with gcc, so configuring glibc
6324 # with a fresh cross-compiler works.
6325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6326 # <limits.h> exists even on freestanding compilers.
6327 # On the NeXT, cc -E runs the code through the compiler's parser,
6328 # not just through cpp. "Syntax error" is here to catch this case.
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6332 # include <limits.h>
6334 # include <assert.h>
6338 if ac_fn_cxx_try_cpp "$LINENO"; then :
6341 # Broken: fails on valid input.
6344 rm -f conftest.err conftest.i conftest.$ac_ext
6346 # OK, works on sane cases. Now check whether nonexistent headers
6347 # can be detected and how.
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 #include <ac_nonexistent.h>
6352 if ac_fn_cxx_try_cpp "$LINENO"; then :
6353 # Broken: success on invalid input.
6356 # Passes both tests.
6360 rm -f conftest.err conftest.i conftest.$ac_ext
6363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6364 rm -f conftest.i conftest.err conftest.$ac_ext
6365 if $ac_preproc_ok; then :
6370 ac_cv_prog_CXXCPP=$CXXCPP
6373 CXXCPP=$ac_cv_prog_CXXCPP
6375 ac_cv_prog_CXXCPP=$CXXCPP
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6378 $as_echo "$CXXCPP" >&6; }
6380 for ac_cxx_preproc_warn_flag in '' yes
6382 # Use a header file that comes with gcc, so configuring glibc
6383 # with a fresh cross-compiler works.
6384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6385 # <limits.h> exists even on freestanding compilers.
6386 # On the NeXT, cc -E runs the code through the compiler's parser,
6387 # not just through cpp. "Syntax error" is here to catch this case.
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6391 # include <limits.h>
6393 # include <assert.h>
6397 if ac_fn_cxx_try_cpp "$LINENO"; then :
6400 # Broken: fails on valid input.
6403 rm -f conftest.err conftest.i conftest.$ac_ext
6405 # OK, works on sane cases. Now check whether nonexistent headers
6406 # can be detected and how.
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 #include <ac_nonexistent.h>
6411 if ac_fn_cxx_try_cpp "$LINENO"; then :
6412 # Broken: success on invalid input.
6415 # Passes both tests.
6419 rm -f conftest.err conftest.i conftest.$ac_ext
6422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6423 rm -f conftest.i conftest.err conftest.$ac_ext
6424 if $ac_preproc_ok; then :
6427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6429 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6430 See \`config.log' for more details" "$LINENO" 5; }
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441 ac_cpp='$CXXCPP $CPPFLAGS'
6442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6445 if test -z "$CXX"; then
6446 if test -n "$CCC"; then
6449 if test -n "$ac_tool_prefix"; then
6450 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_CXX+:} false; then :
6457 $as_echo_n "(cached) " >&6
6459 if test -n "$CXX"; then
6460 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 if test -n "$CXX"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6482 $as_echo "$CXX" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6489 test -n "$CXX" && break
6492 if test -z "$CXX"; then
6494 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6496 # Extract the first word of "$ac_prog", so it can be a program name with args.
6497 set dummy $ac_prog; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6501 $as_echo_n "(cached) " >&6
6503 if test -n "$ac_ct_CXX"; then
6504 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_ac_ct_CXX="$ac_prog"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6524 if test -n "$ac_ct_CXX"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6526 $as_echo "$ac_ct_CXX" >&6; }
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6533 test -n "$ac_ct_CXX" && break
6536 if test "x$ac_ct_CXX" = x; then
6539 case $cross_compiling:$ac_tool_warned in
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6551 # Provide some information about the compiler.
6552 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6555 for ac_option in --version -v -V -qversion; do
6556 { { ac_try="$ac_compiler $ac_option >&5"
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6562 $as_echo "$ac_try_echo"; } >&5
6563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6565 if test -s conftest.err; then
6567 ... rest of stderr output deleted ...
6568 10q' conftest.err >conftest.er1
6569 cat conftest.er1 >&5
6571 rm -f conftest.er1 conftest.err
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6577 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6578 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6595 if ac_fn_cxx_try_compile "$LINENO"; then :
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6605 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6606 if test $ac_compiler_gnu = yes; then
6611 ac_test_CXXFLAGS=${CXXFLAGS+set}
6612 ac_save_CXXFLAGS=$CXXFLAGS
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6614 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6615 if ${ac_cv_prog_cxx_g+:} false; then :
6616 $as_echo_n "(cached) " >&6
6618 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6619 ac_cxx_werror_flag=yes
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6633 if ac_fn_cxx_try_compile "$LINENO"; then :
6634 ac_cv_prog_cxx_g=yes
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6648 if ac_fn_cxx_try_compile "$LINENO"; then :
6651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6664 if ac_fn_cxx_try_compile "$LINENO"; then :
6665 ac_cv_prog_cxx_g=yes
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6675 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6676 if test "$ac_test_CXXFLAGS" = set; then
6677 CXXFLAGS=$ac_save_CXXFLAGS
6678 elif test $ac_cv_prog_cxx_g = yes; then
6679 if test "$GXX" = yes; then
6685 if test "$GXX" = yes; then
6692 ac_cpp='$CPP $CPPFLAGS'
6693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697 depcc="$CXX" am_compiler_list=
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6700 $as_echo_n "checking dependency style of $depcc... " >&6; }
6701 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6702 $as_echo_n "(cached) " >&6
6704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6705 # We make a subdir and do the tests there. Otherwise we can end up
6706 # making bogus files that we don't know about and never remove. For
6707 # instance it was reported that on HP-UX the gcc test will end up
6708 # making a dummy file named 'D' -- because '-MD' means "put the output
6712 # Copy depcomp to subdir because otherwise we won't find it if we're
6713 # using a relative directory.
6714 cp "$am_depcomp" conftest.dir
6716 # We will build objects and dependencies in a subdirectory because
6717 # it helps to detect inapplicable dependency modes. For instance
6718 # both Tru64's cc and ICC support -MD to output dependencies as a
6719 # side effect of compilation, but ICC will put the dependencies in
6720 # the current directory while Tru64 will put them in the object
6724 am_cv_CXX_dependencies_compiler_type=none
6725 if test "$am_compiler_list" = ""; then
6726 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6729 case " $depcc " in #(
6730 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6733 for depmode in $am_compiler_list; do
6734 # Setup a source with many dependencies, because some compilers
6735 # like to wrap large dependency lists on column 80 (with \), and
6736 # we should not choose a depcomp mode which is confused by this.
6738 # We need to recreate these files for each test, as the compiler may
6739 # overwrite some of them when testing with obscure command lines.
6740 # This happens at least with the AIX C compiler.
6742 for i in 1 2 3 4 5 6; do
6743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6744 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6745 # Solaris 10 /bin/sh.
6746 echo '/* dummy */' > sub/conftst$i.h
6748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6750 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6751 # mode. It turns out that the SunPro C++ compiler does not properly
6752 # handle '-M -o', and we need to detect this. Also, some Intel
6753 # versions had trouble with output in subdirs.
6754 am__obj=sub/conftest.${OBJEXT-o}
6755 am__minus_obj="-o $am__obj"
6758 # This depmode causes a compiler race in universal mode.
6759 test "$am__universal" = false || continue
6762 # After this tag, mechanisms are not by side-effect, so they'll
6763 # only be used when explicitly requested.
6764 if test "x$enable_dependency_tracking" = xyes; then
6770 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6771 # This compiler won't grok '-c -o', but also, the minuso test has
6772 # not run yet. These depmodes are late enough in the game, and
6773 # so weak that their functioning should not be impacted.
6774 am__obj=conftest.${OBJEXT-o}
6779 if depmode=$depmode \
6780 source=sub/conftest.c object=$am__obj \
6781 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6782 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6783 >/dev/null 2>conftest.err &&
6784 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6785 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6786 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6787 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6788 # icc doesn't choke on unknown options, it will just issue warnings
6789 # or remarks (even with -Werror). So we grep stderr for any message
6790 # that says an option was ignored or not supported.
6791 # When given -MP, icc 7.0 and 7.1 complain thusly:
6792 # icc: Command line warning: ignoring option '-M'; no argument required
6793 # The diagnosis changed in icc 8.0:
6794 # icc: Command line remark: option '-MP' not supported
6795 if (grep 'ignoring option' conftest.err ||
6796 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6797 am_cv_CXX_dependencies_compiler_type=$depmode
6806 am_cv_CXX_dependencies_compiler_type=none
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6811 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6812 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6815 test "x$enable_dependency_tracking" != xno \
6816 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6817 am__fastdepCXX_TRUE=
6818 am__fastdepCXX_FALSE='#'
6820 am__fastdepCXX_TRUE='#'
6821 am__fastdepCXX_FALSE=
6826 ac_cpp='$CXXCPP $CPPFLAGS'
6827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX understands -c and -o together" >&5
6831 $as_echo_n "checking whether $CXX understands -c and -o together... " >&6; }
6832 if ${ac_cv_prog_cxx_c_o+:} false; then :
6833 $as_echo_n "(cached) " >&6
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6846 # We test twice because some compilers refuse to overwrite an existing
6847 # `.o' file with `-o', although they will create one.
6848 ac_try='$CXX $CXXFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6850 if { { case "(($ac_try" in
6851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852 *) ac_try_echo=$ac_try;;
6854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6855 $as_echo "$ac_try_echo"; } >&5
6856 (eval "$ac_try") 2>&5
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; } &&
6860 test -f conftest2.$ac_objext &&
6861 { { case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6866 $as_echo "$ac_try_echo"; } >&5
6867 (eval "$ac_try") 2>&5
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; }; then
6871 ac_cv_prog_cxx_c_o=yes
6873 ac_cv_prog_cxx_c_o=no
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_c_o" >&5
6878 $as_echo "$ac_cv_prog_cxx_c_o" >&6; }
6879 if test $ac_cv_prog_cxx_c_o = no; then
6881 $as_echo "#define CXX_NO_MINUS_C_MINUS_O 1" >>confdefs.h
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6891 # Check for other compiler toolchain tools.
6893 if test -n "$ac_tool_prefix"; then
6894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6895 set dummy ${ac_tool_prefix}ar; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_prog_AR+:} false; then :
6899 $as_echo_n "(cached) " >&6
6901 if test -n "$AR"; then
6902 ac_cv_prog_AR="$AR" # Let the user override the test.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_AR="${ac_tool_prefix}ar"
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 if test -n "$AR"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6924 $as_echo "$AR" >&6; }
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6932 if test -z "$ac_cv_prog_AR"; then
6934 # Extract the first word of "ar", so it can be a program name with args.
6935 set dummy ar; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6939 $as_echo_n "(cached) " >&6
6941 if test -n "$ac_ct_AR"; then
6942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951 ac_cv_prog_ac_ct_AR="ar"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6962 if test -n "$ac_ct_AR"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6964 $as_echo "$ac_ct_AR" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6970 if test "x$ac_ct_AR" = x; then
6973 case $cross_compiling:$ac_tool_warned in
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977 ac_tool_warned=yes ;;
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_RANLIB+:} false; then :
6991 $as_echo_n "(cached) " >&6
6993 if test -n "$RANLIB"; then
6994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 RANLIB=$ac_cv_prog_RANLIB
7014 if test -n "$RANLIB"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7016 $as_echo "$RANLIB" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7024 if test -z "$ac_cv_prog_RANLIB"; then
7025 ac_ct_RANLIB=$RANLIB
7026 # Extract the first word of "ranlib", so it can be a program name with args.
7027 set dummy ranlib; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7031 $as_echo_n "(cached) " >&6
7033 if test -n "$ac_ct_RANLIB"; then
7034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_prog_ac_ct_RANLIB="ranlib"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7054 if test -n "$ac_ct_RANLIB"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7056 $as_echo "$ac_ct_RANLIB" >&6; }
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7062 if test "x$ac_ct_RANLIB" = x; then
7065 case $cross_compiling:$ac_tool_warned in
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069 ac_tool_warned=yes ;;
7071 RANLIB=$ac_ct_RANLIB
7074 RANLIB="$ac_cv_prog_RANLIB"
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_OBJCOPY+:} false; then :
7083 $as_echo_n "(cached) " >&6
7085 if test -n "$OBJCOPY"; then
7086 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 OBJCOPY=$ac_cv_prog_OBJCOPY
7106 if test -n "$OBJCOPY"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
7108 $as_echo "$OBJCOPY" >&6; }
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7116 if test -z "$ac_cv_prog_OBJCOPY"; then
7117 ac_ct_OBJCOPY=$OBJCOPY
7118 # Extract the first word of "objcopy", so it can be a program name with args.
7119 set dummy objcopy; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
7123 $as_echo_n "(cached) " >&6
7125 if test -n "$ac_ct_OBJCOPY"; then
7126 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
7146 if test -n "$ac_ct_OBJCOPY"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
7148 $as_echo "$ac_ct_OBJCOPY" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7154 if test "x$ac_ct_OBJCOPY" = x; then
7157 case $cross_compiling:$ac_tool_warned in
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7163 OBJCOPY=$ac_ct_OBJCOPY
7166 OBJCOPY="$ac_cv_prog_OBJCOPY"
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}strip; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_STRIP+:} false; then :
7175 $as_echo_n "(cached) " >&6
7177 if test -n "$STRIP"; then
7178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 STRIP=$ac_cv_prog_STRIP
7198 if test -n "$STRIP"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7200 $as_echo "$STRIP" >&6; }
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7208 if test -z "$ac_cv_prog_STRIP"; then
7210 # Extract the first word of "strip", so it can be a program name with args.
7211 set dummy strip; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7215 $as_echo_n "(cached) " >&6
7217 if test -n "$ac_ct_STRIP"; then
7218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_prog_ac_ct_STRIP="strip"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7238 if test -n "$ac_ct_STRIP"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7240 $as_echo "$ac_ct_STRIP" >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7246 if test "x$ac_ct_STRIP" = x; then
7249 case $cross_compiling:$ac_tool_warned in
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7258 STRIP="$ac_cv_prog_STRIP"
7262 # Check for other host tools.
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7266 $as_echo_n "checking whether ln -s works... " >&6; }
7268 if test "$LN_S" = "ln -s"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7270 $as_echo "yes" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7273 $as_echo "no, using $LN_S" >&6; }
7277 # Extract the first word of "cmp", so it can be a program name with args.
7278 set dummy cmp; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_path_CMP+:} false; then :
7282 $as_echo_n "(cached) " >&6
7286 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 if test -n "$CMP"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
7310 $as_echo "$CMP" >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7317 # Extract the first word of "perl", so it can be a program name with args.
7318 set dummy perl; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_path_PERL+:} false; then :
7322 $as_echo_n "(cached) " >&6
7326 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 PERL=$ac_cv_path_PERL
7348 if test -n "$PERL"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7350 $as_echo "$PERL" >&6; }
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7359 # Checks for specific preprocessor and compiler characteristics
7363 # Common preprocessor flags we would like to have.
7365 # -isystem ${top_srcdir}/include/stdc
7367 # We use -isystem, if available, to check the Standard C Library
7368 # assert() and assert.h workalike macro and header, respectively,
7369 # functionality by forcing the preprocessor to pick-up this package's
7370 # provisions for this rather than the toolchain's.
7373 PROSPECTIVE_CPPFLAG="-isystem \${top_srcdir}/include/stdc"
7380 ac_cpp='$CPP $CPPFLAGS'
7381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C preprocessor understands ${PROSPECTIVE_CPPFLAG}" >&5
7386 $as_echo_n "checking whether the C preprocessor understands ${PROSPECTIVE_CPPFLAG}... " >&6; }
7387 SAVE_CPPFLAGS=${CPPFLAGS}
7388 SAVE_ISYSTEM_CPPFLAGS=${ISYSTEM_CPPFLAGS}
7389 CPPFLAGS=${PROSPECTIVE_CPPFLAG}
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7394 if ac_fn_c_try_cpp "$LINENO"; then :
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396 $as_echo "yes" >&6; }; CPPFLAGS="${SAVE_CPPFLAGS}"; ISYSTEM_CPPFLAGS="${SAVE_ISYSTEM_CPPFLAGS} ${PROSPECTIVE_CPPFLAG}"
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }; CPPFLAGS=${SAVE_CPPFLAGS}; ISYSTEM_CPPFLAGS=${SAVE_ISYSTEM_CPPFLAGS}
7401 rm -f conftest.err conftest.i conftest.$ac_ext;
7403 unset SAVE_ISYSTEM_CPPFLAGS
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415 if test "x${ISYSTEM_CPPFLAGS}" != "x"; then
7417 $as_echo "#define NLASSERT_TEST_STDC 1" >>confdefs.h
7422 # Common compiler flags we would like to have.
7427 PROSPECTIVE_CFLAGS="-Wall"
7431 for ax_compiler_option in ${PROSPECTIVE_CFLAGS}; do
7434 ac_cpp='$CPP $CPPFLAGS'
7435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler understands $ax_compiler_option" >&5
7440 $as_echo_n "checking whether the C compiler understands $ax_compiler_option... " >&6; }
7441 SAVE_CFLAGS=${CFLAGS}
7442 CFLAGS=$ax_compiler_option
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }; CFLAGS="${SAVE_CFLAGS} $ax_compiler_option"
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }; CFLAGS=${SAVE_CFLAGS}
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7464 ac_cpp='$CPP $CPPFLAGS'
7465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474 # Check for and initialize libtool
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7479 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7484 macro_version='2.4.2'
7485 macro_revision='1.3337'
7499 ltmain="$ac_aux_dir/ltmain.sh"
7501 # Backslashify metacharacters that are still active within
7502 # double-quoted strings.
7503 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7505 # Same as above, but do not quote variable references.
7506 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7508 # Sed substitution to delay expansion of an escaped shell variable in a
7509 # double_quote_subst'ed string.
7510 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7512 # Sed substitution to delay expansion of an escaped single quote.
7513 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7515 # Sed substitution to avoid accidental globbing in evaled expressions
7516 no_glob_subst='s/\*/\\\*/g'
7518 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7519 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7520 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7523 $as_echo_n "checking how to print strings... " >&6; }
7524 # Test print first, because it will be a builtin if present.
7525 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7526 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7528 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7531 # Use this function as a fallback that always works.
7532 func_fallback_echo ()
7534 eval 'cat <<_LTECHO_EOF
7538 ECHO='func_fallback_echo'
7541 # func_echo_all arg...
7542 # Invoke $ECHO with all args, space-separated.
7549 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7550 $as_echo "printf" >&6; } ;;
7551 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7552 $as_echo "print -r" >&6; } ;;
7553 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7554 $as_echo "cat" >&6; } ;;
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7571 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7572 if ${ac_cv_path_SED+:} false; then :
7573 $as_echo_n "(cached) " >&6
7575 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7576 for ac_i in 1 2 3 4 5 6 7; do
7577 ac_script="$ac_script$as_nl$ac_script"
7579 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7580 { ac_script=; unset ac_script;}
7581 if test -z "$SED"; then
7582 ac_path_SED_found=false
7583 # Loop through the user's path and test for each of PROGNAME-LIST
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_prog in sed gsed; do
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7592 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7593 # Check for GNU ac_path_SED and select it if it is found.
7594 # Check for GNU $ac_path_SED
7595 case `"$ac_path_SED" --version 2>&1` in
7597 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7600 $as_echo_n 0123456789 >"conftest.in"
7603 cat "conftest.in" "conftest.in" >"conftest.tmp"
7604 mv "conftest.tmp" "conftest.in"
7605 cp "conftest.in" "conftest.nl"
7606 $as_echo '' >> "conftest.nl"
7607 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7609 as_fn_arith $ac_count + 1 && ac_count=$as_val
7610 if test $ac_count -gt ${ac_path_SED_max-0}; then
7611 # Best one so far, save it but keep looking for a better one
7612 ac_cv_path_SED="$ac_path_SED"
7613 ac_path_SED_max=$ac_count
7615 # 10*(2^10) chars as input seems more than enough
7616 test $ac_count -gt 10 && break
7618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7621 $ac_path_SED_found && break 3
7626 if test -z "$ac_cv_path_SED"; then
7627 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7635 $as_echo "$ac_cv_path_SED" >&6; }
7636 SED="$ac_cv_path_SED"
7639 test -z "$SED" && SED=sed
7640 Xsed="$SED -e 1s/^X//"
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7653 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7654 if ${ac_cv_path_GREP+:} false; then :
7655 $as_echo_n "(cached) " >&6
7657 if test -z "$GREP"; then
7658 ac_path_GREP_found=false
7659 # Loop through the user's path and test for each of PROGNAME-LIST
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7664 test -z "$as_dir" && as_dir=.
7665 for ac_prog in grep ggrep; do
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7668 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7669 # Check for GNU ac_path_GREP and select it if it is found.
7670 # Check for GNU $ac_path_GREP
7671 case `"$ac_path_GREP" --version 2>&1` in
7673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7676 $as_echo_n 0123456789 >"conftest.in"
7679 cat "conftest.in" "conftest.in" >"conftest.tmp"
7680 mv "conftest.tmp" "conftest.in"
7681 cp "conftest.in" "conftest.nl"
7682 $as_echo 'GREP' >> "conftest.nl"
7683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7685 as_fn_arith $ac_count + 1 && ac_count=$as_val
7686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7687 # Best one so far, save it but keep looking for a better one
7688 ac_cv_path_GREP="$ac_path_GREP"
7689 ac_path_GREP_max=$ac_count
7691 # 10*(2^10) chars as input seems more than enough
7692 test $ac_count -gt 10 && break
7694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7697 $ac_path_GREP_found && break 3
7702 if test -z "$ac_cv_path_GREP"; then
7703 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7706 ac_cv_path_GREP=$GREP
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7711 $as_echo "$ac_cv_path_GREP" >&6; }
7712 GREP="$ac_cv_path_GREP"
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7716 $as_echo_n "checking for egrep... " >&6; }
7717 if ${ac_cv_path_EGREP+:} false; then :
7718 $as_echo_n "(cached) " >&6
7720 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7721 then ac_cv_path_EGREP="$GREP -E"
7723 if test -z "$EGREP"; then
7724 ac_path_EGREP_found=false
7725 # Loop through the user's path and test for each of PROGNAME-LIST
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7730 test -z "$as_dir" && as_dir=.
7731 for ac_prog in egrep; do
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7734 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7735 # Check for GNU ac_path_EGREP and select it if it is found.
7736 # Check for GNU $ac_path_EGREP
7737 case `"$ac_path_EGREP" --version 2>&1` in
7739 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7742 $as_echo_n 0123456789 >"conftest.in"
7745 cat "conftest.in" "conftest.in" >"conftest.tmp"
7746 mv "conftest.tmp" "conftest.in"
7747 cp "conftest.in" "conftest.nl"
7748 $as_echo 'EGREP' >> "conftest.nl"
7749 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7751 as_fn_arith $ac_count + 1 && ac_count=$as_val
7752 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7753 # Best one so far, save it but keep looking for a better one
7754 ac_cv_path_EGREP="$ac_path_EGREP"
7755 ac_path_EGREP_max=$ac_count
7757 # 10*(2^10) chars as input seems more than enough
7758 test $ac_count -gt 10 && break
7760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7763 $ac_path_EGREP_found && break 3
7768 if test -z "$ac_cv_path_EGREP"; then
7769 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7772 ac_cv_path_EGREP=$EGREP
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7778 $as_echo "$ac_cv_path_EGREP" >&6; }
7779 EGREP="$ac_cv_path_EGREP"
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7783 $as_echo_n "checking for fgrep... " >&6; }
7784 if ${ac_cv_path_FGREP+:} false; then :
7785 $as_echo_n "(cached) " >&6
7787 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7788 then ac_cv_path_FGREP="$GREP -F"
7790 if test -z "$FGREP"; then
7791 ac_path_FGREP_found=false
7792 # Loop through the user's path and test for each of PROGNAME-LIST
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7797 test -z "$as_dir" && as_dir=.
7798 for ac_prog in fgrep; do
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7801 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7802 # Check for GNU ac_path_FGREP and select it if it is found.
7803 # Check for GNU $ac_path_FGREP
7804 case `"$ac_path_FGREP" --version 2>&1` in
7806 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7809 $as_echo_n 0123456789 >"conftest.in"
7812 cat "conftest.in" "conftest.in" >"conftest.tmp"
7813 mv "conftest.tmp" "conftest.in"
7814 cp "conftest.in" "conftest.nl"
7815 $as_echo 'FGREP' >> "conftest.nl"
7816 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7818 as_fn_arith $ac_count + 1 && ac_count=$as_val
7819 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7820 # Best one so far, save it but keep looking for a better one
7821 ac_cv_path_FGREP="$ac_path_FGREP"
7822 ac_path_FGREP_max=$ac_count
7824 # 10*(2^10) chars as input seems more than enough
7825 test $ac_count -gt 10 && break
7827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7830 $ac_path_FGREP_found && break 3
7835 if test -z "$ac_cv_path_FGREP"; then
7836 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7839 ac_cv_path_FGREP=$FGREP
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7845 $as_echo "$ac_cv_path_FGREP" >&6; }
7846 FGREP="$ac_cv_path_FGREP"
7849 test -z "$GREP" && GREP=grep
7869 # Check whether --with-gnu-ld was given.
7870 if test "${with_gnu_ld+set}" = set; then :
7871 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7877 if test "$GCC" = yes; then
7878 # Check if gcc -print-prog-name=ld gives a path.
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7880 $as_echo_n "checking for ld used by $CC... " >&6; }
7883 # gcc leaves a trailing carriage return which upsets mingw
7884 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7886 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7889 # Accept absolute paths.
7891 re_direlt='/[^/][^/]*/\.\./'
7892 # Canonicalize the pathname of ld
7893 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7894 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7895 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7897 test -z "$LD" && LD="$ac_prog"
7900 # If it fails, then pretend we aren't using GCC.
7904 # If it is relative, then search for the first ld in PATH.
7908 elif test "$with_gnu_ld" = yes; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7910 $as_echo_n "checking for GNU ld... " >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7913 $as_echo_n "checking for non-GNU ld... " >&6; }
7915 if ${lt_cv_path_LD+:} false; then :
7916 $as_echo_n "(cached) " >&6
7918 if test -z "$LD"; then
7919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7920 for ac_dir in $PATH; do
7922 test -z "$ac_dir" && ac_dir=.
7923 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7924 lt_cv_path_LD="$ac_dir/$ac_prog"
7925 # Check to see if the program is GNU ld. I'd rather use --version,
7926 # but apparently some variants of GNU ld only accept -v.
7927 # Break only if it was the GNU/non-GNU ld that we prefer.
7928 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7929 *GNU* | *'with BFD'*)
7930 test "$with_gnu_ld" != no && break
7933 test "$with_gnu_ld" != yes && break
7940 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7945 if test -n "$LD"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7947 $as_echo "$LD" >&6; }
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7952 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7954 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7955 if ${lt_cv_prog_gnu_ld+:} false; then :
7956 $as_echo_n "(cached) " >&6
7958 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7959 case `$LD -v 2>&1 </dev/null` in
7960 *GNU* | *'with BFD'*)
7961 lt_cv_prog_gnu_ld=yes
7964 lt_cv_prog_gnu_ld=no
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7969 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7970 with_gnu_ld=$lt_cv_prog_gnu_ld
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7981 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7982 if ${lt_cv_path_NM+:} false; then :
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$NM"; then
7986 # Let the user override the test.
7989 lt_nm_to_check="${ac_tool_prefix}nm"
7990 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7991 lt_nm_to_check="$lt_nm_to_check nm"
7993 for lt_tmp_nm in $lt_nm_to_check; do
7994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7995 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7997 test -z "$ac_dir" && ac_dir=.
7998 tmp_nm="$ac_dir/$lt_tmp_nm"
7999 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8000 # Check to see if the nm accepts a BSD-compat flag.
8001 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8002 # nm: unknown option "B" ignored
8003 # Tru64's nm complains that /dev/null is an invalid object file
8004 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8005 */dev/null* | *'Invalid file or object type'*)
8006 lt_cv_path_NM="$tmp_nm -B"
8010 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8012 lt_cv_path_NM="$tmp_nm -p"
8016 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8017 continue # so that we can try to find one that supports BSD flags
8026 : ${lt_cv_path_NM=no}
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8030 $as_echo "$lt_cv_path_NM" >&6; }
8031 if test "$lt_cv_path_NM" != "no"; then
8034 # Didn't find any BSD compatible name lister, look for dumpbin.
8035 if test -n "$DUMPBIN"; then :
8036 # Let the user override the test.
8038 if test -n "$ac_tool_prefix"; then
8039 for ac_prog in dumpbin "link -dump"
8041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_DUMPBIN+:} false; then :
8046 $as_echo_n "(cached) " >&6
8048 if test -n "$DUMPBIN"; then
8049 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 DUMPBIN=$ac_cv_prog_DUMPBIN
8069 if test -n "$DUMPBIN"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8071 $as_echo "$DUMPBIN" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8078 test -n "$DUMPBIN" && break
8081 if test -z "$DUMPBIN"; then
8082 ac_ct_DUMPBIN=$DUMPBIN
8083 for ac_prog in dumpbin "link -dump"
8085 # Extract the first word of "$ac_prog", so it can be a program name with args.
8086 set dummy $ac_prog; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$ac_ct_DUMPBIN"; then
8093 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8113 if test -n "$ac_ct_DUMPBIN"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8115 $as_echo "$ac_ct_DUMPBIN" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8122 test -n "$ac_ct_DUMPBIN" && break
8125 if test "x$ac_ct_DUMPBIN" = x; then
8128 case $cross_compiling:$ac_tool_warned in
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8134 DUMPBIN=$ac_ct_DUMPBIN
8138 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8140 DUMPBIN="$DUMPBIN -symbols"
8148 if test "$DUMPBIN" != ":"; then
8152 test -z "$NM" && NM=nm
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8160 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8161 if ${lt_cv_nm_interface+:} false; then :
8162 $as_echo_n "(cached) " >&6
8164 lt_cv_nm_interface="BSD nm"
8165 echo "int some_variable = 0;" > conftest.$ac_ext
8166 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8167 (eval "$ac_compile" 2>conftest.err)
8168 cat conftest.err >&5
8169 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8170 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8171 cat conftest.err >&5
8172 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8173 cat conftest.out >&5
8174 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8175 lt_cv_nm_interface="MS dumpbin"
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8180 $as_echo "$lt_cv_nm_interface" >&6; }
8182 # find the maximum length of command line arguments
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8184 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8185 if ${lt_cv_sys_max_cmd_len+:} false; then :
8186 $as_echo_n "(cached) " >&6
8193 # On DJGPP, this test can blow up pretty badly due to problems in libc
8194 # (any single argument exceeding 2000 bytes causes a buffer overrun
8195 # during glob expansion). Even if it were fixed, the result of this
8196 # check would be larger than it should be.
8197 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8201 # Under GNU Hurd, this test is not required because there is
8202 # no limit to the length of command line arguments.
8203 # Libtool will interpret -1 as no limit whatsoever
8204 lt_cv_sys_max_cmd_len=-1;
8207 cygwin* | mingw* | cegcc*)
8208 # On Win9x/ME, this test blows up -- it succeeds, but takes
8209 # about 5 minutes as the teststring grows exponentially.
8210 # Worse, since 9x/ME are not pre-emptively multitasking,
8211 # you end up with a "frozen" computer, even though with patience
8212 # the test eventually succeeds (with a max line length of 256k).
8213 # Instead, let's just punt: use the minimum linelength reported by
8214 # all of the supported platforms: 8192 (on NT/2K/XP).
8215 lt_cv_sys_max_cmd_len=8192;
8219 # On MiNT this can take a long time and run out of memory.
8220 lt_cv_sys_max_cmd_len=8192;
8224 # On AmigaOS with pdksh, this test takes hours, literally.
8225 # So we just punt and use a minimum line length of 8192.
8226 lt_cv_sys_max_cmd_len=8192;
8229 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8230 # This has been around since 386BSD, at least. Likely further.
8231 if test -x /sbin/sysctl; then
8232 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8233 elif test -x /usr/sbin/sysctl; then
8234 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8236 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8238 # And add a safety zone
8239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8244 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8245 lt_cv_sys_max_cmd_len=196608
8249 # The test takes a long time on OS/2.
8250 lt_cv_sys_max_cmd_len=8192
8254 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8255 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8256 # nice to cause kernel panics so lets avoid the loop below.
8257 # First set a reasonable default.
8258 lt_cv_sys_max_cmd_len=16384
8260 if test -x /sbin/sysconfig; then
8261 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8262 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8267 lt_cv_sys_max_cmd_len=102400
8269 sysv5* | sco5v6* | sysv4.2uw2*)
8270 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8271 if test -n "$kargmax"; then
8272 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8274 lt_cv_sys_max_cmd_len=32768
8278 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8279 if test -n "$lt_cv_sys_max_cmd_len"; then
8280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8283 # Make teststring a little bigger before we do anything with it.
8284 # a 1K string should be a reasonable start.
8285 for i in 1 2 3 4 5 6 7 8 ; do
8286 teststring=$teststring$teststring
8288 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8289 # If test is not a shell built-in, we'll probably end up computing a
8290 # maximum length that is only half of the actual maximum length, but
8292 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8293 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8294 test $i != 17 # 1/2 MB should be enough
8297 teststring=$teststring$teststring
8299 # Only check the string length outside the loop.
8300 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8302 # Add a significant safety factor because C++ compilers can tack on
8303 # massive amounts of additional arguments before passing them to the
8304 # linker. It appears as though 1/2 is a usable value.
8305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8312 if test -n $lt_cv_sys_max_cmd_len ; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8314 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8317 $as_echo "none" >&6; }
8319 max_cmd_len=$lt_cv_sys_max_cmd_len
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8331 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8332 # Try some XSI features
8335 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8337 && eval 'test $(( 1 + 1 )) -eq 2 \
8338 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8341 $as_echo "$xsi_shell" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8345 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8347 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8349 && lt_shell_append=yes
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8351 $as_echo "$lt_shell_append" >&6; }
8354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8364 # test EBCDIC or ASCII
8365 case `echo X|tr X '\101'` in
8366 A) # ASCII based system
8367 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8368 lt_SP2NL='tr \040 \012'
8369 lt_NL2SP='tr \015\012 \040\040'
8371 *) # EBCDIC based system
8372 lt_SP2NL='tr \100 \n'
8373 lt_NL2SP='tr \r\n \100\100'
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8386 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8387 if ${lt_cv_to_host_file_cmd+:} false; then :
8388 $as_echo_n "(cached) " >&6
8393 *-*-mingw* ) # actually msys
8394 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8397 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8399 * ) # otherwise, assume *nix
8400 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8406 *-*-mingw* ) # actually msys
8407 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8410 lt_cv_to_host_file_cmd=func_convert_file_noop
8412 * ) # otherwise, assume *nix
8413 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8417 * ) # unhandled hosts (and "normal" native builds)
8418 lt_cv_to_host_file_cmd=func_convert_file_noop
8424 to_host_file_cmd=$lt_cv_to_host_file_cmd
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8426 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8433 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8434 if ${lt_cv_to_tool_file_cmd+:} false; then :
8435 $as_echo_n "(cached) " >&6
8437 #assume ordinary cross tools, or native build.
8438 lt_cv_to_tool_file_cmd=func_convert_file_noop
8442 *-*-mingw* ) # actually msys
8443 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8451 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8453 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8460 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8461 if ${lt_cv_ld_reload_flag+:} false; then :
8462 $as_echo_n "(cached) " >&6
8464 lt_cv_ld_reload_flag='-r'
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8467 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8468 reload_flag=$lt_cv_ld_reload_flag
8469 case $reload_flag in
8471 *) reload_flag=" $reload_flag" ;;
8473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8475 cygwin* | mingw* | pw32* | cegcc*)
8476 if test "$GCC" != yes; then
8481 if test "$GCC" = yes; then
8482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8497 if test -n "$ac_tool_prefix"; then
8498 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if ${ac_cv_prog_OBJDUMP+:} false; then :
8503 $as_echo_n "(cached) " >&6
8505 if test -n "$OBJDUMP"; then
8506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 OBJDUMP=$ac_cv_prog_OBJDUMP
8526 if test -n "$OBJDUMP"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8528 $as_echo "$OBJDUMP" >&6; }
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8536 if test -z "$ac_cv_prog_OBJDUMP"; then
8537 ac_ct_OBJDUMP=$OBJDUMP
8538 # Extract the first word of "objdump", so it can be a program name with args.
8539 set dummy objdump; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8543 $as_echo_n "(cached) " >&6
8545 if test -n "$ac_ct_OBJDUMP"; then
8546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8566 if test -n "$ac_ct_OBJDUMP"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8568 $as_echo "$ac_ct_OBJDUMP" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8574 if test "x$ac_ct_OBJDUMP" = x; then
8577 case $cross_compiling:$ac_tool_warned in
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8581 ac_tool_warned=yes ;;
8583 OBJDUMP=$ac_ct_OBJDUMP
8586 OBJDUMP="$ac_cv_prog_OBJDUMP"
8589 test -z "$OBJDUMP" && OBJDUMP=objdump
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8601 if ${lt_cv_deplibs_check_method+:} false; then :
8602 $as_echo_n "(cached) " >&6
8604 lt_cv_file_magic_cmd='$MAGIC_CMD'
8605 lt_cv_file_magic_test_file=
8606 lt_cv_deplibs_check_method='unknown'
8607 # Need to set the preceding variable on all platforms that support
8608 # interlibrary dependencies.
8609 # 'none' -- dependencies not supported.
8610 # `unknown' -- same as none, but documents that we really don't know.
8611 # 'pass_all' -- all dependencies passed with no checks.
8612 # 'test_compile' -- check by making test program.
8613 # 'file_magic [[regex]]' -- check by looking for files in library path
8614 # which responds to the $file_magic_cmd with a given extended regex.
8615 # If you have `file' or equivalent on your system and you're not sure
8616 # whether `pass_all' will *always* work, you probably want this one.
8620 lt_cv_deplibs_check_method=pass_all
8624 lt_cv_deplibs_check_method=pass_all
8628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8629 lt_cv_file_magic_cmd='/usr/bin/file -L'
8630 lt_cv_file_magic_test_file=/shlib/libc.so
8634 # func_win32_libid is a shell function defined in ltmain.sh
8635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8636 lt_cv_file_magic_cmd='func_win32_libid'
8640 # Base MSYS/MinGW do not provide the 'file' command needed by
8641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8642 # unless we find 'file', for example because we are cross-compiling.
8643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8644 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8646 lt_cv_file_magic_cmd='func_win32_libid'
8648 # Keep this pattern in sync with the one in func_win32_libid.
8649 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8650 lt_cv_file_magic_cmd='$OBJDUMP -f'
8655 # use the weaker test based on 'objdump'. See mingw*.
8656 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8657 lt_cv_file_magic_cmd='$OBJDUMP -f'
8660 darwin* | rhapsody*)
8661 lt_cv_deplibs_check_method=pass_all
8664 freebsd* | dragonfly*)
8665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8668 # Not sure whether the presence of OpenBSD here was a mistake.
8669 # Let's accept both of them until this is cleared up.
8670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8671 lt_cv_file_magic_cmd=/usr/bin/file
8672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8676 lt_cv_deplibs_check_method=pass_all
8681 lt_cv_deplibs_check_method=pass_all
8685 lt_cv_deplibs_check_method=pass_all
8688 hpux10.20* | hpux11*)
8689 lt_cv_file_magic_cmd=/usr/bin/file
8692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8701 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8711 irix5* | irix6* | nonstopux*)
8713 *-32|*"-32 ") libmagic=32-bit;;
8714 *-n32|*"-n32 ") libmagic=N32;;
8715 *-64|*"-64 ") libmagic=64-bit;;
8716 *) libmagic=never-match;;
8718 lt_cv_deplibs_check_method=pass_all
8721 # This must be glibc/ELF.
8722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8723 lt_cv_deplibs_check_method=pass_all
8727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8736 lt_cv_file_magic_cmd=/usr/bin/file
8737 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8741 lt_cv_deplibs_check_method=pass_all
8745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8752 osf3* | osf4* | osf5*)
8753 lt_cv_deplibs_check_method=pass_all
8757 lt_cv_deplibs_check_method=pass_all
8761 lt_cv_deplibs_check_method=pass_all
8764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8765 lt_cv_deplibs_check_method=pass_all
8769 case $host_vendor in
8771 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]'
8772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8775 lt_cv_deplibs_check_method=pass_all
8778 lt_cv_file_magic_cmd='/bin/file'
8779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8782 lt_cv_file_magic_cmd='/bin/file'
8783 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8784 lt_cv_file_magic_test_file=/lib/libc.so
8787 lt_cv_deplibs_check_method=pass_all
8790 lt_cv_deplibs_check_method=pass_all
8796 lt_cv_deplibs_check_method=pass_all
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8802 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8806 if test "$build" = "$host"; then
8809 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8812 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8818 file_magic_cmd=$lt_cv_file_magic_cmd
8819 deplibs_check_method=$lt_cv_deplibs_check_method
8820 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8843 if test -n "$ac_tool_prefix"; then
8844 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8845 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if ${ac_cv_prog_DLLTOOL+:} false; then :
8849 $as_echo_n "(cached) " >&6
8851 if test -n "$DLLTOOL"; then
8852 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 test -z "$as_dir" && as_dir=.
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8861 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8871 DLLTOOL=$ac_cv_prog_DLLTOOL
8872 if test -n "$DLLTOOL"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8874 $as_echo "$DLLTOOL" >&6; }
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 $as_echo "no" >&6; }
8882 if test -z "$ac_cv_prog_DLLTOOL"; then
8883 ac_ct_DLLTOOL=$DLLTOOL
8884 # Extract the first word of "dlltool", so it can be a program name with args.
8885 set dummy dlltool; ac_word=$2
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887 $as_echo_n "checking for $ac_word... " >&6; }
8888 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8889 $as_echo_n "(cached) " >&6
8891 if test -n "$ac_ct_DLLTOOL"; then
8892 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8901 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8912 if test -n "$ac_ct_DLLTOOL"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8914 $as_echo "$ac_ct_DLLTOOL" >&6; }
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8920 if test "x$ac_ct_DLLTOOL" = x; then
8923 case $cross_compiling:$ac_tool_warned in
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8927 ac_tool_warned=yes ;;
8929 DLLTOOL=$ac_ct_DLLTOOL
8932 DLLTOOL="$ac_cv_prog_DLLTOOL"
8935 test -z "$DLLTOOL" && DLLTOOL=dlltool
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8947 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8948 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8949 $as_echo_n "(cached) " >&6
8951 lt_cv_sharedlib_from_linklib_cmd='unknown'
8954 cygwin* | mingw* | pw32* | cegcc*)
8955 # two different shell functions defined in ltmain.sh
8956 # decide which to use based on capabilities of $DLLTOOL
8957 case `$DLLTOOL --help 2>&1` in
8958 *--identify-strict*)
8959 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8962 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8967 # fallback: assume linklib IS sharedlib
8968 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8974 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8975 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8976 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8984 if test -n "$ac_tool_prefix"; then
8987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_AR+:} false; then :
8992 $as_echo_n "(cached) " >&6
8994 if test -n "$AR"; then
8995 ac_cv_prog_AR="$AR" # Let the user override the test.
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 if test -n "$AR"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9017 $as_echo "$AR" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9024 test -n "$AR" && break
9027 if test -z "$AR"; then
9031 # Extract the first word of "$ac_prog", so it can be a program name with args.
9032 set dummy $ac_prog; ac_word=$2
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034 $as_echo_n "checking for $ac_word... " >&6; }
9035 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9036 $as_echo_n "(cached) " >&6
9038 if test -n "$ac_ct_AR"; then
9039 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 test -z "$as_dir" && as_dir=.
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048 ac_cv_prog_ac_ct_AR="$ac_prog"
9049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9059 if test -n "$ac_ct_AR"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9061 $as_echo "$ac_ct_AR" >&6; }
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9068 test -n "$ac_ct_AR" && break
9071 if test "x$ac_ct_AR" = x; then
9074 case $cross_compiling:$ac_tool_warned in
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9078 ac_tool_warned=yes ;;
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9098 $as_echo_n "checking for archiver @FILE support... " >&6; }
9099 if ${lt_cv_ar_at_file+:} false; then :
9100 $as_echo_n "(cached) " >&6
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9114 if ac_fn_c_try_compile "$LINENO"; then :
9115 echo conftest.$ac_objext > conftest.lst
9116 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9118 (eval $lt_ar_try) 2>&5
9120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9121 test $ac_status = 0; }
9122 if test "$ac_status" -eq 0; then
9123 # Ensure the archiver fails upon bogus file names.
9124 rm -f conftest.$ac_objext libconftest.a
9125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9126 (eval $lt_ar_try) 2>&5
9128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9129 test $ac_status = 0; }
9130 if test "$ac_status" -ne 0; then
9134 rm -f conftest.* libconftest.a
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9141 $as_echo "$lt_cv_ar_at_file" >&6; }
9143 if test "x$lt_cv_ar_at_file" = xno; then
9146 archiver_list_spec=$lt_cv_ar_at_file
9155 if test -n "$ac_tool_prefix"; then
9156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9157 set dummy ${ac_tool_prefix}strip; ac_word=$2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 $as_echo_n "checking for $ac_word... " >&6; }
9160 if ${ac_cv_prog_STRIP+:} false; then :
9161 $as_echo_n "(cached) " >&6
9163 if test -n "$STRIP"; then
9164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 STRIP=$ac_cv_prog_STRIP
9184 if test -n "$STRIP"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9186 $as_echo "$STRIP" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9194 if test -z "$ac_cv_prog_STRIP"; then
9196 # Extract the first word of "strip", so it can be a program name with args.
9197 set dummy strip; ac_word=$2
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199 $as_echo_n "checking for $ac_word... " >&6; }
9200 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9201 $as_echo_n "(cached) " >&6
9203 if test -n "$ac_ct_STRIP"; then
9204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9213 ac_cv_prog_ac_ct_STRIP="strip"
9214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9224 if test -n "$ac_ct_STRIP"; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9226 $as_echo "$ac_ct_STRIP" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9232 if test "x$ac_ct_STRIP" = x; then
9235 case $cross_compiling:$ac_tool_warned in
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9239 ac_tool_warned=yes ;;
9244 STRIP="$ac_cv_prog_STRIP"
9247 test -z "$STRIP" && STRIP=:
9254 if test -n "$ac_tool_prefix"; then
9255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if ${ac_cv_prog_RANLIB+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 if test -n "$RANLIB"; then
9263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 RANLIB=$ac_cv_prog_RANLIB
9283 if test -n "$RANLIB"; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9285 $as_echo "$RANLIB" >&6; }
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 $as_echo "no" >&6; }
9293 if test -z "$ac_cv_prog_RANLIB"; then
9294 ac_ct_RANLIB=$RANLIB
9295 # Extract the first word of "ranlib", so it can be a program name with args.
9296 set dummy ranlib; ac_word=$2
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9298 $as_echo_n "checking for $ac_word... " >&6; }
9299 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9300 $as_echo_n "(cached) " >&6
9302 if test -n "$ac_ct_RANLIB"; then
9303 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
9311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9312 ac_cv_prog_ac_ct_RANLIB="ranlib"
9313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9323 if test -n "$ac_ct_RANLIB"; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9325 $as_echo "$ac_ct_RANLIB" >&6; }
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328 $as_echo "no" >&6; }
9331 if test "x$ac_ct_RANLIB" = x; then
9334 case $cross_compiling:$ac_tool_warned in
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9338 ac_tool_warned=yes ;;
9340 RANLIB=$ac_ct_RANLIB
9343 RANLIB="$ac_cv_prog_RANLIB"
9346 test -z "$RANLIB" && RANLIB=:
9353 # Determine commands to create old-style static archives.
9354 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9355 old_postinstall_cmds='chmod 644 $oldlib'
9356 old_postuninstall_cmds=
9358 if test -n "$RANLIB"; then
9361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9364 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9367 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9372 lock_old_archive_extraction=yes ;;
9374 lock_old_archive_extraction=no ;;
9415 # If no C compiler was specified, use CC.
9418 # If no C compiler flags were specified, use CFLAGS.
9419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9421 # Allow CC to be a program name with arguments.
9425 # Check for command to grab the raw symbol name followed by C symbol from nm.
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9427 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9428 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9429 $as_echo_n "(cached) " >&6
9432 # These are sane defaults that work on at least a few old systems.
9433 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9435 # Character class describing NM global symbol codes.
9436 symcode='[BCDEGRST]'
9438 # Regexp to match symbols that can be accessed directly from C.
9439 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9441 # Define system-specific variables.
9446 cygwin* | mingw* | pw32* | cegcc*)
9447 symcode='[ABCDGISTW]'
9450 if test "$host_cpu" = ia64; then
9451 symcode='[ABCDEGRST]'
9455 symcode='[BCDEGRST]'
9458 symcode='[BCDEGQRST]'
9469 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9477 # If we're using GNU nm, then use its standard symbol codes.
9478 case `$NM -V 2>&1` in
9479 *GNU* | *'with BFD'*)
9480 symcode='[ABCDGIRSTW]' ;;
9483 # Transform an extracted symbol line into a proper C declaration.
9484 # Some systems (esp. on ia64) link data and code symbols differently,
9485 # so use this general approach.
9486 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9488 # Transform an extracted symbol line into symbol name and symbol address
9489 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9490 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'"
9492 # Handle CRLF in mingw tool chain
9496 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9500 # Try without a prefix underscore, then with it.
9501 for ac_symprfx in "" "_"; do
9503 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9504 symxfrm="\\1 $ac_symprfx\\2 \\2"
9506 # Write the raw and C identifiers.
9507 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9508 # Fake it for dumpbin and say T for any non-static function
9509 # and D for any global variable.
9510 # Also find C++ and __fastcall symbols from MSVC++,
9511 # which start with @ or ?.
9512 lt_cv_sys_global_symbol_pipe="$AWK '"\
9513 " {last_section=section; section=\$ 3};"\
9514 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9515 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9516 " \$ 0!~/External *\|/{next};"\
9517 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9518 " {if(hide[section]) next};"\
9519 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9520 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9521 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9522 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9523 " ' prfx=^$ac_symprfx"
9525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9527 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9529 # Check to see that the pipe works correctly.
9533 cat > conftest.$ac_ext <<_LT_EOF
9538 void nm_test_func(void);
9539 void nm_test_func(void){}
9543 int main(){nm_test_var='a';nm_test_func();return(0);}
9546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9547 (eval $ac_compile) 2>&5
9549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9550 test $ac_status = 0; }; then
9551 # Now try to grab the symbols.
9553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9554 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9557 test $ac_status = 0; } && test -s "$nlist"; then
9558 # Try sorting and uniquifying the output.
9559 if sort "$nlist" | uniq > "$nlist"T; then
9560 mv -f "$nlist"T "$nlist"
9565 # Make sure that we snagged all the symbols we need.
9566 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9567 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9568 cat <<_LT_EOF > conftest.$ac_ext
9569 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9570 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9571 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9572 relocations are performed -- see ld's documentation on pseudo-relocs. */
9573 # define LT_DLSYM_CONST
9574 #elif defined(__osf__)
9575 /* This system does not cope well with relocations in const data. */
9576 # define LT_DLSYM_CONST
9578 # define LT_DLSYM_CONST const
9586 # Now generate the symbol file.
9587 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9589 cat <<_LT_EOF >> conftest.$ac_ext
9591 /* The mapping between symbol names and symbols. */
9592 LT_DLSYM_CONST struct {
9596 lt__PROGRAM__LTX_preloaded_symbols[] =
9598 { "@PROGRAM@", (void *) 0 },
9600 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9601 cat <<\_LT_EOF >> conftest.$ac_ext
9605 /* This works around a problem in FreeBSD linker */
9606 #ifdef FREEBSD_WORKAROUND
9607 static const void *lt_preloaded_setup() {
9608 return lt__PROGRAM__LTX_preloaded_symbols;
9616 # Now try linking the two files.
9617 mv conftest.$ac_objext conftstm.$ac_objext
9618 lt_globsym_save_LIBS=$LIBS
9619 lt_globsym_save_CFLAGS=$CFLAGS
9620 LIBS="conftstm.$ac_objext"
9621 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9623 (eval $ac_link) 2>&5
9625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9626 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9629 LIBS=$lt_globsym_save_LIBS
9630 CFLAGS=$lt_globsym_save_CFLAGS
9632 echo "cannot find nm_test_func in $nlist" >&5
9635 echo "cannot find nm_test_var in $nlist" >&5
9638 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9641 echo "$progname: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9644 rm -rf conftest* conftst*
9646 # Do not use the global_symbol_pipe unless it works.
9647 if test "$pipe_works" = yes; then
9650 lt_cv_sys_global_symbol_pipe=
9656 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9657 lt_cv_sys_global_symbol_to_cdecl=
9659 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9661 $as_echo "failed" >&6; }
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9664 $as_echo "ok" >&6; }
9667 # Response file support.
9668 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9669 nm_file_list_spec='@'
9670 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9671 nm_file_list_spec='@'
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9701 $as_echo_n "checking for sysroot... " >&6; }
9703 # Check whether --with-sysroot was given.
9704 if test "${with_sysroot+set}" = set; then :
9705 withval=$with_sysroot;
9712 case ${with_sysroot} in #(
9714 if test "$GCC" = yes; then
9715 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9719 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9725 $as_echo "${with_sysroot}" >&6; }
9726 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9731 $as_echo "${lt_sysroot:-no}" >&6; }
9737 # Check whether --enable-libtool-lock was given.
9738 if test "${enable_libtool_lock+set}" = set; then :
9739 enableval=$enable_libtool_lock;
9742 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9744 # Some flags need to be propagated to the compiler or linker for good
9748 # Find out which ABI we are using.
9749 echo 'int i;' > conftest.$ac_ext
9750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9751 (eval $ac_compile) 2>&5
9753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9754 test $ac_status = 0; }; then
9755 case `/usr/bin/file conftest.$ac_objext` in
9767 # Find out which ABI we are using.
9768 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9770 (eval $ac_compile) 2>&5
9772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9773 test $ac_status = 0; }; then
9774 if test "$lt_cv_prog_gnu_ld" = yes; then
9775 case `/usr/bin/file conftest.$ac_objext` in
9777 LD="${LD-ld} -melf32bsmip"
9780 LD="${LD-ld} -melf32bmipn32"
9783 LD="${LD-ld} -melf64bmip"
9787 case `/usr/bin/file conftest.$ac_objext` in
9803 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9804 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9805 # Find out which ABI we are using.
9806 echo 'int i;' > conftest.$ac_ext
9807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9808 (eval $ac_compile) 2>&5
9810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9811 test $ac_status = 0; }; then
9812 case `/usr/bin/file conftest.o` in
9815 x86_64-*kfreebsd*-gnu)
9816 LD="${LD-ld} -m elf_i386_fbsd"
9819 LD="${LD-ld} -m elf_i386"
9821 ppc64-*linux*|powerpc64-*linux*)
9822 LD="${LD-ld} -m elf32ppclinux"
9825 LD="${LD-ld} -m elf_s390"
9828 LD="${LD-ld} -m elf32_sparc"
9834 x86_64-*kfreebsd*-gnu)
9835 LD="${LD-ld} -m elf_x86_64_fbsd"
9838 LD="${LD-ld} -m elf_x86_64"
9840 ppc*-*linux*|powerpc*-*linux*)
9841 LD="${LD-ld} -m elf64ppc"
9843 s390*-*linux*|s390*-*tpf*)
9844 LD="${LD-ld} -m elf64_s390"
9847 LD="${LD-ld} -m elf64_sparc"
9857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9858 SAVE_CFLAGS="$CFLAGS"
9859 CFLAGS="$CFLAGS -belf"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9861 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9862 if ${lt_cv_cc_needs_belf+:} false; then :
9863 $as_echo_n "(cached) " >&6
9866 ac_cpp='$CPP $CPPFLAGS'
9867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9871 if test x$ac_no_link = xyes; then
9872 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9885 if ac_fn_c_try_link "$LINENO"; then :
9886 lt_cv_cc_needs_belf=yes
9888 lt_cv_cc_needs_belf=no
9890 rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9893 ac_cpp='$CPP $CPPFLAGS'
9894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9900 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9901 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9903 CFLAGS="$SAVE_CFLAGS"
9907 # Find out which ABI we are using.
9908 echo 'int i;' > conftest.$ac_ext
9909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9910 (eval $ac_compile) 2>&5
9912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9913 test $ac_status = 0; }; then
9914 case `/usr/bin/file conftest.o` in
9916 case $lt_cv_prog_gnu_ld in
9920 LD="${LD-ld} -m elf_x86_64"
9923 LD="${LD-ld} -m elf64_sparc"
9926 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9927 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9932 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9944 need_locks="$enable_libtool_lock"
9946 if test -n "$ac_tool_prefix"; then
9947 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9948 set dummy ${ac_tool_prefix}mt; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9952 $as_echo_n "(cached) " >&6
9954 if test -n "$MANIFEST_TOOL"; then
9955 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9964 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9975 if test -n "$MANIFEST_TOOL"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9977 $as_echo "$MANIFEST_TOOL" >&6; }
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9985 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9986 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9987 # Extract the first word of "mt", so it can be a program name with args.
9988 set dummy mt; ac_word=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9992 $as_echo_n "(cached) " >&6
9994 if test -n "$ac_ct_MANIFEST_TOOL"; then
9995 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10004 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10015 if test -n "$ac_ct_MANIFEST_TOOL"; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10017 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10020 $as_echo "no" >&6; }
10023 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10026 case $cross_compiling:$ac_tool_warned in
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10030 ac_tool_warned=yes ;;
10032 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10035 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10038 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10040 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10041 if ${lt_cv_path_mainfest_tool+:} false; then :
10042 $as_echo_n "(cached) " >&6
10044 lt_cv_path_mainfest_tool=no
10045 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10046 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10047 cat conftest.err >&5
10048 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10049 lt_cv_path_mainfest_tool=yes
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10054 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10055 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10065 rhapsody* | darwin*)
10066 if test -n "$ac_tool_prefix"; then
10067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10068 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070 $as_echo_n "checking for $ac_word... " >&6; }
10071 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10072 $as_echo_n "(cached) " >&6
10074 if test -n "$DSYMUTIL"; then
10075 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10084 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10095 if test -n "$DSYMUTIL"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10097 $as_echo "$DSYMUTIL" >&6; }
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10105 if test -z "$ac_cv_prog_DSYMUTIL"; then
10106 ac_ct_DSYMUTIL=$DSYMUTIL
10107 # Extract the first word of "dsymutil", so it can be a program name with args.
10108 set dummy dsymutil; ac_word=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10112 $as_echo_n "(cached) " >&6
10114 if test -n "$ac_ct_DSYMUTIL"; then
10115 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10124 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10135 if test -n "$ac_ct_DSYMUTIL"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10137 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10143 if test "x$ac_ct_DSYMUTIL" = x; then
10146 case $cross_compiling:$ac_tool_warned in
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10150 ac_tool_warned=yes ;;
10152 DSYMUTIL=$ac_ct_DSYMUTIL
10155 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10158 if test -n "$ac_tool_prefix"; then
10159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10160 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162 $as_echo_n "checking for $ac_word... " >&6; }
10163 if ${ac_cv_prog_NMEDIT+:} false; then :
10164 $as_echo_n "(cached) " >&6
10166 if test -n "$NMEDIT"; then
10167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170 for as_dir in $PATH
10173 test -z "$as_dir" && as_dir=.
10174 for ac_exec_ext in '' $ac_executable_extensions; do
10175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 NMEDIT=$ac_cv_prog_NMEDIT
10187 if test -n "$NMEDIT"; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10189 $as_echo "$NMEDIT" >&6; }
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10197 if test -z "$ac_cv_prog_NMEDIT"; then
10198 ac_ct_NMEDIT=$NMEDIT
10199 # Extract the first word of "nmedit", so it can be a program name with args.
10200 set dummy nmedit; ac_word=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10204 $as_echo_n "(cached) " >&6
10206 if test -n "$ac_ct_NMEDIT"; then
10207 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $PATH
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10216 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10227 if test -n "$ac_ct_NMEDIT"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10229 $as_echo "$ac_ct_NMEDIT" >&6; }
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10235 if test "x$ac_ct_NMEDIT" = x; then
10238 case $cross_compiling:$ac_tool_warned in
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10242 ac_tool_warned=yes ;;
10244 NMEDIT=$ac_ct_NMEDIT
10247 NMEDIT="$ac_cv_prog_NMEDIT"
10250 if test -n "$ac_tool_prefix"; then
10251 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10252 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254 $as_echo_n "checking for $ac_word... " >&6; }
10255 if ${ac_cv_prog_LIPO+:} false; then :
10256 $as_echo_n "(cached) " >&6
10258 if test -n "$LIPO"; then
10259 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $PATH
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 LIPO=$ac_cv_prog_LIPO
10279 if test -n "$LIPO"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10281 $as_echo "$LIPO" >&6; }
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 $as_echo "no" >&6; }
10289 if test -z "$ac_cv_prog_LIPO"; then
10291 # Extract the first word of "lipo", so it can be a program name with args.
10292 set dummy lipo; ac_word=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10296 $as_echo_n "(cached) " >&6
10298 if test -n "$ac_ct_LIPO"; then
10299 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10308 ac_cv_prog_ac_ct_LIPO="lipo"
10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10319 if test -n "$ac_ct_LIPO"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10321 $as_echo "$ac_ct_LIPO" >&6; }
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10327 if test "x$ac_ct_LIPO" = x; then
10330 case $cross_compiling:$ac_tool_warned in
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10334 ac_tool_warned=yes ;;
10339 LIPO="$ac_cv_prog_LIPO"
10342 if test -n "$ac_tool_prefix"; then
10343 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10344 set dummy ${ac_tool_prefix}otool; ac_word=$2
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 $as_echo_n "checking for $ac_word... " >&6; }
10347 if ${ac_cv_prog_OTOOL+:} false; then :
10348 $as_echo_n "(cached) " >&6
10350 if test -n "$OTOOL"; then
10351 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354 for as_dir in $PATH
10357 test -z "$as_dir" && as_dir=.
10358 for ac_exec_ext in '' $ac_executable_extensions; do
10359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10360 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 OTOOL=$ac_cv_prog_OTOOL
10371 if test -n "$OTOOL"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10373 $as_echo "$OTOOL" >&6; }
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10381 if test -z "$ac_cv_prog_OTOOL"; then
10383 # Extract the first word of "otool", so it can be a program name with args.
10384 set dummy otool; ac_word=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10388 $as_echo_n "(cached) " >&6
10390 if test -n "$ac_ct_OTOOL"; then
10391 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10400 ac_cv_prog_ac_ct_OTOOL="otool"
10401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10411 if test -n "$ac_ct_OTOOL"; then
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10413 $as_echo "$ac_ct_OTOOL" >&6; }
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 $as_echo "no" >&6; }
10419 if test "x$ac_ct_OTOOL" = x; then
10422 case $cross_compiling:$ac_tool_warned in
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10426 ac_tool_warned=yes ;;
10431 OTOOL="$ac_cv_prog_OTOOL"
10434 if test -n "$ac_tool_prefix"; then
10435 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10436 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_prog_OTOOL64+:} false; then :
10440 $as_echo_n "(cached) " >&6
10442 if test -n "$OTOOL64"; then
10443 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10452 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 OTOOL64=$ac_cv_prog_OTOOL64
10463 if test -n "$OTOOL64"; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10465 $as_echo "$OTOOL64" >&6; }
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10473 if test -z "$ac_cv_prog_OTOOL64"; then
10474 ac_ct_OTOOL64=$OTOOL64
10475 # Extract the first word of "otool64", so it can be a program name with args.
10476 set dummy otool64; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10480 $as_echo_n "(cached) " >&6
10482 if test -n "$ac_ct_OTOOL64"; then
10483 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10492 ac_cv_prog_ac_ct_OTOOL64="otool64"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10503 if test -n "$ac_ct_OTOOL64"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10505 $as_echo "$ac_ct_OTOOL64" >&6; }
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10511 if test "x$ac_ct_OTOOL64" = x; then
10514 case $cross_compiling:$ac_tool_warned in
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10518 ac_tool_warned=yes ;;
10520 OTOOL64=$ac_ct_OTOOL64
10523 OTOOL64="$ac_cv_prog_OTOOL64"
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10553 $as_echo_n "checking for -single_module linker flag... " >&6; }
10554 if ${lt_cv_apple_cc_single_mod+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 lt_cv_apple_cc_single_mod=no
10558 if test -z "${LT_MULTI_MODULE}"; then
10559 # By default we will add the -single_module flag. You can override
10560 # by either setting the environment variable LT_MULTI_MODULE
10561 # non-empty at configure time, or by adding -multi_module to the
10563 rm -rf libconftest.dylib*
10564 echo "int foo(void){return 1;}" > conftest.c
10565 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10566 -dynamiclib -Wl,-single_module conftest.c" >&5
10567 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10568 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10570 # If there is a non-empty error log, and "single_module"
10571 # appears in it, assume the flag caused a linker warning
10572 if test -s conftest.err && $GREP single_module conftest.err; then
10573 cat conftest.err >&5
10574 # Otherwise, if the output was created with a 0 exit code from
10575 # the compiler, it worked.
10576 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10577 lt_cv_apple_cc_single_mod=yes
10579 cat conftest.err >&5
10581 rm -rf libconftest.dylib*
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10586 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10589 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10590 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10591 $as_echo_n "(cached) " >&6
10593 lt_cv_ld_exported_symbols_list=no
10594 save_LDFLAGS=$LDFLAGS
10595 echo "_main" > conftest.sym
10596 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10597 if test x$ac_no_link = xyes; then
10598 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10611 if ac_fn_c_try_link "$LINENO"; then :
10612 lt_cv_ld_exported_symbols_list=yes
10614 lt_cv_ld_exported_symbols_list=no
10616 rm -f core conftest.err conftest.$ac_objext \
10617 conftest$ac_exeext conftest.$ac_ext
10618 LDFLAGS="$save_LDFLAGS"
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10622 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10625 $as_echo_n "checking for -force_load linker flag... " >&6; }
10626 if ${lt_cv_ld_force_load+:} false; then :
10627 $as_echo_n "(cached) " >&6
10629 lt_cv_ld_force_load=no
10630 cat > conftest.c << _LT_EOF
10631 int forced_loaded() { return 2;}
10633 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10634 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10635 echo "$AR cru libconftest.a conftest.o" >&5
10636 $AR cru libconftest.a conftest.o 2>&5
10637 echo "$RANLIB libconftest.a" >&5
10638 $RANLIB libconftest.a 2>&5
10639 cat > conftest.c << _LT_EOF
10640 int main() { return 0;}
10642 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10643 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10645 if test -s conftest.err && $GREP force_load conftest.err; then
10646 cat conftest.err >&5
10647 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10648 lt_cv_ld_force_load=yes
10650 cat conftest.err >&5
10652 rm -f conftest.err libconftest.a conftest conftest.c
10653 rm -rf conftest.dSYM
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10657 $as_echo "$lt_cv_ld_force_load" >&6; }
10659 rhapsody* | darwin1.[012])
10660 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10662 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10663 darwin*) # darwin 5.x on
10664 # if running on 10.5 or later, the deployment target defaults
10665 # to the OS version, if on x86, and 10.4, the deployment
10666 # target defaults to 10.4. Don't you love it?
10667 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10668 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10669 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10671 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10673 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10677 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10678 _lt_dar_single_mod='$single_module'
10680 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10681 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10683 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10685 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10686 _lt_dsymutil='~$DSYMUTIL $lib || :'
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10694 $as_echo_n "checking for ANSI C header files... " >&6; }
10695 if ${ac_cv_header_stdc+:} false; then :
10696 $as_echo_n "(cached) " >&6
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 #include <stdlib.h>
10701 #include <stdarg.h>
10702 #include <string.h>
10713 if ac_fn_c_try_compile "$LINENO"; then :
10714 ac_cv_header_stdc=yes
10716 ac_cv_header_stdc=no
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 if test $ac_cv_header_stdc = yes; then
10721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 #include <string.h>
10727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10728 $EGREP "memchr" >/dev/null 2>&1; then :
10731 ac_cv_header_stdc=no
10737 if test $ac_cv_header_stdc = yes; then
10738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10741 #include <stdlib.h>
10744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10745 $EGREP "free" >/dev/null 2>&1; then :
10748 ac_cv_header_stdc=no
10754 if test $ac_cv_header_stdc = yes; then
10755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10756 if test "$cross_compiling" = yes; then :
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10762 #include <stdlib.h>
10763 #if ((' ' & 0x0FF) == 0x020)
10764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10767 # define ISLOWER(c) \
10768 (('a' <= (c) && (c) <= 'i') \
10769 || ('j' <= (c) && (c) <= 'r') \
10770 || ('s' <= (c) && (c) <= 'z'))
10771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10779 for (i = 0; i < 256; i++)
10780 if (XOR (islower (i), ISLOWER (i))
10781 || toupper (i) != TOUPPER (i))
10786 if ac_fn_c_try_run "$LINENO"; then :
10789 ac_cv_header_stdc=no
10791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10792 conftest.$ac_objext conftest.beam conftest.$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10798 $as_echo "$ac_cv_header_stdc" >&6; }
10799 if test $ac_cv_header_stdc = yes; then
10801 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10805 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10806 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10807 inttypes.h stdint.h unistd.h
10809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10810 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10812 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10813 cat >>confdefs.h <<_ACEOF
10814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10822 for ac_header in dlfcn.h
10824 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10826 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10827 cat >>confdefs.h <<_ACEOF
10828 #define HAVE_DLFCN_H 1
10838 func_stripname_cnf ()
10841 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10842 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10844 } # func_stripname_cnf
10857 enable_win32_dll=no
10860 # Check whether --enable-shared was given.
10861 if test "${enable_shared+set}" = set; then :
10862 enableval=$enable_shared; p=${PACKAGE-default}
10864 yes) enable_shared=yes ;;
10865 no) enable_shared=no ;;
10868 # Look at the argument we got. We use all the common list separators.
10869 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10870 for pkg in $enableval; do
10872 if test "X$pkg" = "X$p"; then
10891 # Check whether --enable-static was given.
10892 if test "${enable_static+set}" = set; then :
10893 enableval=$enable_static; p=${PACKAGE-default}
10895 yes) enable_static=yes ;;
10896 no) enable_static=no ;;
10899 # Look at the argument we got. We use all the common list separators.
10900 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10901 for pkg in $enableval; do
10903 if test "X$pkg" = "X$p"; then
10923 # Check whether --with-pic was given.
10924 if test "${with_pic+set}" = set; then :
10925 withval=$with_pic; lt_p=${PACKAGE-default}
10927 yes|no) pic_mode=$withval ;;
10930 # Look at the argument we got. We use all the common list separators.
10931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10932 for lt_pkg in $withval; do
10934 if test "X$lt_pkg" = "X$lt_p"; then
10946 test -z "$pic_mode" && pic_mode=default
10954 # Check whether --enable-fast-install was given.
10955 if test "${enable_fast_install+set}" = set; then :
10956 enableval=$enable_fast_install; p=${PACKAGE-default}
10958 yes) enable_fast_install=yes ;;
10959 no) enable_fast_install=no ;;
10961 enable_fast_install=no
10962 # Look at the argument we got. We use all the common list separators.
10963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10964 for pkg in $enableval; do
10966 if test "X$pkg" = "X$p"; then
10967 enable_fast_install=yes
10974 enable_fast_install=yes
10987 # This can be used to rebuild libtool when needed
10988 LIBTOOL_DEPS="$ltmain"
10990 # Always use our own libtool.
10991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11022 test -z "$LN_S" && LN_S="ln -s"
11037 if test -n "${ZSH_VERSION+set}" ; then
11038 setopt NO_GLOB_SUBST
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11042 $as_echo_n "checking for objdir... " >&6; }
11043 if ${lt_cv_objdir+:} false; then :
11044 $as_echo_n "(cached) " >&6
11046 rm -f .libs 2>/dev/null
11047 mkdir .libs 2>/dev/null
11048 if test -d .libs; then
11051 # MS-DOS does not allow filenames that begin with a dot.
11054 rmdir .libs 2>/dev/null
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11057 $as_echo "$lt_cv_objdir" >&6; }
11058 objdir=$lt_cv_objdir
11064 cat >>confdefs.h <<_ACEOF
11065 #define LT_OBJDIR "$lt_cv_objdir/"
11073 # AIX sometimes has problems with the GCC collect2 program. For some
11074 # reason, if we set the COLLECT_NAMES environment variable, the problems
11075 # vanish in a puff of smoke.
11076 if test "X${COLLECT_NAMES+set}" != Xset; then
11078 export COLLECT_NAMES
11083 # Global variables:
11085 can_build_shared=yes
11087 # All known linkers require a `.a' archive for static linking (except MSVC,
11088 # which needs '.lib').
11091 with_gnu_ld="$lt_cv_prog_gnu_ld"
11094 old_CFLAGS="$CFLAGS"
11096 # Set sane defaults for various variables
11097 test -z "$CC" && CC=cc
11098 test -z "$LTCC" && LTCC=$CC
11099 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11100 test -z "$LD" && LD=ld
11101 test -z "$ac_objext" && ac_objext=o
11103 for cc_temp in $compiler""; do
11105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11111 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11114 # Only perform the check for file, if the check method requires it
11115 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11116 case $deplibs_check_method in
11118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11120 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11121 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11122 $as_echo_n "(cached) " >&6
11126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11129 lt_save_MAGIC_CMD="$MAGIC_CMD"
11130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11132 for ac_dir in $ac_dummy; do
11134 test -z "$ac_dir" && ac_dir=.
11135 if test -f $ac_dir/${ac_tool_prefix}file; then
11136 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11137 if test -n "$file_magic_test_file"; then
11138 case $deplibs_check_method in
11140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11143 $EGREP "$file_magic_regex" > /dev/null; then
11148 *** Warning: the command libtool uses to detect shared libraries,
11149 *** $file_magic_cmd, produces output that libtool cannot recognize.
11150 *** The result is that libtool may fail to recognize shared libraries
11151 *** as such. This will affect the creation of libtool libraries that
11152 *** depend on shared libraries, but programs linked with such libtool
11153 *** libraries will work regardless of this problem. Nevertheless, you
11154 *** may want to report the problem to your system manager and/or to
11155 *** bug-libtool@gnu.org
11165 MAGIC_CMD="$lt_save_MAGIC_CMD"
11170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11171 if test -n "$MAGIC_CMD"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11173 $as_echo "$MAGIC_CMD" >&6; }
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11183 if test -z "$lt_cv_path_MAGIC_CMD"; then
11184 if test -n "$ac_tool_prefix"; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11186 $as_echo_n "checking for file... " >&6; }
11187 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11188 $as_echo_n "(cached) " >&6
11192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11195 lt_save_MAGIC_CMD="$MAGIC_CMD"
11196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11198 for ac_dir in $ac_dummy; do
11200 test -z "$ac_dir" && ac_dir=.
11201 if test -f $ac_dir/file; then
11202 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11203 if test -n "$file_magic_test_file"; then
11204 case $deplibs_check_method in
11206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11209 $EGREP "$file_magic_regex" > /dev/null; then
11214 *** Warning: the command libtool uses to detect shared libraries,
11215 *** $file_magic_cmd, produces output that libtool cannot recognize.
11216 *** The result is that libtool may fail to recognize shared libraries
11217 *** as such. This will affect the creation of libtool libraries that
11218 *** depend on shared libraries, but programs linked with such libtool
11219 *** libraries will work regardless of this problem. Nevertheless, you
11220 *** may want to report the problem to your system manager and/or to
11221 *** bug-libtool@gnu.org
11231 MAGIC_CMD="$lt_save_MAGIC_CMD"
11236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11237 if test -n "$MAGIC_CMD"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11239 $as_echo "$MAGIC_CMD" >&6; }
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11255 # Use C for the default configuration in the libtool script
11259 ac_cpp='$CPP $CPPFLAGS'
11260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11265 # Source file extension for C test sources.
11268 # Object file extension for compiled C test sources.
11272 # Code to be used in simple compile tests
11273 lt_simple_compile_test_code="int some_variable = 0;"
11275 # Code to be used in simple link tests
11276 lt_simple_link_test_code='int main(){return(0);}'
11284 # If no C compiler was specified, use CC.
11287 # If no C compiler flags were specified, use CFLAGS.
11288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11290 # Allow CC to be a program name with arguments.
11293 # Save the default compiler, since it gets overwritten when the other
11294 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11295 compiler_DEFAULT=$CC
11297 # save warnings/boilerplate of simple test code
11298 ac_outfile=conftest.$ac_objext
11299 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11300 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11301 _lt_compiler_boilerplate=`cat conftest.err`
11304 ac_outfile=conftest.$ac_objext
11305 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11306 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11307 _lt_linker_boilerplate=`cat conftest.err`
11312 ## There is no encapsulation within the following macros, do not change
11313 ## the running order or otherwise move them around unless you know exactly
11314 ## what you are doing...
11315 if test -n "$compiler"; then
11317 lt_prog_compiler_no_builtin_flag=
11319 if test "$GCC" = yes; then
11320 case $cc_basename in
11322 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11324 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11328 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11329 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11330 $as_echo_n "(cached) " >&6
11332 lt_cv_prog_compiler_rtti_exceptions=no
11333 ac_outfile=conftest.$ac_objext
11334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11335 lt_compiler_flag="-fno-rtti -fno-exceptions"
11336 # Insert the option either (1) after the last *FLAGS variable, or
11337 # (2) before a word containing "conftest.", or (3) at the end.
11338 # Note that $ac_compile itself does not contain backslashes and begins
11339 # with a dollar sign (not a hyphen), so the echo should work correctly.
11340 # The option is referenced via a variable to avoid confusing sed.
11341 lt_compile=`echo "$ac_compile" | $SED \
11342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11344 -e 's:$: $lt_compiler_flag:'`
11345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11346 (eval "$lt_compile" 2>conftest.err)
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 if (exit $ac_status) && test -s "$ac_outfile"; then
11351 # The compiler can only warn and ignore the option if not recognized
11352 # So say no if there are warnings other than the usual output.
11353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11356 lt_cv_prog_compiler_rtti_exceptions=yes
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11363 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11365 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11366 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11378 lt_prog_compiler_wl=
11379 lt_prog_compiler_pic=
11380 lt_prog_compiler_static=
11383 if test "$GCC" = yes; then
11384 lt_prog_compiler_wl='-Wl,'
11385 lt_prog_compiler_static='-static'
11389 # All AIX code is PIC.
11390 if test "$host_cpu" = ia64; then
11391 # AIX 5 now supports IA64 processor
11392 lt_prog_compiler_static='-Bstatic'
11399 # see comment about AmigaOS4 .so support
11400 lt_prog_compiler_pic='-fPIC'
11403 # FIXME: we need at least 68020 code to build shared libraries, but
11404 # adding the `-m68020' flag to GCC prevents building anything better,
11406 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11412 # PIC is the default for these OSes.
11415 mingw* | cygwin* | pw32* | os2* | cegcc*)
11416 # This hack is so that the source file can tell whether it is being
11417 # built for inclusion in a dll (and should export symbols for example).
11418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11419 # (--disable-auto-import) libraries
11420 lt_prog_compiler_pic='-DDLL_EXPORT'
11423 darwin* | rhapsody*)
11424 # PIC is the default on this platform
11425 # Common symbols not allowed in MH_DYLIB files
11426 lt_prog_compiler_pic='-fno-common'
11430 # PIC is the default for Haiku.
11431 # The "-static" flag exists, but is broken.
11432 lt_prog_compiler_static=
11436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11438 # sets the default TLS model and affects inlining.
11444 lt_prog_compiler_pic='-fPIC'
11450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11451 # Instead, we relocate shared libraries at runtime.
11455 # Just because we use GCC doesn't mean we suddenly get shared libraries
11456 # on systems that don't support them.
11457 lt_prog_compiler_can_build_shared=no
11462 # QNX uses GNU C++, but need to define -shared option too, otherwise
11463 # it will coredump.
11464 lt_prog_compiler_pic='-fPIC -shared'
11468 if test -d /usr/nec; then
11469 lt_prog_compiler_pic=-Kconform_pic
11474 lt_prog_compiler_pic='-fPIC'
11478 case $cc_basename in
11479 nvcc*) # Cuda Compiler Driver 2.2
11480 lt_prog_compiler_wl='-Xlinker '
11481 if test -n "$lt_prog_compiler_pic"; then
11482 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11487 # PORTME Check for flag to pass linker flags through the system compiler.
11490 lt_prog_compiler_wl='-Wl,'
11491 if test "$host_cpu" = ia64; then
11492 # AIX 5 now supports IA64 processor
11493 lt_prog_compiler_static='-Bstatic'
11495 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11499 mingw* | cygwin* | pw32* | os2* | cegcc*)
11500 # This hack is so that the source file can tell whether it is being
11501 # built for inclusion in a dll (and should export symbols for example).
11502 lt_prog_compiler_pic='-DDLL_EXPORT'
11505 hpux9* | hpux10* | hpux11*)
11506 lt_prog_compiler_wl='-Wl,'
11507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11508 # not for PA HP-UX.
11514 lt_prog_compiler_pic='+Z'
11517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11518 lt_prog_compiler_static='${wl}-a ${wl}archive'
11521 irix5* | irix6* | nonstopux*)
11522 lt_prog_compiler_wl='-Wl,'
11523 # PIC (with -KPIC) is the default.
11524 lt_prog_compiler_static='-non_shared'
11527 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11528 case $cc_basename in
11529 # old Intel for x86_64 which still supported -KPIC.
11531 lt_prog_compiler_wl='-Wl,'
11532 lt_prog_compiler_pic='-KPIC'
11533 lt_prog_compiler_static='-static'
11535 # icc used to be incompatible with GCC.
11536 # ICC 10 doesn't accept -KPIC any more.
11538 lt_prog_compiler_wl='-Wl,'
11539 lt_prog_compiler_pic='-fPIC'
11540 lt_prog_compiler_static='-static'
11542 # Lahey Fortran 8.1.
11544 lt_prog_compiler_wl='-Wl,'
11545 lt_prog_compiler_pic='--shared'
11546 lt_prog_compiler_static='--static'
11549 # NAG Fortran compiler
11550 lt_prog_compiler_wl='-Wl,-Wl,,'
11551 lt_prog_compiler_pic='-PIC'
11552 lt_prog_compiler_static='-Bstatic'
11554 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11555 # Portland Group compilers (*not* the Pentium gcc compiler,
11556 # which looks to be a dead project)
11557 lt_prog_compiler_wl='-Wl,'
11558 lt_prog_compiler_pic='-fpic'
11559 lt_prog_compiler_static='-Bstatic'
11562 lt_prog_compiler_wl='-Wl,'
11563 # All Alpha code is PIC.
11564 lt_prog_compiler_static='-non_shared'
11566 xl* | bgxl* | bgf* | mpixl*)
11567 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11568 lt_prog_compiler_wl='-Wl,'
11569 lt_prog_compiler_pic='-qpic'
11570 lt_prog_compiler_static='-qstaticlink'
11573 case `$CC -V 2>&1 | sed 5q` in
11574 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11575 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11576 lt_prog_compiler_pic='-KPIC'
11577 lt_prog_compiler_static='-Bstatic'
11578 lt_prog_compiler_wl=''
11580 *Sun\ F* | *Sun*Fortran*)
11581 lt_prog_compiler_pic='-KPIC'
11582 lt_prog_compiler_static='-Bstatic'
11583 lt_prog_compiler_wl='-Qoption ld '
11587 lt_prog_compiler_pic='-KPIC'
11588 lt_prog_compiler_static='-Bstatic'
11589 lt_prog_compiler_wl='-Wl,'
11591 *Intel*\ [CF]*Compiler*)
11592 lt_prog_compiler_wl='-Wl,'
11593 lt_prog_compiler_pic='-fPIC'
11594 lt_prog_compiler_static='-static'
11597 lt_prog_compiler_wl='-Wl,'
11598 lt_prog_compiler_pic='-fpic'
11599 lt_prog_compiler_static='-Bstatic'
11607 lt_prog_compiler_pic='-KPIC'
11608 lt_prog_compiler_static='-Bstatic'
11612 # QNX uses GNU C++, but need to define -shared option too, otherwise
11613 # it will coredump.
11614 lt_prog_compiler_pic='-fPIC -shared'
11617 osf3* | osf4* | osf5*)
11618 lt_prog_compiler_wl='-Wl,'
11619 # All OSF/1 code is PIC.
11620 lt_prog_compiler_static='-non_shared'
11624 lt_prog_compiler_static='-non_shared'
11628 lt_prog_compiler_pic='-KPIC'
11629 lt_prog_compiler_static='-Bstatic'
11630 case $cc_basename in
11631 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11632 lt_prog_compiler_wl='-Qoption ld ';;
11634 lt_prog_compiler_wl='-Wl,';;
11639 lt_prog_compiler_wl='-Qoption ld '
11640 lt_prog_compiler_pic='-PIC'
11641 lt_prog_compiler_static='-Bstatic'
11644 sysv4 | sysv4.2uw2* | sysv4.3*)
11645 lt_prog_compiler_wl='-Wl,'
11646 lt_prog_compiler_pic='-KPIC'
11647 lt_prog_compiler_static='-Bstatic'
11651 if test -d /usr/nec ;then
11652 lt_prog_compiler_pic='-Kconform_pic'
11653 lt_prog_compiler_static='-Bstatic'
11657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11658 lt_prog_compiler_wl='-Wl,'
11659 lt_prog_compiler_pic='-KPIC'
11660 lt_prog_compiler_static='-Bstatic'
11664 lt_prog_compiler_wl='-Wl,'
11665 lt_prog_compiler_can_build_shared=no
11669 lt_prog_compiler_pic='-pic'
11670 lt_prog_compiler_static='-Bstatic'
11674 lt_prog_compiler_can_build_shared=no
11680 # For platforms which do not support PIC, -DPIC is meaningless:
11682 lt_prog_compiler_pic=
11685 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11690 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11691 if ${lt_cv_prog_compiler_pic+:} false; then :
11692 $as_echo_n "(cached) " >&6
11694 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11697 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11698 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11701 # Check to make sure the PIC flag actually works.
11703 if test -n "$lt_prog_compiler_pic"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11705 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11706 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11707 $as_echo_n "(cached) " >&6
11709 lt_cv_prog_compiler_pic_works=no
11710 ac_outfile=conftest.$ac_objext
11711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11712 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11713 # Insert the option either (1) after the last *FLAGS variable, or
11714 # (2) before a word containing "conftest.", or (3) at the end.
11715 # Note that $ac_compile itself does not contain backslashes and begins
11716 # with a dollar sign (not a hyphen), so the echo should work correctly.
11717 # The option is referenced via a variable to avoid confusing sed.
11718 lt_compile=`echo "$ac_compile" | $SED \
11719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11721 -e 's:$: $lt_compiler_flag:'`
11722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11723 (eval "$lt_compile" 2>conftest.err)
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 if (exit $ac_status) && test -s "$ac_outfile"; then
11728 # The compiler can only warn and ignore the option if not recognized
11729 # So say no if there are warnings other than the usual output.
11730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11733 lt_cv_prog_compiler_pic_works=yes
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11740 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11742 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11743 case $lt_prog_compiler_pic in
11745 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11748 lt_prog_compiler_pic=
11749 lt_prog_compiler_can_build_shared=no
11765 # Check to make sure the static flag actually works.
11767 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11769 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11770 if ${lt_cv_prog_compiler_static_works+:} false; then :
11771 $as_echo_n "(cached) " >&6
11773 lt_cv_prog_compiler_static_works=no
11774 save_LDFLAGS="$LDFLAGS"
11775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11776 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11778 # The linker can only warn and ignore the option if not recognized
11779 # So say no if there are warnings
11780 if test -s conftest.err; then
11781 # Append any errors to the config.log.
11782 cat conftest.err 1>&5
11783 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11785 if diff conftest.exp conftest.er2 >/dev/null; then
11786 lt_cv_prog_compiler_static_works=yes
11789 lt_cv_prog_compiler_static_works=yes
11793 LDFLAGS="$save_LDFLAGS"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11797 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11799 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11802 lt_prog_compiler_static=
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11813 if ${lt_cv_prog_compiler_c_o+:} false; then :
11814 $as_echo_n "(cached) " >&6
11816 lt_cv_prog_compiler_c_o=no
11817 $RM -r conftest 2>/dev/null
11821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11823 lt_compiler_flag="-o out/conftest2.$ac_objext"
11824 # Insert the option either (1) after the last *FLAGS variable, or
11825 # (2) before a word containing "conftest.", or (3) at the end.
11826 # Note that $ac_compile itself does not contain backslashes and begins
11827 # with a dollar sign (not a hyphen), so the echo should work correctly.
11828 lt_compile=`echo "$ac_compile" | $SED \
11829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11831 -e 's:$: $lt_compiler_flag:'`
11832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11833 (eval "$lt_compile" 2>out/conftest.err)
11835 cat out/conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11839 # The compiler can only warn and ignore the option if not recognized
11840 # So say no if there are warnings
11841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11844 lt_cv_prog_compiler_c_o=yes
11849 # SGI C++ compiler will create directory out/ii_files/ for
11850 # template instantiation
11851 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11852 $RM out/* && rmdir out
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11859 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11868 if ${lt_cv_prog_compiler_c_o+:} false; then :
11869 $as_echo_n "(cached) " >&6
11871 lt_cv_prog_compiler_c_o=no
11872 $RM -r conftest 2>/dev/null
11876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11878 lt_compiler_flag="-o out/conftest2.$ac_objext"
11879 # Insert the option either (1) after the last *FLAGS variable, or
11880 # (2) before a word containing "conftest.", or (3) at the end.
11881 # Note that $ac_compile itself does not contain backslashes and begins
11882 # with a dollar sign (not a hyphen), so the echo should work correctly.
11883 lt_compile=`echo "$ac_compile" | $SED \
11884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11886 -e 's:$: $lt_compiler_flag:'`
11887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11888 (eval "$lt_compile" 2>out/conftest.err)
11890 cat out/conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11894 # The compiler can only warn and ignore the option if not recognized
11895 # So say no if there are warnings
11896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11899 lt_cv_prog_compiler_c_o=yes
11904 # SGI C++ compiler will create directory out/ii_files/ for
11905 # template instantiation
11906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11907 $RM out/* && rmdir out
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11914 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11919 hard_links="nottested"
11920 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11921 # do not overwrite the value of need_locks provided by the user
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11923 $as_echo_n "checking if we can lock with hard links... " >&6; }
11926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11928 ln conftest.a conftest.b 2>&5 || hard_links=no
11929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11931 $as_echo "$hard_links" >&6; }
11932 if test "$hard_links" = no; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11934 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11947 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11950 allow_undefined_flag=
11951 always_export_symbols=no
11953 archive_expsym_cmds=
11954 compiler_needs_object=no
11955 enable_shared_with_static_runtimes=no
11956 export_dynamic_flag_spec=
11957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11958 hardcode_automatic=no
11960 hardcode_direct_absolute=no
11961 hardcode_libdir_flag_spec=
11962 hardcode_libdir_separator=
11963 hardcode_minus_L=no
11964 hardcode_shlibpath_var=unsupported
11966 link_all_deplibs=unknown
11968 module_expsym_cmds=
11969 old_archive_from_new_cmds=
11970 old_archive_from_expsyms_cmds=
11971 thread_safe_flag_spec=
11972 whole_archive_flag_spec=
11973 # include_expsyms should be a list of space-separated symbols to be *always*
11974 # included in the symbol list
11976 # exclude_expsyms can be an extended regexp of symbols to exclude
11977 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11978 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11979 # as well as any symbol that contains `d'.
11980 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11981 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11982 # platforms (ab)use it in PIC code, but their linkers get confused if
11983 # the symbol is explicitly referenced. Since portable code cannot
11984 # rely on this symbol name, it's probably fine to never include it in
11985 # preloaded symbol tables.
11986 # Exclude shared library initialization/finalization symbols.
11987 extract_expsyms_cmds=
11990 cygwin* | mingw* | pw32* | cegcc*)
11991 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11992 # When not using gcc, we currently assume that we are using
11993 # Microsoft Visual C++.
11994 if test "$GCC" != yes; then
11999 # we just hope/assume this is gcc and not c89 (= MSVC++)
12009 # On some targets, GNU ld is compatible enough with the native linker
12010 # that we're better off using the native interface for both.
12011 lt_use_gnu_ld_interface=no
12012 if test "$with_gnu_ld" = yes; then
12015 # The AIX port of GNU ld has always aspired to compatibility
12016 # with the native linker. However, as the warning in the GNU ld
12017 # block says, versions before 2.19.5* couldn't really create working
12018 # shared libraries, regardless of the interface used.
12019 case `$LD -v 2>&1` in
12020 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12021 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12022 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12024 lt_use_gnu_ld_interface=yes
12029 lt_use_gnu_ld_interface=yes
12034 if test "$lt_use_gnu_ld_interface" = yes; then
12035 # If archive_cmds runs LD, not CC, wlarc should be empty
12038 # Set some defaults for GNU ld with shared library support. These
12039 # are reset later if shared libraries are not supported. Putting them
12040 # here allows them to be overridden if necessary.
12041 runpath_var=LD_RUN_PATH
12042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12043 export_dynamic_flag_spec='${wl}--export-dynamic'
12044 # ancient GNU ld didn't support --whole-archive et. al.
12045 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12046 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12048 whole_archive_flag_spec=
12050 supports_anon_versioning=no
12051 case `$LD -v 2>&1` in
12052 *GNU\ gold*) supports_anon_versioning=yes ;;
12053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12056 *\ 2.11.*) ;; # other 2.11 versions
12057 *) supports_anon_versioning=yes ;;
12060 # See if GNU ld supports shared libraries.
12063 # On AIX/PPC, the GNU linker is very broken
12064 if test "$host_cpu" != ia64; then
12068 *** Warning: the GNU linker, at least up to release 2.19, is reported
12069 *** to be unable to reliably create shared libraries on AIX.
12070 *** Therefore, libtool is disabling shared libraries support. If you
12071 *** really care for shared libraries, you may want to install binutils
12072 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12073 *** You will then need to restart the configuration process.
12082 # see comment about AmigaOS4 .so support
12083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084 archive_expsym_cmds=''
12087 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)'
12088 hardcode_libdir_flag_spec='-L$libdir'
12089 hardcode_minus_L=yes
12095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12096 allow_undefined_flag=unsupported
12097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12098 # support --undefined. This deserves some investigation. FIXME
12099 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12105 cygwin* | mingw* | pw32* | cegcc*)
12106 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12107 # as there is no search path for DLLs.
12108 hardcode_libdir_flag_spec='-L$libdir'
12109 export_dynamic_flag_spec='${wl}--export-all-symbols'
12110 allow_undefined_flag=unsupported
12111 always_export_symbols=no
12112 enable_shared_with_static_runtimes=yes
12113 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12114 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12116 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12118 # If the export-symbols file already is a .def file (1st line
12119 # is EXPORTS), use it as is; otherwise, prepend...
12120 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12121 cp $export_symbols $output_objdir/$soname.def;
12123 echo EXPORTS > $output_objdir/$soname.def;
12124 cat $export_symbols >> $output_objdir/$soname.def;
12126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12134 link_all_deplibs=yes
12139 hardcode_shlibpath_var=no
12140 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12141 export_dynamic_flag_spec='${wl}-E'
12142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12143 # Instead, shared libraries are loaded at an image base (0x10000000 by
12144 # default) and relocated if they conflict, which is a slow very memory
12145 # consuming and fragmenting process. To avoid this, we pick a random,
12146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12147 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12149 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'
12152 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12154 if test "$host_os" = linux-dietlibc; then
12155 case $cc_basename in
12156 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12159 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12160 && test "$tmp_diet" = no
12162 tmp_addflag=' $pic_flag'
12163 tmp_sharedflag='-shared'
12164 case $cc_basename,$host_cpu in
12165 pgcc*) # Portland Group C compiler
12166 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12167 tmp_addflag=' $pic_flag'
12169 pgf77* | pgf90* | pgf95* | pgfortran*)
12170 # Portland Group f77 and f90 compilers
12171 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12172 tmp_addflag=' $pic_flag -Mnomain' ;;
12173 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12174 tmp_addflag=' -i_dynamic' ;;
12175 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12176 tmp_addflag=' -i_dynamic -nofor_main' ;;
12177 ifc* | ifort*) # Intel Fortran compiler
12178 tmp_addflag=' -nofor_main' ;;
12179 lf95*) # Lahey Fortran 8.1
12180 whole_archive_flag_spec=
12181 tmp_sharedflag='--shared' ;;
12182 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12183 tmp_sharedflag='-qmkshrobj'
12185 nvcc*) # Cuda Compiler Driver 2.2
12186 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12187 compiler_needs_object=yes
12190 case `$CC -V 2>&1 | sed 5q` in
12191 *Sun\ C*) # Sun C 5.9
12192 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12193 compiler_needs_object=yes
12194 tmp_sharedflag='-G' ;;
12195 *Sun\ F*) # Sun Fortran 8.3
12196 tmp_sharedflag='-G' ;;
12198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12200 if test "x$supports_anon_versioning" = xyes; then
12201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12203 echo "local: *; };" >> $output_objdir/$libname.ver~
12204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12207 case $cc_basename in
12208 xlf* | bgf* | bgxlf* | mpixlf*)
12209 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12210 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12212 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12213 if test "x$supports_anon_versioning" = xyes; then
12214 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12216 echo "local: *; };" >> $output_objdir/$libname.ver~
12217 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12228 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12237 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12241 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12242 *** create shared libraries on Solaris systems. Therefore, libtool
12243 *** is disabling shared libraries support. We urge you to upgrade GNU
12244 *** binutils to release 2.9.1 or newer. Another option is to modify
12245 *** your PATH or compiler configuration so that the native linker is
12246 *** used, and then restart.
12249 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12258 case `$LD -v 2>&1` in
12259 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12263 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12264 *** reliably create shared libraries on SCO systems. Therefore, libtool
12265 *** is disabling shared libraries support. We urge you to upgrade GNU
12266 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12267 *** your PATH or compiler configuration so that the native linker is
12268 *** used, and then restart.
12273 # For security reasons, it is highly recommended that you always
12274 # use absolute paths for naming shared libraries, and exclude the
12275 # DT_RUNPATH tag from executables and libraries. But doing so
12276 # requires that you compile everything twice, which is a pain.
12277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12289 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12291 hardcode_direct=yes
12292 hardcode_shlibpath_var=no
12296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12305 if test "$ld_shlibs" = no; then
12307 hardcode_libdir_flag_spec=
12308 export_dynamic_flag_spec=
12309 whole_archive_flag_spec=
12312 # PORTME fill in a description of your system's linker (not GNU ld)
12315 allow_undefined_flag=unsupported
12316 always_export_symbols=yes
12317 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'
12318 # Note: this linker hardcodes the directories in LIBPATH if there
12319 # are no directories specified by -L.
12320 hardcode_minus_L=yes
12321 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12322 # Neither direct hardcoding nor static linking is supported with a
12324 hardcode_direct=unsupported
12329 if test "$host_cpu" = ia64; then
12330 # On IA64, the linker does run time linking by default, so we don't
12331 # have to do anything special.
12332 aix_use_runtimelinking=no
12333 exp_sym_flag='-Bexport'
12336 # If we're using GNU nm, then we don't want the "-C" option.
12337 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12338 # Also, AIX nm treats weak defined symbols like other global
12339 # defined symbols, whereas GNU nm marks them as "W".
12340 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12341 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12343 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'
12345 aix_use_runtimelinking=no
12347 # Test if we are trying to use run time linking or normal
12348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12349 # need to do runtime linking.
12350 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12351 for ld_flag in $LDFLAGS; do
12352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12353 aix_use_runtimelinking=yes
12360 exp_sym_flag='-bexport'
12361 no_entry_flag='-bnoentry'
12364 # When large executables or shared objects are built, AIX ld can
12365 # have problems creating the table of contents. If linking a library
12366 # or program results in "error TOC overflow" add -mminimal-toc to
12367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12371 hardcode_direct=yes
12372 hardcode_direct_absolute=yes
12373 hardcode_libdir_separator=':'
12374 link_all_deplibs=yes
12375 file_list_spec='${wl}-f,'
12377 if test "$GCC" = yes; then
12378 case $host_os in aix4.[012]|aix4.[012].*)
12379 # We only want to do this on AIX 4.2 and lower, the check
12380 # below for broken collect2 doesn't work under 4.3+
12381 collect2name=`${CC} -print-prog-name=collect2`
12382 if test -f "$collect2name" &&
12383 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12385 # We have reworked collect2
12388 # We have old collect2
12389 hardcode_direct=unsupported
12390 # It fails to find uninstalled libraries when the uninstalled
12391 # path is not listed in the libpath. Setting hardcode_minus_L
12392 # to unsupported forces relinking
12393 hardcode_minus_L=yes
12394 hardcode_libdir_flag_spec='-L$libdir'
12395 hardcode_libdir_separator=
12399 shared_flag='-shared'
12400 if test "$aix_use_runtimelinking" = yes; then
12401 shared_flag="$shared_flag "'${wl}-G'
12405 if test "$host_cpu" = ia64; then
12406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12407 # chokes on -Wl,-G. The following line is correct:
12410 if test "$aix_use_runtimelinking" = yes; then
12411 shared_flag='${wl}-G'
12413 shared_flag='${wl}-bM:SRE'
12418 export_dynamic_flag_spec='${wl}-bexpall'
12419 # It seems that -bexpall does not export symbols beginning with
12420 # underscore (_), so it is better to generate a list of symbols to export.
12421 always_export_symbols=yes
12422 if test "$aix_use_runtimelinking" = yes; then
12423 # Warning - without using the other runtime loading flags (-brtl),
12424 # -berok will link without error, but may produce a broken library.
12425 allow_undefined_flag='-berok'
12426 # Determine the default libpath from the value encoded in an
12427 # empty executable.
12428 if test "${lt_cv_aix_libpath+set}" = set; then
12429 aix_libpath=$lt_cv_aix_libpath
12431 if ${lt_cv_aix_libpath_+:} false; then :
12432 $as_echo_n "(cached) " >&6
12434 if test x$ac_no_link = xyes; then
12435 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12448 if ac_fn_c_try_link "$LINENO"; then :
12450 lt_aix_libpath_sed='
12451 /Import File Strings/,/^$/ {
12453 s/^0 *\([^ ]*\) *$/\1/
12457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12458 # Check for a 64-bit object if we didn't find anything.
12459 if test -z "$lt_cv_aix_libpath_"; then
12460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 if test -z "$lt_cv_aix_libpath_"; then
12466 lt_cv_aix_libpath_="/usr/lib:/lib"
12471 aix_libpath=$lt_cv_aix_libpath_
12474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12475 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12477 if test "$host_cpu" = ia64; then
12478 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12479 allow_undefined_flag="-z nodefs"
12480 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"
12482 # Determine the default libpath from the value encoded in an
12483 # empty executable.
12484 if test "${lt_cv_aix_libpath+set}" = set; then
12485 aix_libpath=$lt_cv_aix_libpath
12487 if ${lt_cv_aix_libpath_+:} false; then :
12488 $as_echo_n "(cached) " >&6
12490 if test x$ac_no_link = xyes; then
12491 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12504 if ac_fn_c_try_link "$LINENO"; then :
12506 lt_aix_libpath_sed='
12507 /Import File Strings/,/^$/ {
12509 s/^0 *\([^ ]*\) *$/\1/
12513 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12514 # Check for a 64-bit object if we didn't find anything.
12515 if test -z "$lt_cv_aix_libpath_"; then
12516 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12519 rm -f core conftest.err conftest.$ac_objext \
12520 conftest$ac_exeext conftest.$ac_ext
12521 if test -z "$lt_cv_aix_libpath_"; then
12522 lt_cv_aix_libpath_="/usr/lib:/lib"
12527 aix_libpath=$lt_cv_aix_libpath_
12530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12531 # Warning - without using the other run time loading flags,
12532 # -berok will link without error, but may produce a broken library.
12533 no_undefined_flag=' ${wl}-bernotok'
12534 allow_undefined_flag=' ${wl}-berok'
12535 if test "$with_gnu_ld" = yes; then
12536 # We only use this code for GNU lds that support --whole-archive.
12537 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12539 # Exported symbols can be pulled into shared objects from archives
12540 whole_archive_flag_spec='$convenience'
12542 archive_cmds_need_lc=yes
12543 # This is similar to how AIX traditionally builds its shared libraries.
12544 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'
12552 # see comment about AmigaOS4 .so support
12553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12554 archive_expsym_cmds=''
12557 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)'
12558 hardcode_libdir_flag_spec='-L$libdir'
12559 hardcode_minus_L=yes
12565 export_dynamic_flag_spec=-rdynamic
12568 cygwin* | mingw* | pw32* | cegcc*)
12569 # When not using gcc, we currently assume that we are using
12570 # Microsoft Visual C++.
12571 # hardcode_libdir_flag_spec is actually meaningless, as there is
12572 # no search path for DLLs.
12573 case $cc_basename in
12576 hardcode_libdir_flag_spec=' '
12577 allow_undefined_flag=unsupported
12578 always_export_symbols=yes
12580 # Tell ltmain to make .lib files, not .a files.
12582 # Tell ltmain to make .dll files, not .so files.
12584 # FIXME: Setting linknames here is a bad hack.
12585 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12586 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12587 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12589 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12591 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12593 # The linker will not automatically build a static lib if we build a DLL.
12594 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12595 enable_shared_with_static_runtimes=yes
12596 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12599 old_postinstall_cmds='chmod 644 $oldlib'
12600 postlink_cmds='lt_outputfile="@OUTPUT@"~
12601 lt_tool_outputfile="@TOOL_OUTPUT@"~
12602 case $lt_outputfile in
12605 lt_outputfile="$lt_outputfile.exe"
12606 lt_tool_outputfile="$lt_tool_outputfile.exe"
12609 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12610 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12611 $RM "$lt_outputfile.manifest";
12615 # Assume MSVC wrapper
12616 hardcode_libdir_flag_spec=' '
12617 allow_undefined_flag=unsupported
12618 # Tell ltmain to make .lib files, not .a files.
12620 # Tell ltmain to make .dll files, not .so files.
12622 # FIXME: Setting linknames here is a bad hack.
12623 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12624 # The linker will automatically build a .lib file if we build a DLL.
12625 old_archive_from_new_cmds='true'
12626 # FIXME: Should let the user specify the lib program.
12627 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12628 enable_shared_with_static_runtimes=yes
12633 darwin* | rhapsody*)
12636 archive_cmds_need_lc=no
12638 hardcode_automatic=yes
12639 hardcode_shlibpath_var=unsupported
12640 if test "$lt_cv_ld_force_load" = "yes"; then
12641 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12644 whole_archive_flag_spec=''
12646 link_all_deplibs=yes
12647 allow_undefined_flag="$_lt_dar_allow_undefined"
12648 case $cc_basename in
12649 ifort*) _lt_dar_can_shared=yes ;;
12650 *) _lt_dar_can_shared=$GCC ;;
12652 if test "$_lt_dar_can_shared" = "yes"; then
12653 output_verbose_link_cmd=func_echo_all
12654 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12655 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12656 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}"
12657 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}"
12666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12667 hardcode_libdir_flag_spec='-L$libdir'
12668 hardcode_shlibpath_var=no
12671 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12672 # support. Future versions do this automatically, but an explicit c++rt0.o
12673 # does not break anything, and helps significantly (at the cost of a little
12676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12677 hardcode_libdir_flag_spec='-R$libdir'
12678 hardcode_direct=yes
12679 hardcode_shlibpath_var=no
12682 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12685 hardcode_direct=yes
12686 hardcode_minus_L=yes
12687 hardcode_shlibpath_var=no
12690 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12691 freebsd* | dragonfly*)
12692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12693 hardcode_libdir_flag_spec='-R$libdir'
12694 hardcode_direct=yes
12695 hardcode_shlibpath_var=no
12699 if test "$GCC" = yes; then
12700 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12702 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'
12704 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12705 hardcode_libdir_separator=:
12706 hardcode_direct=yes
12708 # hardcode_minus_L: Not really in the search PATH,
12709 # but as the default location of the library.
12710 hardcode_minus_L=yes
12711 export_dynamic_flag_spec='${wl}-E'
12715 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12716 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12718 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12720 if test "$with_gnu_ld" = no; then
12721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12722 hardcode_libdir_separator=:
12723 hardcode_direct=yes
12724 hardcode_direct_absolute=yes
12725 export_dynamic_flag_spec='${wl}-E'
12726 # hardcode_minus_L: Not really in the search PATH,
12727 # but as the default location of the library.
12728 hardcode_minus_L=yes
12733 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12736 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12739 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12742 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12748 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12751 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12755 # Older versions of the 11.00 compiler do not understand -b yet
12756 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12758 $as_echo_n "checking if $CC understands -b... " >&6; }
12759 if ${lt_cv_prog_compiler__b+:} false; then :
12760 $as_echo_n "(cached) " >&6
12762 lt_cv_prog_compiler__b=no
12763 save_LDFLAGS="$LDFLAGS"
12764 LDFLAGS="$LDFLAGS -b"
12765 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12766 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12767 # The linker can only warn and ignore the option if not recognized
12768 # So say no if there are warnings
12769 if test -s conftest.err; then
12770 # Append any errors to the config.log.
12771 cat conftest.err 1>&5
12772 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12774 if diff conftest.exp conftest.er2 >/dev/null; then
12775 lt_cv_prog_compiler__b=yes
12778 lt_cv_prog_compiler__b=yes
12782 LDFLAGS="$save_LDFLAGS"
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12786 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12788 if test x"$lt_cv_prog_compiler__b" = xyes; then
12789 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12797 if test "$with_gnu_ld" = no; then
12798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12799 hardcode_libdir_separator=:
12804 hardcode_shlibpath_var=no
12807 hardcode_direct=yes
12808 hardcode_direct_absolute=yes
12809 export_dynamic_flag_spec='${wl}-E'
12811 # hardcode_minus_L: Not really in the search PATH,
12812 # but as the default location of the library.
12813 hardcode_minus_L=yes
12819 irix5* | irix6* | nonstopux*)
12820 if test "$GCC" = yes; then
12821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12822 # Try to use the -exported_symbol ld option, if it does not
12823 # work, assume that -exports_file does not work either and
12824 # implicitly export all symbols.
12825 # This should be the same for all languages, so no per-tag cache variable.
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12827 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12828 if ${lt_cv_irix_exported_symbol+:} false; then :
12829 $as_echo_n "(cached) " >&6
12831 save_LDFLAGS="$LDFLAGS"
12832 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12833 if test x$ac_no_link = xyes; then
12834 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h. */
12838 int foo (void) { return 0; }
12840 if ac_fn_c_try_link "$LINENO"; then :
12841 lt_cv_irix_exported_symbol=yes
12843 lt_cv_irix_exported_symbol=no
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 LDFLAGS="$save_LDFLAGS"
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12850 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12851 if test "$lt_cv_irix_exported_symbol" = yes; then
12852 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12858 archive_cmds_need_lc='no'
12859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12860 hardcode_libdir_separator=:
12862 link_all_deplibs=yes
12866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12871 hardcode_libdir_flag_spec='-R$libdir'
12872 hardcode_direct=yes
12873 hardcode_shlibpath_var=no
12877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12878 hardcode_direct=yes
12879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12880 hardcode_libdir_separator=:
12881 hardcode_shlibpath_var=no
12888 if test -f /usr/libexec/ld.so; then
12889 hardcode_direct=yes
12890 hardcode_shlibpath_var=no
12891 hardcode_direct_absolute=yes
12892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12894 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12896 export_dynamic_flag_spec='${wl}-E'
12899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12901 hardcode_libdir_flag_spec='-R$libdir'
12904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12915 hardcode_libdir_flag_spec='-L$libdir'
12916 hardcode_minus_L=yes
12917 allow_undefined_flag=unsupported
12918 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'
12919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12923 if test "$GCC" = yes; then
12924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12925 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12927 allow_undefined_flag=' -expect_unresolved \*'
12928 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12930 archive_cmds_need_lc='no'
12931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12932 hardcode_libdir_separator=:
12935 osf4* | osf5*) # as osf3* with the addition of -msym flag
12936 if test "$GCC" = yes; then
12937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12938 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12941 allow_undefined_flag=' -expect_unresolved \*'
12942 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12943 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~
12944 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12946 # Both c and cxx compiler support -rpath directly
12947 hardcode_libdir_flag_spec='-rpath $libdir'
12949 archive_cmds_need_lc='no'
12950 hardcode_libdir_separator=:
12954 no_undefined_flag=' -z defs'
12955 if test "$GCC" = yes; then
12957 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12959 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12961 case `$CC -V 2>&1` in
12964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12970 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12976 hardcode_libdir_flag_spec='-R$libdir'
12977 hardcode_shlibpath_var=no
12979 solaris2.[0-5] | solaris2.[0-5].*) ;;
12981 # The compiler driver will combine and reorder linker options,
12982 # but understands `-z linker_flag'. GCC discards it without `$wl',
12983 # but is careful enough not to reorder.
12984 # Supported since Solaris 2.6 (maybe 2.5.1?)
12985 if test "$GCC" = yes; then
12986 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12992 link_all_deplibs=yes
12996 if test "x$host_vendor" = xsequent; then
12997 # Use $CC to link under sequent, because it throws in some extra .o
12998 # files that make .init and .fini sections work.
12999 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13001 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13003 hardcode_libdir_flag_spec='-L$libdir'
13004 hardcode_direct=yes
13005 hardcode_minus_L=yes
13006 hardcode_shlibpath_var=no
13010 case $host_vendor in
13012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13013 hardcode_direct=yes # is this really true???
13016 ## LD is ld it makes a PLAMLIB
13017 ## CC just makes a GrossModule.
13018 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13019 reload_cmds='$CC -r -o $output$reload_objs'
13023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13024 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13027 runpath_var='LD_RUN_PATH'
13028 hardcode_shlibpath_var=no
13032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13033 hardcode_shlibpath_var=no
13034 export_dynamic_flag_spec='-Bexport'
13038 if test -d /usr/nec; then
13039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13040 hardcode_shlibpath_var=no
13041 runpath_var=LD_RUN_PATH
13042 hardcode_runpath_var=yes
13047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13048 no_undefined_flag='${wl}-z,text'
13049 archive_cmds_need_lc=no
13050 hardcode_shlibpath_var=no
13051 runpath_var='LD_RUN_PATH'
13053 if test "$GCC" = yes; then
13054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 sysv5* | sco3.2v5* | sco5v6*)
13063 # Note: We can NOT use -z defs as we might desire, because we do not
13064 # link with -lc, and that would cause any symbols used from libc to
13065 # always be unresolved, which means just about no library would
13066 # ever link correctly. If we're not using GNU ld we use -z text
13067 # though, which does catch some bad symbols but isn't as heavy-handed
13069 no_undefined_flag='${wl}-z,text'
13070 allow_undefined_flag='${wl}-z,nodefs'
13071 archive_cmds_need_lc=no
13072 hardcode_shlibpath_var=no
13073 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13074 hardcode_libdir_separator=':'
13075 link_all_deplibs=yes
13076 export_dynamic_flag_spec='${wl}-Bexport'
13077 runpath_var='LD_RUN_PATH'
13079 if test "$GCC" = yes; then
13080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13090 hardcode_libdir_flag_spec='-L$libdir'
13091 hardcode_shlibpath_var=no
13099 if test x$host_vendor = xsni; then
13101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13102 export_dynamic_flag_spec='${wl}-Blargedynsym'
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13109 $as_echo "$ld_shlibs" >&6; }
13110 test "$ld_shlibs" = no && can_build_shared=no
13112 with_gnu_ld=$with_gnu_ld
13129 # Do we need to explicitly link libc?
13131 case "x$archive_cmds_need_lc" in
13133 # Assume -lc should be added
13134 archive_cmds_need_lc=yes
13136 if test "$enable_shared" = yes && test "$GCC" = yes; then
13137 case $archive_cmds in
13139 # FIXME: we may have to deal with multi-command sequences.
13142 # Test whether the compiler implicitly links with -lc since on some
13143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13144 # to ld, don't add -lc before -lgcc.
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13147 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13148 $as_echo_n "(cached) " >&6
13151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13154 (eval $ac_compile) 2>&5
13156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13157 test $ac_status = 0; } 2>conftest.err; then
13160 libobjs=conftest.$ac_objext
13162 wl=$lt_prog_compiler_wl
13163 pic_flag=$lt_prog_compiler_pic
13169 lt_save_allow_undefined_flag=$allow_undefined_flag
13170 allow_undefined_flag=
13171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13172 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175 test $ac_status = 0; }
13177 lt_cv_archive_cmds_need_lc=no
13179 lt_cv_archive_cmds_need_lc=yes
13181 allow_undefined_flag=$lt_save_allow_undefined_flag
13183 cat conftest.err 1>&5
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13189 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13190 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13349 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13351 if test "$GCC" = yes; then
13353 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13354 *) lt_awk_arg="/^libraries:/" ;;
13357 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13358 *) lt_sed_strip_eq="s,=/,/,g" ;;
13360 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13361 case $lt_search_path_spec in
13363 # if the path contains ";" then we assume it to be the separator
13364 # otherwise default to the standard path separator (i.e. ":") - it is
13365 # assumed that no part of a normal pathname contains ";" but that should
13366 # okay in the real world where ";" in dirpaths is itself problematic.
13367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13370 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13373 # Ok, now we have the path, separated by spaces, we can step through it
13374 # and add multilib dir if necessary.
13375 lt_tmp_lt_search_path_spec=
13376 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13377 for lt_sys_path in $lt_search_path_spec; do
13378 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13379 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13381 test -d "$lt_sys_path" && \
13382 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13385 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13386 BEGIN {RS=" "; FS="/|\n";} {
13389 for (lt_i = NF; lt_i > 0; lt_i--) {
13390 if ($lt_i != "" && $lt_i != ".") {
13391 if ($lt_i == "..") {
13394 if (lt_count == 0) {
13395 lt_foo="/" $lt_i lt_foo;
13402 if (lt_foo != "") { lt_freq[lt_foo]++; }
13403 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13405 # AWK program above erroneously prepends '/' to C:/dos/paths
13408 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13409 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13411 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13415 library_names_spec=
13416 libname_spec='lib$name'
13420 postuninstall_cmds=
13424 shlibpath_overrides_runpath=unknown
13426 dynamic_linker="$host_os ld.so"
13427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13428 need_lib_prefix=unknown
13429 hardcode_into_libs=no
13431 # when you set need_version to no, make sure it does not cause -set_version
13432 # flags to be left without arguments
13433 need_version=unknown
13437 version_type=linux # correct to gnu/linux during the next big refactor
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13439 shlibpath_var=LIBPATH
13441 # AIX 3 has no versioning support, so we append a major version to the name.
13442 soname_spec='${libname}${release}${shared_ext}$major'
13446 version_type=linux # correct to gnu/linux during the next big refactor
13449 hardcode_into_libs=yes
13450 if test "$host_cpu" = ia64; then
13451 # AIX 5 supports IA64
13452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13453 shlibpath_var=LD_LIBRARY_PATH
13455 # With GCC up to 2.95.x, collect2 would create an import file
13456 # for dependence libraries. The import file would start with
13457 # the line `#! .'. This would cause the generated library to
13458 # depend on `.', always an invalid library. This was fixed in
13459 # development snapshots of GCC prior to 3.0.
13461 aix4 | aix4.[01] | aix4.[01].*)
13462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13464 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13467 can_build_shared=no
13471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13472 # soname into executable. Probably we can add versioning support to
13473 # collect2, so additional links can be useful in future.
13474 if test "$aix_use_runtimelinking" = yes; then
13475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13476 # instead of lib<name>.a to let people know that these are not
13477 # typical AIX shared libraries.
13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480 # We preserve .a as extension for shared libraries through AIX4.2
13481 # and later when we are not doing run time linking.
13482 library_names_spec='${libname}${release}.a $libname.a'
13483 soname_spec='${libname}${release}${shared_ext}$major'
13485 shlibpath_var=LIBPATH
13492 # Since July 2007 AmigaOS4 officially supports .so libraries.
13493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497 library_names_spec='$libname.ixlibrary $libname.a'
13498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13499 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13505 library_names_spec='${libname}${shared_ext}'
13506 dynamic_linker="$host_os ld.so"
13507 shlibpath_var=LIBRARY_PATH
13511 version_type=linux # correct to gnu/linux during the next big refactor
13513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514 soname_spec='${libname}${release}${shared_ext}$major'
13515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13516 shlibpath_var=LD_LIBRARY_PATH
13517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13519 # the default ld.so.conf also contains /usr/contrib/lib and
13520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13521 # libtool to hard-code these into programs
13524 cygwin* | mingw* | pw32* | cegcc*)
13525 version_type=windows
13530 case $GCC,$cc_basename in
13533 library_names_spec='$libname.dll.a'
13534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13535 postinstall_cmds='base_file=`basename \${file}`~
13536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13537 dldir=$destdir/`dirname \$dlpath`~
13538 test -d \$dldir || mkdir -p \$dldir~
13539 $install_prog $dir/$dlname \$dldir/$dlname~
13540 chmod a+x \$dldir/$dlname~
13541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13545 dlpath=$dir/\$dldll~
13547 shlibpath_overrides_runpath=yes
13551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13552 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13557 # MinGW DLLs use traditional 'lib' prefix
13558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13561 # pw32 DLLs use 'pw' prefix rather than 'lib'
13562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13565 dynamic_linker='Win32 ld.exe'
13570 libname_spec='$name'
13571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13572 library_names_spec='${libname}.dll.lib'
13576 sys_lib_search_path_spec=
13579 for lt_path in $LIB
13582 # Let DOS variable expansion print the short 8.3 style file name.
13583 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13584 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13587 # Convert to MSYS style.
13588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13591 # Convert to unix form, then to dos form, then back to unix form
13592 # but this time dos style (no spaces!) so that the unix form looks
13593 # like /cygdrive/c/PROGRA~1:/cygdr...
13594 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13595 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13596 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13599 sys_lib_search_path_spec="$LIB"
13600 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13601 # It is most probably a Windows format PATH.
13602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13606 # FIXME: find the short name or the path components, as spaces are
13607 # common. (e.g. "Program Files" -> "PROGRA~1")
13611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13612 postinstall_cmds='base_file=`basename \${file}`~
13613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13614 dldir=$destdir/`dirname \$dlpath`~
13615 test -d \$dldir || mkdir -p \$dldir~
13616 $install_prog $dir/$dlname \$dldir/$dlname'
13617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13618 dlpath=$dir/\$dldll~
13620 shlibpath_overrides_runpath=yes
13621 dynamic_linker='Win32 link.exe'
13625 # Assume MSVC wrapper
13626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13627 dynamic_linker='Win32 ld.exe'
13630 # FIXME: first we should search . and the directory the executable is in
13634 darwin* | rhapsody*)
13635 dynamic_linker="$host_os dyld"
13636 version_type=darwin
13639 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13640 soname_spec='${libname}${release}${major}$shared_ext'
13641 shlibpath_overrides_runpath=yes
13642 shlibpath_var=DYLD_LIBRARY_PATH
13643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13650 version_type=linux # correct to gnu/linux during the next big refactor
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13654 soname_spec='${libname}${release}${shared_ext}$major'
13655 shlibpath_var=LD_LIBRARY_PATH
13658 freebsd* | dragonfly*)
13659 # DragonFly does not have aout. When/if they implement a new
13660 # versioning mechanism, adjust this.
13661 if test -x /usr/bin/objformat; then
13662 objformat=`/usr/bin/objformat`
13665 freebsd[23].*) objformat=aout ;;
13666 *) objformat=elf ;;
13669 version_type=freebsd-$objformat
13670 case $version_type in
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13681 shlibpath_var=LD_LIBRARY_PATH
13684 shlibpath_overrides_runpath=yes
13686 freebsd3.[01]* | freebsdelf3.[01]*)
13687 shlibpath_overrides_runpath=yes
13688 hardcode_into_libs=yes
13690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13692 shlibpath_overrides_runpath=no
13693 hardcode_into_libs=yes
13695 *) # from 4.6 on, and DragonFly
13696 shlibpath_overrides_runpath=yes
13697 hardcode_into_libs=yes
13703 version_type=linux # correct to gnu/linux during the next big refactor
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13707 soname_spec='${libname}${release}${shared_ext}$major'
13708 shlibpath_var=LD_LIBRARY_PATH
13709 shlibpath_overrides_runpath=no
13710 hardcode_into_libs=yes
13714 version_type=linux # correct to gnu/linux during the next big refactor
13717 dynamic_linker="$host_os runtime_loader"
13718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13719 soname_spec='${libname}${release}${shared_ext}$major'
13720 shlibpath_var=LIBRARY_PATH
13721 shlibpath_overrides_runpath=yes
13722 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13723 hardcode_into_libs=yes
13726 hpux9* | hpux10* | hpux11*)
13727 # Give a soname corresponding to the major version so that dld.sl refuses to
13728 # link against other versions.
13735 hardcode_into_libs=yes
13736 dynamic_linker="$host_os dld.so"
13737 shlibpath_var=LD_LIBRARY_PATH
13738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13740 soname_spec='${libname}${release}${shared_ext}$major'
13741 if test "X$HPUX_IA64_MODE" = X32; then
13742 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13744 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13750 hardcode_into_libs=yes
13751 dynamic_linker="$host_os dld.sl"
13752 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13755 soname_spec='${libname}${release}${shared_ext}$major'
13756 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13761 dynamic_linker="$host_os dld.sl"
13762 shlibpath_var=SHLIB_PATH
13763 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765 soname_spec='${libname}${release}${shared_ext}$major'
13768 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13769 postinstall_cmds='chmod 555 $lib'
13770 # or fails outright, so override atomically:
13771 install_override_mode=555
13775 version_type=linux # correct to gnu/linux during the next big refactor
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13781 shlibpath_var=LD_LIBRARY_PATH
13782 shlibpath_overrides_runpath=no
13783 hardcode_into_libs=yes
13786 irix5* | irix6* | nonstopux*)
13788 nonstopux*) version_type=nonstopux ;;
13790 if test "$lt_cv_prog_gnu_ld" = yes; then
13791 version_type=linux # correct to gnu/linux during the next big refactor
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13801 irix5* | nonstopux*)
13802 libsuff= shlibsuff=
13805 case $LD in # libtool.m4 will add one of these switches to LD
13806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13807 libsuff= shlibsuff= libmagic=32-bit;;
13808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13809 libsuff=32 shlibsuff=N32 libmagic=N32;;
13810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13812 *) libsuff= shlibsuff= libmagic=never-match;;
13816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13817 shlibpath_overrides_runpath=no
13818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13820 hardcode_into_libs=yes
13823 # No shared lib support for Linux oldld, aout, or coff.
13824 linux*oldld* | linux*aout* | linux*coff*)
13828 # This must be glibc/ELF.
13829 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13830 version_type=linux # correct to gnu/linux during the next big refactor
13833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13834 soname_spec='${libname}${release}${shared_ext}$major'
13835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 shlibpath_overrides_runpath=no
13839 # Some binutils ld are patched to set DT_RUNPATH
13840 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13841 $as_echo_n "(cached) " >&6
13843 lt_cv_shlibpath_overrides_runpath=no
13844 save_LDFLAGS=$LDFLAGS
13845 save_libdir=$libdir
13846 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13847 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13848 if test x$ac_no_link = xyes; then
13849 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13862 if ac_fn_c_try_link "$LINENO"; then :
13863 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13864 lt_cv_shlibpath_overrides_runpath=yes
13867 rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869 LDFLAGS=$save_LDFLAGS
13870 libdir=$save_libdir
13874 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13876 # This implies no fast_install, which is unacceptable.
13877 # Some rework will be needed to allow for fast_install
13878 # before this can be enabled.
13879 hardcode_into_libs=yes
13881 # Append ld.so.conf contents to the search path
13882 if test -f /etc/ld.so.conf; then
13883 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13884 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13887 # We used to test for /lib/ld.so.1 and disable shared libraries on
13888 # powerpc, because MkLinux only supported shared libraries with the
13889 # GNU dynamic linker. Since this was broken with cross compilers,
13890 # most powerpc-linux boxes support dynamic linking these days and
13891 # people can always --disable-shared, the test was removed, and we
13892 # assume the GNU/Linux dynamic linker is in use.
13893 dynamic_linker='GNU/Linux ld.so'
13900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13903 dynamic_linker='NetBSD (a.out) ld.so'
13905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13906 soname_spec='${libname}${release}${shared_ext}$major'
13907 dynamic_linker='NetBSD ld.elf_so'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13911 hardcode_into_libs=yes
13915 version_type=linux # correct to gnu/linux during the next big refactor
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 shlibpath_overrides_runpath=yes
13925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13926 soname_spec='${libname}${release}${shared_ext}$major'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 shlibpath_overrides_runpath=no
13929 hardcode_into_libs=yes
13930 dynamic_linker='ldqnx.so'
13935 sys_lib_dlsearch_path_spec="/usr/lib"
13937 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13939 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13940 *) need_version=no ;;
13942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13944 shlibpath_var=LD_LIBRARY_PATH
13945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13947 openbsd2.[89] | openbsd2.[89].*)
13948 shlibpath_overrides_runpath=no
13951 shlibpath_overrides_runpath=yes
13955 shlibpath_overrides_runpath=yes
13960 libname_spec='$name'
13963 library_names_spec='$libname${shared_ext} $libname.a'
13964 dynamic_linker='OS/2 ld.exe'
13965 shlibpath_var=LIBPATH
13968 osf3* | osf4* | osf5*)
13972 soname_spec='${libname}${release}${shared_ext}$major'
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974 shlibpath_var=LD_LIBRARY_PATH
13975 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13976 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13984 version_type=linux # correct to gnu/linux during the next big refactor
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=yes
13991 hardcode_into_libs=yes
13992 # ldd complains unless libraries are executable
13993 postinstall_cmds='chmod +x $lib'
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14000 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes
14002 if test "$with_gnu_ld" = yes; then
14009 version_type=linux # correct to gnu/linux during the next big refactor
14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011 soname_spec='${libname}${release}${shared_ext}$major'
14012 shlibpath_var=LD_LIBRARY_PATH
14013 case $host_vendor in
14015 shlibpath_overrides_runpath=no
14017 runpath_var=LD_RUN_PATH
14025 shlibpath_overrides_runpath=no
14026 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14032 if test -d /usr/nec ;then
14033 version_type=linux # correct to gnu/linux during the next big refactor
14034 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14035 soname_spec='$libname${shared_ext}.$major'
14036 shlibpath_var=LD_LIBRARY_PATH
14040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14041 version_type=freebsd-elf
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14045 soname_spec='${libname}${release}${shared_ext}$major'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 shlibpath_overrides_runpath=yes
14048 hardcode_into_libs=yes
14049 if test "$with_gnu_ld" = yes; then
14050 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14052 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14055 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14059 sys_lib_dlsearch_path_spec='/usr/lib'
14063 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14064 version_type=linux # correct to gnu/linux during the next big refactor
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 shlibpath_var=LD_LIBRARY_PATH
14069 shlibpath_overrides_runpath=no
14070 hardcode_into_libs=yes
14074 version_type=linux # correct to gnu/linux during the next big refactor
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 shlibpath_var=LD_LIBRARY_PATH
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14085 $as_echo "$dynamic_linker" >&6; }
14086 test "$dynamic_linker" = no && can_build_shared=no
14088 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14089 if test "$GCC" = yes; then
14090 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14093 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14094 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14096 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14097 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14192 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14194 if test -n "$hardcode_libdir_flag_spec" ||
14195 test -n "$runpath_var" ||
14196 test "X$hardcode_automatic" = "Xyes" ; then
14198 # We can hardcode non-existent directories.
14199 if test "$hardcode_direct" != no &&
14200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14201 # have to relink, otherwise we might link with an installed library
14202 # when we should be linking with a yet-to-be-installed one
14203 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14204 test "$hardcode_minus_L" != no; then
14205 # Linking always hardcodes the temporary library directory.
14206 hardcode_action=relink
14208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14209 hardcode_action=immediate
14212 # We cannot hardcode anything, or else we can only hardcode existing
14214 hardcode_action=unsupported
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14217 $as_echo "$hardcode_action" >&6; }
14219 if test "$hardcode_action" = relink ||
14220 test "$inherit_rpath" = yes; then
14221 # Fast installation is not supported
14222 enable_fast_install=no
14223 elif test "$shlibpath_overrides_runpath" = yes ||
14224 test "$enable_shared" = no; then
14225 # Fast installation is not necessary
14226 enable_fast_install=needless
14234 if test "x$enable_dlopen" != xyes; then
14235 enable_dlopen=unknown
14236 enable_dlopen_self=unknown
14237 enable_dlopen_self_static=unknown
14244 lt_cv_dlopen="load_add_on"
14246 lt_cv_dlopen_self=yes
14249 mingw* | pw32* | cegcc*)
14250 lt_cv_dlopen="LoadLibrary"
14255 lt_cv_dlopen="dlopen"
14260 # if libdl is installed we need to link against it
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14263 if ${ac_cv_lib_dl_dlopen+:} false; then :
14264 $as_echo_n "(cached) " >&6
14266 ac_check_lib_save_LIBS=$LIBS
14268 if test x$ac_no_link = xyes; then
14269 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14274 /* Override any GCC internal prototype to avoid an error.
14275 Use char because int might match the return type of a GCC
14276 builtin and then its argument prototype would still apply. */
14289 if ac_fn_c_try_link "$LINENO"; then :
14290 ac_cv_lib_dl_dlopen=yes
14292 ac_cv_lib_dl_dlopen=no
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext conftest.$ac_ext
14296 LIBS=$ac_check_lib_save_LIBS
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14299 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14300 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14304 lt_cv_dlopen="dyld"
14306 lt_cv_dlopen_self=yes
14313 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14314 if test "x$ac_cv_func_shl_load" = xyes; then :
14315 lt_cv_dlopen="shl_load"
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14318 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14319 if ${ac_cv_lib_dld_shl_load+:} false; then :
14320 $as_echo_n "(cached) " >&6
14322 ac_check_lib_save_LIBS=$LIBS
14324 if test x$ac_no_link = xyes; then
14325 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply. */
14340 return shl_load ();
14345 if ac_fn_c_try_link "$LINENO"; then :
14346 ac_cv_lib_dld_shl_load=yes
14348 ac_cv_lib_dld_shl_load=no
14350 rm -f core conftest.err conftest.$ac_objext \
14351 conftest$ac_exeext conftest.$ac_ext
14352 LIBS=$ac_check_lib_save_LIBS
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14355 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14356 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14357 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14359 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14360 if test "x$ac_cv_func_dlopen" = xyes; then :
14361 lt_cv_dlopen="dlopen"
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14364 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14365 if ${ac_cv_lib_dl_dlopen+:} false; then :
14366 $as_echo_n "(cached) " >&6
14368 ac_check_lib_save_LIBS=$LIBS
14370 if test x$ac_no_link = xyes; then
14371 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14376 /* Override any GCC internal prototype to avoid an error.
14377 Use char because int might match the return type of a GCC
14378 builtin and then its argument prototype would still apply. */
14391 if ac_fn_c_try_link "$LINENO"; then :
14392 ac_cv_lib_dl_dlopen=yes
14394 ac_cv_lib_dl_dlopen=no
14396 rm -f core conftest.err conftest.$ac_objext \
14397 conftest$ac_exeext conftest.$ac_ext
14398 LIBS=$ac_check_lib_save_LIBS
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14401 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14402 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14406 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14407 if ${ac_cv_lib_svld_dlopen+:} false; then :
14408 $as_echo_n "(cached) " >&6
14410 ac_check_lib_save_LIBS=$LIBS
14411 LIBS="-lsvld $LIBS"
14412 if test x$ac_no_link = xyes; then
14413 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14418 /* Override any GCC internal prototype to avoid an error.
14419 Use char because int might match the return type of a GCC
14420 builtin and then its argument prototype would still apply. */
14433 if ac_fn_c_try_link "$LINENO"; then :
14434 ac_cv_lib_svld_dlopen=yes
14436 ac_cv_lib_svld_dlopen=no
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14440 LIBS=$ac_check_lib_save_LIBS
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14443 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14444 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14448 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14449 if ${ac_cv_lib_dld_dld_link+:} false; then :
14450 $as_echo_n "(cached) " >&6
14452 ac_check_lib_save_LIBS=$LIBS
14454 if test x$ac_no_link = xyes; then
14455 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14460 /* Override any GCC internal prototype to avoid an error.
14461 Use char because int might match the return type of a GCC
14462 builtin and then its argument prototype would still apply. */
14470 return dld_link ();
14475 if ac_fn_c_try_link "$LINENO"; then :
14476 ac_cv_lib_dld_dld_link=yes
14478 ac_cv_lib_dld_dld_link=no
14480 rm -f core conftest.err conftest.$ac_objext \
14481 conftest$ac_exeext conftest.$ac_ext
14482 LIBS=$ac_check_lib_save_LIBS
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14485 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14486 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14487 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14508 if test "x$lt_cv_dlopen" != xno; then
14514 case $lt_cv_dlopen in
14516 save_CPPFLAGS="$CPPFLAGS"
14517 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14519 save_LDFLAGS="$LDFLAGS"
14520 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14523 LIBS="$lt_cv_dlopen_libs $LIBS"
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14526 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14527 if ${lt_cv_dlopen_self+:} false; then :
14528 $as_echo_n "(cached) " >&6
14530 if test "$cross_compiling" = yes; then :
14531 lt_cv_dlopen_self=cross
14533 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14534 lt_status=$lt_dlunknown
14535 cat > conftest.$ac_ext <<_LT_EOF
14536 #line $LINENO "configure"
14537 #include "confdefs.h"
14546 # define LT_DLGLOBAL RTLD_GLOBAL
14549 # define LT_DLGLOBAL DL_GLOBAL
14551 # define LT_DLGLOBAL 0
14555 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14556 find out it does not work in some platform. */
14557 #ifndef LT_DLLAZY_OR_NOW
14559 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14562 # define LT_DLLAZY_OR_NOW DL_LAZY
14565 # define LT_DLLAZY_OR_NOW RTLD_NOW
14568 # define LT_DLLAZY_OR_NOW DL_NOW
14570 # define LT_DLLAZY_OR_NOW 0
14577 /* When -fvisbility=hidden is used, assume the code has been annotated
14578 correspondingly for the symbols needed. */
14579 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14580 int fnord () __attribute__((visibility("default")));
14583 int fnord () { return 42; }
14586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14587 int status = $lt_dlunknown;
14591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14594 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14595 else puts (dlerror ());
14597 /* dlclose (self); */
14605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14606 (eval $ac_link) 2>&5
14608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14610 (./conftest; exit; ) >&5 2>/dev/null
14612 case x$lt_status in
14613 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14614 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14615 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14618 # compilation failed
14619 lt_cv_dlopen_self=no
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14627 $as_echo "$lt_cv_dlopen_self" >&6; }
14629 if test "x$lt_cv_dlopen_self" = xyes; then
14630 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14632 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14633 if ${lt_cv_dlopen_self_static+:} false; then :
14634 $as_echo_n "(cached) " >&6
14636 if test "$cross_compiling" = yes; then :
14637 lt_cv_dlopen_self_static=cross
14639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14640 lt_status=$lt_dlunknown
14641 cat > conftest.$ac_ext <<_LT_EOF
14642 #line $LINENO "configure"
14643 #include "confdefs.h"
14652 # define LT_DLGLOBAL RTLD_GLOBAL
14655 # define LT_DLGLOBAL DL_GLOBAL
14657 # define LT_DLGLOBAL 0
14661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14662 find out it does not work in some platform. */
14663 #ifndef LT_DLLAZY_OR_NOW
14665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14668 # define LT_DLLAZY_OR_NOW DL_LAZY
14671 # define LT_DLLAZY_OR_NOW RTLD_NOW
14674 # define LT_DLLAZY_OR_NOW DL_NOW
14676 # define LT_DLLAZY_OR_NOW 0
14683 /* When -fvisbility=hidden is used, assume the code has been annotated
14684 correspondingly for the symbols needed. */
14685 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14686 int fnord () __attribute__((visibility("default")));
14689 int fnord () { return 42; }
14692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14693 int status = $lt_dlunknown;
14697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14700 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14701 else puts (dlerror ());
14703 /* dlclose (self); */
14711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14712 (eval $ac_link) 2>&5
14714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14715 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14716 (./conftest; exit; ) >&5 2>/dev/null
14718 case x$lt_status in
14719 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14720 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14721 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14724 # compilation failed
14725 lt_cv_dlopen_self_static=no
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14733 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14736 CPPFLAGS="$save_CPPFLAGS"
14737 LDFLAGS="$save_LDFLAGS"
14742 case $lt_cv_dlopen_self in
14743 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14744 *) enable_dlopen_self=unknown ;;
14747 case $lt_cv_dlopen_self_static in
14748 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14749 *) enable_dlopen_self_static=unknown ;;
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14772 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14773 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14774 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14775 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14777 $as_echo "yes" >&6; }
14779 # FIXME - insert some real tests, host_os isn't really good enough
14782 if test -n "$STRIP" ; then
14783 striplib="$STRIP -x"
14784 old_striplib="$STRIP -S"
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14786 $as_echo "yes" >&6; }
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 $as_echo "no" >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 $as_echo "no" >&6; }
14810 # Report which library types will actually be built
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14812 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14814 $as_echo "$can_build_shared" >&6; }
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14817 $as_echo_n "checking whether to build shared libraries... " >&6; }
14818 test "$can_build_shared" = "no" && enable_shared=no
14820 # On AIX, shared libraries and static libraries use the same namespace, and
14821 # are all built from PIC.
14824 test "$enable_shared" = yes && enable_static=no
14825 if test -n "$RANLIB"; then
14826 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14827 postinstall_cmds='$RANLIB $lib'
14832 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14833 test "$enable_shared" = yes && enable_static=no
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14838 $as_echo "$enable_shared" >&6; }
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14841 $as_echo_n "checking whether to build static libraries... " >&6; }
14842 # Make sure either enable_shared or enable_static is yes.
14843 test "$enable_shared" = yes || enable_static=yes
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14845 $as_echo "$enable_static" >&6; }
14852 ac_cpp='$CPP $CPPFLAGS'
14853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14859 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14860 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14861 (test "X$CXX" != "Xg++"))) ; then
14863 ac_cpp='$CXXCPP $CPPFLAGS'
14864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14868 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14869 if test -z "$CXXCPP"; then
14870 if ${ac_cv_prog_CXXCPP+:} false; then :
14871 $as_echo_n "(cached) " >&6
14873 # Double quotes because CXXCPP needs to be expanded
14874 for CXXCPP in "$CXX -E" "/lib/cpp"
14876 ac_preproc_ok=false
14877 for ac_cxx_preproc_warn_flag in '' yes
14879 # Use a header file that comes with gcc, so configuring glibc
14880 # with a fresh cross-compiler works.
14881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14882 # <limits.h> exists even on freestanding compilers.
14883 # On the NeXT, cc -E runs the code through the compiler's parser,
14884 # not just through cpp. "Syntax error" is here to catch this case.
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14888 # include <limits.h>
14890 # include <assert.h>
14894 if ac_fn_cxx_try_cpp "$LINENO"; then :
14897 # Broken: fails on valid input.
14900 rm -f conftest.err conftest.i conftest.$ac_ext
14902 # OK, works on sane cases. Now check whether nonexistent headers
14903 # can be detected and how.
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906 #include <ac_nonexistent.h>
14908 if ac_fn_cxx_try_cpp "$LINENO"; then :
14909 # Broken: success on invalid input.
14912 # Passes both tests.
14916 rm -f conftest.err conftest.i conftest.$ac_ext
14919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14920 rm -f conftest.i conftest.err conftest.$ac_ext
14921 if $ac_preproc_ok; then :
14926 ac_cv_prog_CXXCPP=$CXXCPP
14929 CXXCPP=$ac_cv_prog_CXXCPP
14931 ac_cv_prog_CXXCPP=$CXXCPP
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14934 $as_echo "$CXXCPP" >&6; }
14935 ac_preproc_ok=false
14936 for ac_cxx_preproc_warn_flag in '' yes
14938 # Use a header file that comes with gcc, so configuring glibc
14939 # with a fresh cross-compiler works.
14940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14941 # <limits.h> exists even on freestanding compilers.
14942 # On the NeXT, cc -E runs the code through the compiler's parser,
14943 # not just through cpp. "Syntax error" is here to catch this case.
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14947 # include <limits.h>
14949 # include <assert.h>
14953 if ac_fn_cxx_try_cpp "$LINENO"; then :
14956 # Broken: fails on valid input.
14959 rm -f conftest.err conftest.i conftest.$ac_ext
14961 # OK, works on sane cases. Now check whether nonexistent headers
14962 # can be detected and how.
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14965 #include <ac_nonexistent.h>
14967 if ac_fn_cxx_try_cpp "$LINENO"; then :
14968 # Broken: success on invalid input.
14971 # Passes both tests.
14975 rm -f conftest.err conftest.i conftest.$ac_ext
14978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14979 rm -f conftest.i conftest.err conftest.$ac_ext
14980 if $ac_preproc_ok; then :
14983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14985 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14986 See \`config.log' for more details" "$LINENO" 5; }
14990 ac_cpp='$CPP $CPPFLAGS'
14991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14996 _lt_caught_CXX_error=yes
15000 ac_cpp='$CXXCPP $CPPFLAGS'
15001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15005 archive_cmds_need_lc_CXX=no
15006 allow_undefined_flag_CXX=
15007 always_export_symbols_CXX=no
15008 archive_expsym_cmds_CXX=
15009 compiler_needs_object_CXX=no
15010 export_dynamic_flag_spec_CXX=
15011 hardcode_direct_CXX=no
15012 hardcode_direct_absolute_CXX=no
15013 hardcode_libdir_flag_spec_CXX=
15014 hardcode_libdir_separator_CXX=
15015 hardcode_minus_L_CXX=no
15016 hardcode_shlibpath_var_CXX=unsupported
15017 hardcode_automatic_CXX=no
15018 inherit_rpath_CXX=no
15020 module_expsym_cmds_CXX=
15021 link_all_deplibs_CXX=unknown
15022 old_archive_cmds_CXX=$old_archive_cmds
15023 reload_flag_CXX=$reload_flag
15024 reload_cmds_CXX=$reload_cmds
15025 no_undefined_flag_CXX=
15026 whole_archive_flag_spec_CXX=
15027 enable_shared_with_static_runtimes_CXX=no
15029 # Source file extension for C++ test sources.
15032 # Object file extension for compiled C++ test sources.
15036 # No sense in running all these tests if we already determined that
15037 # the CXX compiler isn't working. Some variables (like enable_shared)
15038 # are currently assumed to apply to all compilers on this platform,
15039 # and will be corrupted by setting them based on a non-working compiler.
15040 if test "$_lt_caught_CXX_error" != yes; then
15041 # Code to be used in simple compile tests
15042 lt_simple_compile_test_code="int some_variable = 0;"
15044 # Code to be used in simple link tests
15045 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15054 # If no C compiler was specified, use CC.
15057 # If no C compiler flags were specified, use CFLAGS.
15058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15060 # Allow CC to be a program name with arguments.
15064 # save warnings/boilerplate of simple test code
15065 ac_outfile=conftest.$ac_objext
15066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15068 _lt_compiler_boilerplate=`cat conftest.err`
15071 ac_outfile=conftest.$ac_objext
15072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15074 _lt_linker_boilerplate=`cat conftest.err`
15078 # Allow CC to be a program name with arguments.
15080 lt_save_CFLAGS=$CFLAGS
15084 lt_save_with_gnu_ld=$with_gnu_ld
15085 lt_save_path_LD=$lt_cv_path_LD
15086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15087 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15089 $as_unset lt_cv_prog_gnu_ld
15091 if test -n "${lt_cv_path_LDCXX+set}"; then
15092 lt_cv_path_LD=$lt_cv_path_LDCXX
15094 $as_unset lt_cv_path_LD
15096 test -z "${LDCXX+set}" || LD=$LDCXX
15101 for cc_temp in $compiler""; do
15103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15109 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15112 if test -n "$compiler"; then
15113 # We don't want -fno-exception when compiling C++ code, so set the
15114 # no_builtin_flag separately
15115 if test "$GXX" = yes; then
15116 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15118 lt_prog_compiler_no_builtin_flag_CXX=
15121 if test "$GXX" = yes; then
15122 # Set up default GNU C++ configuration
15126 # Check whether --with-gnu-ld was given.
15127 if test "${with_gnu_ld+set}" = set; then :
15128 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15134 if test "$GCC" = yes; then
15135 # Check if gcc -print-prog-name=ld gives a path.
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15137 $as_echo_n "checking for ld used by $CC... " >&6; }
15140 # gcc leaves a trailing carriage return which upsets mingw
15141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15146 # Accept absolute paths.
15148 re_direlt='/[^/][^/]*/\.\./'
15149 # Canonicalize the pathname of ld
15150 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15151 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15152 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15154 test -z "$LD" && LD="$ac_prog"
15157 # If it fails, then pretend we aren't using GCC.
15161 # If it is relative, then search for the first ld in PATH.
15162 with_gnu_ld=unknown
15165 elif test "$with_gnu_ld" = yes; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15167 $as_echo_n "checking for GNU ld... " >&6; }
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15170 $as_echo_n "checking for non-GNU ld... " >&6; }
15172 if ${lt_cv_path_LD+:} false; then :
15173 $as_echo_n "(cached) " >&6
15175 if test -z "$LD"; then
15176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15177 for ac_dir in $PATH; do
15179 test -z "$ac_dir" && ac_dir=.
15180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15181 lt_cv_path_LD="$ac_dir/$ac_prog"
15182 # Check to see if the program is GNU ld. I'd rather use --version,
15183 # but apparently some variants of GNU ld only accept -v.
15184 # Break only if it was the GNU/non-GNU ld that we prefer.
15185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15186 *GNU* | *'with BFD'*)
15187 test "$with_gnu_ld" != no && break
15190 test "$with_gnu_ld" != yes && break
15197 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15201 LD="$lt_cv_path_LD"
15202 if test -n "$LD"; then
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15204 $as_echo "$LD" >&6; }
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207 $as_echo "no" >&6; }
15209 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15211 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15212 if ${lt_cv_prog_gnu_ld+:} false; then :
15213 $as_echo_n "(cached) " >&6
15215 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15216 case `$LD -v 2>&1 </dev/null` in
15217 *GNU* | *'with BFD'*)
15218 lt_cv_prog_gnu_ld=yes
15221 lt_cv_prog_gnu_ld=no
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15226 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15227 with_gnu_ld=$lt_cv_prog_gnu_ld
15235 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15236 # archiving commands below assume that GNU ld is being used.
15237 if test "$with_gnu_ld" = yes; then
15238 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15239 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15241 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15244 # If archive_cmds runs LD, not CC, wlarc should be empty
15245 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15246 # investigate it a little bit more. (MM)
15249 # ancient GNU ld didn't support --whole-archive et. al.
15250 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15251 $GREP 'no-whole-archive' > /dev/null; then
15252 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15254 whole_archive_flag_spec_CXX=
15260 # A generic and very simple default shared library creation
15261 # command for GNU C++ for the case where it uses the native
15262 # linker, instead of GNU ld. If possible, this setting should
15263 # overridden to take advantage of the native linker features on
15264 # the platform it is being used on.
15265 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15268 # Commands to make compiler produce verbose output that lists
15269 # what "hidden" libraries, object files and flags are used when
15270 # linking a shared library.
15271 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15279 # PORTME: fill in a description of your system's C++ link characteristics
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15281 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15285 # FIXME: insert proper C++ library support
15289 if test "$host_cpu" = ia64; then
15290 # On IA64, the linker does run time linking by default, so we don't
15291 # have to do anything special.
15292 aix_use_runtimelinking=no
15293 exp_sym_flag='-Bexport'
15296 aix_use_runtimelinking=no
15298 # Test if we are trying to use run time linking or normal
15299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15300 # need to do runtime linking.
15301 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15302 for ld_flag in $LDFLAGS; do
15305 aix_use_runtimelinking=yes
15313 exp_sym_flag='-bexport'
15314 no_entry_flag='-bnoentry'
15317 # When large executables or shared objects are built, AIX ld can
15318 # have problems creating the table of contents. If linking a library
15319 # or program results in "error TOC overflow" add -mminimal-toc to
15320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15323 archive_cmds_CXX=''
15324 hardcode_direct_CXX=yes
15325 hardcode_direct_absolute_CXX=yes
15326 hardcode_libdir_separator_CXX=':'
15327 link_all_deplibs_CXX=yes
15328 file_list_spec_CXX='${wl}-f,'
15330 if test "$GXX" = yes; then
15331 case $host_os in aix4.[012]|aix4.[012].*)
15332 # We only want to do this on AIX 4.2 and lower, the check
15333 # below for broken collect2 doesn't work under 4.3+
15334 collect2name=`${CC} -print-prog-name=collect2`
15335 if test -f "$collect2name" &&
15336 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15338 # We have reworked collect2
15341 # We have old collect2
15342 hardcode_direct_CXX=unsupported
15343 # It fails to find uninstalled libraries when the uninstalled
15344 # path is not listed in the libpath. Setting hardcode_minus_L
15345 # to unsupported forces relinking
15346 hardcode_minus_L_CXX=yes
15347 hardcode_libdir_flag_spec_CXX='-L$libdir'
15348 hardcode_libdir_separator_CXX=
15351 shared_flag='-shared'
15352 if test "$aix_use_runtimelinking" = yes; then
15353 shared_flag="$shared_flag "'${wl}-G'
15357 if test "$host_cpu" = ia64; then
15358 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15359 # chokes on -Wl,-G. The following line is correct:
15362 if test "$aix_use_runtimelinking" = yes; then
15363 shared_flag='${wl}-G'
15365 shared_flag='${wl}-bM:SRE'
15370 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15371 # It seems that -bexpall does not export symbols beginning with
15372 # underscore (_), so it is better to generate a list of symbols to
15374 always_export_symbols_CXX=yes
15375 if test "$aix_use_runtimelinking" = yes; then
15376 # Warning - without using the other runtime loading flags (-brtl),
15377 # -berok will link without error, but may produce a broken library.
15378 allow_undefined_flag_CXX='-berok'
15379 # Determine the default libpath from the value encoded in an empty
15381 if test "${lt_cv_aix_libpath+set}" = set; then
15382 aix_libpath=$lt_cv_aix_libpath
15384 if ${lt_cv_aix_libpath__CXX+:} false; then :
15385 $as_echo_n "(cached) " >&6
15387 if test x$ac_no_link = xyes; then
15388 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15401 if ac_fn_cxx_try_link "$LINENO"; then :
15403 lt_aix_libpath_sed='
15404 /Import File Strings/,/^$/ {
15406 s/^0 *\([^ ]*\) *$/\1/
15410 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15411 # Check for a 64-bit object if we didn't find anything.
15412 if test -z "$lt_cv_aix_libpath__CXX"; then
15413 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15416 rm -f core conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
15418 if test -z "$lt_cv_aix_libpath__CXX"; then
15419 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15424 aix_libpath=$lt_cv_aix_libpath__CXX
15427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15429 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15431 if test "$host_cpu" = ia64; then
15432 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15433 allow_undefined_flag_CXX="-z nodefs"
15434 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"
15436 # Determine the default libpath from the value encoded in an
15437 # empty executable.
15438 if test "${lt_cv_aix_libpath+set}" = set; then
15439 aix_libpath=$lt_cv_aix_libpath
15441 if ${lt_cv_aix_libpath__CXX+:} false; then :
15442 $as_echo_n "(cached) " >&6
15444 if test x$ac_no_link = xyes; then
15445 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15458 if ac_fn_cxx_try_link "$LINENO"; then :
15460 lt_aix_libpath_sed='
15461 /Import File Strings/,/^$/ {
15463 s/^0 *\([^ ]*\) *$/\1/
15467 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15468 # Check for a 64-bit object if we didn't find anything.
15469 if test -z "$lt_cv_aix_libpath__CXX"; then
15470 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15473 rm -f core conftest.err conftest.$ac_objext \
15474 conftest$ac_exeext conftest.$ac_ext
15475 if test -z "$lt_cv_aix_libpath__CXX"; then
15476 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15481 aix_libpath=$lt_cv_aix_libpath__CXX
15484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15485 # Warning - without using the other run time loading flags,
15486 # -berok will link without error, but may produce a broken library.
15487 no_undefined_flag_CXX=' ${wl}-bernotok'
15488 allow_undefined_flag_CXX=' ${wl}-berok'
15489 if test "$with_gnu_ld" = yes; then
15490 # We only use this code for GNU lds that support --whole-archive.
15491 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15493 # Exported symbols can be pulled into shared objects from archives
15494 whole_archive_flag_spec_CXX='$convenience'
15496 archive_cmds_need_lc_CXX=yes
15497 # This is similar to how AIX traditionally builds its shared
15499 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'
15505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15506 allow_undefined_flag_CXX=unsupported
15507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15508 # support --undefined. This deserves some investigation. FIXME
15509 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516 case $cc_basename in
15518 # FIXME: insert proper C++ library support
15524 cygwin* | mingw* | pw32* | cegcc*)
15525 case $GXX,$cc_basename in
15528 # hardcode_libdir_flag_spec is actually meaningless, as there is
15529 # no search path for DLLs.
15530 hardcode_libdir_flag_spec_CXX=' '
15531 allow_undefined_flag_CXX=unsupported
15532 always_export_symbols_CXX=yes
15533 file_list_spec_CXX='@'
15534 # Tell ltmain to make .lib files, not .a files.
15536 # Tell ltmain to make .dll files, not .so files.
15538 # FIXME: Setting linknames here is a bad hack.
15539 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15540 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15541 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15543 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15545 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15547 # The linker will not automatically build a static lib if we build a DLL.
15548 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15549 enable_shared_with_static_runtimes_CXX=yes
15551 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15552 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15553 lt_tool_outputfile="@TOOL_OUTPUT@"~
15554 case $lt_outputfile in
15557 lt_outputfile="$lt_outputfile.exe"
15558 lt_tool_outputfile="$lt_tool_outputfile.exe"
15561 func_to_tool_file "$lt_outputfile"~
15562 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15563 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15564 $RM "$lt_outputfile.manifest";
15569 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15570 # as there is no search path for DLLs.
15571 hardcode_libdir_flag_spec_CXX='-L$libdir'
15572 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15573 allow_undefined_flag_CXX=unsupported
15574 always_export_symbols_CXX=no
15575 enable_shared_with_static_runtimes_CXX=yes
15577 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15578 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'
15579 # If the export-symbols file already is a .def file (1st line
15580 # is EXPORTS), use it as is; otherwise, prepend...
15581 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15582 cp $export_symbols $output_objdir/$soname.def;
15584 echo EXPORTS > $output_objdir/$soname.def;
15585 cat $export_symbols >> $output_objdir/$soname.def;
15587 $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'
15594 darwin* | rhapsody*)
15597 archive_cmds_need_lc_CXX=no
15598 hardcode_direct_CXX=no
15599 hardcode_automatic_CXX=yes
15600 hardcode_shlibpath_var_CXX=unsupported
15601 if test "$lt_cv_ld_force_load" = "yes"; then
15602 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15605 whole_archive_flag_spec_CXX=''
15607 link_all_deplibs_CXX=yes
15608 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15609 case $cc_basename in
15610 ifort*) _lt_dar_can_shared=yes ;;
15611 *) _lt_dar_can_shared=$GCC ;;
15613 if test "$_lt_dar_can_shared" = "yes"; then
15614 output_verbose_link_cmd=func_echo_all
15615 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}"
15616 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15617 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}"
15618 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}"
15619 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15620 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}"
15621 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}"
15631 case $cc_basename in
15633 # FIXME: insert proper C++ library support
15637 # Green Hills C++ Compiler
15638 # FIXME: insert proper C++ library support
15642 # FIXME: insert proper C++ library support
15649 # C++ shared libraries reported to be fairly broken before
15655 archive_cmds_need_lc_CXX=no
15658 freebsd* | dragonfly*)
15659 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15668 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15669 link_all_deplibs_CXX=yes
15673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_separator_CXX=:
15675 export_dynamic_flag_spec_CXX='${wl}-E'
15676 hardcode_direct_CXX=yes
15677 hardcode_minus_L_CXX=yes # Not in the search PATH,
15678 # but as the default
15679 # location of the library.
15681 case $cc_basename in
15683 # FIXME: insert proper C++ library support
15687 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'
15688 # Commands to make compiler produce verbose output that lists
15689 # what "hidden" libraries, object files and flags are used when
15690 # linking a shared library.
15692 # There doesn't appear to be a way to prevent this compiler from
15693 # explicitly linking system object files so we need to strip them
15694 # from the output so that they don't get included in the library
15696 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15699 if test "$GXX" = yes; then
15700 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15702 # FIXME: insert proper C++ library support
15710 if test $with_gnu_ld = no; then
15711 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15712 hardcode_libdir_separator_CXX=:
15718 export_dynamic_flag_spec_CXX='${wl}-E'
15724 hardcode_direct_CXX=no
15725 hardcode_shlibpath_var_CXX=no
15728 hardcode_direct_CXX=yes
15729 hardcode_direct_absolute_CXX=yes
15730 hardcode_minus_L_CXX=yes # Not in the search PATH,
15731 # but as the default
15732 # location of the library.
15736 case $cc_basename in
15738 # FIXME: insert proper C++ library support
15744 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15747 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15750 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15753 # Commands to make compiler produce verbose output that lists
15754 # what "hidden" libraries, object files and flags are used when
15755 # linking a shared library.
15757 # There doesn't appear to be a way to prevent this compiler from
15758 # explicitly linking system object files so we need to strip them
15759 # from the output so that they don't get included in the library
15761 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15764 if test "$GXX" = yes; then
15765 if test $with_gnu_ld = no; then
15768 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15771 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15774 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15779 # FIXME: insert proper C++ library support
15787 hardcode_direct_CXX=no
15788 hardcode_shlibpath_var_CXX=no
15789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15790 export_dynamic_flag_spec_CXX='${wl}-E'
15791 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15792 # Instead, shared libraries are loaded at an image base (0x10000000 by
15793 # default) and relocated if they conflict, which is a slow very memory
15794 # consuming and fragmenting process. To avoid this, we pick a random,
15795 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15796 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15797 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'
15798 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'
15801 case $cc_basename in
15804 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15806 # Archives containing C++ object files must be created using
15807 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15808 # necessary to make sure instantiated templates are included
15810 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15813 if test "$GXX" = yes; then
15814 if test "$with_gnu_ld" = no; then
15815 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15817 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15820 link_all_deplibs_CXX=yes
15823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15824 hardcode_libdir_separator_CXX=:
15825 inherit_rpath_CXX=yes
15828 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15829 case $cc_basename in
15831 # Kuck and Associates, Inc. (KAI) C++ Compiler
15833 # KCC will only create a shared library if the output file
15834 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15835 # to its proper name (with version) after linking.
15836 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'
15837 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'
15838 # Commands to make compiler produce verbose output that lists
15839 # what "hidden" libraries, object files and flags are used when
15840 # linking a shared library.
15842 # There doesn't appear to be a way to prevent this compiler from
15843 # explicitly linking system object files so we need to strip them
15844 # from the output so that they don't get included in the library
15846 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15849 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15851 # Archives containing C++ object files must be created using
15852 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15853 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15858 # version 8.0 and above of icpc choke on multiply defined symbols
15859 # if we add $predep_objects and $postdep_objects, however 7.1 and
15860 # earlier do not add the objects themselves.
15861 case `$CC -V 2>&1` in
15863 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15864 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'
15866 *) # Version 8.0 or newer
15869 ia64*) tmp_idyn=' -i_dynamic';;
15871 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872 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'
15875 archive_cmds_need_lc_CXX=no
15876 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15877 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15878 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15881 # Portland Group C++ compiler
15883 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15884 prelink_cmds_CXX='tpldir=Template.dir~
15886 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15887 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15888 old_archive_cmds_CXX='tpldir=Template.dir~
15890 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15891 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15893 archive_cmds_CXX='tpldir=Template.dir~
15895 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15896 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15897 archive_expsym_cmds_CXX='tpldir=Template.dir~
15899 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15900 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15902 *) # Version 6 and above use weak symbols
15903 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15904 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'
15908 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15909 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15910 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15914 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15915 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'
15917 runpath_var=LD_RUN_PATH
15918 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15919 hardcode_libdir_separator_CXX=:
15921 # Commands to make compiler produce verbose output that lists
15922 # what "hidden" libraries, object files and flags are used when
15923 # linking a shared library.
15925 # There doesn't appear to be a way to prevent this compiler from
15926 # explicitly linking system object files so we need to strip them
15927 # from the output so that they don't get included in the library
15929 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15931 xl* | mpixl* | bgxl*)
15932 # IBM XL 8.0 on PPC, with GNU ld
15933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15934 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15935 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936 if test "x$supports_anon_versioning" = xyes; then
15937 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15939 echo "local: *; };" >> $output_objdir/$libname.ver~
15940 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15944 case `$CC -V 2>&1 | sed 5q` in
15947 no_undefined_flag_CXX=' -zdefs'
15948 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15949 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'
15950 hardcode_libdir_flag_spec_CXX='-R$libdir'
15951 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15952 compiler_needs_object_CXX=yes
15954 # Not sure whether something based on
15955 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15957 output_verbose_link_cmd='func_echo_all'
15959 # Archives containing C++ object files must be created using
15960 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15961 # necessary to make sure instantiated templates are included
15963 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15971 # FIXME: insert proper C++ library support
15976 # FIXME: insert proper C++ library support
15981 case $cc_basename in
15983 # FIXME: insert proper C++ library support
15987 # FIXME: insert proper C++ library support
15994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15995 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15997 hardcode_libdir_flag_spec_CXX='-R$libdir'
15998 hardcode_direct_CXX=yes
15999 hardcode_shlibpath_var_CXX=no
16001 # Workaround some broken pre-1.5 toolchains
16002 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16010 # C++ shared libraries are fairly broken
16015 if test -f /usr/libexec/ld.so; then
16016 hardcode_direct_CXX=yes
16017 hardcode_shlibpath_var_CXX=no
16018 hardcode_direct_absolute_CXX=yes
16019 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16022 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16023 export_dynamic_flag_spec_CXX='${wl}-E'
16024 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16026 output_verbose_link_cmd=func_echo_all
16032 osf3* | osf4* | osf5*)
16033 case $cc_basename in
16035 # Kuck and Associates, Inc. (KAI) C++ Compiler
16037 # KCC will only create a shared library if the output file
16038 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16039 # to its proper name (with version) after linking.
16040 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'
16042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16043 hardcode_libdir_separator_CXX=:
16045 # Archives containing C++ object files must be created using
16046 # the KAI C++ compiler.
16048 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16049 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16053 # Rational C++ 2.4.1
16054 # FIXME: insert proper C++ library support
16060 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16061 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16062 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16065 allow_undefined_flag_CXX=' -expect_unresolved \*'
16066 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16067 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16068 echo "-hidden">> $lib.exp~
16069 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
16071 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16075 hardcode_libdir_separator_CXX=:
16077 # Commands to make compiler produce verbose output that lists
16078 # what "hidden" libraries, object files and flags are used when
16079 # linking a shared library.
16081 # There doesn't appear to be a way to prevent this compiler from
16082 # explicitly linking system object files so we need to strip them
16083 # from the output so that they don't get included in the library
16085 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16088 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16089 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16092 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16095 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16100 hardcode_libdir_separator_CXX=:
16102 # Commands to make compiler produce verbose output that lists
16103 # what "hidden" libraries, object files and flags are used when
16104 # linking a shared library.
16105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16108 # FIXME: insert proper C++ library support
16116 # FIXME: insert proper C++ library support
16121 case $cc_basename in
16124 # FIXME: insert proper C++ library support
16129 # FIXME: insert proper C++ library support
16133 # FIXME: insert proper C++ library support
16140 case $cc_basename in
16142 # Sun C++ 4.2, 5.x and Centerline C++
16143 archive_cmds_need_lc_CXX=yes
16144 no_undefined_flag_CXX=' -zdefs'
16145 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16146 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16147 $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'
16149 hardcode_libdir_flag_spec_CXX='-R$libdir'
16150 hardcode_shlibpath_var_CXX=no
16152 solaris2.[0-5] | solaris2.[0-5].*) ;;
16154 # The compiler driver will combine and reorder linker options,
16155 # but understands `-z linker_flag'.
16156 # Supported since Solaris 2.6 (maybe 2.5.1?)
16157 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16160 link_all_deplibs_CXX=yes
16162 output_verbose_link_cmd='func_echo_all'
16164 # Archives containing C++ object files must be created using
16165 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16166 # necessary to make sure instantiated templates are included
16168 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16171 # Green Hills C++ Compiler
16172 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16174 # The C++ compiler must be used to create the archive.
16175 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16178 # GNU C++ compiler with Solaris linker
16179 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16180 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16181 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16182 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16183 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16184 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16186 # Commands to make compiler produce verbose output that lists
16187 # what "hidden" libraries, object files and flags are used when
16188 # linking a shared library.
16189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16191 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16193 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16194 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16195 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16197 # Commands to make compiler produce verbose output that lists
16198 # what "hidden" libraries, object files and flags are used when
16199 # linking a shared library.
16200 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16203 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16205 solaris2.[0-5] | solaris2.[0-5].*) ;;
16207 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16215 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16216 no_undefined_flag_CXX='${wl}-z,text'
16217 archive_cmds_need_lc_CXX=no
16218 hardcode_shlibpath_var_CXX=no
16219 runpath_var='LD_RUN_PATH'
16221 case $cc_basename in
16223 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16233 sysv5* | sco3.2v5* | sco5v6*)
16234 # Note: We can NOT use -z defs as we might desire, because we do not
16235 # link with -lc, and that would cause any symbols used from libc to
16236 # always be unresolved, which means just about no library would
16237 # ever link correctly. If we're not using GNU ld we use -z text
16238 # though, which does catch some bad symbols but isn't as heavy-handed
16240 no_undefined_flag_CXX='${wl}-z,text'
16241 allow_undefined_flag_CXX='${wl}-z,nodefs'
16242 archive_cmds_need_lc_CXX=no
16243 hardcode_shlibpath_var_CXX=no
16244 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16245 hardcode_libdir_separator_CXX=':'
16246 link_all_deplibs_CXX=yes
16247 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16248 runpath_var='LD_RUN_PATH'
16250 case $cc_basename in
16252 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16254 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16255 '"$old_archive_cmds_CXX"
16256 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16257 '"$reload_cmds_CXX"
16260 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16261 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 case $cc_basename in
16269 # NonStop-UX NCC 3.20
16270 # FIXME: insert proper C++ library support
16274 # FIXME: insert proper C++ library support
16281 # FIXME: insert proper C++ library support
16286 # FIXME: insert proper C++ library support
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16292 $as_echo "$ld_shlibs_CXX" >&6; }
16293 test "$ld_shlibs_CXX" = no && can_build_shared=no
16299 ## There is no encapsulation within the following macros, do not change
16300 ## the running order or otherwise move them around unless you know exactly
16301 ## what you are doing...
16302 # Dependencies to place before and after the object being linked:
16303 predep_objects_CXX=
16304 postdep_objects_CXX=
16307 compiler_lib_search_path_CXX=
16309 cat > conftest.$ac_ext <<_LT_EOF
16313 Foo (void) { a = 0; }
16320 _lt_libdeps_save_CFLAGS=$CFLAGS
16321 case "$CC $CFLAGS " in #(
16322 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16323 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16324 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16328 (eval $ac_compile) 2>&5
16330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16331 test $ac_status = 0; }; then
16332 # Parse the compiler output and extract the necessary
16333 # objects, libraries and library flags.
16335 # Sentinel used to keep track of whether or not we are before
16336 # the conftest object file.
16337 pre_test_object_deps_done=no
16339 for p in `eval "$output_verbose_link_cmd"`; do
16340 case ${prev}${p} in
16343 # Some compilers place space between "-{L,R}" and the path.
16344 # Remove the space.
16345 if test $p = "-L" ||
16346 test $p = "-R"; then
16351 # Expand the sysroot to ease extracting the directories later.
16352 if test -z "$prev"; then
16354 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16355 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16356 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16360 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16362 if test "$pre_test_object_deps_done" = no; then
16365 # Internal compiler library paths should come after those
16366 # provided the user. The postdeps already come after the
16367 # user supplied libs so there is no need to process them.
16368 if test -z "$compiler_lib_search_path_CXX"; then
16369 compiler_lib_search_path_CXX="${prev}${p}"
16371 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16374 # The "-l" case would never come before the object being
16375 # linked, so don't bother handling this case.
16378 if test -z "$postdeps_CXX"; then
16379 postdeps_CXX="${prev}${p}"
16381 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16387 *.lto.$objext) ;; # Ignore GCC LTO objects
16389 # This assumes that the test object file only shows up
16390 # once in the compiler output.
16391 if test "$p" = "conftest.$objext"; then
16392 pre_test_object_deps_done=yes
16396 if test "$pre_test_object_deps_done" = no; then
16397 if test -z "$predep_objects_CXX"; then
16398 predep_objects_CXX="$p"
16400 predep_objects_CXX="$predep_objects_CXX $p"
16403 if test -z "$postdep_objects_CXX"; then
16404 postdep_objects_CXX="$p"
16406 postdep_objects_CXX="$postdep_objects_CXX $p"
16411 *) ;; # Ignore the rest.
16419 echo "libtool.m4: error: problem compiling CXX test program"
16422 $RM -f confest.$objext
16423 CFLAGS=$_lt_libdeps_save_CFLAGS
16425 # PORTME: override above test on systems where it is broken
16428 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16429 # hack all around it, let's just trust "g++" to DTRT.
16430 predep_objects_CXX=
16431 postdep_objects_CXX=
16436 case `$CC -V 2>&1 | sed 5q` in
16440 # The more standards-conforming stlport4 library is
16441 # incompatible with the Cstd library. Avoid specifying
16442 # it if it's in CXXFLAGS. Ignore libCrun as
16443 # -library=stlport4 depends on it.
16444 case " $CXX $CXXFLAGS " in
16445 *" -library=stlport4 "*)
16446 solaris_use_stlport4=yes
16450 if test "$solaris_use_stlport4" != yes; then
16451 postdeps_CXX='-library=Cstd -library=Crun'
16458 case $cc_basename in
16460 # The more standards-conforming stlport4 library is
16461 # incompatible with the Cstd library. Avoid specifying
16462 # it if it's in CXXFLAGS. Ignore libCrun as
16463 # -library=stlport4 depends on it.
16464 case " $CXX $CXXFLAGS " in
16465 *" -library=stlport4 "*)
16466 solaris_use_stlport4=yes
16470 # Adding this requires a known-good setup of shared libraries for
16471 # Sun compiler versions before 5.6, else PIC objects from an old
16472 # archive will be linked into the output, leading to subtle bugs.
16473 if test "$solaris_use_stlport4" != yes; then
16474 postdeps_CXX='-library=Cstd -library=Crun'
16482 case " $postdeps_CXX " in
16483 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16485 compiler_lib_search_dirs_CXX=
16486 if test -n "${compiler_lib_search_path_CXX}"; then
16487 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16520 lt_prog_compiler_wl_CXX=
16521 lt_prog_compiler_pic_CXX=
16522 lt_prog_compiler_static_CXX=
16525 # C++ specific cases for pic, static, wl, etc.
16526 if test "$GXX" = yes; then
16527 lt_prog_compiler_wl_CXX='-Wl,'
16528 lt_prog_compiler_static_CXX='-static'
16532 # All AIX code is PIC.
16533 if test "$host_cpu" = ia64; then
16534 # AIX 5 now supports IA64 processor
16535 lt_prog_compiler_static_CXX='-Bstatic'
16542 # see comment about AmigaOS4 .so support
16543 lt_prog_compiler_pic_CXX='-fPIC'
16546 # FIXME: we need at least 68020 code to build shared libraries, but
16547 # adding the `-m68020' flag to GCC prevents building anything better,
16549 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16554 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16555 # PIC is the default for these OSes.
16557 mingw* | cygwin* | os2* | pw32* | cegcc*)
16558 # This hack is so that the source file can tell whether it is being
16559 # built for inclusion in a dll (and should export symbols for example).
16560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16561 # (--disable-auto-import) libraries
16562 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16564 darwin* | rhapsody*)
16565 # PIC is the default on this platform
16566 # Common symbols not allowed in MH_DYLIB files
16567 lt_prog_compiler_pic_CXX='-fno-common'
16570 # DJGPP does not support shared libraries at all
16571 lt_prog_compiler_pic_CXX=
16574 # PIC is the default for Haiku.
16575 # The "-static" flag exists, but is broken.
16576 lt_prog_compiler_static_CXX=
16579 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16580 # Instead, we relocate shared libraries at runtime.
16583 if test -d /usr/nec; then
16584 lt_prog_compiler_pic_CXX=-Kconform_pic
16588 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16589 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16590 # sets the default TLS model and affects inlining.
16595 lt_prog_compiler_pic_CXX='-fPIC'
16600 # QNX uses GNU C++, but need to define -shared option too, otherwise
16601 # it will coredump.
16602 lt_prog_compiler_pic_CXX='-fPIC -shared'
16605 lt_prog_compiler_pic_CXX='-fPIC'
16611 # All AIX code is PIC.
16612 if test "$host_cpu" = ia64; then
16613 # AIX 5 now supports IA64 processor
16614 lt_prog_compiler_static_CXX='-Bstatic'
16616 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16620 case $cc_basename in
16622 # Green Hills C++ Compiler
16623 # _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"
16627 mingw* | cygwin* | os2* | pw32* | cegcc*)
16628 # This hack is so that the source file can tell whether it is being
16629 # built for inclusion in a dll (and should export symbols for example).
16630 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16633 case $cc_basename in
16635 lt_prog_compiler_pic_CXX='-KPIC'
16638 # Green Hills C++ Compiler
16639 lt_prog_compiler_pic_CXX='-pic'
16645 freebsd* | dragonfly*)
16646 # FreeBSD uses GNU C++
16648 hpux9* | hpux10* | hpux11*)
16649 case $cc_basename in
16651 lt_prog_compiler_wl_CXX='-Wl,'
16652 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16653 if test "$host_cpu" != ia64; then
16654 lt_prog_compiler_pic_CXX='+Z'
16658 lt_prog_compiler_wl_CXX='-Wl,'
16659 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16665 lt_prog_compiler_pic_CXX='+Z'
16674 # This is c89, which is MS Visual C++ (no shared libs)
16675 # Anyone wants to do a port?
16677 irix5* | irix6* | nonstopux*)
16678 case $cc_basename in
16680 lt_prog_compiler_wl_CXX='-Wl,'
16681 lt_prog_compiler_static_CXX='-non_shared'
16682 # CC pic flag -KPIC is the default.
16688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16689 case $cc_basename in
16692 lt_prog_compiler_wl_CXX='--backend -Wl,'
16693 lt_prog_compiler_pic_CXX='-fPIC'
16696 # old Intel C++ for x86_64 which still supported -KPIC.
16697 lt_prog_compiler_wl_CXX='-Wl,'
16698 lt_prog_compiler_pic_CXX='-KPIC'
16699 lt_prog_compiler_static_CXX='-static'
16702 # Intel C++, used to be incompatible with GCC.
16703 # ICC 10 doesn't accept -KPIC any more.
16704 lt_prog_compiler_wl_CXX='-Wl,'
16705 lt_prog_compiler_pic_CXX='-fPIC'
16706 lt_prog_compiler_static_CXX='-static'
16709 # Portland Group C++ compiler
16710 lt_prog_compiler_wl_CXX='-Wl,'
16711 lt_prog_compiler_pic_CXX='-fpic'
16712 lt_prog_compiler_static_CXX='-Bstatic'
16716 # Make sure the PIC flag is empty. It appears that all Alpha
16717 # Linux and Compaq Tru64 Unix objects are PIC.
16718 lt_prog_compiler_pic_CXX=
16719 lt_prog_compiler_static_CXX='-non_shared'
16721 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16722 # IBM XL 8.0, 9.0 on PPC and BlueGene
16723 lt_prog_compiler_wl_CXX='-Wl,'
16724 lt_prog_compiler_pic_CXX='-qpic'
16725 lt_prog_compiler_static_CXX='-qstaticlink'
16728 case `$CC -V 2>&1 | sed 5q` in
16731 lt_prog_compiler_pic_CXX='-KPIC'
16732 lt_prog_compiler_static_CXX='-Bstatic'
16733 lt_prog_compiler_wl_CXX='-Qoption ld '
16744 case $cc_basename in
16746 lt_prog_compiler_pic_CXX='-W c,exportall'
16755 # QNX uses GNU C++, but need to define -shared option too, otherwise
16756 # it will coredump.
16757 lt_prog_compiler_pic_CXX='-fPIC -shared'
16759 osf3* | osf4* | osf5*)
16760 case $cc_basename in
16762 lt_prog_compiler_wl_CXX='--backend -Wl,'
16765 # Rational C++ 2.4.1
16766 lt_prog_compiler_pic_CXX='-pic'
16769 # Digital/Compaq C++
16770 lt_prog_compiler_wl_CXX='-Wl,'
16771 # Make sure the PIC flag is empty. It appears that all Alpha
16772 # Linux and Compaq Tru64 Unix objects are PIC.
16773 lt_prog_compiler_pic_CXX=
16774 lt_prog_compiler_static_CXX='-non_shared'
16783 case $cc_basename in
16785 # Sun C++ 4.2, 5.x and Centerline C++
16786 lt_prog_compiler_pic_CXX='-KPIC'
16787 lt_prog_compiler_static_CXX='-Bstatic'
16788 lt_prog_compiler_wl_CXX='-Qoption ld '
16791 # Green Hills C++ Compiler
16792 lt_prog_compiler_pic_CXX='-PIC'
16799 case $cc_basename in
16802 lt_prog_compiler_pic_CXX='-pic'
16803 lt_prog_compiler_static_CXX='-Bstatic'
16807 lt_prog_compiler_pic_CXX='-pic'
16813 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16814 case $cc_basename in
16816 lt_prog_compiler_wl_CXX='-Wl,'
16817 lt_prog_compiler_pic_CXX='-KPIC'
16818 lt_prog_compiler_static_CXX='-Bstatic'
16823 case $cc_basename in
16825 # NonStop-UX NCC 3.20
16826 lt_prog_compiler_pic_CXX='-KPIC'
16835 lt_prog_compiler_can_build_shared_CXX=no
16841 # For platforms which do not support PIC, -DPIC is meaningless:
16843 lt_prog_compiler_pic_CXX=
16846 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16851 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16852 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16853 $as_echo_n "(cached) " >&6
16855 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16858 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16859 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16862 # Check to make sure the PIC flag actually works.
16864 if test -n "$lt_prog_compiler_pic_CXX"; then
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16867 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16868 $as_echo_n "(cached) " >&6
16870 lt_cv_prog_compiler_pic_works_CXX=no
16871 ac_outfile=conftest.$ac_objext
16872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16873 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16874 # Insert the option either (1) after the last *FLAGS variable, or
16875 # (2) before a word containing "conftest.", or (3) at the end.
16876 # Note that $ac_compile itself does not contain backslashes and begins
16877 # with a dollar sign (not a hyphen), so the echo should work correctly.
16878 # The option is referenced via a variable to avoid confusing sed.
16879 lt_compile=`echo "$ac_compile" | $SED \
16880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16882 -e 's:$: $lt_compiler_flag:'`
16883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16884 (eval "$lt_compile" 2>conftest.err)
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 if (exit $ac_status) && test -s "$ac_outfile"; then
16889 # The compiler can only warn and ignore the option if not recognized
16890 # So say no if there are warnings other than the usual output.
16891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16894 lt_cv_prog_compiler_pic_works_CXX=yes
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16901 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16903 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16904 case $lt_prog_compiler_pic_CXX in
16906 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16909 lt_prog_compiler_pic_CXX=
16910 lt_prog_compiler_can_build_shared_CXX=no
16920 # Check to make sure the static flag actually works.
16922 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16925 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16926 $as_echo_n "(cached) " >&6
16928 lt_cv_prog_compiler_static_works_CXX=no
16929 save_LDFLAGS="$LDFLAGS"
16930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16933 # The linker can only warn and ignore the option if not recognized
16934 # So say no if there are warnings
16935 if test -s conftest.err; then
16936 # Append any errors to the config.log.
16937 cat conftest.err 1>&5
16938 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16940 if diff conftest.exp conftest.er2 >/dev/null; then
16941 lt_cv_prog_compiler_static_works_CXX=yes
16944 lt_cv_prog_compiler_static_works_CXX=yes
16948 LDFLAGS="$save_LDFLAGS"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16952 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16954 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16957 lt_prog_compiler_static_CXX=
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16965 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16966 $as_echo_n "(cached) " >&6
16968 lt_cv_prog_compiler_c_o_CXX=no
16969 $RM -r conftest 2>/dev/null
16973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16975 lt_compiler_flag="-o out/conftest2.$ac_objext"
16976 # Insert the option either (1) after the last *FLAGS variable, or
16977 # (2) before a word containing "conftest.", or (3) at the end.
16978 # Note that $ac_compile itself does not contain backslashes and begins
16979 # with a dollar sign (not a hyphen), so the echo should work correctly.
16980 lt_compile=`echo "$ac_compile" | $SED \
16981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16983 -e 's:$: $lt_compiler_flag:'`
16984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16985 (eval "$lt_compile" 2>out/conftest.err)
16987 cat out/conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16991 # The compiler can only warn and ignore the option if not recognized
16992 # So say no if there are warnings
16993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16996 lt_cv_prog_compiler_c_o_CXX=yes
17001 # SGI C++ compiler will create directory out/ii_files/ for
17002 # template instantiation
17003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17004 $RM out/* && rmdir out
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17011 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17017 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17018 $as_echo_n "(cached) " >&6
17020 lt_cv_prog_compiler_c_o_CXX=no
17021 $RM -r conftest 2>/dev/null
17025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17027 lt_compiler_flag="-o out/conftest2.$ac_objext"
17028 # Insert the option either (1) after the last *FLAGS variable, or
17029 # (2) before a word containing "conftest.", or (3) at the end.
17030 # Note that $ac_compile itself does not contain backslashes and begins
17031 # with a dollar sign (not a hyphen), so the echo should work correctly.
17032 lt_compile=`echo "$ac_compile" | $SED \
17033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17035 -e 's:$: $lt_compiler_flag:'`
17036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17037 (eval "$lt_compile" 2>out/conftest.err)
17039 cat out/conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17043 # The compiler can only warn and ignore the option if not recognized
17044 # So say no if there are warnings
17045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17048 lt_cv_prog_compiler_c_o_CXX=yes
17053 # SGI C++ compiler will create directory out/ii_files/ for
17054 # template instantiation
17055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17056 $RM out/* && rmdir out
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17063 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17068 hard_links="nottested"
17069 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17070 # do not overwrite the value of need_locks provided by the user
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17072 $as_echo_n "checking if we can lock with hard links... " >&6; }
17075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17077 ln conftest.a conftest.b 2>&5 || hard_links=no
17078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17080 $as_echo "$hard_links" >&6; }
17081 if test "$hard_links" = no; then
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17083 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17095 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17096 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17099 # If we're using GNU nm, then we don't want the "-C" option.
17100 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17101 # Also, AIX nm treats weak defined symbols like other global defined
17102 # symbols, whereas GNU nm marks them as "W".
17103 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17104 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17106 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'
17110 export_symbols_cmds_CXX="$ltdll_cmds"
17112 cygwin* | mingw* | cegcc*)
17113 case $cc_basename in
17115 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17118 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17119 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17129 $as_echo "$ld_shlibs_CXX" >&6; }
17130 test "$ld_shlibs_CXX" = no && can_build_shared=no
17132 with_gnu_ld_CXX=$with_gnu_ld
17140 # Do we need to explicitly link libc?
17142 case "x$archive_cmds_need_lc_CXX" in
17144 # Assume -lc should be added
17145 archive_cmds_need_lc_CXX=yes
17147 if test "$enable_shared" = yes && test "$GCC" = yes; then
17148 case $archive_cmds_CXX in
17150 # FIXME: we may have to deal with multi-command sequences.
17153 # Test whether the compiler implicitly links with -lc since on some
17154 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17155 # to ld, don't add -lc before -lgcc.
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17157 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17158 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17159 $as_echo_n "(cached) " >&6
17162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17165 (eval $ac_compile) 2>&5
17167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17168 test $ac_status = 0; } 2>conftest.err; then
17171 libobjs=conftest.$ac_objext
17173 wl=$lt_prog_compiler_wl_CXX
17174 pic_flag=$lt_prog_compiler_pic_CXX
17180 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17181 allow_undefined_flag_CXX=
17182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17183 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17186 test $ac_status = 0; }
17188 lt_cv_archive_cmds_need_lc_CXX=no
17190 lt_cv_archive_cmds_need_lc_CXX=yes
17192 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17194 cat conftest.err 1>&5
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17200 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17201 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17270 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17272 library_names_spec=
17273 libname_spec='lib$name'
17277 postuninstall_cmds=
17281 shlibpath_overrides_runpath=unknown
17283 dynamic_linker="$host_os ld.so"
17284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17285 need_lib_prefix=unknown
17286 hardcode_into_libs=no
17288 # when you set need_version to no, make sure it does not cause -set_version
17289 # flags to be left without arguments
17290 need_version=unknown
17294 version_type=linux # correct to gnu/linux during the next big refactor
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17296 shlibpath_var=LIBPATH
17298 # AIX 3 has no versioning support, so we append a major version to the name.
17299 soname_spec='${libname}${release}${shared_ext}$major'
17303 version_type=linux # correct to gnu/linux during the next big refactor
17306 hardcode_into_libs=yes
17307 if test "$host_cpu" = ia64; then
17308 # AIX 5 supports IA64
17309 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17310 shlibpath_var=LD_LIBRARY_PATH
17312 # With GCC up to 2.95.x, collect2 would create an import file
17313 # for dependence libraries. The import file would start with
17314 # the line `#! .'. This would cause the generated library to
17315 # depend on `.', always an invalid library. This was fixed in
17316 # development snapshots of GCC prior to 3.0.
17318 aix4 | aix4.[01] | aix4.[01].*)
17319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17321 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17324 can_build_shared=no
17328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17329 # soname into executable. Probably we can add versioning support to
17330 # collect2, so additional links can be useful in future.
17331 if test "$aix_use_runtimelinking" = yes; then
17332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17333 # instead of lib<name>.a to let people know that these are not
17334 # typical AIX shared libraries.
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337 # We preserve .a as extension for shared libraries through AIX4.2
17338 # and later when we are not doing run time linking.
17339 library_names_spec='${libname}${release}.a $libname.a'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LIBPATH
17349 # Since July 2007 AmigaOS4 officially supports .so libraries.
17350 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 library_names_spec='$libname.ixlibrary $libname.a'
17355 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17356 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17362 library_names_spec='${libname}${shared_ext}'
17363 dynamic_linker="$host_os ld.so"
17364 shlibpath_var=LIBRARY_PATH
17368 version_type=linux # correct to gnu/linux during the next big refactor
17370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 soname_spec='${libname}${release}${shared_ext}$major'
17372 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17373 shlibpath_var=LD_LIBRARY_PATH
17374 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17375 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17376 # the default ld.so.conf also contains /usr/contrib/lib and
17377 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17378 # libtool to hard-code these into programs
17381 cygwin* | mingw* | pw32* | cegcc*)
17382 version_type=windows
17387 case $GCC,$cc_basename in
17390 library_names_spec='$libname.dll.a'
17391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17392 postinstall_cmds='base_file=`basename \${file}`~
17393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17394 dldir=$destdir/`dirname \$dlpath`~
17395 test -d \$dldir || mkdir -p \$dldir~
17396 $install_prog $dir/$dlname \$dldir/$dlname~
17397 chmod a+x \$dldir/$dlname~
17398 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17399 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17401 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17402 dlpath=$dir/\$dldll~
17404 shlibpath_overrides_runpath=yes
17408 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17409 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17413 # MinGW DLLs use traditional 'lib' prefix
17414 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17417 # pw32 DLLs use 'pw' prefix rather than 'lib'
17418 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17421 dynamic_linker='Win32 ld.exe'
17426 libname_spec='$name'
17427 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17428 library_names_spec='${libname}.dll.lib'
17432 sys_lib_search_path_spec=
17435 for lt_path in $LIB
17438 # Let DOS variable expansion print the short 8.3 style file name.
17439 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17440 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17443 # Convert to MSYS style.
17444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17447 # Convert to unix form, then to dos form, then back to unix form
17448 # but this time dos style (no spaces!) so that the unix form looks
17449 # like /cygdrive/c/PROGRA~1:/cygdr...
17450 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17451 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17452 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17455 sys_lib_search_path_spec="$LIB"
17456 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17457 # It is most probably a Windows format PATH.
17458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17460 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17462 # FIXME: find the short name or the path components, as spaces are
17463 # common. (e.g. "Program Files" -> "PROGRA~1")
17467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17468 postinstall_cmds='base_file=`basename \${file}`~
17469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17470 dldir=$destdir/`dirname \$dlpath`~
17471 test -d \$dldir || mkdir -p \$dldir~
17472 $install_prog $dir/$dlname \$dldir/$dlname'
17473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17474 dlpath=$dir/\$dldll~
17476 shlibpath_overrides_runpath=yes
17477 dynamic_linker='Win32 link.exe'
17481 # Assume MSVC wrapper
17482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17483 dynamic_linker='Win32 ld.exe'
17486 # FIXME: first we should search . and the directory the executable is in
17490 darwin* | rhapsody*)
17491 dynamic_linker="$host_os dyld"
17492 version_type=darwin
17495 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17496 soname_spec='${libname}${release}${major}$shared_ext'
17497 shlibpath_overrides_runpath=yes
17498 shlibpath_var=DYLD_LIBRARY_PATH
17499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17505 version_type=linux # correct to gnu/linux during the next big refactor
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17510 shlibpath_var=LD_LIBRARY_PATH
17513 freebsd* | dragonfly*)
17514 # DragonFly does not have aout. When/if they implement a new
17515 # versioning mechanism, adjust this.
17516 if test -x /usr/bin/objformat; then
17517 objformat=`/usr/bin/objformat`
17520 freebsd[23].*) objformat=aout ;;
17521 *) objformat=elf ;;
17524 version_type=freebsd-$objformat
17525 case $version_type in
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17536 shlibpath_var=LD_LIBRARY_PATH
17539 shlibpath_overrides_runpath=yes
17541 freebsd3.[01]* | freebsdelf3.[01]*)
17542 shlibpath_overrides_runpath=yes
17543 hardcode_into_libs=yes
17545 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17546 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17547 shlibpath_overrides_runpath=no
17548 hardcode_into_libs=yes
17550 *) # from 4.6 on, and DragonFly
17551 shlibpath_overrides_runpath=yes
17552 hardcode_into_libs=yes
17558 version_type=linux # correct to gnu/linux during the next big refactor
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 shlibpath_overrides_runpath=no
17565 hardcode_into_libs=yes
17569 version_type=linux # correct to gnu/linux during the next big refactor
17572 dynamic_linker="$host_os runtime_loader"
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 shlibpath_var=LIBRARY_PATH
17576 shlibpath_overrides_runpath=yes
17577 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17578 hardcode_into_libs=yes
17581 hpux9* | hpux10* | hpux11*)
17582 # Give a soname corresponding to the major version so that dld.sl refuses to
17583 # link against other versions.
17590 hardcode_into_libs=yes
17591 dynamic_linker="$host_os dld.so"
17592 shlibpath_var=LD_LIBRARY_PATH
17593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17595 soname_spec='${libname}${release}${shared_ext}$major'
17596 if test "X$HPUX_IA64_MODE" = X32; then
17597 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17599 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17605 hardcode_into_libs=yes
17606 dynamic_linker="$host_os dld.sl"
17607 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17616 dynamic_linker="$host_os dld.sl"
17617 shlibpath_var=SHLIB_PATH
17618 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17623 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17624 postinstall_cmds='chmod 555 $lib'
17625 # or fails outright, so override atomically:
17626 install_override_mode=555
17630 version_type=linux # correct to gnu/linux during the next big refactor
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=no
17638 hardcode_into_libs=yes
17641 irix5* | irix6* | nonstopux*)
17643 nonstopux*) version_type=nonstopux ;;
17645 if test "$lt_cv_prog_gnu_ld" = yes; then
17646 version_type=linux # correct to gnu/linux during the next big refactor
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17656 irix5* | nonstopux*)
17657 libsuff= shlibsuff=
17660 case $LD in # libtool.m4 will add one of these switches to LD
17661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17662 libsuff= shlibsuff= libmagic=32-bit;;
17663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17664 libsuff=32 shlibsuff=N32 libmagic=N32;;
17665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17667 *) libsuff= shlibsuff= libmagic=never-match;;
17671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17672 shlibpath_overrides_runpath=no
17673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17675 hardcode_into_libs=yes
17678 # No shared lib support for Linux oldld, aout, or coff.
17679 linux*oldld* | linux*aout* | linux*coff*)
17683 # This must be glibc/ELF.
17684 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17685 version_type=linux # correct to gnu/linux during the next big refactor
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=no
17694 # Some binutils ld are patched to set DT_RUNPATH
17695 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17696 $as_echo_n "(cached) " >&6
17698 lt_cv_shlibpath_overrides_runpath=no
17699 save_LDFLAGS=$LDFLAGS
17700 save_libdir=$libdir
17701 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17702 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17703 if test x$ac_no_link = xyes; then
17704 as_fn_error $? "link tests are not allowed after AC_NO_EXECUTABLES" "$LINENO" 5
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17717 if ac_fn_cxx_try_link "$LINENO"; then :
17718 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17719 lt_cv_shlibpath_overrides_runpath=yes
17722 rm -f core conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17724 LDFLAGS=$save_LDFLAGS
17725 libdir=$save_libdir
17729 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17731 # This implies no fast_install, which is unacceptable.
17732 # Some rework will be needed to allow for fast_install
17733 # before this can be enabled.
17734 hardcode_into_libs=yes
17736 # Append ld.so.conf contents to the search path
17737 if test -f /etc/ld.so.conf; then
17738 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17739 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17742 # We used to test for /lib/ld.so.1 and disable shared libraries on
17743 # powerpc, because MkLinux only supported shared libraries with the
17744 # GNU dynamic linker. Since this was broken with cross compilers,
17745 # most powerpc-linux boxes support dynamic linking these days and
17746 # people can always --disable-shared, the test was removed, and we
17747 # assume the GNU/Linux dynamic linker is in use.
17748 dynamic_linker='GNU/Linux ld.so'
17755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17758 dynamic_linker='NetBSD (a.out) ld.so'
17760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17761 soname_spec='${libname}${release}${shared_ext}$major'
17762 dynamic_linker='NetBSD ld.elf_so'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 shlibpath_overrides_runpath=yes
17766 hardcode_into_libs=yes
17770 version_type=linux # correct to gnu/linux during the next big refactor
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17772 shlibpath_var=LD_LIBRARY_PATH
17773 shlibpath_overrides_runpath=yes
17780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17781 soname_spec='${libname}${release}${shared_ext}$major'
17782 shlibpath_var=LD_LIBRARY_PATH
17783 shlibpath_overrides_runpath=no
17784 hardcode_into_libs=yes
17785 dynamic_linker='ldqnx.so'
17790 sys_lib_dlsearch_path_spec="/usr/lib"
17792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17795 *) need_version=no ;;
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17799 shlibpath_var=LD_LIBRARY_PATH
17800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17802 openbsd2.[89] | openbsd2.[89].*)
17803 shlibpath_overrides_runpath=no
17806 shlibpath_overrides_runpath=yes
17810 shlibpath_overrides_runpath=yes
17815 libname_spec='$name'
17818 library_names_spec='$libname${shared_ext} $libname.a'
17819 dynamic_linker='OS/2 ld.exe'
17820 shlibpath_var=LIBPATH
17823 osf3* | osf4* | osf5*)
17827 soname_spec='${libname}${release}${shared_ext}$major'
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829 shlibpath_var=LD_LIBRARY_PATH
17830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17839 version_type=linux # correct to gnu/linux during the next big refactor
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843 soname_spec='${libname}${release}${shared_ext}$major'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath=yes
17846 hardcode_into_libs=yes
17847 # ldd complains unless libraries are executable
17848 postinstall_cmds='chmod +x $lib'
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17855 shlibpath_var=LD_LIBRARY_PATH
17856 shlibpath_overrides_runpath=yes
17857 if test "$with_gnu_ld" = yes; then
17864 version_type=linux # correct to gnu/linux during the next big refactor
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 case $host_vendor in
17870 shlibpath_overrides_runpath=no
17872 runpath_var=LD_RUN_PATH
17880 shlibpath_overrides_runpath=no
17881 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17887 if test -d /usr/nec ;then
17888 version_type=linux # correct to gnu/linux during the next big refactor
17889 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17890 soname_spec='$libname${shared_ext}.$major'
17891 shlibpath_var=LD_LIBRARY_PATH
17895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17896 version_type=freebsd-elf
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17900 soname_spec='${libname}${release}${shared_ext}$major'
17901 shlibpath_var=LD_LIBRARY_PATH
17902 shlibpath_overrides_runpath=yes
17903 hardcode_into_libs=yes
17904 if test "$with_gnu_ld" = yes; then
17905 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17907 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17910 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17914 sys_lib_dlsearch_path_spec='/usr/lib'
17918 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17919 version_type=linux # correct to gnu/linux during the next big refactor
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17923 shlibpath_var=LD_LIBRARY_PATH
17924 shlibpath_overrides_runpath=no
17925 hardcode_into_libs=yes
17929 version_type=linux # correct to gnu/linux during the next big refactor
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931 soname_spec='${libname}${release}${shared_ext}$major'
17932 shlibpath_var=LD_LIBRARY_PATH
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17940 $as_echo "$dynamic_linker" >&6; }
17941 test "$dynamic_linker" = no && can_build_shared=no
17943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17944 if test "$GCC" = yes; then
17945 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17948 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17949 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17951 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17952 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17993 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17994 hardcode_action_CXX=
17995 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17996 test -n "$runpath_var_CXX" ||
17997 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17999 # We can hardcode non-existent directories.
18000 if test "$hardcode_direct_CXX" != no &&
18001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18002 # have to relink, otherwise we might link with an installed library
18003 # when we should be linking with a yet-to-be-installed one
18004 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18005 test "$hardcode_minus_L_CXX" != no; then
18006 # Linking always hardcodes the temporary library directory.
18007 hardcode_action_CXX=relink
18009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18010 hardcode_action_CXX=immediate
18013 # We cannot hardcode anything, or else we can only hardcode existing
18015 hardcode_action_CXX=unsupported
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18018 $as_echo "$hardcode_action_CXX" >&6; }
18020 if test "$hardcode_action_CXX" = relink ||
18021 test "$inherit_rpath_CXX" = yes; then
18022 # Fast installation is not supported
18023 enable_fast_install=no
18024 elif test "$shlibpath_overrides_runpath" = yes ||
18025 test "$enable_shared" = no; then
18026 # Fast installation is not necessary
18027 enable_fast_install=needless
18036 fi # test -n "$compiler"
18039 CFLAGS=$lt_save_CFLAGS
18043 with_gnu_ld=$lt_save_with_gnu_ld
18044 lt_cv_path_LDCXX=$lt_cv_path_LD
18045 lt_cv_path_LD=$lt_save_path_LD
18046 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18047 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18048 fi # test "$_lt_caught_CXX_error" != yes
18051 ac_cpp='$CPP $CPPFLAGS'
18052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18070 ac_config_commands="$ac_config_commands libtool"
18075 # Only expand once:
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug instances" >&5
18083 $as_echo "$as_me: checking whether to build debug instances" >&6;}
18088 # Check whether or not a default value has been passed in.
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug instances of programs and libraries" >&5
18093 $as_echo_n "checking whether to build debug instances of programs and libraries... " >&6; }
18094 if ${nl_cv_build_debug+:} false; then :
18095 $as_echo_n "(cached) " >&6
18098 # Check whether --enable-debug was given.
18099 if test "${enable_debug+set}" = set; then :
18100 enableval=$enable_debug;
18101 case "${enableval}" in
18104 nl_cv_build_debug=${enableval}
18108 as_fn_error $? "Invalid value ${enableval} for --enable-debug" "$LINENO" 5
18115 nl_cv_build_debug=no
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_build_debug" >&5
18122 $as_echo "$nl_cv_build_debug" >&6; }
18124 if test "${nl_cv_build_debug}" = "yes"; then
18125 CFLAGS="${CFLAGS} -DDEBUG"
18126 CXXFLAGS="${CXXFLAGS} -DDEBUG"
18127 OBJCFLAGS="${OBJCFLAGS} -DDEBUG"
18128 OBJCXXFLAGS="${OBJCXXFLAGS} -DDEBUG"
18133 if test "${nl_cv_build_debug}" = "yes"; then
18134 NLASSERT_BUILD_DEBUG_TRUE=
18135 NLASSERT_BUILD_DEBUG_FALSE='#'
18137 NLASSERT_BUILD_DEBUG_TRUE='#'
18138 NLASSERT_BUILD_DEBUG_FALSE=
18143 # Code coverage and compiler optimization
18149 # Check whether or not a default value has been passed in.
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build code-coverage instances of programs and libraries" >&5
18154 $as_echo_n "checking whether to build code-coverage instances of programs and libraries... " >&6; }
18155 if ${nl_cv_build_coverage+:} false; then :
18156 $as_echo_n "(cached) " >&6
18159 # Check whether --enable-coverage was given.
18160 if test "${enable_coverage+set}" = set; then :
18161 enableval=$enable_coverage;
18162 case "${enableval}" in
18165 nl_cv_build_coverage=${enableval}
18167 if test "${nl_cv_build_optimized}" = "yes"; then
18168 as_fn_error $? "both --enable-optimization and --enable-coverage cannot used. Please, choose one or the other to enable." "$LINENO" 5
18173 as_fn_error $? "Invalid value ${enableval} for --enable-coverage" "$LINENO" 5
18180 if test "${nl_cv_build_optimized}" = "yes"; then
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-optimization was specified, coverage disabled" >&5
18182 $as_echo "$as_me: WARNING: --enable-optimization was specified, coverage disabled" >&2;}
18183 nl_cv_build_coverage=no
18186 nl_cv_build_coverage=no
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_build_coverage" >&5
18195 $as_echo "$nl_cv_build_coverage" >&6; }
18197 if test "${nl_cv_build_coverage}" = "yes"; then
18198 if test "${GCC}" != "yes"; then
18199 as_fn_error $? "GCC or a GCC-compatible toolchain is required for --enable-coverage" "$LINENO" 5
18201 NL_COVERAGE_CPPFLAGS="--coverage"
18202 if ${CC} --version | grep -q clang; then
18203 NL_COVERAGE_LDFLAGS="--coverage"
18205 NL_COVERAGE_LIBS="-lgcov"
18212 if test "${nl_cv_build_coverage}" = "yes"; then
18213 NLASSERT_BUILD_COVERAGE_TRUE=
18214 NLASSERT_BUILD_COVERAGE_FALSE='#'
18216 NLASSERT_BUILD_COVERAGE_TRUE='#'
18217 NLASSERT_BUILD_COVERAGE_FALSE=
18222 # Check whether or not a default value has been passed in.
18226 # Check for the presence of lcov and genhtml, required
18227 # to build and generate the coverage reports.
18229 # Extract the first word of "lcov", so it can be a program name with args.
18230 set dummy lcov; ac_word=$2
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18232 $as_echo_n "checking for $ac_word... " >&6; }
18233 if ${ac_cv_path_LCOV+:} false; then :
18234 $as_echo_n "(cached) " >&6
18238 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
18241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18242 for as_dir in $PATH
18245 test -z "$as_dir" && as_dir=.
18246 for ac_exec_ext in '' $ac_executable_extensions; do
18247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18248 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
18249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18259 LCOV=$ac_cv_path_LCOV
18260 if test -n "$LCOV"; then
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
18262 $as_echo "$LCOV" >&6; }
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18265 $as_echo "no" >&6; }
18269 # Extract the first word of "genhtml", so it can be a program name with args.
18270 set dummy genhtml; ac_word=$2
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18272 $as_echo_n "checking for $ac_word... " >&6; }
18273 if ${ac_cv_path_GENHTML+:} false; then :
18274 $as_echo_n "(cached) " >&6
18278 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
18281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18282 for as_dir in $PATH
18285 test -z "$as_dir" && as_dir=.
18286 for ac_exec_ext in '' $ac_executable_extensions; do
18287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18288 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
18289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18299 GENHTML=$ac_cv_path_GENHTML
18300 if test -n "$GENHTML"; then
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
18302 $as_echo "$GENHTML" >&6; }
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build graphical code coverage reports" >&5
18311 $as_echo_n "checking whether to build graphical code coverage reports... " >&6; }
18312 if ${nl_cv_build_coverage_reports+:} false; then :
18313 $as_echo_n "(cached) " >&6
18316 # Check whether --enable-coverage-reports was given.
18317 if test "${enable_coverage_reports+set}" = set; then :
18318 enableval=$enable_coverage_reports;
18319 case "${enableval}" in
18322 nl_cv_build_coverage_reports=${enableval}
18326 as_fn_error $? "Invalid value ${enableval} for --enable-coverage" "$LINENO" 5
18333 nl_cv_build_coverage_reports=auto
18338 # If coverage is not enabled, then coverage reports
18339 # defaults to 'no' if it is 'auto' or fails if it is
18340 # 'yes'. Otherwise, availability of lcov and genhtml
18341 # condition behavior. Lack of availability for 'yes'
18342 # results in failure; however, for 'auto' then coverage
18343 # reports default to 'no'.
18345 case "${nl_cv_build_coverage}" in
18348 case "${nl_cv_build_coverage_reports}" in
18351 nl_cv_build_coverage_reports="no"
18355 as_fn_error $? "--enable-coverage must be asserted to use --enable-coverage-reports." "$LINENO" 5
18365 case "${nl_cv_build_coverage_reports}" in
18368 # Both lcov and genhtml must exist to successfully
18369 # enable coverage reports.
18371 if test "x${LCOV}" = "x" || test "x${GENHTML}" = "x"; then
18372 nl_cv_build_coverage_reports="no"
18375 nl_cv_build_coverage_reports="yes"
18381 # Both lcov and genhtml must exist to successfully
18382 # enable coverage reports. Since the default or user
18383 # ask is 'yes', we must fail if lcov or genhtml cannot
18386 if test "x${LCOV}" = "x"; then
18387 as_fn_error $? "Cannot find 'lcov'. You must have the lcov package installed to use coverage reports." "$LINENO" 5
18389 elif test "x${GENHTML}" = "x"; then
18390 as_fn_error $? "Cannot find 'genhtml'. You must have the lcov package installed to use coverage reports." "$LINENO" 5
18392 elif test "${nl_cv_build_coverage_reports}" = "auto"; then
18393 nl_cv_build_coverage_reports="yes"
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_build_coverage_reports" >&5
18408 $as_echo "$nl_cv_build_coverage_reports" >&6; }
18411 if test "${nl_cv_build_coverage_reports}" = "yes"; then
18412 NLASSERT_BUILD_COVERAGE_REPORTS_TRUE=
18413 NLASSERT_BUILD_COVERAGE_REPORTS_FALSE='#'
18415 NLASSERT_BUILD_COVERAGE_REPORTS_TRUE='#'
18416 NLASSERT_BUILD_COVERAGE_REPORTS_FALSE=
18423 # Check whether or not a default value has been passed in.
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build code-optimized instances of programs and libraries" >&5
18428 $as_echo_n "checking whether to build code-optimized instances of programs and libraries... " >&6; }
18429 if ${nl_cv_build_optimized+:} false; then :
18430 $as_echo_n "(cached) " >&6
18433 # Check whether --enable-optimization was given.
18434 if test "${enable_optimization+set}" = set; then :
18435 enableval=$enable_optimization;
18436 case "${enableval}" in
18439 nl_cv_build_optimized=${enableval}
18441 if test "${nl_cv_build_coverage}" = "yes" && test "${nl_cv_build_optimized}" = "yes"; then
18442 as_fn_error $? "both --enable-optimization and --enable-coverage cannot used. Please, choose one or the other to enable." "$LINENO" 5
18447 as_fn_error $? "Invalid value ${enableval} for --enable-optimized" "$LINENO" 5
18454 if test "${nl_cv_build_coverage}" = "yes"; then
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage was specified, optimization disabled" >&5
18456 $as_echo "$as_me: WARNING: --enable-coverage was specified, optimization disabled" >&2;}
18457 nl_cv_build_optimized=no
18460 nl_cv_build_optimized=yes
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_build_optimized" >&5
18469 $as_echo "$nl_cv_build_optimized" >&6; }
18471 if test "${nl_cv_build_optimized}" = "no"; then
18472 CFLAGS="`echo ${CFLAGS} | sed -e 's,-O[[:alnum:]]*,-O0,g'`"
18473 CXXFLAGS="`echo ${CXXFLAGS} | sed -e 's,-O[[:alnum:]]*,-O0,g'`"
18474 OBJCFLAGS="`echo ${OBJCFLAGS} | sed -e 's,-O[[:alnum:]]*,-O0,g'`"
18475 OBJCXXFLAGS="`echo ${OBJCXXFLAGS} | sed -e 's,-O[[:alnum:]]*,-O0,g'`"
18480 if test "${nl_cv_build_optimized}" = "yes"; then
18481 NLASSERT_BUILD_OPTIMIZED_TRUE=
18482 NLASSERT_BUILD_OPTIMIZED_FALSE='#'
18484 NLASSERT_BUILD_OPTIMIZED_TRUE='#'
18485 NLASSERT_BUILD_OPTIMIZED_FALSE=
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
18493 $as_echo "$as_me: checking whether to build tests" >&6;}
18498 # Check whether or not a default value has been passed in.
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
18503 $as_echo_n "checking whether to build tests... " >&6; }
18504 if ${nl_cv_build_tests+:} false; then :
18505 $as_echo_n "(cached) " >&6
18508 # Check whether --enable-tests was given.
18509 if test "${enable_tests+set}" = set; then :
18510 enableval=$enable_tests;
18511 case "${enableval}" in
18514 nl_cv_build_tests=${enableval}
18518 as_fn_error $? "Invalid value ${enableval} for --enable-tests" "$LINENO" 5
18525 nl_cv_build_tests=yes
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_build_tests" >&5
18532 $as_echo "$nl_cv_build_tests" >&6; }
18535 if test "${nl_cv_build_tests}" = "yes"; then
18536 NLASSERT_BUILD_TESTS_TRUE=
18537 NLASSERT_BUILD_TESTS_FALSE='#'
18539 NLASSERT_BUILD_TESTS_TRUE='#'
18540 NLASSERT_BUILD_TESTS_FALSE=
18548 # Determine whether or not documentation (via Doxygen) should be built
18549 # or not, with 'auto' as the default and establish a default support
18550 # value for GraphViz 'dot' support.
18553 # Check whether or not the 'default' value is sane.
18557 # Check whether or not the 'dot_default' value is sane.
18566 # Extract the first word of "doxygen", so it can be a program name with args.
18567 set dummy doxygen; ac_word=$2
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18569 $as_echo_n "checking for $ac_word... " >&6; }
18570 if ${ac_cv_path_DOXYGEN+:} false; then :
18571 $as_echo_n "(cached) " >&6
18575 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18579 for as_dir in $PATH
18582 test -z "$as_dir" && as_dir=.
18583 for ac_exec_ext in '' $ac_executable_extensions; do
18584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18585 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18596 DOXYGEN=$ac_cv_path_DOXYGEN
18597 if test -n "$DOXYGEN"; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18599 $as_echo "$DOXYGEN" >&6; }
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18606 # Extract the first word of "dot", so it can be a program name with args.
18607 set dummy dot; ac_word=$2
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18609 $as_echo_n "checking for $ac_word... " >&6; }
18610 if ${ac_cv_path_DOT+:} false; then :
18611 $as_echo_n "(cached) " >&6
18615 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in $PATH
18622 test -z "$as_dir" && as_dir=.
18623 for ac_exec_ext in '' $ac_executable_extensions; do
18624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18625 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18636 DOT=$ac_cv_path_DOT
18637 if test -n "$DOT"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18639 $as_echo "$DOT" >&6; }
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18648 $as_echo_n "checking whether to build documentation... " >&6; }
18649 if ${nl_cv_build_docs+:} false; then :
18650 $as_echo_n "(cached) " >&6
18653 # Check whether --enable-docs was given.
18654 if test "${enable_docs+set}" = set; then :
18655 enableval=$enable_docs;
18656 case "${enableval}" in
18659 nl_cv_build_docs=${enableval}
18663 as_fn_error $? "Invalid value ${enableval} for --disable-docs" "$LINENO" 5
18669 nl_cv_build_docs=auto
18673 if test "x${DOXYGEN}" != "x"; then
18674 nl_cv_have_doxygen=yes
18676 nl_cv_have_doxygen=no
18679 if test "${nl_cv_build_docs}" = "auto"; then
18680 if test "${nl_cv_have_doxygen}" = "no"; then
18681 nl_cv_build_docs=no
18683 nl_cv_build_docs=yes
18687 if test "${nl_cv_build_docs}" = "yes"; then
18688 if test "${nl_cv_have_doxygen}" = "no"; then
18689 as_fn_error $? "Building docs was explicitly requested but Doxygen cannot be found" "$LINENO" 5
18690 elif test "${nl_cv_have_doxygen}" = "yes"; then
18691 if test "x${DOT}" != "x"; then
18692 DOXYGEN_USE_DOT=YES
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_cv_build_docs" >&5
18699 $as_echo "$nl_cv_build_docs" >&6; }
18704 if test "${nl_cv_build_docs}" = "yes"; then
18705 NLASSERT_BUILD_DOCS_TRUE=
18706 NLASSERT_BUILD_DOCS_FALSE='#'
18708 NLASSERT_BUILD_DOCS_TRUE='#'
18709 NLASSERT_BUILD_DOCS_FALSE=
18714 # Checks for libraries and packages.
18716 # At minimum, the following packages are optional, depending on
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking required package dependencies" >&5
18722 $as_echo "$as_me: checking required package dependencies" >&6;}
18724 # Check if the build host has pkg-config
18726 # Extract the first word of "pkg-config", so it can be a program name with args.
18727 set dummy pkg-config; ac_word=$2
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18729 $as_echo_n "checking for $ac_word... " >&6; }
18730 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18731 $as_echo_n "(cached) " >&6
18733 case $PKG_CONFIG in
18735 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18739 for as_dir in $PATH
18742 test -z "$as_dir" && as_dir=.
18743 for ac_exec_ext in '' $ac_executable_extensions; do
18744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18745 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18756 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18757 if test -n "$PKG_CONFIG"; then
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18759 $as_echo "$PKG_CONFIG" >&6; }
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18762 $as_echo "no" >&6; }
18771 if test "${nl_cv_build_tests}" = "yes"; then
18777 # Influential external variables for the package support
18783 # Allow the user to specify both external headers and libraries
18784 # together (or internal).
18788 # Check whether --with-nlunit_test was given.
18789 if test "${with_nlunit_test+set}" = set; then :
18790 withval=$with_nlunit_test;
18791 if test "${withval}" = "no"; then
18792 as_fn_error $? "${PACKAGE_NAME} requires the Nlunit-test package." "$LINENO" 5
18793 elif test "${withval}" = "internal"; then
18794 nlunit_test_dir=${withval}
18795 nl_with_nlunit_test=${withval}
18797 nlunit_test_dir=${withval}
18798 nl_with_nlunit_test=external
18802 nlunit_test_dir=; nl_with_nlunit_test=internal
18806 # Allow users to specify external headers and libraries independently.
18817 # Check whether --with-nlunit_test-includes was given.
18818 if test "${with_nlunit_test_includes+set}" = set; then :
18819 withval=$with_nlunit_test_includes;
18820 if test "${withval}" = "no"; then
18821 as_fn_error $? "${PACKAGE_NAME} requires the Nlunit-test package." "$LINENO" 5
18824 if test "x${nlunit_test_dir}" != "x"; then
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: overriding --with-nlunit_test=${nlunit_test_dir}" >&5
18826 $as_echo "$as_me: WARNING: overriding --with-nlunit_test=${nlunit_test_dir}" >&2;}
18829 if test "${withval}" = "internal"; then
18830 nlunit_test_header_dir=${withval}
18831 nl_with_nlunit_test=${withval}
18833 nlunit_test_header_dir=${withval}
18834 nl_with_nlunit_test=external
18839 nlunit_test_header_dir=;
18840 if test "x${nl_with_nlunit_test}" = "x"; then
18841 nl_with_nlunit_test=internal
18856 # Check whether --with-nlunit_test-libs was given.
18857 if test "${with_nlunit_test_libs+set}" = set; then :
18858 withval=$with_nlunit_test_libs;
18859 if test "${withval}" = "no"; then
18860 as_fn_error $? "${PACKAGE_NAME} requires the Nlunit-test package." "$LINENO" 5
18863 if test "x${nlunit_test_dir}" != "x"; then
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: overriding --with-nlunit_test=${nlunit_test_dir}" >&5
18865 $as_echo "$as_me: WARNING: overriding --with-nlunit_test=${nlunit_test_dir}" >&2;}
18868 if test "${withval}" = "internal"; then
18869 nlunit_test_library_dir=${withval}
18870 nl_with_nlunit_test=${withval}
18872 nlunit_test_library_dir=${withval}
18873 nl_with_nlunit_test=external
18878 nlunit_test_library_dir=;
18879 if test "x${nl_with_nlunit_test}" = "x"; then
18880 nl_with_nlunit_test=internal
18886 if test "${nl_with_nlunit_test}" == "no"; then
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the Nlunit-test package" >&5
18888 $as_echo_n "checking whether to use the Nlunit-test package... " >&6; }
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nl_with_nlunit_test}" >&5
18890 $as_echo "${nl_with_nlunit_test}" >&6; }
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking source of the Nlunit-test package" >&5
18894 $as_echo_n "checking source of the Nlunit-test package... " >&6; }
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nl_with_nlunit_test}" >&5
18896 $as_echo "${nl_with_nlunit_test}" >&6; }
18898 # If the user has selected or has defaulted into the internal Nlunit-test
18899 # package, set the values appropriately. Otherwise, run through the
18902 if test "${nl_with_nlunit_test}" = "internal"; then
18904 # At this point, the internal Nlunit-test package will be neither
18905 # configured nor built, so the normal checks we undertake for an
18906 # external package cannot be run here. Simply set the appropriate
18907 # variables and trust all will be well.
18909 NLUNIT_TEST_CPPFLAGS="-I\${abs_top_srcdir}/third_party/nlunit-test/repo/src"
18910 NLUNIT_TEST_LDFLAGS="-L${ac_pwd}/third_party/nlunit-test/repo/src"
18911 NLUNIT_TEST_LIBS="-lnlunit-test"
18915 # We always prefer checking the values of the various '--with-nlunit_test-...'
18916 # options first to using pkg-config because the former might be used
18917 # in a cross-compilation environment on a system that also contains
18918 # pkg-config. In such a case, the user wants what he/she specified
18919 # rather than what pkg-config indicates.
18921 if test "x${nlunit_test_dir}" != "x" -o "x${nlunit_test_header_dir}" != "x" -o "x${nlunit_test_library_dir}" != "x"; then
18922 if test "x${nlunit_test_dir}" != "x"; then
18923 if test -d "${nlunit_test_dir}"; then
18924 if test -d "${nlunit_test_dir}/include"; then
18925 NLUNIT_TEST_CPPFLAGS="-I${nlunit_test_dir}/include"
18927 NLUNIT_TEST_CPPFLAGS="-I${nlunit_test_dir}"
18930 if test -d "${nlunit_test_dir}/lib"; then
18931 NLUNIT_TEST_LDFLAGS="-L${nlunit_test_dir}/lib"
18933 NLUNIT_TEST_LDFLAGS="-L${nlunit_test_dir}"
18936 as_fn_error $? "No such directory ${nlunit_test_dir}" "$LINENO" 5
18940 if test "x${nlunit_test_header_dir}" != "x"; then
18941 if test -d "${nlunit_test_header_dir}"; then
18942 NLUNIT_TEST_CPPFLAGS="-I${nlunit_test_header_dir}"
18944 as_fn_error $? "No such directory ${nlunit_test_header_dir}" "$LINENO" 5
18948 if test "x${nlunit_test_library_dir}" != "x"; then
18949 if test -d "${nlunit_test_library_dir}"; then
18950 NLUNIT_TEST_LDFLAGS="-L${nlunit_test_library_dir}"
18952 as_fn_error $? "No such directory ${nlunit_test_library_dir}" "$LINENO" 5
18956 NLUNIT_TEST_LIBS="${NLUNIT_TEST_LDFLAGS} -lnlunit-test"
18958 elif test "x${PKG_CONFIG}" != "x"; then
18959 if ${PKG_CONFIG} --exists "nlunit_test"; then
18960 NLUNIT_TEST_CPPFLAGS="`${PKG_CONFIG} --cflags nlunit_test`"
18961 NLUNIT_TEST_LDFLAGS="`${PKG_CONFIG} --libs-only-L nlunit_test`"
18962 NLUNIT_TEST_LIBS="`${PKG_CONFIG} --libs-only-l nlunit_test`"
18964 as_fn_error $? "Cannot find the nlunit_test package with ${PKG_CONFIG}. ${PACKAGE_NAME} requires the nlunit_test package. Try installing the package or use the relevant --with options to configure." "$LINENO" 5
18968 as_fn_error $? "Cannot find the Nlunit-test package. ${PACKAGE_NAME} requires the Nlunit-test package." "$LINENO" 5
18976 if test "${nl_with_nlunit_test}" != "internal" -a "${nl_with_nlunit_test}" != "no"; then
18977 nl_saved_CPPFLAGS="${CPPFLAGS}"
18978 nl_saved_LDFLAGS="${LDFLAGS}"
18979 nl_saved_LIBS="${LIBS}"
18981 CPPFLAGS="${CPPFLAGS} ${NLUNIT_TEST_CPPFLAGS}"
18982 LDFLAGS="${LDFLAGS} ${NLUNIT_TEST_LDFLAGS}"
18983 LIBS="${LIBS} ${NLUNIT_TEST_LIBS}"
18986 # Check for required nlunit-test headers.
18988 for ac_header in nlunit-test.h
18990 ac_fn_c_check_header_mongrel "$LINENO" "nlunit-test.h" "ac_cv_header_nlunit_test_h" "$ac_includes_default"
18991 if test "x$ac_cv_header_nlunit_test_h" = xyes; then :
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_NLUNIT_TEST_H 1
18998 as_fn_error $? "The nlunit-test header \"$ac_header\" is required but cannot be found." "$LINENO" 5
19006 CPPFLAGS="${nl_saved_CPPFLAGS}"
19007 LDFLAGS="${nl_saved_LDFLAGS}"
19008 LIBS="${nl_saved_LIBS}"
19014 # Depending on whether nlunit-test has been configured for an internal
19015 # location, its directory stem within this package needs to be set
19016 # accordingly. In addition, if the location is internal, then we need
19017 # to attempt to pull it down using the bootstrap makefile.
19019 if test "${nl_with_nlunit_test}" = "internal"; then
19020 maybe_nlunit_test_dirstem="nlunit-test/repo"
19021 nlunit_test_dirstem="third_party/${maybe_nlunit_test_dirstem}"
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: attempting to create internal ${nlunit_test_dirstem}" >&5
19024 $as_echo "$as_me: attempting to create internal ${nlunit_test_dirstem}" >&6;}
19026 ${MAKE-make} --no-print-directory -C ${srcdir} -f Makefile-bootstrap ${nlunit_test_dirstem}
19028 if test $? -ne 0; then
19029 as_fn_error $? "failed to create ${nlunit_test_dirstem}. Please check your network connection or the correctness of 'repos.conf'" "$LINENO" 5
19032 maybe_nlunit_test_dirstem=""
19035 NLUNIT_TEST_SUBDIRS=${maybe_nlunit_test_dirstem}
19037 if test "${nl_with_nlunit_test}" = "internal"; then
19038 NLASSERT_WITH_NLUNIT_TEST_INTERNAL_TRUE=
19039 NLASSERT_WITH_NLUNIT_TEST_INTERNAL_FALSE='#'
19041 NLASSERT_WITH_NLUNIT_TEST_INTERNAL_TRUE='#'
19042 NLASSERT_WITH_NLUNIT_TEST_INTERNAL_FALSE=
19047 # Check for headers
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19050 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19051 if ${ac_cv_header_stdbool_h+:} false; then :
19052 $as_echo_n "(cached) " >&6
19054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h. */
19057 #include <stdbool.h>
19059 "error: bool is not defined"
19062 "error: false is not defined"
19065 "error: false is not 0"
19068 "error: true is not defined"
19071 "error: true is not 1"
19073 #ifndef __bool_true_false_are_defined
19074 "error: __bool_true_false_are_defined is not defined"
19077 struct s { _Bool s: 1; _Bool t; } s;
19079 char a[true == 1 ? 1 : -1];
19080 char b[false == 0 ? 1 : -1];
19081 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19082 char d[(bool) 0.5 == true ? 1 : -1];
19083 /* See body of main program for 'e'. */
19084 char f[(_Bool) 0.0 == false ? 1 : -1];
19086 char h[sizeof (_Bool)];
19087 char i[sizeof s.t];
19088 enum { j = false, k = true, l = false * true, m = true * 256 };
19089 /* The following fails for
19090 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19092 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19093 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19094 /* Catch a bug in an HP-UX C compiler. See
19095 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19096 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19108 /* Refer to every declared value, to avoid compiler optimizations. */
19109 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19110 + !m + !n + !o + !p + !q + !pq);
19116 if ac_fn_c_try_compile "$LINENO"; then :
19117 ac_cv_header_stdbool_h=yes
19119 ac_cv_header_stdbool_h=no
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19124 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19125 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19126 if test "x$ac_cv_type__Bool" = xyes; then :
19128 cat >>confdefs.h <<_ACEOF
19129 #define HAVE__BOOL 1
19135 if test $ac_cv_header_stdbool_h = yes; then
19137 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19142 $as_echo_n "checking for ANSI C header files... " >&6; }
19143 if ${ac_cv_header_stdc+:} false; then :
19144 $as_echo_n "(cached) " >&6
19146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h. */
19148 #include <stdlib.h>
19149 #include <stdarg.h>
19150 #include <string.h>
19161 if ac_fn_c_try_compile "$LINENO"; then :
19162 ac_cv_header_stdc=yes
19164 ac_cv_header_stdc=no
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19168 if test $ac_cv_header_stdc = yes; then
19169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h. */
19172 #include <string.h>
19175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19176 $EGREP "memchr" >/dev/null 2>&1; then :
19179 ac_cv_header_stdc=no
19185 if test $ac_cv_header_stdc = yes; then
19186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19189 #include <stdlib.h>
19192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19193 $EGREP "free" >/dev/null 2>&1; then :
19196 ac_cv_header_stdc=no
19202 if test $ac_cv_header_stdc = yes; then
19203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19204 if test "$cross_compiling" = yes; then :
19207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208 /* end confdefs.h. */
19210 #include <stdlib.h>
19211 #if ((' ' & 0x0FF) == 0x020)
19212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19215 # define ISLOWER(c) \
19216 (('a' <= (c) && (c) <= 'i') \
19217 || ('j' <= (c) && (c) <= 'r') \
19218 || ('s' <= (c) && (c) <= 'z'))
19219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19227 for (i = 0; i < 256; i++)
19228 if (XOR (islower (i), ISLOWER (i))
19229 || toupper (i) != TOUPPER (i))
19234 if ac_fn_c_try_run "$LINENO"; then :
19237 ac_cv_header_stdc=no
19239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19240 conftest.$ac_objext conftest.beam conftest.$ac_ext
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19246 $as_echo "$ac_cv_header_stdc" >&6; }
19247 if test $ac_cv_header_stdc = yes; then
19249 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19254 for ac_header in stdint.h
19256 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19257 if test "x$ac_cv_header_stdint_h" = xyes; then :
19258 cat >>confdefs.h <<_ACEOF
19259 #define HAVE_STDINT_H 1
19266 for ac_header in string.h
19268 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_string_h" = xyes; then :
19270 cat >>confdefs.h <<_ACEOF
19271 #define HAVE_STRING_H 1
19280 # Check for types and structures
19282 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
19283 case $ac_cv_c_int8_t in #(
19287 cat >>confdefs.h <<_ACEOF
19288 #define int8_t $ac_cv_c_int8_t
19293 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
19294 case $ac_cv_c_int16_t in #(
19298 cat >>confdefs.h <<_ACEOF
19299 #define int16_t $ac_cv_c_int16_t
19304 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
19305 case $ac_cv_c_int32_t in #(
19309 cat >>confdefs.h <<_ACEOF
19310 #define int32_t $ac_cv_c_int32_t
19315 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
19316 case $ac_cv_c_int64_t in #(
19320 cat >>confdefs.h <<_ACEOF
19321 #define int64_t $ac_cv_c_int64_t
19326 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
19327 case $ac_cv_c_uint8_t in #(
19331 $as_echo "#define _UINT8_T 1" >>confdefs.h
19334 cat >>confdefs.h <<_ACEOF
19335 #define uint8_t $ac_cv_c_uint8_t
19340 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
19341 case $ac_cv_c_uint16_t in #(
19346 cat >>confdefs.h <<_ACEOF
19347 #define uint16_t $ac_cv_c_uint16_t
19352 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
19353 case $ac_cv_c_uint32_t in #(
19357 $as_echo "#define _UINT32_T 1" >>confdefs.h
19360 cat >>confdefs.h <<_ACEOF
19361 #define uint32_t $ac_cv_c_uint32_t
19366 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
19367 case $ac_cv_c_uint64_t in #(
19371 $as_echo "#define _UINT64_T 1" >>confdefs.h
19374 cat >>confdefs.h <<_ACEOF
19375 #define uint64_t $ac_cv_c_uint64_t
19382 # Checks for library functions
19385 if test "${ac_no_link}" != "yes"; then
19386 for ac_func in memcpy
19388 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
19389 if test "x$ac_cv_func_memcpy" = xyes; then :
19390 cat >>confdefs.h <<_ACEOF
19391 #define HAVE_MEMCPY 1
19399 # Add any nlunit-test CPPFLAGS, LDFLAGS, and LIBS
19401 CPPFLAGS="${CPPFLAGS} ${NLUNIT_TEST_CPPFLAGS}"
19402 LDFLAGS="${LDFLAGS} ${NLUNIT_TEST_LDFLAGS}"
19403 LIBS="${LIBS} ${NLUNIT_TEST_LIBS}"
19405 # Add any code coverage CPPFLAGS and LIBS
19407 CPPFLAGS="${CPPFLAGS} ${NL_COVERAGE_CPPFLAGS}"
19408 LDFLAGS="${LDFLAGS} ${NL_COVERAGE_LDFLAGS}"
19409 LIBS="${LIBS} ${NL_COVERAGE_LIBS}"
19411 # At this point, we can restore the compiler flags to whatever the
19412 # user passed in, now that we're clear of any -Werror issues by
19413 # transforming -Wno-error back to -Werror.
19417 if test "${nl_had_OBJCXXFLAGS_werror}" = "yes"; then
19418 OBJCXXFLAGS="`echo ${OBJCXXFLAGS} | sed -e 's,-Wno-error\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Werror\1\2,g'`"
19421 unset nl_had_OBJCXXFLAGS_werror
19424 if test "${nl_had_OBJCFLAGS_werror}" = "yes"; then
19425 OBJCFLAGS="`echo ${OBJCFLAGS} | sed -e 's,-Wno-error\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Werror\1\2,g'`"
19428 unset nl_had_OBJCFLAGS_werror
19431 if test "${nl_had_CXXFLAGS_werror}" = "yes"; then
19432 CXXFLAGS="`echo ${CXXFLAGS} | sed -e 's,-Wno-error\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Werror\1\2,g'`"
19435 unset nl_had_CXXFLAGS_werror
19438 if test "${nl_had_CFLAGS_werror}" = "yes"; then
19439 CFLAGS="`echo ${CFLAGS} | sed -e 's,-Wno-error\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Werror\1\2,g'`"
19442 unset nl_had_CFLAGS_werror
19445 if test "${nl_had_CPPFLAGS_werror}" = "yes"; then
19446 CPPFLAGS="`echo ${CPPFLAGS} | sed -e 's,-Wno-error\(=[[:alnum:]_-]\+\)*\([[:space:]]\),-Werror\1\2,g'`"
19449 unset nl_had_CPPFLAGS_werror
19453 # Configure any autotools-based subdirectories
19455 if test "${nl_with_nlunit_test}" = "internal"; then
19458 subdirs="$subdirs third_party/nlunit-test/repo"
19460 NLUNIT_TEST_FOREIGN_SUBDIR_DEPENDENCY="${ac_pwd}/third_party/nlunit-test/repo/src"
19465 # Identify the various makefiles and auto-generated files for the package
19467 ac_config_files="$ac_config_files Makefile third_party/Makefile include/Makefile tests/Makefile doc/Makefile"
19471 # Generate the auto-generated files for the package
19473 cat >confcache <<\_ACEOF
19474 # This file is a shell script that caches the results of configure
19475 # tests run on this system so they can be shared between configure
19476 # scripts and configure runs, see configure's option --config-cache.
19477 # It is not useful on other systems. If it contains results you don't
19478 # want to keep, you may remove or edit it.
19480 # config.status only pays attention to the cache file if you give it
19481 # the --recheck option to rerun configure.
19483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19485 # following values.
19489 # The following way of writing the cache mishandles newlines in values,
19490 # but we know of no workaround that is simple, portable, and efficient.
19491 # So, we kill variables containing newlines.
19492 # Ultrix sh set writes to stderr and can't be redirected directly,
19493 # and sets the high bit in the cache file unless we assign to the vars.
19495 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19496 eval ac_val=\$$ac_var
19500 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19501 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19504 _ | IFS | as_nl) ;; #(
19505 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19506 *) { eval $ac_var=; unset $ac_var;} ;;
19512 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19513 *${as_nl}ac_space=\ *)
19514 # `set' does not quote correctly, so add quotes: double-quote
19515 # substitution turns \\\\ into \\, and sed turns \\ into \.
19518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19521 # `set' quotes correctly as required by POSIX, so do not add quotes.
19522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19531 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19533 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19535 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19536 if test -w "$cache_file"; then
19537 if test "x$cache_file" != "x/dev/null"; then
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19539 $as_echo "$as_me: updating cache $cache_file" >&6;}
19540 if test ! -f "$cache_file" || test -h "$cache_file"; then
19541 cat confcache >"$cache_file"
19543 case $cache_file in #(
19545 mv -f confcache "$cache_file"$$ &&
19546 mv -f "$cache_file"$$ "$cache_file" ;; #(
19548 mv -f confcache "$cache_file" ;;
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19554 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19560 # Let make expand exec_prefix.
19561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19563 DEFS=-DHAVE_CONFIG_H
19568 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19569 # 1. Remove the extension, and $U if already installed.
19570 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19571 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19572 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19573 # will be set to the directory where LIBOBJS objects are built.
19574 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19575 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19577 LIBOBJS=$ac_libobjs
19579 LTLIBOBJS=$ac_ltlibobjs
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19583 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19584 if test -n "$am_sleep_pid"; then
19585 # Hide warnings about reused PIDs.
19586 wait $am_sleep_pid 2>/dev/null
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19589 $as_echo "done" >&6; }
19590 if test -n "$EXEEXT"; then
19592 am__EXEEXT_FALSE='#'
19594 am__EXEEXT_TRUE='#'
19598 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19599 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19602 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19603 as_fn_error $? "conditional \"AMDEP\" was never defined.
19604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19607 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19610 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19611 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19614 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19615 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19618 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19619 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19622 if test -z "${NLASSERT_BUILD_DEBUG_TRUE}" && test -z "${NLASSERT_BUILD_DEBUG_FALSE}"; then
19623 as_fn_error $? "conditional \"NLASSERT_BUILD_DEBUG\" was never defined.
19624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19626 if test -z "${NLASSERT_BUILD_COVERAGE_TRUE}" && test -z "${NLASSERT_BUILD_COVERAGE_FALSE}"; then
19627 as_fn_error $? "conditional \"NLASSERT_BUILD_COVERAGE\" was never defined.
19628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19630 if test -z "${NLASSERT_BUILD_COVERAGE_REPORTS_TRUE}" && test -z "${NLASSERT_BUILD_COVERAGE_REPORTS_FALSE}"; then
19631 as_fn_error $? "conditional \"NLASSERT_BUILD_COVERAGE_REPORTS\" was never defined.
19632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19634 if test -z "${NLASSERT_BUILD_OPTIMIZED_TRUE}" && test -z "${NLASSERT_BUILD_OPTIMIZED_FALSE}"; then
19635 as_fn_error $? "conditional \"NLASSERT_BUILD_OPTIMIZED\" was never defined.
19636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19638 if test -z "${NLASSERT_BUILD_TESTS_TRUE}" && test -z "${NLASSERT_BUILD_TESTS_FALSE}"; then
19639 as_fn_error $? "conditional \"NLASSERT_BUILD_TESTS\" was never defined.
19640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19642 if test -z "${NLASSERT_BUILD_DOCS_TRUE}" && test -z "${NLASSERT_BUILD_DOCS_FALSE}"; then
19643 as_fn_error $? "conditional \"NLASSERT_BUILD_DOCS\" was never defined.
19644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19646 if test -z "${NLASSERT_WITH_NLUNIT_TEST_INTERNAL_TRUE}" && test -z "${NLASSERT_WITH_NLUNIT_TEST_INTERNAL_FALSE}"; then
19647 as_fn_error $? "conditional \"NLASSERT_WITH_NLUNIT_TEST_INTERNAL\" was never defined.
19648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19651 : "${CONFIG_STATUS=./config.status}"
19653 ac_clean_files_save=$ac_clean_files
19654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19656 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19658 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19660 # Generated by $as_me.
19661 # Run this file to recreate the current configuration.
19662 # Compiler output produced by configure, useful for debugging
19663 # configure, is in config.log if it exists.
19666 ac_cs_recheck=false
19669 SHELL=\${CONFIG_SHELL-$SHELL}
19672 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19673 ## -------------------- ##
19674 ## M4sh Initialization. ##
19675 ## -------------------- ##
19677 # Be more Bourne compatible
19678 DUALCASE=1; export DUALCASE # for MKS sh
19679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19682 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19683 # is contrary to our usage. Disable this feature.
19684 alias -g '${1+"$@"}'='"$@"'
19685 setopt NO_GLOB_SUBST
19687 case `(set -o) 2>/dev/null` in #(
19699 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19700 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19701 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19703 # Prefer a ksh shell builtin over an external printf program on Solaris,
19704 # but without wasting forks for bash or zsh.
19705 if test -z "$BASH_VERSION$ZSH_VERSION" \
19706 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19707 as_echo='print -r --'
19708 as_echo_n='print -rn --'
19709 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19710 as_echo='printf %s\n'
19711 as_echo_n='printf %s'
19713 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19714 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19715 as_echo_n='/usr/ucb/echo -n'
19717 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19718 as_echo_n_body='eval
19722 expr "X$arg" : "X\\(.*\\)$as_nl";
19723 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19725 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19727 export as_echo_n_body
19728 as_echo_n='sh -c $as_echo_n_body as_echo'
19730 export as_echo_body
19731 as_echo='sh -c $as_echo_body as_echo'
19734 # The user is always right.
19735 if test "${PATH_SEPARATOR+set}" != set; then
19737 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19738 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19745 # We need space, tab and new line, in precisely that order. Quoting is
19746 # there to prevent editors from complaining about space-tab.
19747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19748 # splitting by setting IFS to empty value.)
19751 # Find who we are. Look in the path if we contain no directory separator.
19754 *[\\/]* ) as_myself=$0 ;;
19755 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19756 for as_dir in $PATH
19759 test -z "$as_dir" && as_dir=.
19760 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19766 # We did not find ourselves, most probably we were run as `sh COMMAND'
19767 # in which case we are not to be found in the path.
19768 if test "x$as_myself" = x; then
19771 if test ! -f "$as_myself"; then
19772 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19776 # Unset variables that we do not need and which cause bugs (e.g. in
19777 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19778 # suppresses any "Segmentation fault" message there. '((' could
19779 # trigger a bug in pdksh 5.2.14.
19780 for as_var in BASH_ENV ENV MAIL MAILPATH
19781 do eval test x\${$as_var+set} = xset \
19782 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19795 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19798 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19799 # ----------------------------------------
19800 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19801 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19802 # script with STATUS, using 1 if that was 0.
19805 as_status=$1; test $as_status -eq 0 && as_status=1
19807 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19808 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19810 $as_echo "$as_me: error: $2" >&2
19811 as_fn_exit $as_status
19815 # as_fn_set_status STATUS
19816 # -----------------------
19817 # Set $? to STATUS, without forking.
19818 as_fn_set_status ()
19821 } # as_fn_set_status
19823 # as_fn_exit STATUS
19824 # -----------------
19825 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19829 as_fn_set_status $1
19835 # Portably unset VAR.
19838 { eval $1=; unset $1;}
19840 as_unset=as_fn_unset
19841 # as_fn_append VAR VALUE
19842 # ----------------------
19843 # Append the text in VALUE to the end of the definition contained in VAR. Take
19844 # advantage of any shell optimizations that allow amortized linear growth over
19845 # repeated appends, instead of the typical quadratic growth present in naive
19847 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19848 eval 'as_fn_append ()
19859 # as_fn_arith ARG...
19860 # ------------------
19861 # Perform arithmetic evaluation on the ARGs, and store the result in the
19862 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19863 # must be portable across $(()) and expr.
19864 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19865 eval 'as_fn_arith ()
19872 as_val=`expr "$@" || test $? -eq 1`
19877 if expr a : '\(a\)' >/dev/null 2>&1 &&
19878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19885 as_basename=basename
19890 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19896 as_me=`$as_basename -- "$0" ||
19897 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19898 X"$0" : 'X\(//\)$' \| \
19899 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19901 sed '/^.*\/\([^/][^/]*\)\/*$/{
19915 # Avoid depending upon Character Ranges.
19916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19919 as_cr_digits='0123456789'
19920 as_cr_alnum=$as_cr_Letters$as_cr_digits
19922 ECHO_C= ECHO_N= ECHO_T=
19923 case `echo -n x` in #(((((
19925 case `echo 'xy\c'` in
19926 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19928 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19935 rm -f conf$$ conf$$.exe conf$$.file
19936 if test -d conf$$.dir; then
19937 rm -f conf$$.dir/conf$$.file
19940 mkdir conf$$.dir 2>/dev/null
19942 if (echo >conf$$.file) 2>/dev/null; then
19943 if ln -s conf$$.file conf$$ 2>/dev/null; then
19945 # ... but there are two gotchas:
19946 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19947 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19948 # In both cases, we have to default to `cp -p'.
19949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19951 elif ln conf$$.file conf$$ 2>/dev/null; then
19959 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19960 rmdir conf$$.dir 2>/dev/null
19965 # Create "$as_dir" as a directory, including parents if necessary.
19970 -*) as_dir=./$as_dir;;
19972 test -d "$as_dir" || eval $as_mkdir_p || {
19976 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19977 *) as_qdir=$as_dir;;
19979 as_dirs="'$as_qdir' $as_dirs"
19980 as_dir=`$as_dirname -- "$as_dir" ||
19981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19982 X"$as_dir" : 'X\(//\)[^/]' \| \
19983 X"$as_dir" : 'X\(//\)$' \| \
19984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19985 $as_echo X"$as_dir" |
19986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19990 /^X\(\/\/\)[^/].*/{
20003 test -d "$as_dir" && break
20005 test -z "$as_dirs" || eval "mkdir $as_dirs"
20006 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20010 if mkdir -p . 2>/dev/null; then
20011 as_mkdir_p='mkdir -p "$as_dir"'
20013 test -d ./-p && rmdir ./-p
20017 if test -x / >/dev/null 2>&1; then
20018 as_test_x='test -x'
20020 if ls -dL / >/dev/null 2>&1; then
20027 if test -d "$1"; then
20033 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20034 ???[sx]*):;;*)false;;esac;fi
20038 as_executable_p=$as_test_x
20040 # Sed expression to map a string onto a valid CPP name.
20041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20043 # Sed expression to map a string onto a valid variable name.
20044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20048 ## ----------------------------------- ##
20049 ## Main body of $CONFIG_STATUS script. ##
20050 ## ----------------------------------- ##
20052 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20055 # Save the log message, to keep $0 and so on meaningful, and to
20056 # report actual input values of CONFIG_FILES etc. instead of their
20057 # values after options handling.
20059 This file was extended by nlassert $as_me g4646da4, which was
20060 generated by GNU Autoconf 2.68. Invocation command line was
20062 CONFIG_FILES = $CONFIG_FILES
20063 CONFIG_HEADERS = $CONFIG_HEADERS
20064 CONFIG_LINKS = $CONFIG_LINKS
20065 CONFIG_COMMANDS = $CONFIG_COMMANDS
20068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20073 case $ac_config_files in *"
20074 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20077 case $ac_config_headers in *"
20078 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20083 # Files that config.status was made for.
20084 config_files="$ac_config_files"
20085 config_headers="$ac_config_headers"
20086 config_commands="$ac_config_commands"
20090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20092 \`$as_me' instantiates files and other configuration actions
20093 from templates according to the current configuration. Unless the files
20094 and actions are specified as TAGs, all are instantiated by default.
20096 Usage: $0 [OPTION]... [TAG]...
20098 -h, --help print this help, then exit
20099 -V, --version print version number and configuration settings, then exit
20100 --config print configuration, then exit
20101 -q, --quiet, --silent
20102 do not print progress messages
20103 -d, --debug don't remove temporary files
20104 --recheck update $as_me by reconfiguring in the same conditions
20105 --file=FILE[:TEMPLATE]
20106 instantiate the configuration file FILE
20107 --header=FILE[:TEMPLATE]
20108 instantiate the configuration header FILE
20110 Configuration files:
20113 Configuration headers:
20116 Configuration commands:
20119 Report bugs to <nlassert-users@google.com>.
20120 nlassert home page: <https://github.com/nestlabs/nlassert/>."
20123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20126 nlassert config.status g4646da4
20127 configured by $0, generated by GNU Autoconf 2.68,
20128 with options \\"\$ac_cs_config\\"
20130 Copyright (C) 2010 Free Software Foundation, Inc.
20131 This config.status script is free software; the Free Software Foundation
20132 gives unlimited permission to copy, distribute and modify it."
20139 test -n "\$AWK" || AWK=awk
20142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20143 # The default lists apply if the user does not specify any file.
20149 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20166 # Handling of the options.
20167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20170 $as_echo "$ac_cs_version"; exit ;;
20171 --config | --confi | --conf | --con | --co | --c )
20172 $as_echo "$ac_cs_config"; exit ;;
20173 --debug | --debu | --deb | --de | --d | -d )
20175 --file | --fil | --fi | --f )
20178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20179 '') as_fn_error $? "missing file argument" ;;
20181 as_fn_append CONFIG_FILES " '$ac_optarg'"
20182 ac_need_defaults=false;;
20183 --header | --heade | --head | --hea )
20186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20188 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20189 ac_need_defaults=false;;
20191 # Conflict between --help and --header
20192 as_fn_error $? "ambiguous option: \`$1'
20193 Try \`$0 --help' for more information.";;
20194 --help | --hel | -h )
20195 $as_echo "$ac_cs_usage"; exit ;;
20196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20197 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20200 # This is an error.
20201 -*) as_fn_error $? "unrecognized option: \`$1'
20202 Try \`$0 --help' for more information." ;;
20204 *) as_fn_append ac_config_targets " $1"
20205 ac_need_defaults=false ;;
20211 ac_configure_extra_args=
20213 if $ac_cs_silent; then
20215 ac_configure_extra_args="$ac_configure_extra_args --silent"
20219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20220 if \$ac_cs_recheck; then
20221 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20223 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20224 CONFIG_SHELL='$SHELL'
20225 export CONFIG_SHELL
20230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20235 ## Running $as_me. ##
20241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20245 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20248 # The HP-UX ksh and POSIX shell print the target directory to stdout
20249 # if CDPATH is set.
20250 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20252 sed_quote_subst='$sed_quote_subst'
20253 double_quote_subst='$double_quote_subst'
20254 delay_variable_subst='$delay_variable_subst'
20255 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20256 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20257 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20258 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20259 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20260 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20261 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20262 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20263 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20264 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20265 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20266 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20267 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20268 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20269 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20270 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20271 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20272 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20273 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20274 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20275 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20276 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20277 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20278 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20279 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20280 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20281 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20282 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20283 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20284 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20285 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20286 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20287 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20288 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20289 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20290 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20291 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20292 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20293 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20294 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20295 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20296 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20297 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20298 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20299 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20300 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20301 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20302 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20303 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20304 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20305 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20306 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20307 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20308 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20309 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20310 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20311 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20312 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20313 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20314 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20315 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20316 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20317 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20318 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20319 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20320 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20321 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20322 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20323 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20324 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20325 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20326 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20327 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20328 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20329 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20330 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20331 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20332 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20333 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20334 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20335 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20336 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20337 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20338 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20339 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20340 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20341 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20342 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20343 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20344 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20345 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20346 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20347 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20348 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20349 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20350 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20351 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20352 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20353 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20354 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20355 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20356 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20357 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20358 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20359 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20360 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20361 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20362 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20363 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20364 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20365 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20366 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20367 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20368 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20369 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20370 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20371 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20372 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20373 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20374 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20375 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20376 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20377 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20378 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20379 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20380 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20381 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20382 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20383 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20384 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20385 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20386 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20387 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20388 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20389 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20390 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20391 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20392 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20393 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20394 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20395 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20396 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20397 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20398 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20399 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20400 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20401 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20402 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20403 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20404 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20405 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20406 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20407 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20408 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20409 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20410 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20411 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20412 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20413 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20414 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20415 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20416 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20417 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20418 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20419 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20420 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20421 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20422 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20423 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20424 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20425 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20426 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20427 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20428 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20429 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20430 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20431 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20432 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20433 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20434 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20435 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20436 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20437 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20438 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20441 LTCFLAGS='$LTCFLAGS'
20442 compiler='$compiler_DEFAULT'
20444 # A function that is used when there is no print builtin or printf.
20445 func_fallback_echo ()
20447 eval 'cat <<_LTECHO_EOF
20452 # Quote evaled strings.
20467 deplibs_check_method \
20472 sharedlib_from_linklib_cmd \
20475 archiver_list_spec \
20481 lt_cv_sys_global_symbol_pipe \
20482 lt_cv_sys_global_symbol_to_cdecl \
20483 lt_cv_sys_global_symbol_to_c_name_address \
20484 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20485 nm_file_list_spec \
20486 lt_prog_compiler_no_builtin_flag \
20487 lt_prog_compiler_pic \
20488 lt_prog_compiler_wl \
20489 lt_prog_compiler_static \
20490 lt_cv_prog_compiler_c_o \
20499 export_dynamic_flag_spec \
20500 whole_archive_flag_spec \
20501 compiler_needs_object \
20503 allow_undefined_flag \
20504 no_undefined_flag \
20505 hardcode_libdir_flag_spec \
20506 hardcode_libdir_separator \
20510 variables_saved_for_relink \
20512 library_names_spec \
20514 install_override_mode \
20518 compiler_lib_search_dirs \
20523 compiler_lib_search_path \
20527 lt_prog_compiler_no_builtin_flag_CXX \
20528 lt_prog_compiler_pic_CXX \
20529 lt_prog_compiler_wl_CXX \
20530 lt_prog_compiler_static_CXX \
20531 lt_cv_prog_compiler_c_o_CXX \
20532 export_dynamic_flag_spec_CXX \
20533 whole_archive_flag_spec_CXX \
20534 compiler_needs_object_CXX \
20536 allow_undefined_flag_CXX \
20537 no_undefined_flag_CXX \
20538 hardcode_libdir_flag_spec_CXX \
20539 hardcode_libdir_separator_CXX \
20540 exclude_expsyms_CXX \
20541 include_expsyms_CXX \
20542 file_list_spec_CXX \
20543 compiler_lib_search_dirs_CXX \
20544 predep_objects_CXX \
20545 postdep_objects_CXX \
20548 compiler_lib_search_path_CXX; do
20549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20550 *[\\\\\\\`\\"\\\$]*)
20551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20559 # Double-quote double-evaled strings.
20560 for var in reload_cmds \
20561 old_postinstall_cmds \
20562 old_postuninstall_cmds \
20564 extract_expsyms_cmds \
20565 old_archive_from_new_cmds \
20566 old_archive_from_expsyms_cmds \
20568 archive_expsym_cmds \
20570 module_expsym_cmds \
20571 export_symbols_cmds \
20575 postuninstall_cmds \
20577 sys_lib_search_path_spec \
20578 sys_lib_dlsearch_path_spec \
20580 old_archive_cmds_CXX \
20581 old_archive_from_new_cmds_CXX \
20582 old_archive_from_expsyms_cmds_CXX \
20584 archive_expsym_cmds_CXX \
20586 module_expsym_cmds_CXX \
20587 export_symbols_cmds_CXX \
20589 postlink_cmds_CXX; do
20590 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20591 *[\\\\\\\`\\"\\\$]*)
20592 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20595 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20600 ac_aux_dir='$ac_aux_dir'
20601 xsi_shell='$xsi_shell'
20602 lt_shell_append='$lt_shell_append'
20604 # See if we are running on zsh, and set the options which allow our
20605 # commands through without removal of \ escapes INIT.
20606 if test -n "\${ZSH_VERSION+set}" ; then
20607 setopt NO_GLOB_SUBST
20613 TIMESTAMP='$TIMESTAMP'
20624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20626 # Handling of arguments.
20627 for ac_config_target in $ac_config_targets
20629 case $ac_config_target in
20630 "include/nlassert-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/nlassert-config.h" ;;
20631 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20632 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20633 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20634 "third_party/Makefile") CONFIG_FILES="$CONFIG_FILES third_party/Makefile" ;;
20635 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20636 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20637 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20639 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20644 # If the user did not use the arguments to specify the items to instantiate,
20645 # then the envvar interface is used. Set only those that are not.
20646 # We use the long form for the default assignment because of an extremely
20647 # bizarre bug on SunOS 4.1.3.
20648 if $ac_need_defaults; then
20649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20654 # Have a temporary directory for convenience. Make it in the build tree
20655 # simply because there is no reason against having it here, and in addition,
20656 # creating and moving files from /tmp can sometimes cause problems.
20657 # Hook for its removal unless debugging.
20658 # Note that there is a small window in which the directory will not be cleaned:
20659 # after its creation but before its name has been assigned to `$tmp'.
20663 trap 'exit_status=$?
20664 : "${ac_tmp:=$tmp}"
20665 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20667 trap 'as_fn_exit 1' 1 2 13 15
20669 # Create a (secure) tmp directory for tmp files.
20672 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20676 tmp=./conf$$-$RANDOM
20677 (umask 077 && mkdir "$tmp")
20678 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20681 # Set up the scripts for CONFIG_FILES section.
20682 # No need to generate them if there are no CONFIG_FILES.
20683 # This happens for instance with `./config.status config.h'.
20684 if test -n "$CONFIG_FILES"; then
20687 ac_cr=`echo X | tr X '\015'`
20688 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20689 # But we know of no other shell where ac_cr would be empty at this
20690 # point, so we can use a bashism as a fallback.
20691 if test "x$ac_cr" = x; then
20692 eval ac_cr=\$\'\\r\'
20694 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20695 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20698 ac_cs_awk_cr=$ac_cr
20701 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20706 echo "cat >conf$$subs.awk <<_ACEOF" &&
20707 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20709 } >conf$$subs.sh ||
20710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20711 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20713 for ac_last_try in false false false false false :; do
20714 . ./conf$$subs.sh ||
20715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20717 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20718 if test $ac_delim_n = $ac_delim_num; then
20720 elif $ac_last_try; then
20721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20726 rm -f conf$$subs.sh
20728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20729 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20733 s/^/S["/; s/!.*/"]=/
20743 s/\(.\{148\}\)..*/\1/
20745 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20757 s/\(.\{148\}\)..*/\1/
20759 s/["\\]/\\&/g; s/^/"/; s/$/"/
20763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20768 ' <conf$$subs.awk | sed '
20773 ' >>$CONFIG_STATUS || ac_write_fail=1
20774 rm -f conf$$subs.awk
20775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20777 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20778 for (key in S) S_is_set[key] = 1
20784 nfields = split(line, field, "@")
20786 len = length(field[1])
20787 for (i = 2; i < nfields; i++) {
20789 keylen = length(key)
20790 if (S_is_set[key]) {
20792 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20793 len += length(value) + length(field[++i])
20804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20805 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20806 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20809 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20810 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20813 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20814 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20815 # trailing colons and then remove the whole line if VPATH becomes empty
20816 # (actually we leave an empty line to preserve line numbers).
20817 if test "x$srcdir" = x.; then
20818 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20837 fi # test -n "$CONFIG_FILES"
20839 # Set up the scripts for CONFIG_HEADERS section.
20840 # No need to generate them if there are no CONFIG_HEADERS.
20841 # This happens for instance with `./config.status Makefile'.
20842 if test -n "$CONFIG_HEADERS"; then
20843 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20847 # Transform confdefs.h into an awk script `defines.awk', embedded as
20848 # here-document in config.status, that substitutes the proper values into
20849 # config.h.in to produce config.h.
20851 # Create a delimiter string that does not exist in confdefs.h, to ease
20852 # handling of long lines.
20854 for ac_last_try in false false :; do
20855 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20856 if test -z "$ac_tt"; then
20858 elif $ac_last_try; then
20859 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20865 # For the awk script, D is an array of macro values keyed by name,
20866 # likewise P contains macro parameters if any. Preserve backslash
20867 # newline sequences.
20869 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20871 s/.\{148\}/&'"$ac_delim"'/g
20874 s/^[ ]*#[ ]*define[ ][ ]*/ /
20881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20888 D["\1"]=" \3\\\\\\n"\\/p
20890 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20895 s/.\{148\}/&'"$ac_delim"'/g
20900 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20903 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20905 ' <confdefs.h | sed '
20906 s/'"$ac_delim"'/"\\\
20907 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20910 for (key in D) D_is_set[key] = 1
20913 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20915 split(line, arg, " ")
20916 if (arg[1] == "#") {
20920 defundef = substr(arg[1], 2)
20923 split(mac1, mac2, "(") #)
20925 prefix = substr(line, 1, index(line, defundef) - 1)
20926 if (D_is_set[macro]) {
20927 # Preserve the white space surrounding the "#".
20928 print prefix "define", macro P[macro] D[macro]
20931 # Replace #undef with comments. This is necessary, for example,
20932 # in the case of _POSIX_SOURCE, which is predefined and required
20933 # on some systems where configure will not decide to define it.
20934 if (defundef == "undef") {
20935 print "/*", prefix defundef, macro, "*/"
20943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20944 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20945 fi # test -n "$CONFIG_HEADERS"
20948 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20953 :[FHLC]) ac_mode=$ac_tag; continue;;
20955 case $ac_mode$ac_tag in
20957 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20958 :[FH]-) ac_tag=-:-;;
20959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20976 -) ac_f="$ac_tmp/stdin";;
20977 *) # Look for the file first in the build tree, then in the source tree
20978 # (if the path is not absolute). The absolute path cannot be DOS-style,
20979 # because $ac_f cannot contain `:'.
20983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20985 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20987 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20988 as_fn_append ac_file_inputs " '$ac_f'"
20991 # Let's still pretend it is `configure' which instantiates (i.e., don't
20992 # use $as_me), people would be surprised to read:
20993 # /* config.h. Generated by config.status. */
20994 configure_input='Generated from '`
20995 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20997 if test x"$ac_file" != x-; then
20998 configure_input="$ac_file. $configure_input"
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21000 $as_echo "$as_me: creating $ac_file" >&6;}
21002 # Neutralize special characters interpreted by sed in replacement strings.
21003 case $configure_input in #(
21004 *\&* | *\|* | *\\* )
21005 ac_sed_conf_input=`$as_echo "$configure_input" |
21006 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21007 *) ac_sed_conf_input=$configure_input;;
21011 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21017 ac_dir=`$as_dirname -- "$ac_file" ||
21018 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21019 X"$ac_file" : 'X\(//\)[^/]' \| \
21020 X"$ac_file" : 'X\(//\)$' \| \
21021 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21022 $as_echo X"$ac_file" |
21023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21027 /^X\(\/\/\)[^/].*/{
21040 as_dir="$ac_dir"; as_fn_mkdir_p
21044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21046 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21047 # A ".." for each directory in $ac_dir_suffix.
21048 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21049 case $ac_top_builddir_sub in
21050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21054 ac_abs_top_builddir=$ac_pwd
21055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21056 # for backward compatibility:
21057 ac_top_builddir=$ac_top_build_prefix
21060 .) # We are building in place.
21062 ac_top_srcdir=$ac_top_builddir_sub
21063 ac_abs_top_srcdir=$ac_pwd ;;
21064 [\\/]* | ?:[\\/]* ) # Absolute name.
21065 ac_srcdir=$srcdir$ac_dir_suffix;
21066 ac_top_srcdir=$srcdir
21067 ac_abs_top_srcdir=$srcdir ;;
21068 *) # Relative name.
21069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21070 ac_top_srcdir=$ac_top_build_prefix$srcdir
21071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21083 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21084 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21086 ac_MKDIR_P=$MKDIR_P
21088 [\\/$]* | ?:[\\/]* ) ;;
21089 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21094 # If the template does not know about datarootdir, expand it.
21095 # FIXME: This hack should be removed a few years after 2.60.
21096 ac_datarootdir_hack=; ac_datarootdir_seen=
21107 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21108 *datarootdir*) ac_datarootdir_seen=yes;;
21109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21111 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21114 ac_datarootdir_hack='
21115 s&@datadir@&$datadir&g
21116 s&@docdir@&$docdir&g
21117 s&@infodir@&$infodir&g
21118 s&@localedir@&$localedir&g
21119 s&@mandir@&$mandir&g
21120 s&\\\${datarootdir}&$datarootdir&g' ;;
21124 # Neutralize VPATH when `$srcdir' = `.'.
21125 # Shell code in configure.ac might set extrasub.
21126 # FIXME: do we really want to maintain this feature?
21127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21128 ac_sed_extra="$ac_vpsub
21131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21134 s|@configure_input@|$ac_sed_conf_input|;t t
21135 s&@top_builddir@&$ac_top_builddir_sub&;t t
21136 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21137 s&@srcdir@&$ac_srcdir&;t t
21138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21139 s&@top_srcdir@&$ac_top_srcdir&;t t
21140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21141 s&@builddir@&$ac_builddir&;t t
21142 s&@abs_builddir@&$ac_abs_builddir&;t t
21143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21144 s&@INSTALL@&$ac_INSTALL&;t t
21145 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21146 $ac_datarootdir_hack
21148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21149 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21152 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21154 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21156 which seems to be undefined. Please make sure it is defined" >&5
21157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21158 which seems to be undefined. Please make sure it is defined" >&2;}
21160 rm -f "$ac_tmp/stdin"
21162 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21163 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21171 if test x"$ac_file" != x-; then
21173 $as_echo "/* $configure_input */" \
21174 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21175 } >"$ac_tmp/config.h" \
21176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21177 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21179 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21182 mv "$ac_tmp/config.h" "$ac_file" \
21183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21186 $as_echo "/* $configure_input */" \
21187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21188 || as_fn_error $? "could not create -" "$LINENO" 5
21190 # Compute "$ac_file"'s index in $config_headers.
21193 for _am_header in $config_headers :; do
21194 case $_am_header in
21195 $_am_arg | $_am_arg:* )
21198 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21201 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21202 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21203 X"$_am_arg" : 'X\(//\)[^/]' \| \
21204 X"$_am_arg" : 'X\(//\)$' \| \
21205 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21206 $as_echo X"$_am_arg" |
21207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21211 /^X\(\/\/\)[^/].*/{
21223 s/.*/./; q'`/stamp-h$_am_stamp_count
21226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21227 $as_echo "$as_me: executing $ac_file commands" >&6;}
21232 case $ac_file$ac_mode in
21233 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21234 # Older Autoconf quotes --file arguments for eval, but not when files
21235 # are listed without --file. Let's play safe and only enable the eval
21236 # if we detect the quoting.
21237 case $CONFIG_FILES in
21238 *\'*) eval set x "$CONFIG_FILES" ;;
21239 *) set x $CONFIG_FILES ;;
21244 # Strip MF so we end up with the name of the file.
21245 mf=`echo "$mf" | sed -e 's/:.*$//'`
21246 # Check whether this is an Automake generated Makefile or not.
21247 # We used to match only the files named 'Makefile.in', but
21248 # some people rename them; so instead we look at the file content.
21249 # Grep'ing the first line is not enough: some people post-process
21250 # each Makefile.in and add a new line on top of each file to say so.
21251 # Grep'ing the whole file is not good either: AIX grep has a line
21252 # limit of 2048, but all sed's we know have understand at least 4000.
21253 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21254 dirpart=`$as_dirname -- "$mf" ||
21255 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21256 X"$mf" : 'X\(//\)[^/]' \| \
21257 X"$mf" : 'X\(//\)$' \| \
21258 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21264 /^X\(\/\/\)[^/].*/{
21280 # Extract the definition of DEPDIR, am__include, and am__quote
21281 # from the Makefile without running 'make'.
21282 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21283 test -z "$DEPDIR" && continue
21284 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21285 test -z "$am__include" && continue
21286 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21287 # Find all dependency output files, they are included files with
21288 # $(DEPDIR) in their names. We invoke sed twice because it is the
21289 # simplest approach to changing $(DEPDIR) to its actual value in the
21291 for file in `sed -n "
21292 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21293 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21294 # Make sure the directory exists.
21295 test -f "$dirpart/$file" && continue
21296 fdir=`$as_dirname -- "$file" ||
21297 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21298 X"$file" : 'X\(//\)[^/]' \| \
21299 X"$file" : 'X\(//\)$' \| \
21300 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21301 $as_echo X"$file" |
21302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21306 /^X\(\/\/\)[^/].*/{
21319 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21320 # echo "creating $dirpart/$file"
21321 echo '# dummy' > "$dirpart/$file"
21328 # See if we are running on zsh, and set the options which allow our
21329 # commands through without removal of \ escapes.
21330 if test -n "${ZSH_VERSION+set}" ; then
21331 setopt NO_GLOB_SUBST
21334 cfgfile="${ofile}T"
21335 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21338 cat <<_LT_EOF >> "$cfgfile"
21341 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21342 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21346 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21347 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21349 # Written by Gordon Matzigkeit, 1996
21351 # This file is part of GNU Libtool.
21353 # GNU Libtool is free software; you can redistribute it and/or
21354 # modify it under the terms of the GNU General Public License as
21355 # published by the Free Software Foundation; either version 2 of
21356 # the License, or (at your option) any later version.
21358 # As a special exception to the GNU General Public License,
21359 # if you distribute this file as part of a program or library that
21360 # is built using GNU Libtool, you may include this file under the
21361 # same distribution terms that you use for the rest of that program.
21363 # GNU Libtool is distributed in the hope that it will be useful,
21364 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21365 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21366 # GNU General Public License for more details.
21368 # You should have received a copy of the GNU General Public License
21369 # along with GNU Libtool; see the file COPYING. If not, a copy
21370 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21371 # obtained by writing to the Free Software Foundation, Inc.,
21372 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21375 # The names of the tagged configurations supported by this script.
21376 available_tags="CXX "
21378 # ### BEGIN LIBTOOL CONFIG
21380 # Which release of libtool.m4 was used?
21381 macro_version=$macro_version
21382 macro_revision=$macro_revision
21384 # Whether or not to build shared libraries.
21385 build_libtool_libs=$enable_shared
21387 # Whether or not to build static libraries.
21388 build_old_libs=$enable_static
21390 # What type of objects to build.
21393 # Whether or not to optimize for fast installation.
21394 fast_install=$enable_fast_install
21396 # Shell to use when invoking shell scripts.
21399 # An echo program that protects backslashes.
21402 # The PATH separator for the build system.
21403 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21406 host_alias=$host_alias
21410 # The build system.
21411 build_alias=$build_alias
21415 # A sed program that does not truncate output.
21418 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21419 Xsed="\$SED -e 1s/^X//"
21421 # A grep program that handles long lines.
21427 # A literal string matcher.
21430 # A BSD- or MS-compatible name lister.
21433 # Whether we need soft or hard links.
21436 # What is the maximum length of a command?
21437 max_cmd_len=$max_cmd_len
21439 # Object file suffix (normally "o").
21442 # Executable file suffix (normally "").
21445 # whether the shell understands "unset".
21448 # turn spaces into newlines.
21451 # turn newlines into spaces.
21454 # convert \$build file names to \$host format.
21455 to_host_file_cmd=$lt_cv_to_host_file_cmd
21457 # convert \$build files to toolchain format.
21458 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21460 # An object symbol dumper.
21461 OBJDUMP=$lt_OBJDUMP
21463 # Method to check whether dependent libraries are shared objects.
21464 deplibs_check_method=$lt_deplibs_check_method
21466 # Command to use when deplibs_check_method = "file_magic".
21467 file_magic_cmd=$lt_file_magic_cmd
21469 # How to find potential files when deplibs_check_method = "file_magic".
21470 file_magic_glob=$lt_file_magic_glob
21472 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21473 want_nocaseglob=$lt_want_nocaseglob
21475 # DLL creation program.
21476 DLLTOOL=$lt_DLLTOOL
21478 # Command to associate shared and link libraries.
21479 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21484 # Flags to create an archive.
21485 AR_FLAGS=$lt_AR_FLAGS
21487 # How to feed a file listing to the archiver.
21488 archiver_list_spec=$lt_archiver_list_spec
21490 # A symbol stripping program.
21493 # Commands used to install an old-style archive.
21495 old_postinstall_cmds=$lt_old_postinstall_cmds
21496 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21498 # Whether to use a lock for old archive extraction.
21499 lock_old_archive_extraction=$lock_old_archive_extraction
21504 # LTCC compiler flags.
21505 LTCFLAGS=$lt_CFLAGS
21507 # Take the output of nm and produce a listing of raw symbols and C names.
21508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21510 # Transform the output of nm in a proper C declaration.
21511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21513 # Transform the output of nm in a C name address pair.
21514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21516 # Transform the output of nm in a C name address pair when lib prefix is needed.
21517 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21519 # Specify filename containing input files for \$NM.
21520 nm_file_list_spec=$lt_nm_file_list_spec
21522 # The root where to search for dependent libraries,and in which our libraries should be installed.
21523 lt_sysroot=$lt_sysroot
21525 # The name of the directory that contains temporary libtool files.
21528 # Used to examine libraries when file_magic_cmd begins with "file".
21529 MAGIC_CMD=$MAGIC_CMD
21531 # Must we lock files when doing compilation?
21532 need_locks=$lt_need_locks
21535 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21537 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21538 DSYMUTIL=$lt_DSYMUTIL
21540 # Tool to change global to local symbols on Mac OS X.
21543 # Tool to manipulate fat objects and archives on Mac OS X.
21546 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21549 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21550 OTOOL64=$lt_OTOOL64
21552 # Old archive suffix (normally "a").
21555 # Shared library suffix (normally ".so").
21556 shrext_cmds=$lt_shrext_cmds
21558 # The commands to extract the exported symbol list from a shared archive.
21559 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21561 # Variables whose values should be saved in libtool wrapper scripts and
21562 # restored at link time.
21563 variables_saved_for_relink=$lt_variables_saved_for_relink
21565 # Do we need the "lib" prefix for modules?
21566 need_lib_prefix=$need_lib_prefix
21568 # Do we need a version for libraries?
21569 need_version=$need_version
21571 # Library versioning type.
21572 version_type=$version_type
21574 # Shared library runtime path variable.
21575 runpath_var=$runpath_var
21577 # Shared library path variable.
21578 shlibpath_var=$shlibpath_var
21580 # Is shlibpath searched before the hard-coded library search path?
21581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21583 # Format of library name prefix.
21584 libname_spec=$lt_libname_spec
21586 # List of archive names. First name is the real one, the rest are links.
21587 # The last name is the one that the linker finds with -lNAME
21588 library_names_spec=$lt_library_names_spec
21590 # The coded name of the library, if different from the real name.
21591 soname_spec=$lt_soname_spec
21593 # Permission mode override for installation of shared libraries.
21594 install_override_mode=$lt_install_override_mode
21596 # Command to use after installation of a shared archive.
21597 postinstall_cmds=$lt_postinstall_cmds
21599 # Command to use after uninstallation of a shared archive.
21600 postuninstall_cmds=$lt_postuninstall_cmds
21602 # Commands used to finish a libtool library installation in a directory.
21603 finish_cmds=$lt_finish_cmds
21605 # As "finish_cmds", except a single script fragment to be evaled but
21607 finish_eval=$lt_finish_eval
21609 # Whether we should hardcode library paths into libraries.
21610 hardcode_into_libs=$hardcode_into_libs
21612 # Compile-time system search path for libraries.
21613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21615 # Run-time system search path for libraries.
21616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21618 # Whether dlopen is supported.
21619 dlopen_support=$enable_dlopen
21621 # Whether dlopen of programs is supported.
21622 dlopen_self=$enable_dlopen_self
21624 # Whether dlopen of statically linked programs is supported.
21625 dlopen_self_static=$enable_dlopen_self_static
21627 # Commands to strip libraries.
21628 old_striplib=$lt_old_striplib
21629 striplib=$lt_striplib
21632 # The linker used to build libraries.
21635 # How to create reloadable object files.
21636 reload_flag=$lt_reload_flag
21637 reload_cmds=$lt_reload_cmds
21639 # Commands used to build an old-style archive.
21640 old_archive_cmds=$lt_old_archive_cmds
21642 # A language specific compiler.
21645 # Is the compiler the GNU compiler?
21648 # Compiler flag to turn off builtin functions.
21649 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21651 # Additional compiler flags for building library objects.
21652 pic_flag=$lt_lt_prog_compiler_pic
21654 # How to pass a linker flag through the compiler.
21655 wl=$lt_lt_prog_compiler_wl
21657 # Compiler flag to prevent dynamic linking.
21658 link_static_flag=$lt_lt_prog_compiler_static
21660 # Does compiler simultaneously support -c and -o options?
21661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21663 # Whether or not to add -lc for building shared libraries.
21664 build_libtool_need_lc=$archive_cmds_need_lc
21666 # Whether or not to disallow shared libs when runtime libs are static.
21667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21669 # Compiler flag to allow reflexive dlopens.
21670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21672 # Compiler flag to generate shared objects directly from archives.
21673 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21675 # Whether the compiler copes with passing no objects directly.
21676 compiler_needs_object=$lt_compiler_needs_object
21678 # Create an old-style archive from a shared archive.
21679 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21681 # Create a temporary old-style archive to link instead of a shared archive.
21682 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21684 # Commands used to build a shared archive.
21685 archive_cmds=$lt_archive_cmds
21686 archive_expsym_cmds=$lt_archive_expsym_cmds
21688 # Commands used to build a loadable module if different from building
21689 # a shared archive.
21690 module_cmds=$lt_module_cmds
21691 module_expsym_cmds=$lt_module_expsym_cmds
21693 # Whether we are building with GNU ld or not.
21694 with_gnu_ld=$lt_with_gnu_ld
21696 # Flag that allows shared libraries with undefined symbols to be built.
21697 allow_undefined_flag=$lt_allow_undefined_flag
21699 # Flag that enforces no undefined symbols.
21700 no_undefined_flag=$lt_no_undefined_flag
21702 # Flag to hardcode \$libdir into a binary during linking.
21703 # This must work even if \$libdir does not exist
21704 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21706 # Whether we need a single "-rpath" flag with a separated argument.
21707 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21710 # DIR into the resulting binary.
21711 hardcode_direct=$hardcode_direct
21713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21714 # DIR into the resulting binary and the resulting library dependency is
21715 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21716 # library is relocated.
21717 hardcode_direct_absolute=$hardcode_direct_absolute
21719 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21720 # into the resulting binary.
21721 hardcode_minus_L=$hardcode_minus_L
21723 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21724 # into the resulting binary.
21725 hardcode_shlibpath_var=$hardcode_shlibpath_var
21727 # Set to "yes" if building a shared library automatically hardcodes DIR
21728 # into the library and all subsequent libraries and executables linked
21730 hardcode_automatic=$hardcode_automatic
21732 # Set to yes if linker adds runtime paths of dependent libraries
21733 # to runtime path list.
21734 inherit_rpath=$inherit_rpath
21736 # Whether libtool must link a program against all its dependency libraries.
21737 link_all_deplibs=$link_all_deplibs
21739 # Set to "yes" if exported symbols are required.
21740 always_export_symbols=$always_export_symbols
21742 # The commands to list exported symbols.
21743 export_symbols_cmds=$lt_export_symbols_cmds
21745 # Symbols that should not be listed in the preloaded symbols.
21746 exclude_expsyms=$lt_exclude_expsyms
21748 # Symbols that must always be exported.
21749 include_expsyms=$lt_include_expsyms
21751 # Commands necessary for linking programs (against libraries) with templates.
21752 prelink_cmds=$lt_prelink_cmds
21754 # Commands necessary for finishing linking programs.
21755 postlink_cmds=$lt_postlink_cmds
21757 # Specify filename containing input files.
21758 file_list_spec=$lt_file_list_spec
21760 # How to hardcode a shared library path into an executable.
21761 hardcode_action=$hardcode_action
21763 # The directories searched by this compiler when creating a shared library.
21764 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21766 # Dependencies to place before and after the objects being linked to
21767 # create a shared library.
21768 predep_objects=$lt_predep_objects
21769 postdep_objects=$lt_postdep_objects
21770 predeps=$lt_predeps
21771 postdeps=$lt_postdeps
21773 # The library search path used internally by the compiler when linking
21774 # a shared library.
21775 compiler_lib_search_path=$lt_compiler_lib_search_path
21777 # ### END LIBTOOL CONFIG
21783 cat <<\_LT_EOF >> "$cfgfile"
21784 # AIX sometimes has problems with the GCC collect2 program. For some
21785 # reason, if we set the COLLECT_NAMES environment variable, the problems
21786 # vanish in a puff of smoke.
21787 if test "X${COLLECT_NAMES+set}" != Xset; then
21789 export COLLECT_NAMES
21796 ltmain="$ac_aux_dir/ltmain.sh"
21799 # We use sed instead of cat because bash on DJGPP gets confused if
21800 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21801 # text mode, it properly converts lines to CR/LF. This bash problem
21802 # is reportedly fixed, but why not run on old versions too?
21803 sed '$q' "$ltmain" >> "$cfgfile" \
21804 || (rm -f "$cfgfile"; exit 1)
21806 if test x"$xsi_shell" = xyes; then
21807 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21811 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21812 \ * ) func_dirname_result="${3}" ;;\
21814 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21815 && mv -f "$cfgfile.tmp" "$cfgfile" \
21816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21817 test 0 -eq $? || _lt_function_replace_fail=:
21820 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21823 \ func_basename_result="${1##*/}"\
21824 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21825 && mv -f "$cfgfile.tmp" "$cfgfile" \
21826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21827 test 0 -eq $? || _lt_function_replace_fail=:
21830 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21831 func_dirname_and_basename ()\
21834 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21835 \ * ) func_dirname_result="${3}" ;;\
21837 \ func_basename_result="${1##*/}"\
21838 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21839 && mv -f "$cfgfile.tmp" "$cfgfile" \
21840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21841 test 0 -eq $? || _lt_function_replace_fail=:
21844 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21847 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21848 \ # positional parameters, so assign one to ordinary parameter first.\
21849 \ func_stripname_result=${3}\
21850 \ func_stripname_result=${func_stripname_result#"${1}"}\
21851 \ func_stripname_result=${func_stripname_result%"${2}"}\
21852 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21853 && mv -f "$cfgfile.tmp" "$cfgfile" \
21854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21855 test 0 -eq $? || _lt_function_replace_fail=:
21858 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21859 func_split_long_opt ()\
21861 \ func_split_long_opt_name=${1%%=*}\
21862 \ func_split_long_opt_arg=${1#*=}\
21863 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21864 && mv -f "$cfgfile.tmp" "$cfgfile" \
21865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21866 test 0 -eq $? || _lt_function_replace_fail=:
21869 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21870 func_split_short_opt ()\
21872 \ func_split_short_opt_arg=${1#??}\
21873 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21874 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21875 && mv -f "$cfgfile.tmp" "$cfgfile" \
21876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21877 test 0 -eq $? || _lt_function_replace_fail=:
21880 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21884 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21885 \ *) func_lo2o_result=${1} ;;\
21887 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21888 && mv -f "$cfgfile.tmp" "$cfgfile" \
21889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21890 test 0 -eq $? || _lt_function_replace_fail=:
21893 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21896 func_xform_result=${1%.*}.lo\
21897 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21898 && mv -f "$cfgfile.tmp" "$cfgfile" \
21899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21900 test 0 -eq $? || _lt_function_replace_fail=:
21903 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21906 func_arith_result=$(( $* ))\
21907 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21908 && mv -f "$cfgfile.tmp" "$cfgfile" \
21909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21910 test 0 -eq $? || _lt_function_replace_fail=:
21913 sed -e '/^func_len ()$/,/^} # func_len /c\
21916 func_len_result=${#1}\
21917 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21918 && mv -f "$cfgfile.tmp" "$cfgfile" \
21919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21920 test 0 -eq $? || _lt_function_replace_fail=:
21924 if test x"$lt_shell_append" = xyes; then
21925 sed -e '/^func_append ()$/,/^} # func_append /c\
21928 eval "${1}+=\\${2}"\
21929 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21930 && mv -f "$cfgfile.tmp" "$cfgfile" \
21931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21932 test 0 -eq $? || _lt_function_replace_fail=:
21935 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21936 func_append_quoted ()\
21938 \ func_quote_for_eval "${2}"\
21939 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21940 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21941 && mv -f "$cfgfile.tmp" "$cfgfile" \
21942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21943 test 0 -eq $? || _lt_function_replace_fail=:
21946 # Save a `func_append' function call where possible by direct use of '+='
21947 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21948 && mv -f "$cfgfile.tmp" "$cfgfile" \
21949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21950 test 0 -eq $? || _lt_function_replace_fail=:
21952 # Save a `func_append' function call even when '+=' is not available
21953 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21954 && mv -f "$cfgfile.tmp" "$cfgfile" \
21955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21956 test 0 -eq $? || _lt_function_replace_fail=:
21959 if test x"$_lt_function_replace_fail" = x":"; then
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21961 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21965 mv -f "$cfgfile" "$ofile" ||
21966 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21970 cat <<_LT_EOF >> "$ofile"
21972 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21974 # The linker used to build libraries.
21977 # How to create reloadable object files.
21978 reload_flag=$lt_reload_flag_CXX
21979 reload_cmds=$lt_reload_cmds_CXX
21981 # Commands used to build an old-style archive.
21982 old_archive_cmds=$lt_old_archive_cmds_CXX
21984 # A language specific compiler.
21985 CC=$lt_compiler_CXX
21987 # Is the compiler the GNU compiler?
21990 # Compiler flag to turn off builtin functions.
21991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21993 # Additional compiler flags for building library objects.
21994 pic_flag=$lt_lt_prog_compiler_pic_CXX
21996 # How to pass a linker flag through the compiler.
21997 wl=$lt_lt_prog_compiler_wl_CXX
21999 # Compiler flag to prevent dynamic linking.
22000 link_static_flag=$lt_lt_prog_compiler_static_CXX
22002 # Does compiler simultaneously support -c and -o options?
22003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22005 # Whether or not to add -lc for building shared libraries.
22006 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22008 # Whether or not to disallow shared libs when runtime libs are static.
22009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22011 # Compiler flag to allow reflexive dlopens.
22012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22014 # Compiler flag to generate shared objects directly from archives.
22015 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22017 # Whether the compiler copes with passing no objects directly.
22018 compiler_needs_object=$lt_compiler_needs_object_CXX
22020 # Create an old-style archive from a shared archive.
22021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22023 # Create a temporary old-style archive to link instead of a shared archive.
22024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22026 # Commands used to build a shared archive.
22027 archive_cmds=$lt_archive_cmds_CXX
22028 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22030 # Commands used to build a loadable module if different from building
22031 # a shared archive.
22032 module_cmds=$lt_module_cmds_CXX
22033 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22035 # Whether we are building with GNU ld or not.
22036 with_gnu_ld=$lt_with_gnu_ld_CXX
22038 # Flag that allows shared libraries with undefined symbols to be built.
22039 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22041 # Flag that enforces no undefined symbols.
22042 no_undefined_flag=$lt_no_undefined_flag_CXX
22044 # Flag to hardcode \$libdir into a binary during linking.
22045 # This must work even if \$libdir does not exist
22046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22048 # Whether we need a single "-rpath" flag with a separated argument.
22049 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22051 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22052 # DIR into the resulting binary.
22053 hardcode_direct=$hardcode_direct_CXX
22055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22056 # DIR into the resulting binary and the resulting library dependency is
22057 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22058 # library is relocated.
22059 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22061 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22062 # into the resulting binary.
22063 hardcode_minus_L=$hardcode_minus_L_CXX
22065 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22066 # into the resulting binary.
22067 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22069 # Set to "yes" if building a shared library automatically hardcodes DIR
22070 # into the library and all subsequent libraries and executables linked
22072 hardcode_automatic=$hardcode_automatic_CXX
22074 # Set to yes if linker adds runtime paths of dependent libraries
22075 # to runtime path list.
22076 inherit_rpath=$inherit_rpath_CXX
22078 # Whether libtool must link a program against all its dependency libraries.
22079 link_all_deplibs=$link_all_deplibs_CXX
22081 # Set to "yes" if exported symbols are required.
22082 always_export_symbols=$always_export_symbols_CXX
22084 # The commands to list exported symbols.
22085 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22087 # Symbols that should not be listed in the preloaded symbols.
22088 exclude_expsyms=$lt_exclude_expsyms_CXX
22090 # Symbols that must always be exported.
22091 include_expsyms=$lt_include_expsyms_CXX
22093 # Commands necessary for linking programs (against libraries) with templates.
22094 prelink_cmds=$lt_prelink_cmds_CXX
22096 # Commands necessary for finishing linking programs.
22097 postlink_cmds=$lt_postlink_cmds_CXX
22099 # Specify filename containing input files.
22100 file_list_spec=$lt_file_list_spec_CXX
22102 # How to hardcode a shared library path into an executable.
22103 hardcode_action=$hardcode_action_CXX
22105 # The directories searched by this compiler when creating a shared library.
22106 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22108 # Dependencies to place before and after the objects being linked to
22109 # create a shared library.
22110 predep_objects=$lt_predep_objects_CXX
22111 postdep_objects=$lt_postdep_objects_CXX
22112 predeps=$lt_predeps_CXX
22113 postdeps=$lt_postdeps_CXX
22115 # The library search path used internally by the compiler when linking
22116 # a shared library.
22117 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22119 # ### END LIBTOOL TAG CONFIG: CXX
22130 ac_clean_files=$ac_clean_files_save
22132 test $ac_write_fail = 0 ||
22133 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22136 # configure is writing to config.log, and then calls config.status.
22137 # config.status does its own redirection, appending to config.log.
22138 # Unfortunately, on DOS this fails, as config.log is still kept open
22139 # by configure, so config.status won't be able to write to it; its
22140 # output is simply discarded. So we exec the FD to /dev/null,
22141 # effectively closing config.log, so it can be properly (re)opened and
22142 # appended to by config.status. When coming back to configure, we
22143 # need to make the FD available again.
22144 if test "$no_create" != yes; then
22146 ac_config_status_args=
22147 test "$silent" = yes &&
22148 ac_config_status_args="$ac_config_status_args --quiet"
22150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22153 # would make configure fail if this is the last instruction.
22154 $ac_cs_success || as_fn_exit 1
22158 # CONFIG_SUBDIRS section.
22160 if test "$no_recursion" != yes; then
22162 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22163 # so they do not pile up.
22164 ac_sub_configure_args=
22166 eval "set x $ac_configure_args"
22170 if test -n "$ac_prev"; then
22175 -cache-file | --cache-file | --cache-fil | --cache-fi \
22176 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22177 ac_prev=cache_file ;;
22178 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22179 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22182 --config-cache | -C)
22184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22192 --disable-option-checking)
22196 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22198 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
22202 # Always prepend --prefix to ensure using the same prefix
22203 # in subdir configurations.
22204 ac_arg="--prefix=$prefix"
22206 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22208 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22211 if test "$silent" = yes; then
22212 ac_sub_configure_args="--silent $ac_sub_configure_args"
22215 # Always prepend --disable-option-checking to silence warnings, since
22216 # different subdirs can have different --enable and --with options.
22217 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22220 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22222 # Do not complain, so a configure script can configure whichever
22223 # parts of a large source tree are present.
22224 test -d "$srcdir/$ac_dir" || continue
22226 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22227 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22228 $as_echo "$ac_msg" >&6
22229 as_dir="$ac_dir"; as_fn_mkdir_p
22233 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22235 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22236 # A ".." for each directory in $ac_dir_suffix.
22237 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22238 case $ac_top_builddir_sub in
22239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22243 ac_abs_top_builddir=$ac_pwd
22244 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22245 # for backward compatibility:
22246 ac_top_builddir=$ac_top_build_prefix
22249 .) # We are building in place.
22251 ac_top_srcdir=$ac_top_builddir_sub
22252 ac_abs_top_srcdir=$ac_pwd ;;
22253 [\\/]* | ?:[\\/]* ) # Absolute name.
22254 ac_srcdir=$srcdir$ac_dir_suffix;
22255 ac_top_srcdir=$srcdir
22256 ac_abs_top_srcdir=$srcdir ;;
22257 *) # Relative name.
22258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22259 ac_top_srcdir=$ac_top_build_prefix$srcdir
22260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22262 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22267 # Check for guested configure; otherwise get Cygnus style configure.
22268 if test -f "$ac_srcdir/configure.gnu"; then
22269 ac_sub_configure=$ac_srcdir/configure.gnu
22270 elif test -f "$ac_srcdir/configure"; then
22271 ac_sub_configure=$ac_srcdir/configure
22272 elif test -f "$ac_srcdir/configure.in"; then
22273 # This should be Cygnus configure.
22274 ac_sub_configure=$ac_aux_dir/configure
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22277 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22281 # The recursion is here.
22282 if test -n "$ac_sub_configure"; then
22283 # Make the cache file name correct relative to the subdirectory.
22284 case $cache_file in
22285 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22286 *) # Relative name.
22287 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22291 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22292 # The eval makes quoting arguments work.
22293 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22294 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22295 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22301 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22303 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22308 # Summarize the package configuration
22311 { $as_echo "$as_me:${as_lineno-$LINENO}:
22313 Configuration Summary
22314 ---------------------
22315 Package : ${PACKAGE_NAME}
22316 Version : ${PACKAGE_VERSION}
22317 Interface : ${LIBNLASSERT_VERSION_INFO//:/.}
22318 Build system : ${build}
22319 Host system : ${host}
22320 Target system : ${target}
22321 Target architecture : ${target_cpu}
22322 Target OS : ${target_os}
22323 Cross compiling : ${cross_compiling}
22324 Build shared libraries : ${enable_shared}
22325 Build static libraries : ${enable_static}
22326 Build debug libraries : ${nl_cv_build_debug}
22327 Build optimized libraries : ${nl_cv_build_optimized}
22328 Build coverage libraries : ${nl_cv_build_coverage}
22329 Build coverage reports : ${nl_cv_build_coverage_reports}
22331 Genhtml : ${GENHTML:--}
22332 Build tests : ${nl_cv_build_tests}
22334 Shadow directory program : ${LNDIR}
22335 Documentation support : ${nl_cv_build_docs}
22336 Doxygen : ${DOXYGEN:--}
22337 GraphViz dot : ${DOT:--}
22339 Nlunit-test source : ${nl_with_nlunit_test:--}
22340 Nlunit-test compile flags : ${NLUNIT_TEST_CPPFLAGS:--}
22341 Nlunit-test link flags : ${NLUNIT_TEST_LDFLAGS:--}
22342 Nlunit-test link libraries : ${NLUNIT_TEST_LIBS:--}
22343 Nlunit-test foreign subdirectory dependency : ${NLUNIT_TEST_FOREIGN_SUBDIR_DEPENDENCY:--}
22344 C Preprocessor : ${CPP}
22346 C++ Preprocessor : ${CXXCPP}
22347 C++ Compiler : ${CXX}
22349 Archive Indexer : ${RANLIB}
22350 Symbol Stripper : ${STRIP}
22351 Object Copier : ${OBJCOPY}
22352 C Preprocessor flags : ${CPPFLAGS:--}
22353 C Compile flags : ${CFLAGS:--}
22354 C++ Compile flags : ${CXXFLAGS:--}
22355 Link flags : ${LDFLAGS:--}
22356 Link libraries : ${LIBS}
22360 Configuration Summary
22361 ---------------------
22362 Package : ${PACKAGE_NAME}
22363 Version : ${PACKAGE_VERSION}
22364 Interface : ${LIBNLASSERT_VERSION_INFO//:/.}
22365 Build system : ${build}
22366 Host system : ${host}
22367 Target system : ${target}
22368 Target architecture : ${target_cpu}
22369 Target OS : ${target_os}
22370 Cross compiling : ${cross_compiling}
22371 Build shared libraries : ${enable_shared}
22372 Build static libraries : ${enable_static}
22373 Build debug libraries : ${nl_cv_build_debug}
22374 Build optimized libraries : ${nl_cv_build_optimized}
22375 Build coverage libraries : ${nl_cv_build_coverage}
22376 Build coverage reports : ${nl_cv_build_coverage_reports}
22378 Genhtml : ${GENHTML:--}
22379 Build tests : ${nl_cv_build_tests}
22381 Shadow directory program : ${LNDIR}
22382 Documentation support : ${nl_cv_build_docs}
22383 Doxygen : ${DOXYGEN:--}
22384 GraphViz dot : ${DOT:--}
22386 Nlunit-test source : ${nl_with_nlunit_test:--}
22387 Nlunit-test compile flags : ${NLUNIT_TEST_CPPFLAGS:--}
22388 Nlunit-test link flags : ${NLUNIT_TEST_LDFLAGS:--}
22389 Nlunit-test link libraries : ${NLUNIT_TEST_LIBS:--}
22390 Nlunit-test foreign subdirectory dependency : ${NLUNIT_TEST_FOREIGN_SUBDIR_DEPENDENCY:--}
22391 C Preprocessor : ${CPP}
22393 C++ Preprocessor : ${CXXCPP}
22394 C++ Compiler : ${CXX}
22396 Archive Indexer : ${RANLIB}
22397 Symbol Stripper : ${STRIP}
22398 Object Copier : ${OBJCOPY}
22399 C Preprocessor flags : ${CPPFLAGS:--}
22400 C Compile flags : ${CFLAGS:--}
22401 C++ Compile flags : ${CXXFLAGS:--}
22402 Link flags : ${LDFLAGS:--}
22403 Link libraries : ${LIBS}