2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430 ac_unique_file=""lib/VMCore/Module.cpp""
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subdirs_all="$ac_subdirs_all projects/sample"
469 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
470 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
471 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
472 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
473 ac_subdirs_all="$ac_subdirs_all projects/Java"
474 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
475 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
476 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar LLVMGCCDIR ENABLE_OPTIMIZED ENABLE_PROFILED BUILDMODE JIT OS ARCH_X86_TRUE ARCH_X86_FALSE ARCH_SPARC_TRUE ARCH_SPARC_FALSE ARCH_PPC_TRUE ARCH_PPC_FALSE ARCH_UNKNOWN_TRUE ARCH_UNKNOWN_FALSE ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS PYTHON QMTEST ifGNUmake LLVMCC1 LLVMCC1PLUS ETAGSFLAGS ALLOCA MMAP_FILE HAVE_ZLIB HAVE_BZIP2 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME subdirs LIBOBJS LTLIBOBJS'
479 # Initialize some variables set by options.
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
491 program_transform_name=s,x,x,
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529 # Accept the important Cygnus configure options, so we can diagnose typos.
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
551 cache_file=config.cache ;;
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557 datadir=$ac_optarg ;;
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 eval "enable_$ac_feature=no" ;;
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 eval "enable_$ac_feature='$ac_optarg'" ;;
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
594 -help | --help | --hel | --he | -h)
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
618 -libdir | --libdir | --libdi | --libd)
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 # Obsolete; use --without-fp.
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709 sbindir=$ac_optarg ;;
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720 sharedstatedir=$ac_optarg ;;
722 -site | --site | --sit)
724 -site=* | --site=* | --sit=*)
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 -version | --version | --versio | --versi | --vers | -V)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 eval "with_$ac_package='$ac_optarg'" ;;
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
773 # Obsolete; use --with-x.
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
816 if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
825 eval ac_val=$`echo $ac_var`
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835 localstatedir libdir includedir oldincludedir infodir mandir
837 eval ac_val=$`echo $ac_var`
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
866 test "$silent" = yes && exec 6>/dev/null
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
886 if test ! -r $srcdir/$ac_unique_file; then
890 ac_srcdir_defaulted=no
892 if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CC_set=${CC+set}
919 ac_cv_env_CC_set=${CC+set}
920 ac_cv_env_CC_value=$CC
921 ac_env_CFLAGS_set=${CFLAGS+set}
922 ac_env_CFLAGS_value=$CFLAGS
923 ac_cv_env_CFLAGS_set=${CFLAGS+set}
924 ac_cv_env_CFLAGS_value=$CFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
959 # Report the --help message.
961 if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
967 Usage: $0 [OPTION]... [VAR=VALUE]...
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE. See below for descriptions of some of the useful variables.
972 Defaults for the options are specified in brackets.
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988 Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
999 For better control, use the options below.
1001 Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1019 --program-prefix=PREFIX prepend PREFIX to installed program names
1020 --program-suffix=SUFFIX append SUFFIX to installed program names
1021 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1024 --build=BUILD configure for building on BUILD [guessed]
1025 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1026 --target=TARGET configure for building compilers for TARGET [HOST]
1030 if test -n "$ac_init_help"; then
1031 case $ac_init_help in
1032 short | recursive ) echo "Configuration of LLVM 1.4:";;
1037 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1038 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --enable-optimized Build an optimized version of LLVM (default=no)
1040 --enable-profiled Build a profiled version of LLVM (default=no)
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --disable-dependency-tracking speeds up one-time build
1043 --enable-dependency-tracking do not reject slow dependency extractors
1044 --enable-shared[=PKGS]
1045 build shared libraries [default=yes]
1046 --enable-static[=PKGS]
1047 build static libraries [default=yes]
1048 --enable-fast-install[=PKGS]
1049 optimize for fast installation [default=yes]
1050 --disable-libtool-lock avoid locking (might break parallel builds)
1053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1055 --with-llvmgccdir Location of LLVM GCC front-end
1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1060 include additional configurations [automatic]
1062 Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1079 Report bugs to <llvmbugs@cs.uiuc.edu>.
1083 if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1090 if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 ac_dir_suffix= ac_top_builddir=
1099 .) # No --srcdir option. We are building in place.
1101 if test -z "$ac_top_builddir"; then
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1117 .) ac_abs_builddir="$ac_dir";;
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
1162 test -f $ac_srcdir/configure.in; then
1164 $ac_configure --help
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1176 generated by GNU Autoconf 2.59
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1189 It was created by LLVM $as_me 1.4, which was
1190 generated by GNU Autoconf 2.59. Invocation command line was
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_must_keep_next=false
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
1267 ac_must_keep_next=false # Got value, back to normal.
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 -* ) ac_must_keep_next=true ;;
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log. We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1307 # The following way of writing the cache mishandles newlines in values,
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1330 for ac_var in $ac_subst_vars
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1337 if test -n "$ac_subst_files"; then
1344 for ac_var in $ac_subst_files
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1352 if test -s confdefs.h; then
1359 sed "/^$/d" confdefs.h | sort
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1366 rm -f core *.core &&
1367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 # Predefined preprocessor variables.
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1425 if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1442 # Check that the precious variables saved in the cache have kept the same
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
1463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1466 echo "$as_me: former value: $ac_old_val" >&2;}
1467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1468 echo "$as_me: current value: $ac_new_val" >&2;}
1469 ac_cache_corrupted=:
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 for ac_dir in autoconf $srcdir/autoconf; do
1528 if test -f $ac_dir/install-sh; then
1530 ac_install_sh="$ac_aux_dir/install-sh -c"
1532 elif test -f $ac_dir/install.sh; then
1534 ac_install_sh="$ac_aux_dir/install.sh -c"
1536 elif test -f $ac_dir/shtool; then
1538 ac_install_sh="$ac_aux_dir/shtool install -c"
1542 if test -z "$ac_aux_dir"; then
1543 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1544 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1545 { (exit 1); exit 1; }; }
1547 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554 # Make sure we can run config.sub.
1555 $ac_config_sub sun4 >/dev/null 2>&1 ||
1556 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: checking build system type" >&5
1561 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562 if test "${ac_cv_build+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 ac_cv_build_alias=$build_alias
1566 test -z "$ac_cv_build_alias" &&
1567 ac_cv_build_alias=`$ac_config_guess`
1568 test -z "$ac_cv_build_alias" &&
1569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571 { (exit 1); exit 1; }; }
1572 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579 echo "${ECHO_T}$ac_cv_build" >&6
1581 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 echo "$as_me:$LINENO: checking host system type" >&5
1587 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588 if test "${ac_cv_host+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 ac_cv_host_alias=$host_alias
1592 test -z "$ac_cv_host_alias" &&
1593 ac_cv_host_alias=$ac_cv_build_alias
1594 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1600 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601 echo "${ECHO_T}$ac_cv_host" >&6
1603 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608 echo "$as_me:$LINENO: checking target system type" >&5
1609 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610 if test "${ac_cv_target+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 ac_cv_target_alias=$target_alias
1614 test "x$ac_cv_target_alias" = "x" &&
1615 ac_cv_target_alias=$ac_cv_host_alias
1616 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623 echo "${ECHO_T}$ac_cv_target" >&6
1624 target=$ac_cv_target
1625 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630 # The aliases save the names the user supplied, while $host etc.
1631 # will get canonicalized.
1632 test -n "$target_alias" &&
1633 test "$program_prefix$program_suffix$program_transform_name" = \
1635 program_prefix=${target_alias}-
1637 if test ${srcdir} != "." ; then
1638 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1639 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1640 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1641 { (exit 1); exit 1; }; }
1645 am__api_version="1.9"
1646 # Find a good install program. We prefer a C program (faster),
1647 # so one script is as good as another. But avoid the broken or
1648 # incompatible versions:
1649 # SysV /etc/install, /usr/sbin/install
1650 # SunOS /usr/etc/install
1651 # IRIX /sbin/install
1653 # AmigaOS /C/install, which installs bootblocks on floppy discs
1654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1657 # OS/2's system install, which has a completely different semantic
1658 # ./install, which can be erroneously created by make from ./install.sh.
1659 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1660 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1661 if test -z "$INSTALL"; then
1662 if test "${ac_cv_path_install+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 test -z "$as_dir" && as_dir=.
1670 # Account for people who put trailing slashes in PATH elements.
1672 ./ | .// | /cC/* | \
1673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1674 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1677 # OSF1 and SCO ODT 3.0 have their own names for install.
1678 # Don't use installbsd from OSF since it installs stuff as root
1680 for ac_prog in ginstall scoinst install; do
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1683 if test $ac_prog = install &&
1684 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1685 # AIX install. It has an incompatible calling convention.
1687 elif test $ac_prog = install &&
1688 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689 # program-specific install script used by HP pwplus--don't use.
1692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1704 if test "${ac_cv_path_install+set}" = set; then
1705 INSTALL=$ac_cv_path_install
1707 # As a last resort, use the slow shell script. We don't cache a
1708 # path for INSTALL within a source directory, because that will
1709 # break other packages using the cache if that directory is
1710 # removed, or if the path is relative.
1711 INSTALL=$ac_install_sh
1714 echo "$as_me:$LINENO: result: $INSTALL" >&5
1715 echo "${ECHO_T}$INSTALL" >&6
1717 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1718 # It thinks the first close brace ends the variable substitution.
1719 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1721 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1725 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1726 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1729 echo timestamp > conftest.file
1730 # Do `set' in a subshell so we don't clobber the current shell's
1731 # arguments. Must try -L first in case configure is actually a
1732 # symlink; some systems play weird games with the mod time of symlinks
1733 # (eg FreeBSD returns the mod time of the symlink's containing
1736 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1737 if test "$*" = "X"; then
1739 set X `ls -t $srcdir/configure conftest.file`
1742 if test "$*" != "X $srcdir/configure conftest.file" \
1743 && test "$*" != "X conftest.file $srcdir/configure"; then
1745 # If neither matched, then we have a broken ls. This can happen
1746 # if, for instance, CONFIG_SHELL is bash and it inherits a
1747 # broken ls alias from the environment. This has actually
1748 # happened. Such a system could not be considered "sane".
1749 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1750 alias in your environment" >&5
1751 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1752 alias in your environment" >&2;}
1753 { (exit 1); exit 1; }; }
1756 test "$2" = conftest.file
1762 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1763 Check your system clock" >&5
1764 echo "$as_me: error: newly created file is older than distributed files!
1765 Check your system clock" >&2;}
1766 { (exit 1); exit 1; }; }
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 test "$program_prefix" != NONE &&
1771 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1772 # Use a double $ so make ignores it.
1773 test "$program_suffix" != NONE &&
1774 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1775 # Double any \ or $. echo might interpret backslashes.
1776 # By default was `s,x,x', remove it if useless.
1777 cat <<\_ACEOF >conftest.sed
1778 s/[\\$]/&&/g;s/;s,x,x,$//
1780 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1783 # expand $ac_aux_dir to an absolute path
1784 am_aux_dir=`cd $ac_aux_dir && pwd`
1786 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1787 # Use eval to expand $SHELL
1788 if eval "$MISSING --run true"; then
1789 am_missing_run="$MISSING --run "
1792 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1793 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1796 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1797 # We used to keeping the `.' as first argument, in order to
1798 # allow $(mkdir_p) to be used without argument. As in
1799 # $(mkdir_p) $(somedir)
1800 # where $(somedir) is conditionally defined. However this is wrong
1802 # 1. if the package is installed by a user who cannot write `.'
1803 # make install will fail,
1804 # 2. the above comment should most certainly read
1805 # $(mkdir_p) $(DESTDIR)$(somedir)
1806 # so it does not work when $(somedir) is undefined and
1807 # $(DESTDIR) is not.
1808 # To support the latter case, we have to write
1809 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1810 # so the `.' trick is pointless.
1811 mkdir_p='mkdir -p --'
1813 # On NextStep and OpenStep, the `mkdir' command does not
1814 # recognize any option. It will interpret all options as
1815 # directories to create, and then abort because `.' already
1817 for d in ./-p ./--version;
1819 test -d $d && rmdir $d
1821 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1822 if test -f "$ac_aux_dir/mkinstalldirs"; then
1823 mkdir_p='$(mkinstalldirs)'
1825 mkdir_p='$(install_sh) -d'
1829 for ac_prog in gawk mawk nawk awk
1831 # Extract the first word of "$ac_prog", so it can be a program name with args.
1832 set dummy $ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_AWK+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$AWK"; then
1839 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_AWK="$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test -n "$AWK"; then
1859 echo "$as_me:$LINENO: result: $AWK" >&5
1860 echo "${ECHO_T}$AWK" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 test -n "$AWK" && break
1869 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1870 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1871 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1872 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 cat >conftest.make <<\_ACEOF
1877 @echo 'ac_maketemp="$(MAKE)"'
1879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1880 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1881 if test -n "$ac_maketemp"; then
1882 eval ac_cv_prog_make_${ac_make}_set=yes
1884 eval ac_cv_prog_make_${ac_make}_set=no
1888 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1889 echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 SET_MAKE="MAKE=${MAKE-make}"
1898 rm -rf .tst 2>/dev/null
1899 mkdir .tst 2>/dev/null
1900 if test -d .tst; then
1905 rmdir .tst 2>/dev/null
1907 # test to see if srcdir already configured
1908 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1909 test -f $srcdir/config.status; then
1910 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1911 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1912 { (exit 1); exit 1; }; }
1915 # test whether we have cygpath
1916 if test -z "$CYGPATH_W"; then
1917 if (cygpath --version) >/dev/null 2>/dev/null; then
1918 CYGPATH_W='cygpath -w'
1925 # Define the identity of the package.
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE "$PACKAGE"
1935 cat >>confdefs.h <<_ACEOF
1936 #define VERSION "$VERSION"
1939 # Some tools Automake needs.
1941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'. However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no; then
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$STRIP"; then
1971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 STRIP=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991 echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_STRIP"; then
2001 # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$ac_ct_STRIP"; then
2009 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_STRIP="strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2039 STRIP="$ac_cv_prog_STRIP"
2043 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2045 # We need awk for the "check" target. The system "awk" is bad on
2047 # Always define AMTAR for backward compatibility.
2049 AMTAR=${AMTAR-"${am_missing_run}tar"}
2051 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2062 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2063 if test "${with_llvmgccdir+set}" = set; then
2064 withval="$with_llvmgccdir"
2065 case "${withval}" in
2066 /*|*/*) LLVMGCCDIR=$withval ;;
2067 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-llvmgccdir" >&5
2068 echo "$as_me: error: bad value ${withval} for --with-llvmgccdir" >&2;}
2069 { (exit 1); exit 1; }; } ;;
2072 LLVMGCCDIR=/usr/local/llvm-gcc
2076 # Check whether --enable-optimized or --disable-optimized was given.
2077 if test "${enable_optimized+set}" = set; then
2078 enableval="$enable_optimized"
2079 case "${withval}" in
2080 yes) ENABLE_OPTIMIZED=1 ;;
2081 no) ENABLE_OPTIMIZED=0 ;;
2082 "") ENABLE_OPTIMIZED=0 ;;
2083 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-optimized" >&5
2084 echo "$as_me: error: bad value ${withval} for --enable-optimized" >&2;}
2085 { (exit 1); exit 1; }; } ;;
2092 # Check whether --enable-profiled or --disable-profiled was given.
2093 if test "${enable_profiled+set}" = set; then
2094 enableval="$enable_profiled"
2095 case "${withval}" in
2096 yes) ENABLE_PROFILED=1 ;;
2097 no) ENABLE_PROFILED=0 ;;
2098 "") ENABLE_PROFILED=0 ;;
2099 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-profiled" >&5
2100 echo "$as_me: error: bad value ${withval} for --enable-profiled" >&2;}
2101 { (exit 1); exit 1; }; } ;;
2106 ENABLE_PROFILED=$ENABLE_PROFILED
2109 if test $ENABLE_PROFILED = 1 ; then
2113 if test $ENABLE_OPTIMIZED = 1 ; then
2122 # Check whether --enable-jit or --disable-jit was given.
2123 if test "${enable_jit+set}" = set; then
2124 enableval="$enable_jit"
2130 if test ${enableval} = "no"
2136 *i*86*) JIT=TARGET_HAS_JIT=1
2138 *sparc*) JIT=TARGET_HAS_JIT=1
2146 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
2147 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
2149 *-*-aix*) llvm_platform_type="AIX" ;;
2150 *-*-cygwin*) llvm_platform_type="Cygwin" ;;
2151 *-*-darwin*) llvm_platform_type="Darwin" ;;
2152 *-*-freebsd*) llvm_platform_type="FreeBSD" ;;
2153 *-*-interix*) llvm_platform_type="Interix" ;;
2154 *-*-linux*) llvm_platform_type="Linux" ;;
2155 *-*-solaris*) llvm_platform_type="SunOS" ;;
2156 *-*-win32*) llvm_platform_type="Win32" ;;
2157 *-*-mingw*) llvm_platform_type="Win32" ;;
2159 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
2160 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
2161 { (exit 1); exit 1; }; }
2162 llvm_platform_type="Unknown"
2165 OS=$llvm_platform_type
2167 echo "$as_me:$LINENO: result: $llvm_platform_type" >&5
2168 echo "${ECHO_T}$llvm_platform_type" >&6
2170 echo "$as_me:$LINENO: checking target architecture" >&5
2171 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
2173 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
2178 i*86-*) ARCH="x86" ;;
2179 sparc*-*) ARCH="Sparc" ;;
2180 powerpc*-*) ARCH="PowerPC" ;;
2185 if test $ARCH = "x86"; then
2195 if test $ARCH = "Sparc"; then
2197 ARCH_SPARC_FALSE='#'
2205 if test $ARCH = "PowerPC"; then
2215 if test $ARCH = "Unknown"; then
2217 ARCH_UNKNOWN_FALSE='#'
2219 ARCH_UNKNOWN_TRUE='#'
2225 echo "$as_me:$LINENO: result: $ARCH" >&5
2226 echo "${ECHO_T}$ARCH" >&6
2228 DEPDIR="${am__leading_dot}deps"
2230 ac_config_commands="$ac_config_commands depfiles"
2233 am_make=${MAKE-make}
2234 cat > confinc << 'END'
2239 # If we don't find an include directive, just comment out the code.
2240 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2241 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2245 # First try GNU make style include.
2246 echo "include confinc" > confmf
2247 # We grep out `Entering directory' and `Leaving directory'
2248 # messages which can occur if `w' ends up in MAKEFLAGS.
2249 # In particular we don't look at `^make:' because GNU make might
2250 # be invoked under some other name (usually "gmake"), in which
2251 # case it prints its new name instead of `make'.
2252 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2257 # Now try BSD make style include.
2258 if test "$am__include" = "#"; then
2259 echo '.include "confinc"' > confmf
2260 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2261 am__include=.include
2268 echo "$as_me:$LINENO: result: $_am_result" >&5
2269 echo "${ECHO_T}$_am_result" >&6
2270 rm -f confinc confmf
2272 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2273 if test "${enable_dependency_tracking+set}" = set; then
2274 enableval="$enable_dependency_tracking"
2277 if test "x$enable_dependency_tracking" != xno; then
2278 am_depcomp="$ac_aux_dir/depcomp"
2283 if test "x$enable_dependency_tracking" != xno; then
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 if test -n "$ac_tool_prefix"; then
2299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2301 echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303 if test "${ac_cv_prog_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 if test -n "$CC"; then
2307 ac_cv_prog_CC="$CC" # Let the user override the test.
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 if test -n "$CC"; then
2327 echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6
2330 echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2335 if test -z "$ac_cv_prog_CC"; then
2337 # Extract the first word of "gcc", so it can be a program name with args.
2338 set dummy gcc; ac_word=$2
2339 echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$ac_ct_CC"; then
2345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_ac_ct_CC="gcc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2364 if test -n "$ac_ct_CC"; then
2365 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2366 echo "${ECHO_T}$ac_ct_CC" >&6
2368 echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2377 if test -z "$CC"; then
2378 if test -n "$ac_tool_prefix"; then
2379 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2380 set dummy ${ac_tool_prefix}cc; ac_word=$2
2381 echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383 if test "${ac_cv_prog_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396 ac_cv_prog_CC="${ac_tool_prefix}cc"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 if test -n "$CC"; then
2407 echo "$as_me:$LINENO: result: $CC" >&5
2408 echo "${ECHO_T}$CC" >&6
2410 echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2415 if test -z "$ac_cv_prog_CC"; then
2417 # Extract the first word of "cc", so it can be a program name with args.
2418 set dummy cc; ac_word=$2
2419 echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$ac_ct_CC"; then
2425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2434 ac_cv_prog_ac_ct_CC="cc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444 if test -n "$ac_ct_CC"; then
2445 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446 echo "${ECHO_T}$ac_ct_CC" >&6
2448 echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6
2458 if test -z "$CC"; then
2459 # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478 ac_prog_rejected=yes
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test $ac_prog_rejected = yes; then
2489 # We found a bogon in the path, so make sure we never use it.
2490 set dummy $ac_cv_prog_CC
2492 if test $# != 0; then
2493 # We chose a different compiler from the bogus one.
2494 # However, it has the same basename, so the bogon will be chosen
2495 # first if we set CC to just the basename; use the full file name.
2497 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2503 if test -n "$CC"; then
2504 echo "$as_me:$LINENO: result: $CC" >&5
2505 echo "${ECHO_T}$CC" >&6
2507 echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6
2512 if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2518 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 if test -n "$CC"; then
2544 echo "$as_me:$LINENO: result: $CC" >&5
2545 echo "${ECHO_T}$CC" >&6
2547 echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2551 test -n "$CC" && break
2554 if test -z "$CC"; then
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 if test -n "$ac_ct_CC"; then
2566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_ac_ct_CC="$ac_prog"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2585 if test -n "$ac_ct_CC"; then
2586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2587 echo "${ECHO_T}$ac_ct_CC" >&6
2589 echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6
2593 test -n "$ac_ct_CC" && break
2602 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: no acceptable C compiler found in \$PATH
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2608 # Provide some information about the compiler.
2609 echo "$as_me:$LINENO:" \
2610 "checking for C compiler version" >&5
2611 ac_compiler=`set X $ac_compile; echo $2`
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2613 (eval $ac_compiler --version </dev/null >&5) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2618 (eval $ac_compiler -v </dev/null >&5) 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2623 (eval $ac_compiler -V </dev/null >&5) 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2643 ac_clean_files_save=$ac_clean_files
2644 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2645 # Try to create an executable without -o first, disregard a.out.
2646 # It will help us diagnose broken compilers, and finding out an intuition
2648 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2649 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2650 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2651 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2652 (eval $ac_link_default) 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; then
2656 # Find the output, starting from the most likely. This scheme is
2657 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2660 # Be careful to initialize this variable, since it used to be cached.
2661 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2663 # b.out is created by i960 compilers.
2664 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2666 test -f "$ac_file" || continue
2668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2671 # This is the source file.
2674 # We found the default executable, but exeext='' is most
2678 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2679 # FIXME: I believe we export ac_cv_exeext for Libtool,
2680 # but it would be cool to find out if it's true. Does anybody
2681 # maintain Libtool? --akim.
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2692 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: C compiler cannot create executables
2695 See \`config.log' for more details." >&2;}
2696 { (exit 77); exit 77; }; }
2699 ac_exeext=$ac_cv_exeext
2700 echo "$as_me:$LINENO: result: $ac_file" >&5
2701 echo "${ECHO_T}$ac_file" >&6
2703 # Check the compiler produces executables we can run. If not, either
2704 # the compiler is broken, or we cross compile.
2705 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2706 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2707 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2708 # If not cross compiling, check that we can run a simple program.
2709 if test "$cross_compiling" != yes; then
2710 if { ac_try='./$ac_file'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 if test "$cross_compiling" = maybe; then
2721 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2722 If you meant to cross compile, use \`--host'.
2723 See \`config.log' for more details." >&5
2724 echo "$as_me: error: cannot run C compiled programs.
2725 If you meant to cross compile, use \`--host'.
2726 See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2731 echo "$as_me:$LINENO: result: yes" >&5
2732 echo "${ECHO_T}yes" >&6
2734 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2735 ac_clean_files=$ac_clean_files_save
2736 # Check the compiler produces executables we can run. If not, either
2737 # the compiler is broken, or we cross compile.
2738 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2739 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2740 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2741 echo "${ECHO_T}$cross_compiling" >&6
2743 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2744 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2746 (eval $ac_link) 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; then
2750 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2751 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2752 # work properly (i.e., refer to `conftest.exe'), while it won't with
2754 for ac_file in conftest.exe conftest conftest.*; do
2755 test -f "$ac_file" || continue
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2766 See \`config.log' for more details." >&5
2767 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2768 See \`config.log' for more details." >&2;}
2769 { (exit 1); exit 1; }; }
2772 rm -f conftest$ac_cv_exeext
2773 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2774 echo "${ECHO_T}$ac_cv_exeext" >&6
2776 rm -f conftest.$ac_ext
2777 EXEEXT=$ac_cv_exeext
2779 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2780 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2781 if test "${ac_cv_objext+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2799 rm -f conftest.o conftest.obj
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; then
2805 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2808 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2816 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2817 See \`config.log' for more details." >&5
2818 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2819 See \`config.log' for more details." >&2;}
2820 { (exit 1); exit 1; }; }
2823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2825 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2826 echo "${ECHO_T}$ac_cv_objext" >&6
2827 OBJEXT=$ac_cv_objext
2829 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2830 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2885 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2887 GCC=`test $ac_compiler_gnu = yes && echo yes`
2888 ac_test_CFLAGS=${CFLAGS+set}
2889 ac_save_CFLAGS=$CFLAGS
2891 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2892 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2893 if test "${ac_cv_prog_cc_g+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>conftest.er1
2915 grep -v '^ *+' conftest.er1 >conftest.err
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } &&
2920 { ac_try='test -z "$ac_c_werror_flag"
2921 || test ! -s conftest.err'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; } &&
2927 { ac_try='test -s conftest.$ac_objext'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2942 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2943 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2944 if test "$ac_test_CFLAGS" = set; then
2945 CFLAGS=$ac_save_CFLAGS
2946 elif test $ac_cv_prog_cc_g = yes; then
2947 if test "$GCC" = yes; then
2953 if test "$GCC" = yes; then
2959 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2960 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2961 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 ac_cv_prog_cc_stdc=no
2966 cat >conftest.$ac_ext <<_ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2974 #include <sys/types.h>
2975 #include <sys/stat.h>
2976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2977 struct buf { int x; };
2978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2979 static char *e (p, i)
2985 static char *f (char * (*g) (char **, int), char **p, ...)
2990 s = g (p, va_arg (v,int));
2995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2996 function prototypes and stuff, but not '\xHH' hex character constants.
2997 These don't provoke an error unfortunately, instead are silently treated
2998 as 'x'. The following induces an error, until -std1 is added to get
2999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3000 array size at least. It's necessary to write '\x00'==0 to get something
3001 that's true only with -std1. */
3002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3004 int test (int i, double x);
3005 struct s1 {int (*f) (int a);};
3006 struct s2 {int (*f) (double a);};
3007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3013 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3018 # Don't try gcc -ansi; that turns off useful extensions and
3019 # breaks some systems' header files.
3020 # AIX -qlanglvl=ansi
3021 # Ultrix and OSF/1 -std1
3022 # HP-UX 10.20 and later -Ae
3023 # HP-UX older versions -Aa -D_HPUX_SOURCE
3024 # SVR4 -Xc -D__EXTENSIONS__
3025 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3027 CC="$ac_save_CC $ac_arg"
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_cv_prog_cc_stdc=$ac_arg
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3057 rm -f conftest.err conftest.$ac_objext
3059 rm -f conftest.$ac_ext conftest.$ac_objext
3064 case "x$ac_cv_prog_cc_stdc" in
3066 echo "$as_me:$LINENO: result: none needed" >&5
3067 echo "${ECHO_T}none needed" >&6 ;;
3069 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3070 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3071 CC="$CC $ac_cv_prog_cc_stdc" ;;
3074 # Some people use a C++ compiler to compile C. Since we use `exit',
3075 # in C++ we need to declare it. In case someone uses the same compiler
3076 # for both compiling C and C++ we need to have the C++ compiler decide
3077 # the declaration of exit, since it's the most demanding environment.
3078 cat >conftest.$ac_ext <<_ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -z "$ac_c_werror_flag"
3093 || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 for ac_declaration in \
3107 'extern "C" void std::exit (int) throw (); using std::exit;' \
3108 'extern "C" void std::exit (int); using std::exit;' \
3109 'extern "C" void exit (int) throw ();' \
3110 'extern "C" void exit (int);' \
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag"
3139 || test ! -s conftest.err'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.$ac_objext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176 (eval $ac_compile) 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try='test -z "$ac_c_werror_flag"
3184 || test ! -s conftest.err'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; } &&
3190 { ac_try='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205 if test -n "$ac_declaration"; then
3206 echo '#ifdef __cplusplus' >>confdefs.h
3207 echo $ac_declaration >>confdefs.h
3208 echo '#endif' >>confdefs.h
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 depcc="$CC" am_compiler_list=
3225 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3226 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3227 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3231 # We make a subdir and do the tests there. Otherwise we can end up
3232 # making bogus files that we don't know about and never remove. For
3233 # instance it was reported that on HP-UX the gcc test will end up
3234 # making a dummy file named `D' -- because `-MD' means `put the output
3237 # Copy depcomp to subdir because otherwise we won't find it if we're
3238 # using a relative directory.
3239 cp "$am_depcomp" conftest.dir
3241 # We will build objects and dependencies in a subdirectory because
3242 # it helps to detect inapplicable dependency modes. For instance
3243 # both Tru64's cc and ICC support -MD to output dependencies as a
3244 # side effect of compilation, but ICC will put the dependencies in
3245 # the current directory while Tru64 will put them in the object
3249 am_cv_CC_dependencies_compiler_type=none
3250 if test "$am_compiler_list" = ""; then
3251 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3253 for depmode in $am_compiler_list; do
3254 # Setup a source with many dependencies, because some compilers
3255 # like to wrap large dependency lists on column 80 (with \), and
3256 # we should not choose a depcomp mode which is confused by this.
3258 # We need to recreate these files for each test, as the compiler may
3259 # overwrite some of them when testing with obscure command lines.
3260 # This happens at least with the AIX C compiler.
3262 for i in 1 2 3 4 5 6; do
3263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3264 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3265 # Solaris 8's {/usr,}/bin/sh.
3266 touch sub/conftst$i.h
3268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3272 # after this tag, mechanisms are not by side-effect, so they'll
3273 # only be used when explicitly requested
3274 if test "x$enable_dependency_tracking" = xyes; then
3282 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3283 # mode. It turns out that the SunPro C++ compiler does not properly
3284 # handle `-M -o', and we need to detect this.
3285 if depmode=$depmode \
3286 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3287 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3288 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3289 >/dev/null 2>conftest.err &&
3290 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3291 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3292 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3293 # icc doesn't choke on unknown options, it will just issue warnings
3294 # or remarks (even with -Werror). So we grep stderr for any message
3295 # that says an option was ignored or not supported.
3296 # When given -MP, icc 7.0 and 7.1 complain thusly:
3297 # icc: Command line warning: ignoring option '-M'; no argument required
3298 # The diagnosis changed in icc 8.0:
3299 # icc: Command line remark: option '-MP' not supported
3300 if (grep 'ignoring option' conftest.err ||
3301 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3302 am_cv_CC_dependencies_compiler_type=$depmode
3311 am_cv_CC_dependencies_compiler_type=none
3315 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3316 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3317 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3322 test "x$enable_dependency_tracking" != xno \
3323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3325 am__fastdepCC_FALSE='#'
3327 am__fastdepCC_TRUE='#'
3328 am__fastdepCC_FALSE=
3333 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3334 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3335 if test "${ac_cv_c_bigendian+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 # See if sys/param.h defines the BYTE_ORDER macro.
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 #include <sys/types.h>
3346 #include <sys/param.h>
3351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 # It does; now see whether it defined to BIG_ENDIAN or not.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <sys/types.h>
3389 #include <sys/param.h>
3394 #if BYTE_ORDER != BIG_ENDIAN
3402 rm -f conftest.$ac_objext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 (eval $ac_compile) 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_c_werror_flag"
3412 || test ! -s conftest.err'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; } &&
3418 { ac_try='test -s conftest.$ac_objext'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; }; then
3424 ac_cv_c_bigendian=yes
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 ac_cv_c_bigendian=no
3431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 # It does not; compile a test program.
3437 if test "$cross_compiling" = yes; then
3438 # try to guess the endianness by grepping values into an object file
3439 ac_cv_c_bigendian=unknown
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3447 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3448 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3449 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3450 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3451 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3455 _ascii (); _ebcdic ();
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>conftest.er1
3464 grep -v '^ *+' conftest.er1 >conftest.err
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -z "$ac_c_werror_flag"
3470 || test ! -s conftest.err'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest.$ac_objext'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3483 ac_cv_c_bigendian=yes
3485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3486 if test "$ac_cv_c_bigendian" = unknown; then
3487 ac_cv_c_bigendian=no
3489 # finding both strings is unlikely to happen, but who knows?
3490 ac_cv_c_bigendian=unknown
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3509 /* Are we little or big endian? From Harbison&Steele. */
3513 char c[sizeof (long)];
3516 exit (u.c[sizeof (long) - 1] == 1);
3519 rm -f conftest$ac_exeext
3520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3521 (eval $ac_link) 2>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_c_bigendian=no
3532 echo "$as_me: program exited with status $ac_status" >&5
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3537 ac_cv_c_bigendian=yes
3539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3544 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3545 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3546 case $ac_cv_c_bigendian in
3554 { { echo "$as_me:$LINENO: error: unknown endianness
3555 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3556 echo "$as_me: error: unknown endianness
3557 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3558 { (exit 1); exit 1; }; } ;;
3563 # Find a good install program. We prefer a C program (faster),
3564 # so one script is as good as another. But avoid the broken or
3565 # incompatible versions:
3566 # SysV /etc/install, /usr/sbin/install
3567 # SunOS /usr/etc/install
3568 # IRIX /sbin/install
3570 # AmigaOS /C/install, which installs bootblocks on floppy discs
3571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3574 # OS/2's system install, which has a completely different semantic
3575 # ./install, which can be erroneously created by make from ./install.sh.
3576 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3577 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3578 if test -z "$INSTALL"; then
3579 if test "${ac_cv_path_install+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir=.
3587 # Account for people who put trailing slashes in PATH elements.
3589 ./ | .// | /cC/* | \
3590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3591 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3594 # OSF1 and SCO ODT 3.0 have their own names for install.
3595 # Don't use installbsd from OSF since it installs stuff as root
3597 for ac_prog in ginstall scoinst install; do
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3600 if test $ac_prog = install &&
3601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3602 # AIX install. It has an incompatible calling convention.
3604 elif test $ac_prog = install &&
3605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3606 # program-specific install script used by HP pwplus--don't use.
3609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3621 if test "${ac_cv_path_install+set}" = set; then
3622 INSTALL=$ac_cv_path_install
3624 # As a last resort, use the slow shell script. We don't cache a
3625 # path for INSTALL within a source directory, because that will
3626 # break other packages using the cache if that directory is
3627 # removed, or if the path is relative.
3628 INSTALL=$ac_install_sh
3631 echo "$as_me:$LINENO: result: $INSTALL" >&5
3632 echo "${ECHO_T}$INSTALL" >&6
3634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3635 # It thinks the first close brace ends the variable substitution.
3636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3644 ac_cpp='$CXXCPP $CPPFLAGS'
3645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_CXX+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if test -n "$CXX"; then
3659 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CXX"; then
3679 echo "$as_me:$LINENO: result: $CXX" >&5
3680 echo "${ECHO_T}$CXX" >&6
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3686 test -n "$CXX" && break
3689 if test -z "$CXX"; then
3691 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3693 # Extract the first word of "$ac_prog", so it can be a program name with args.
3694 set dummy $ac_prog; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 if test -n "$ac_ct_CXX"; then
3701 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_ac_ct_CXX="$ac_prog"
3711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3720 if test -n "$ac_ct_CXX"; then
3721 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3722 echo "${ECHO_T}$ac_ct_CXX" >&6
3724 echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3728 test -n "$ac_ct_CXX" && break
3730 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3736 # Provide some information about the compiler.
3737 echo "$as_me:$LINENO:" \
3738 "checking for C++ compiler version" >&5
3739 ac_compiler=`set X $ac_compile; echo $2`
3740 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3741 (eval $ac_compiler --version </dev/null >&5) 2>&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }
3745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3746 (eval $ac_compiler -v </dev/null >&5) 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }
3750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3751 (eval $ac_compiler -V </dev/null >&5) 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }
3756 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3757 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3758 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3779 rm -f conftest.$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try='test -z "$ac_cxx_werror_flag"
3789 || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest.$ac_objext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3812 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3814 GXX=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CXXFLAGS=${CXXFLAGS+set}
3816 ac_save_CXXFLAGS=$CXXFLAGS
3818 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3819 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3820 if test "${ac_cv_prog_cxx_g+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3838 rm -f conftest.$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_cxx_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_cv_prog_cxx_g=yes
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3869 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3870 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3871 if test "$ac_test_CXXFLAGS" = set; then
3872 CXXFLAGS=$ac_save_CXXFLAGS
3873 elif test $ac_cv_prog_cxx_g = yes; then
3874 if test "$GXX" = yes; then
3880 if test "$GXX" = yes; then
3886 for ac_declaration in \
3888 'extern "C" void std::exit (int) throw (); using std::exit;' \
3889 'extern "C" void std::exit (int); using std::exit;' \
3890 'extern "C" void exit (int) throw ();' \
3891 'extern "C" void exit (int);' \
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3910 rm -f conftest.$ac_objext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912 (eval $ac_compile) 2>conftest.er1
3914 grep -v '^ *+' conftest.er1 >conftest.err
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } &&
3919 { ac_try='test -z "$ac_cxx_werror_flag"
3920 || test ! -s conftest.err'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; } &&
3926 { ac_try='test -s conftest.$ac_objext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_cxx_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986 if test -n "$ac_declaration"; then
3987 echo '#ifdef __cplusplus' >>confdefs.h
3988 echo $ac_declaration >>confdefs.h
3989 echo '#endif' >>confdefs.h
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 depcc="$CXX" am_compiler_list=
4000 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4001 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4002 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4006 # We make a subdir and do the tests there. Otherwise we can end up
4007 # making bogus files that we don't know about and never remove. For
4008 # instance it was reported that on HP-UX the gcc test will end up
4009 # making a dummy file named `D' -- because `-MD' means `put the output
4012 # Copy depcomp to subdir because otherwise we won't find it if we're
4013 # using a relative directory.
4014 cp "$am_depcomp" conftest.dir
4016 # We will build objects and dependencies in a subdirectory because
4017 # it helps to detect inapplicable dependency modes. For instance
4018 # both Tru64's cc and ICC support -MD to output dependencies as a
4019 # side effect of compilation, but ICC will put the dependencies in
4020 # the current directory while Tru64 will put them in the object
4024 am_cv_CXX_dependencies_compiler_type=none
4025 if test "$am_compiler_list" = ""; then
4026 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4028 for depmode in $am_compiler_list; do
4029 # Setup a source with many dependencies, because some compilers
4030 # like to wrap large dependency lists on column 80 (with \), and
4031 # we should not choose a depcomp mode which is confused by this.
4033 # We need to recreate these files for each test, as the compiler may
4034 # overwrite some of them when testing with obscure command lines.
4035 # This happens at least with the AIX C compiler.
4037 for i in 1 2 3 4 5 6; do
4038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4040 # Solaris 8's {/usr,}/bin/sh.
4041 touch sub/conftst$i.h
4043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047 # after this tag, mechanisms are not by side-effect, so they'll
4048 # only be used when explicitly requested
4049 if test "x$enable_dependency_tracking" = xyes; then
4057 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4058 # mode. It turns out that the SunPro C++ compiler does not properly
4059 # handle `-M -o', and we need to detect this.
4060 if depmode=$depmode \
4061 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4062 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4063 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4064 >/dev/null 2>conftest.err &&
4065 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4066 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4067 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4068 # icc doesn't choke on unknown options, it will just issue warnings
4069 # or remarks (even with -Werror). So we grep stderr for any message
4070 # that says an option was ignored or not supported.
4071 # When given -MP, icc 7.0 and 7.1 complain thusly:
4072 # icc: Command line warning: ignoring option '-M'; no argument required
4073 # The diagnosis changed in icc 8.0:
4074 # icc: Command line remark: option '-MP' not supported
4075 if (grep 'ignoring option' conftest.err ||
4076 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4077 am_cv_CXX_dependencies_compiler_type=$depmode
4086 am_cv_CXX_dependencies_compiler_type=none
4090 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4091 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4092 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4097 test "x$enable_dependency_tracking" != xno \
4098 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4099 am__fastdepCXX_TRUE=
4100 am__fastdepCXX_FALSE='#'
4102 am__fastdepCXX_TRUE='#'
4103 am__fastdepCXX_FALSE=
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_CC+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 if test -n "$CC"; then
4121 ac_cv_prog_CC="$CC" # Let the user override the test.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 if test -n "$CC"; then
4141 echo "$as_me:$LINENO: result: $CC" >&5
4142 echo "${ECHO_T}$CC" >&6
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4149 if test -z "$ac_cv_prog_CC"; then
4151 # Extract the first word of "gcc", so it can be a program name with args.
4152 set dummy gcc; ac_word=$2
4153 echo "$as_me:$LINENO: checking for $ac_word" >&5
4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 if test -n "$ac_ct_CC"; then
4159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_CC="gcc"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4178 if test -n "$ac_ct_CC"; then
4179 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4180 echo "${ECHO_T}$ac_ct_CC" >&6
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4191 if test -z "$CC"; then
4192 if test -n "$ac_tool_prefix"; then
4193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}cc; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_CC+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 if test -n "$CC"; then
4201 ac_cv_prog_CC="$CC" # Let the user override the test.
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_CC="${ac_tool_prefix}cc"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 if test -n "$CC"; then
4221 echo "$as_me:$LINENO: result: $CC" >&5
4222 echo "${ECHO_T}$CC" >&6
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4229 if test -z "$ac_cv_prog_CC"; then
4231 # Extract the first word of "cc", so it can be a program name with args.
4232 set dummy cc; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 if test -n "$ac_ct_CC"; then
4239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_ac_ct_CC="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4260 echo "${ECHO_T}$ac_ct_CC" >&6
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4272 if test -z "$CC"; then
4273 # Extract the first word of "cc", so it can be a program name with args.
4274 set dummy cc; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_CC+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4292 ac_prog_rejected=yes
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 if test $ac_prog_rejected = yes; then
4303 # We found a bogon in the path, so make sure we never use it.
4304 set dummy $ac_cv_prog_CC
4306 if test $# != 0; then
4307 # We chose a different compiler from the bogus one.
4308 # However, it has the same basename, so the bogon will be chosen
4309 # first if we set CC to just the basename; use the full file name.
4311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4317 if test -n "$CC"; then
4318 echo "$as_me:$LINENO: result: $CC" >&5
4319 echo "${ECHO_T}$CC" >&6
4321 echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4326 if test -z "$CC"; then
4327 if test -n "$ac_tool_prefix"; then
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_CC+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC="$CC" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 if test -n "$CC"; then
4358 echo "$as_me:$LINENO: result: $CC" >&5
4359 echo "${ECHO_T}$CC" >&6
4361 echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4365 test -n "$CC" && break
4368 if test -z "$CC"; then
4372 # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test -n "$ac_ct_CC"; then
4380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_ac_ct_CC="$ac_prog"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4399 if test -n "$ac_ct_CC"; then
4400 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4401 echo "${ECHO_T}$ac_ct_CC" >&6
4403 echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4407 test -n "$ac_ct_CC" && break
4416 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4417 See \`config.log' for more details." >&5
4418 echo "$as_me: error: no acceptable C compiler found in \$PATH
4419 See \`config.log' for more details." >&2;}
4420 { (exit 1); exit 1; }; }
4422 # Provide some information about the compiler.
4423 echo "$as_me:$LINENO:" \
4424 "checking for C compiler version" >&5
4425 ac_compiler=`set X $ac_compile; echo $2`
4426 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4427 (eval $ac_compiler --version </dev/null >&5) 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }
4431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4432 (eval $ac_compiler -v </dev/null >&5) 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }
4436 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4437 (eval $ac_compiler -V </dev/null >&5) 2>&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }
4442 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4443 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4444 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4469 grep -v '^ *+' conftest.er1 >conftest.err
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -z "$ac_c_werror_flag"
4475 || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4498 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4499 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4500 GCC=`test $ac_compiler_gnu = yes && echo yes`
4501 ac_test_CFLAGS=${CFLAGS+set}
4502 ac_save_CFLAGS=$CFLAGS
4504 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4506 if test "${ac_cv_prog_cc_g+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 cat >conftest.$ac_ext <<_ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4556 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4557 if test "$ac_test_CFLAGS" = set; then
4558 CFLAGS=$ac_save_CFLAGS
4559 elif test $ac_cv_prog_cc_g = yes; then
4560 if test "$GCC" = yes; then
4566 if test "$GCC" = yes; then
4572 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4573 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4574 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 ac_cv_prog_cc_stdc=no
4579 cat >conftest.$ac_ext <<_ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4587 #include <sys/types.h>
4588 #include <sys/stat.h>
4589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4590 struct buf { int x; };
4591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4592 static char *e (p, i)
4598 static char *f (char * (*g) (char **, int), char **p, ...)
4603 s = g (p, va_arg (v,int));
4608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4609 function prototypes and stuff, but not '\xHH' hex character constants.
4610 These don't provoke an error unfortunately, instead are silently treated
4611 as 'x'. The following induces an error, until -std1 is added to get
4612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4613 array size at least. It's necessary to write '\x00'==0 to get something
4614 that's true only with -std1. */
4615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4617 int test (int i, double x);
4618 struct s1 {int (*f) (int a);};
4619 struct s2 {int (*f) (double a);};
4620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4631 # Don't try gcc -ansi; that turns off useful extensions and
4632 # breaks some systems' header files.
4633 # AIX -qlanglvl=ansi
4634 # Ultrix and OSF/1 -std1
4635 # HP-UX 10.20 and later -Ae
4636 # HP-UX older versions -Aa -D_HPUX_SOURCE
4637 # SVR4 -Xc -D__EXTENSIONS__
4638 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4640 CC="$ac_save_CC $ac_arg"
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_cv_prog_cc_stdc=$ac_arg
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4670 rm -f conftest.err conftest.$ac_objext
4672 rm -f conftest.$ac_ext conftest.$ac_objext
4677 case "x$ac_cv_prog_cc_stdc" in
4679 echo "$as_me:$LINENO: result: none needed" >&5
4680 echo "${ECHO_T}none needed" >&6 ;;
4682 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4683 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4684 CC="$CC $ac_cv_prog_cc_stdc" ;;
4687 # Some people use a C++ compiler to compile C. Since we use `exit',
4688 # in C++ we need to declare it. In case someone uses the same compiler
4689 # for both compiling C and C++ we need to have the C++ compiler decide
4690 # the declaration of exit, since it's the most demanding environment.
4691 cat >conftest.$ac_ext <<_ACEOF
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>conftest.er1
4700 grep -v '^ *+' conftest.er1 >conftest.err
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -z "$ac_c_werror_flag"
4706 || test ! -s conftest.err'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 for ac_declaration in \
4720 'extern "C" void std::exit (int) throw (); using std::exit;' \
4721 'extern "C" void std::exit (int); using std::exit;' \
4722 'extern "C" void exit (int) throw ();' \
4723 'extern "C" void exit (int);' \
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744 (eval $ac_compile) 2>conftest.er1
4746 grep -v '^ *+' conftest.er1 >conftest.err
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -z "$ac_c_werror_flag"
4752 || test ! -s conftest.err'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; } &&
4758 { ac_try='test -s conftest.$ac_objext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772 cat >conftest.$ac_ext <<_ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4791 grep -v '^ *+' conftest.er1 >conftest.err
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 if test -n "$ac_declaration"; then
4819 echo '#ifdef __cplusplus' >>confdefs.h
4820 echo $ac_declaration >>confdefs.h
4821 echo '#endif' >>confdefs.h
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836 depcc="$CC" am_compiler_list=
4838 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4839 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4840 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4844 # We make a subdir and do the tests there. Otherwise we can end up
4845 # making bogus files that we don't know about and never remove. For
4846 # instance it was reported that on HP-UX the gcc test will end up
4847 # making a dummy file named `D' -- because `-MD' means `put the output
4850 # Copy depcomp to subdir because otherwise we won't find it if we're
4851 # using a relative directory.
4852 cp "$am_depcomp" conftest.dir
4854 # We will build objects and dependencies in a subdirectory because
4855 # it helps to detect inapplicable dependency modes. For instance
4856 # both Tru64's cc and ICC support -MD to output dependencies as a
4857 # side effect of compilation, but ICC will put the dependencies in
4858 # the current directory while Tru64 will put them in the object
4862 am_cv_CC_dependencies_compiler_type=none
4863 if test "$am_compiler_list" = ""; then
4864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4866 for depmode in $am_compiler_list; do
4867 # Setup a source with many dependencies, because some compilers
4868 # like to wrap large dependency lists on column 80 (with \), and
4869 # we should not choose a depcomp mode which is confused by this.
4871 # We need to recreate these files for each test, as the compiler may
4872 # overwrite some of them when testing with obscure command lines.
4873 # This happens at least with the AIX C compiler.
4875 for i in 1 2 3 4 5 6; do
4876 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4877 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4878 # Solaris 8's {/usr,}/bin/sh.
4879 touch sub/conftst$i.h
4881 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4885 # after this tag, mechanisms are not by side-effect, so they'll
4886 # only be used when explicitly requested
4887 if test "x$enable_dependency_tracking" = xyes; then
4895 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4896 # mode. It turns out that the SunPro C++ compiler does not properly
4897 # handle `-M -o', and we need to detect this.
4898 if depmode=$depmode \
4899 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4901 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4902 >/dev/null 2>conftest.err &&
4903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4904 grep sub/conftest.${OBJEXT-o} 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 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4929 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4930 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4935 test "x$enable_dependency_tracking" != xno \
4936 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4938 am__fastdepCC_FALSE='#'
4940 am__fastdepCC_TRUE='#'
4941 am__fastdepCC_FALSE=
4946 ac_cpp='$CPP $CPPFLAGS'
4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4951 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4952 # On Suns, sometimes $CPP names a directory.
4953 if test -n "$CPP" && test -d "$CPP"; then
4956 if test -z "$CPP"; then
4957 if test "${ac_cv_prog_CPP+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 # Double quotes because CPP needs to be expanded
4961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4964 for ac_c_preproc_warn_flag in '' yes
4966 # Use a header file that comes with gcc, so configuring glibc
4967 # with a fresh cross-compiler works.
4968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969 # <limits.h> exists even on freestanding compilers.
4970 # On the NeXT, cc -E runs the code through the compiler's parser,
4971 # not just through cpp. "Syntax error" is here to catch this case.
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4979 # include <limits.h>
4981 # include <assert.h>
4985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4988 grep -v '^ *+' conftest.er1 >conftest.err
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } >/dev/null; then
4993 if test -s conftest.err; then
4994 ac_cpp_err=$ac_c_preproc_warn_flag
4995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5002 if test -z "$ac_cpp_err"; then
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 # Broken: fails on valid input.
5011 rm -f conftest.err conftest.$ac_ext
5013 # OK, works on sane cases. Now check whether non-existent headers
5014 # can be detected and how.
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 #include <ac_nonexistent.h>
5023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1 >conftest.err
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } >/dev/null; then
5031 if test -s conftest.err; then
5032 ac_cpp_err=$ac_c_preproc_warn_flag
5033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5040 if test -z "$ac_cpp_err"; then
5041 # Broken: success on invalid input.
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 # Passes both tests.
5051 rm -f conftest.err conftest.$ac_ext
5054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5055 rm -f conftest.err conftest.$ac_ext
5056 if $ac_preproc_ok; then
5068 echo "$as_me:$LINENO: result: $CPP" >&5
5069 echo "${ECHO_T}$CPP" >&6
5071 for ac_c_preproc_warn_flag in '' yes
5073 # Use a header file that comes with gcc, so configuring glibc
5074 # with a fresh cross-compiler works.
5075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5076 # <limits.h> exists even on freestanding compilers.
5077 # On the NeXT, cc -E runs the code through the compiler's parser,
5078 # not just through cpp. "Syntax error" is here to catch this case.
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5086 # include <limits.h>
5088 # include <assert.h>
5092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095 grep -v '^ *+' conftest.er1 >conftest.err
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } >/dev/null; then
5100 if test -s conftest.err; then
5101 ac_cpp_err=$ac_c_preproc_warn_flag
5102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5109 if test -z "$ac_cpp_err"; then
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 # Broken: fails on valid input.
5118 rm -f conftest.err conftest.$ac_ext
5120 # OK, works on sane cases. Now check whether non-existent headers
5121 # can be detected and how.
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #include <ac_nonexistent.h>
5130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5133 grep -v '^ *+' conftest.er1 >conftest.err
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } >/dev/null; then
5138 if test -s conftest.err; then
5139 ac_cpp_err=$ac_c_preproc_warn_flag
5140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5147 if test -z "$ac_cpp_err"; then
5148 # Broken: success on invalid input.
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 # Passes both tests.
5158 rm -f conftest.err conftest.$ac_ext
5161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5162 rm -f conftest.err conftest.$ac_ext
5163 if $ac_preproc_ok; then
5166 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5167 See \`config.log' for more details." >&5
5168 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5169 See \`config.log' for more details." >&2;}
5170 { (exit 1); exit 1; }; }
5174 ac_cpp='$CPP $CPPFLAGS'
5175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180 echo "$as_me:$LINENO: checking " >&5
5181 echo $ECHO_N "checking ... $ECHO_C" >&6
5182 if test "${ac_cv_has_flex+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 for ac_prog in flex lex
5187 # Extract the first word of "$ac_prog", so it can be a program name with args.
5188 set dummy $ac_prog; ac_word=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_LEX+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 if test -n "$LEX"; then
5195 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_LEX="$ac_prog"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 if test -n "$LEX"; then
5215 echo "$as_me:$LINENO: result: $LEX" >&5
5216 echo "${ECHO_T}$LEX" >&6
5218 echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5222 test -n "$LEX" && break
5224 test -n "$LEX" || LEX=":"
5226 if test -z "$LEXLIB"
5228 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5229 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5230 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_check_lib_save_LIBS=$LIBS
5235 cat >conftest.$ac_ext <<_ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5242 /* Override any gcc2 internal prototype to avoid an error. */
5246 /* We use char because int might match the return type of a gcc2
5247 builtin and then its argument prototype would still apply. */
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5259 (eval $ac_link) 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest$ac_exeext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_lib_fl_yywrap=yes
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_cv_lib_fl_yywrap=no
5286 rm -f conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
5288 LIBS=$ac_check_lib_save_LIBS
5290 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5291 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5292 if test $ac_cv_lib_fl_yywrap = yes; then
5295 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5296 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5297 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 ac_check_lib_save_LIBS=$LIBS
5302 cat >conftest.$ac_ext <<_ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5309 /* Override any gcc2 internal prototype to avoid an error. */
5313 /* We use char because int might match the return type of a gcc2
5314 builtin and then its argument prototype would still apply. */
5324 rm -f conftest.$ac_objext conftest$ac_exeext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>conftest.er1
5328 grep -v '^ *+' conftest.er1 >conftest.err
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try='test -z "$ac_c_werror_flag"
5334 || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try='test -s conftest$ac_exeext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_lib_l_yywrap=yes
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_cv_lib_l_yywrap=no
5353 rm -f conftest.err conftest.$ac_objext \
5354 conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5357 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5358 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5359 if test $ac_cv_lib_l_yywrap = yes; then
5367 if test "x$LEX" != "x:"; then
5368 echo "$as_me:$LINENO: checking lex output file root" >&5
5369 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5370 if test "${ac_cv_prog_lex_root+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 # The minimal lex program is just a single line: %%. But some broken lexes
5374 # (Solaris, I think it was) want two %% lines, so accommodate them.
5375 cat >conftest.l <<_ACEOF
5379 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5380 (eval $LEX conftest.l) 2>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }
5384 if test -f lex.yy.c; then
5385 ac_cv_prog_lex_root=lex.yy
5386 elif test -f lexyy.c; then
5387 ac_cv_prog_lex_root=lexyy
5389 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5390 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5391 { (exit 1); exit 1; }; }
5394 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5395 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5397 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5399 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5400 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5401 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 # POSIX says lex can declare yytext either as a pointer or an array; the
5405 # default is implementation-dependent. Figure out which it is, since
5406 # not all implementations provide the %pointer and %array declarations.
5407 ac_cv_prog_lex_yytext_pointer=no
5408 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5410 LIBS="$LIBS $LEXLIB"
5411 cat >conftest.$ac_ext <<_ACEOF
5412 `cat $LEX_OUTPUT_ROOT.c`
5414 rm -f conftest.$ac_objext conftest$ac_exeext
5415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>conftest.er1
5418 grep -v '^ *+' conftest.er1 >conftest.err
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } &&
5423 { ac_try='test -z "$ac_c_werror_flag"
5424 || test ! -s conftest.err'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; } &&
5430 { ac_try='test -s conftest$ac_exeext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_cv_prog_lex_yytext_pointer=yes
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5442 rm -f conftest.err conftest.$ac_objext \
5443 conftest$ac_exeext conftest.$ac_ext
5445 rm -f "${LEX_OUTPUT_ROOT}.c"
5448 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5449 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5450 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5452 cat >>confdefs.h <<\_ACEOF
5453 #define YYTEXT_POINTER 1
5461 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
5462 echo "${ECHO_T}$ac_cv_has_flex" >&6
5463 if test "$LEX" != "flex"; then
5464 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
5465 echo "$as_me: error: flex not found but required" >&2;}
5466 { (exit 1); exit 1; }; }
5472 echo "$as_me:$LINENO: checking " >&5
5473 echo $ECHO_N "checking ... $ECHO_C" >&6
5474 if test "${ac_cv_has_bison+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 for ac_prog in 'bison -y' byacc
5479 # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 echo "$as_me:$LINENO: checking for $ac_word" >&5
5482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483 if test "${ac_cv_prog_YACC+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 if test -n "$YACC"; then
5487 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_YACC="$ac_prog"
5497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 YACC=$ac_cv_prog_YACC
5506 if test -n "$YACC"; then
5507 echo "$as_me:$LINENO: result: $YACC" >&5
5508 echo "${ECHO_T}$YACC" >&6
5510 echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6
5514 test -n "$YACC" && break
5516 test -n "$YACC" || YACC="yacc"
5520 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
5521 echo "${ECHO_T}$ac_cv_has_bison" >&6
5522 if test "$YACC" != "bison -y"; then
5523 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
5524 echo "$as_me: error: bison not found but required" >&2;}
5525 { (exit 1); exit 1; }; }
5531 # Check whether --enable-shared or --disable-shared was given.
5532 if test "${enable_shared+set}" = set; then
5533 enableval="$enable_shared"
5534 p=${PACKAGE-default}
5536 yes) enable_shared=yes ;;
5537 no) enable_shared=no ;;
5540 # Look at the argument we got. We use all the common list separators.
5541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5542 for pkg in $enableval; do
5544 if test "X$pkg" = "X$p"; then
5555 # Check whether --enable-static or --disable-static was given.
5556 if test "${enable_static+set}" = set; then
5557 enableval="$enable_static"
5558 p=${PACKAGE-default}
5560 yes) enable_static=yes ;;
5561 no) enable_static=no ;;
5564 # Look at the argument we got. We use all the common list separators.
5565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5566 for pkg in $enableval; do
5568 if test "X$pkg" = "X$p"; then
5579 # Check whether --enable-fast-install or --disable-fast-install was given.
5580 if test "${enable_fast_install+set}" = set; then
5581 enableval="$enable_fast_install"
5582 p=${PACKAGE-default}
5584 yes) enable_fast_install=yes ;;
5585 no) enable_fast_install=no ;;
5587 enable_fast_install=no
5588 # Look at the argument we got. We use all the common list separators.
5589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5590 for pkg in $enableval; do
5592 if test "X$pkg" = "X$p"; then
5593 enable_fast_install=yes
5600 enable_fast_install=yes
5603 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5604 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5605 if test "${lt_cv_path_SED+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 # Loop through the user's path and test for sed and gsed.
5609 # Then use that list of sed's as ones to test for truncation.
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 test -z "$as_dir" && as_dir=.
5615 for lt_ac_prog in sed gsed; do
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5618 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5625 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5626 # along with /bin/sed that truncates output.
5627 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5628 test ! -f $lt_ac_sed && break
5629 cat /dev/null > conftest.in
5631 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5632 # Check for GNU sed and select it if it is found.
5633 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5634 lt_cv_path_SED=$lt_ac_sed
5638 cat conftest.in conftest.in >conftest.tmp
5639 mv conftest.tmp conftest.in
5640 cp conftest.in conftest.nl
5642 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5643 cmp -s conftest.out conftest.nl || break
5644 # 10000 chars as input seems more than enough
5645 test $lt_ac_count -gt 10 && break
5646 lt_ac_count=`expr $lt_ac_count + 1`
5647 if test $lt_ac_count -gt $lt_ac_max; then
5648 lt_ac_max=$lt_ac_count
5649 lt_cv_path_SED=$lt_ac_sed
5657 echo "$as_me:$LINENO: result: $SED" >&5
5658 echo "${ECHO_T}$SED" >&6
5660 echo "$as_me:$LINENO: checking for egrep" >&5
5661 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5662 if test "${ac_cv_prog_egrep+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5666 then ac_cv_prog_egrep='grep -E'
5667 else ac_cv_prog_egrep='egrep'
5670 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5671 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5672 EGREP=$ac_cv_prog_egrep
5676 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5677 if test "${with_gnu_ld+set}" = set; then
5678 withval="$with_gnu_ld"
5679 test "$withval" = no || with_gnu_ld=yes
5684 if test "$GCC" = yes; then
5685 # Check if gcc -print-prog-name=ld gives a path.
5686 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5687 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5690 # gcc leaves a trailing carriage return which upsets mingw
5691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5696 # Accept absolute paths.
5698 re_direlt='/[^/][^/]*/\.\./'
5699 # Canonicalize the pathname of ld
5700 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5701 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5702 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5704 test -z "$LD" && LD="$ac_prog"
5707 # If it fails, then pretend we aren't using GCC.
5711 # If it is relative, then search for the first ld in PATH.
5715 elif test "$with_gnu_ld" = yes; then
5716 echo "$as_me:$LINENO: checking for GNU ld" >&5
5717 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5719 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5720 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5722 if test "${lt_cv_path_LD+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 if test -z "$LD"; then
5726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727 for ac_dir in $PATH; do
5729 test -z "$ac_dir" && ac_dir=.
5730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5731 lt_cv_path_LD="$ac_dir/$ac_prog"
5732 # Check to see if the program is GNU ld. I'd rather use --version,
5733 # but apparently some GNU ld's only accept -v.
5734 # Break only if it was the GNU/non-GNU ld that we prefer.
5735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737 test "$with_gnu_ld" != no && break
5740 test "$with_gnu_ld" != yes && break
5747 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5752 if test -n "$LD"; then
5753 echo "$as_me:$LINENO: result: $LD" >&5
5754 echo "${ECHO_T}$LD" >&6
5756 echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5759 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5760 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5761 { (exit 1); exit 1; }; }
5762 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5763 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5764 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5768 case `$LD -v 2>&1 </dev/null` in
5769 *GNU* | *'with BFD'*)
5770 lt_cv_prog_gnu_ld=yes
5773 lt_cv_prog_gnu_ld=no
5777 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5778 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5779 with_gnu_ld=$lt_cv_prog_gnu_ld
5782 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5783 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5784 if test "${lt_cv_ld_reload_flag+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 lt_cv_ld_reload_flag='-r'
5789 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5790 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5791 reload_flag=$lt_cv_ld_reload_flag
5792 case $reload_flag in
5794 *) reload_flag=" $reload_flag" ;;
5796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5799 if test "$GCC" = yes; then
5800 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5802 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5807 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5808 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5809 if test "${lt_cv_path_NM+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 if test -n "$NM"; then
5813 # Let the user override the test.
5816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5817 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5819 test -z "$ac_dir" && ac_dir=.
5820 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5821 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5822 # Check to see if the nm accepts a BSD-compat flag.
5823 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5824 # nm: unknown option "B" ignored
5825 # Tru64's nm complains that /dev/null is an invalid object file
5826 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5827 */dev/null* | *'Invalid file or object type'*)
5828 lt_cv_path_NM="$tmp_nm -B"
5832 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5834 lt_cv_path_NM="$tmp_nm -p"
5838 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5839 continue # so that we can try to find one that supports BSD flags
5846 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5849 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5850 echo "${ECHO_T}$lt_cv_path_NM" >&6
5853 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5854 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5856 if test "$LN_S" = "ln -s"; then
5857 echo "$as_me:$LINENO: result: yes" >&5
5858 echo "${ECHO_T}yes" >&6
5860 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5861 echo "${ECHO_T}no, using $LN_S" >&6
5864 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5865 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5866 if test "${lt_cv_deplibs_check_method+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 lt_cv_file_magic_cmd='$MAGIC_CMD'
5870 lt_cv_file_magic_test_file=
5871 lt_cv_deplibs_check_method='unknown'
5872 # Need to set the preceding variable on all platforms that support
5873 # interlibrary dependencies.
5874 # 'none' -- dependencies not supported.
5875 # `unknown' -- same as none, but documents that we really don't know.
5876 # 'pass_all' -- all dependencies passed with no checks.
5877 # 'test_compile' -- check by making test program.
5878 # 'file_magic [[regex]]' -- check by looking for files in library path
5879 # which responds to the $file_magic_cmd with a given extended regex.
5880 # If you have `file' or equivalent on your system and you're not sure
5881 # whether `pass_all' will *always* work, you probably want this one.
5885 lt_cv_deplibs_check_method=pass_all
5889 lt_cv_deplibs_check_method=pass_all
5893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5894 lt_cv_file_magic_cmd='/usr/bin/file -L'
5895 lt_cv_file_magic_test_file=/shlib/libc.so
5899 # func_win32_libid is a shell function defined in ltmain.sh
5900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5901 lt_cv_file_magic_cmd='func_win32_libid'
5905 # Base MSYS/MinGW do not provide the 'file' command needed by
5906 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5907 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5908 lt_cv_file_magic_cmd='$OBJDUMP -f'
5911 darwin* | rhapsody*)
5912 lt_cv_deplibs_check_method=pass_all
5915 freebsd* | kfreebsd*-gnu)
5916 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5919 # Not sure whether the presence of OpenBSD here was a mistake.
5920 # Let's accept both of them until this is cleared up.
5921 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5922 lt_cv_file_magic_cmd=/usr/bin/file
5923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5927 lt_cv_deplibs_check_method=pass_all
5932 lt_cv_deplibs_check_method=pass_all
5935 hpux10.20* | hpux11*)
5936 lt_cv_file_magic_cmd=/usr/bin/file
5939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5944 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5947 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5948 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5953 irix5* | irix6* | nonstopux*)
5955 *-32|*"-32 ") libmagic=32-bit;;
5956 *-n32|*"-n32 ") libmagic=N32;;
5957 *-64|*"-64 ") libmagic=64-bit;;
5958 *) libmagic=never-match;;
5960 lt_cv_deplibs_check_method=pass_all
5963 # This must be Linux ELF.
5965 lt_cv_deplibs_check_method=pass_all
5969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5978 lt_cv_file_magic_cmd=/usr/bin/file
5979 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5983 lt_cv_deplibs_check_method=unknown
5987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5994 osf3* | osf4* | osf5*)
5995 lt_cv_deplibs_check_method=pass_all
5999 lt_cv_deplibs_check_method=pass_all
6003 lt_cv_deplibs_check_method=pass_all
6006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6007 case $host_vendor in
6009 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]'
6010 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6013 lt_cv_deplibs_check_method=pass_all
6016 lt_cv_file_magic_cmd='/bin/file'
6017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6020 lt_cv_file_magic_cmd='/bin/file'
6021 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6022 lt_cv_file_magic_test_file=/lib/libc.so
6025 lt_cv_deplibs_check_method=pass_all
6030 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6031 lt_cv_deplibs_check_method=pass_all
6036 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6037 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6038 file_magic_cmd=$lt_cv_file_magic_cmd
6039 deplibs_check_method=$lt_cv_deplibs_check_method
6040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6045 # If no C compiler was specified, use CC.
6048 # Allow CC to be a program name with arguments.
6051 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6052 if test "${enable_libtool_lock+set}" = set; then
6053 enableval="$enable_libtool_lock"
6056 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6058 # Some flags need to be propagated to the compiler or linker for good
6062 # Find out which ABI we are using.
6063 echo 'int i;' > conftest.$ac_ext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; then
6069 case `/usr/bin/file conftest.$ac_objext` in
6081 # Find out which ABI we are using.
6082 echo '#line 6082 "configure"' > conftest.$ac_ext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; then
6088 if test "$lt_cv_prog_gnu_ld" = yes; then
6089 case `/usr/bin/file conftest.$ac_objext` in
6091 LD="${LD-ld} -melf32bsmip"
6094 LD="${LD-ld} -melf32bmipn32"
6097 LD="${LD-ld} -melf64bmip"
6101 case `/usr/bin/file conftest.$ac_objext` in
6117 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6118 # Find out which ABI we are using.
6119 echo 'int i;' > conftest.$ac_ext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; then
6125 case "`/usr/bin/file conftest.o`" in
6129 LD="${LD-ld} -m elf_i386"
6131 ppc64-*linux*|powerpc64-*linux*)
6132 LD="${LD-ld} -m elf32ppclinux"
6135 LD="${LD-ld} -m elf_s390"
6138 LD="${LD-ld} -m elf32_sparc"
6145 LD="${LD-ld} -m elf_x86_64"
6147 ppc*-*linux*|powerpc*-*linux*)
6148 LD="${LD-ld} -m elf64ppc"
6151 LD="${LD-ld} -m elf64_s390"
6154 LD="${LD-ld} -m elf64_sparc"
6164 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6165 SAVE_CFLAGS="$CFLAGS"
6166 CFLAGS="$CFLAGS -belf"
6167 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6168 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6169 if test "${lt_cv_cc_needs_belf+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
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 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188 (eval $ac_link) 2>conftest.er1
6190 grep -v '^ *+' conftest.er1 >conftest.err
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 lt_cv_cc_needs_belf=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 lt_cv_cc_needs_belf=no
6215 rm -f conftest.err conftest.$ac_objext \
6216 conftest$ac_exeext conftest.$ac_ext
6218 ac_cpp='$CPP $CPPFLAGS'
6219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6224 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6225 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6226 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6227 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6228 CFLAGS="$SAVE_CFLAGS"
6234 need_locks="$enable_libtool_lock"
6238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6240 if test "${ac_cv_header_stdc+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6262 rm -f conftest.$ac_objext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264 (eval $ac_compile) 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -z "$ac_c_werror_flag"
6272 || test ! -s conftest.err'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; } &&
6278 { ac_try='test -s conftest.$ac_objext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 ac_cv_header_stdc=yes
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 ac_cv_header_stdc=no
6291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6293 if test $ac_cv_header_stdc = yes; then
6294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6295 cat >conftest.$ac_ext <<_ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6305 $EGREP "memchr" >/dev/null 2>&1; then
6308 ac_cv_header_stdc=no
6314 if test $ac_cv_header_stdc = yes; then
6315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6316 cat >conftest.$ac_ext <<_ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6326 $EGREP "free" >/dev/null 2>&1; then
6329 ac_cv_header_stdc=no
6335 if test $ac_cv_header_stdc = yes; then
6336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6337 if test "$cross_compiling" = yes; then
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6347 #if ((' ' & 0x0FF) == 0x020)
6348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6351 # define ISLOWER(c) \
6352 (('a' <= (c) && (c) <= 'i') \
6353 || ('j' <= (c) && (c) <= 'r') \
6354 || ('s' <= (c) && (c) <= 'z'))
6355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6363 for (i = 0; i < 256; i++)
6364 if (XOR (islower (i), ISLOWER (i))
6365 || toupper (i) != TOUPPER (i))
6370 rm -f conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6383 echo "$as_me: program exited with status $ac_status" >&5
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6388 ac_cv_header_stdc=no
6390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6394 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6395 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6396 if test $ac_cv_header_stdc = yes; then
6398 cat >>confdefs.h <<\_ACEOF
6399 #define STDC_HEADERS 1
6404 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6414 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6415 inttypes.h stdint.h unistd.h
6417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6418 echo "$as_me:$LINENO: checking for $ac_header" >&5
6419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6431 #include <$ac_header>
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>conftest.er1
6437 grep -v '^ *+' conftest.er1 >conftest.err
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -z "$ac_c_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest.$ac_objext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 eval "$as_ac_Header=yes"
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 eval "$as_ac_Header=no"
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6467 cat >>confdefs.h <<_ACEOF
6468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477 for ac_header in dlfcn.h
6479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6481 echo "$as_me:$LINENO: checking for $ac_header" >&5
6482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6489 # Is the header compilable?
6490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6492 cat >conftest.$ac_ext <<_ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 $ac_includes_default
6499 #include <$ac_header>
6501 rm -f conftest.$ac_objext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503 (eval $ac_compile) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -z "$ac_c_werror_flag"
6511 || test ! -s conftest.err'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 ac_header_compiler=yes
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 ac_header_compiler=no
6530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6532 echo "${ECHO_T}$ac_header_compiler" >&6
6534 # Is the header present?
6535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 #include <$ac_header>
6545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } >/dev/null; then
6553 if test -s conftest.err; then
6554 ac_cpp_err=$ac_c_preproc_warn_flag
6555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6562 if test -z "$ac_cpp_err"; then
6563 ac_header_preproc=yes
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 ac_header_preproc=no
6570 rm -f conftest.err conftest.$ac_ext
6571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6572 echo "${ECHO_T}$ac_header_preproc" >&6
6574 # So? What about this header?
6575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6581 ac_header_preproc=yes
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6598 ## ----------------------------------- ##
6599 ## Report this to llvmbugs@cs.uiuc.edu ##
6600 ## ----------------------------------- ##
6603 sed "s/^/$as_me: WARNING: /" >&2
6606 echo "$as_me:$LINENO: checking for $ac_header" >&5
6607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 eval "$as_ac_Header=\$ac_header_preproc"
6613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6618 cat >>confdefs.h <<_ACEOF
6619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6628 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6629 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6630 (test "X$CXX" != "Xg++"))) ; then
6632 ac_cpp='$CXXCPP $CPPFLAGS'
6633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6636 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6637 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6638 if test -z "$CXXCPP"; then
6639 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 # Double quotes because CXXCPP needs to be expanded
6643 for CXXCPP in "$CXX -E" "/lib/cpp"
6646 for ac_cxx_preproc_warn_flag in '' yes
6648 # Use a header file that comes with gcc, so configuring glibc
6649 # with a fresh cross-compiler works.
6650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6651 # <limits.h> exists even on freestanding compilers.
6652 # On the NeXT, cc -E runs the code through the compiler's parser,
6653 # not just through cpp. "Syntax error" is here to catch this case.
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6661 # include <limits.h>
6663 # include <assert.h>
6667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6670 grep -v '^ *+' conftest.er1 >conftest.err
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } >/dev/null; then
6675 if test -s conftest.err; then
6676 ac_cpp_err=$ac_cxx_preproc_warn_flag
6677 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6684 if test -z "$ac_cpp_err"; then
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 # Broken: fails on valid input.
6693 rm -f conftest.err conftest.$ac_ext
6695 # OK, works on sane cases. Now check whether non-existent headers
6696 # can be detected and how.
6697 cat >conftest.$ac_ext <<_ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <ac_nonexistent.h>
6705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null; then
6713 if test -s conftest.err; then
6714 ac_cpp_err=$ac_cxx_preproc_warn_flag
6715 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6722 if test -z "$ac_cpp_err"; then
6723 # Broken: success on invalid input.
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 # Passes both tests.
6733 rm -f conftest.err conftest.$ac_ext
6736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6737 rm -f conftest.err conftest.$ac_ext
6738 if $ac_preproc_ok; then
6743 ac_cv_prog_CXXCPP=$CXXCPP
6746 CXXCPP=$ac_cv_prog_CXXCPP
6748 ac_cv_prog_CXXCPP=$CXXCPP
6750 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6751 echo "${ECHO_T}$CXXCPP" >&6
6753 for ac_cxx_preproc_warn_flag in '' yes
6755 # Use a header file that comes with gcc, so configuring glibc
6756 # with a fresh cross-compiler works.
6757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6758 # <limits.h> exists even on freestanding compilers.
6759 # On the NeXT, cc -E runs the code through the compiler's parser,
6760 # not just through cpp. "Syntax error" is here to catch this case.
6761 cat >conftest.$ac_ext <<_ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6768 # include <limits.h>
6770 # include <assert.h>
6774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6777 grep -v '^ *+' conftest.er1 >conftest.err
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } >/dev/null; then
6782 if test -s conftest.err; then
6783 ac_cpp_err=$ac_cxx_preproc_warn_flag
6784 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6791 if test -z "$ac_cpp_err"; then
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 # Broken: fails on valid input.
6800 rm -f conftest.err conftest.$ac_ext
6802 # OK, works on sane cases. Now check whether non-existent headers
6803 # can be detected and how.
6804 cat >conftest.$ac_ext <<_ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #include <ac_nonexistent.h>
6812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6815 grep -v '^ *+' conftest.er1 >conftest.err
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } >/dev/null; then
6820 if test -s conftest.err; then
6821 ac_cpp_err=$ac_cxx_preproc_warn_flag
6822 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6829 if test -z "$ac_cpp_err"; then
6830 # Broken: success on invalid input.
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 # Passes both tests.
6840 rm -f conftest.err conftest.$ac_ext
6843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6844 rm -f conftest.err conftest.$ac_ext
6845 if $ac_preproc_ok; then
6848 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6849 See \`config.log' for more details." >&5
6850 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6851 See \`config.log' for more details." >&2;}
6852 { (exit 1); exit 1; }; }
6856 ac_cpp='$CXXCPP $CPPFLAGS'
6857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6865 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6866 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6868 if test -n "$ac_tool_prefix"; then
6869 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6873 echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6875 if test "${ac_cv_prog_F77+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 if test -n "$F77"; then
6879 ac_cv_prog_F77="$F77" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 if test -n "$F77"; then
6899 echo "$as_me:$LINENO: result: $F77" >&5
6900 echo "${ECHO_T}$F77" >&6
6902 echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6
6906 test -n "$F77" && break
6909 if test -z "$F77"; then
6911 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6913 # Extract the first word of "$ac_prog", so it can be a program name with args.
6914 set dummy $ac_prog; ac_word=$2
6915 echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6917 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 if test -n "$ac_ct_F77"; then
6921 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_ac_ct_F77="$ac_prog"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6940 if test -n "$ac_ct_F77"; then
6941 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6942 echo "${ECHO_T}$ac_ct_F77" >&6
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6948 test -n "$ac_ct_F77" && break
6955 # Provide some information about the compiler.
6956 echo "$as_me:6956:" \
6957 "checking for Fortran 77 compiler version" >&5
6958 ac_compiler=`set X $ac_compile; echo $2`
6959 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6960 (eval $ac_compiler --version </dev/null >&5) 2>&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }
6964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6965 (eval $ac_compiler -v </dev/null >&5) 2>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }
6969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6970 (eval $ac_compiler -V </dev/null >&5) 2>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }
6976 # If we don't use `.F' as extension, the preprocessor is not run on the
6977 # input file. (Note that this only needs to work for GNU compilers.)
6980 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6981 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6982 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 cat >conftest.$ac_ext <<_ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6995 (eval $ac_compile) 2>conftest.er1
6997 grep -v '^ *+' conftest.er1 >conftest.err
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } &&
7002 { ac_try='test -z "$ac_f77_werror_flag"
7003 || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest.$ac_objext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7026 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7027 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7029 ac_test_FFLAGS=${FFLAGS+set}
7030 ac_save_FFLAGS=$FFLAGS
7032 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7033 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7034 if test "${ac_cv_prog_f77_g+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 cat >conftest.$ac_ext <<_ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045 (eval $ac_compile) 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -z "$ac_f77_werror_flag"
7053 || test ! -s conftest.err'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest.$ac_objext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 ac_cv_prog_f77_g=yes
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7075 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7076 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7077 if test "$ac_test_FFLAGS" = set; then
7078 FFLAGS=$ac_save_FFLAGS
7079 elif test $ac_cv_prog_f77_g = yes; then
7080 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7086 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7093 G77=`test $ac_compiler_gnu = yes && echo yes`
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7104 # find the maximum length of command line arguments
7105 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7106 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7107 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 # On DJGPP, this test can blow up pretty badly due to problems in libc
7116 # (any single argument exceeding 2000 bytes causes a buffer overrun
7117 # during glob expansion). Even if it were fixed, the result of this
7118 # check would be larger than it should be.
7119 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7123 # Under GNU Hurd, this test is not required because there is
7124 # no limit to the length of command line arguments.
7125 # Libtool will interpret -1 as no limit whatsoever
7126 lt_cv_sys_max_cmd_len=-1;
7130 # On Win9x/ME, this test blows up -- it succeeds, but takes
7131 # about 5 minutes as the teststring grows exponentially.
7132 # Worse, since 9x/ME are not pre-emptively multitasking,
7133 # you end up with a "frozen" computer, even though with patience
7134 # the test eventually succeeds (with a max line length of 256k).
7135 # Instead, let's just punt: use the minimum linelength reported by
7136 # all of the supported platforms: 8192 (on NT/2K/XP).
7137 lt_cv_sys_max_cmd_len=8192;
7141 # On AmigaOS with pdksh, this test takes hours, literally.
7142 # So we just punt and use a minimum line length of 8192.
7143 lt_cv_sys_max_cmd_len=8192;
7146 netbsd* | freebsd* | openbsd* | darwin* )
7147 # This has been around since 386BSD, at least. Likely further.
7148 if test -x /sbin/sysctl; then
7149 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7150 elif test -x /usr/sbin/sysctl; then
7151 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7153 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7155 # And add a safety zone
7156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7160 # If test is not a shell built-in, we'll probably end up computing a
7161 # maximum length that is only half of the actual maximum length, but
7163 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7164 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7165 = "XX$teststring") >/dev/null 2>&1 &&
7166 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7167 lt_cv_sys_max_cmd_len=$new_result &&
7168 test $i != 17 # 1/2 MB should be enough
7171 teststring=$teststring$teststring
7174 # Add a significant safety factor because C++ compilers can tack on massive
7175 # amounts of additional arguments before passing them to the linker.
7176 # It appears as though 1/2 is a usable value.
7177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7183 if test -n $lt_cv_sys_max_cmd_len ; then
7184 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7185 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7187 echo "$as_me:$LINENO: result: none" >&5
7188 echo "${ECHO_T}none" >&6
7194 # Check for command to grab the raw symbol name followed by C symbol from nm.
7195 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7196 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7197 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 # These are sane defaults that work on at least a few old systems.
7202 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7204 # Character class describing NM global symbol codes.
7205 symcode='[BCDEGRST]'
7207 # Regexp to match symbols that can be accessed directly from C.
7208 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7210 # Transform the above into a raw symbol and a C symbol.
7211 symxfrm='\1 \2\3 \3'
7213 # Transform an extracted symbol line into a proper C declaration
7214 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7216 # Transform an extracted symbol line into symbol name and symbol address
7217 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7219 # Define system-specific variables.
7224 cygwin* | mingw* | pw32*)
7225 symcode='[ABCDGISTW]'
7227 hpux*) # Its linker distinguishes data from code symbols
7228 if test "$host_cpu" = ia64; then
7229 symcode='[ABCDEGRST]'
7231 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7232 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7235 if test "$host_cpu" = ia64; then
7236 symcode='[ABCDGIRSTW]'
7237 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7238 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7242 symcode='[BCDEGRST]'
7245 symcode='[BCDEGQRST]'
7255 # Handle CRLF in mingw tool chain
7259 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7263 # If we're using GNU nm, then use its standard symbol codes.
7264 case `$NM -V 2>&1` in
7265 *GNU* | *'with BFD'*)
7266 symcode='[ABCDGIRSTW]' ;;
7269 # Try without a prefix undercore, then with it.
7270 for ac_symprfx in "" "_"; do
7272 # Write the raw and C identifiers.
7273 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7275 # Check to see that the pipe works correctly.
7279 cat > conftest.$ac_ext <<EOF
7284 void nm_test_func(){}
7288 int main(){nm_test_var='a';nm_test_func();return(0);}
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; then
7296 # Now try to grab the symbols.
7298 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7299 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && test -s "$nlist"; then
7303 # Try sorting and uniquifying the output.
7304 if sort "$nlist" | uniq > "$nlist"T; then
7305 mv -f "$nlist"T "$nlist"
7310 # Make sure that we snagged all the symbols we need.
7311 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7312 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7313 cat <<EOF > conftest.$ac_ext
7319 # Now generate the symbol file.
7320 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7322 cat <<EOF >> conftest.$ac_ext
7323 #if defined (__STDC__) && __STDC__
7324 # define lt_ptr_t void *
7326 # define lt_ptr_t char *
7330 /* The mapping between symbol names and symbols. */
7335 lt_preloaded_symbols[] =
7338 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7339 cat <<\EOF >> conftest.$ac_ext
7347 # Now try linking the two files.
7348 mv conftest.$ac_objext conftstm.$ac_objext
7349 lt_save_LIBS="$LIBS"
7350 lt_save_CFLAGS="$CFLAGS"
7351 LIBS="conftstm.$ac_objext"
7352 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7354 (eval $ac_link) 2>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7360 LIBS="$lt_save_LIBS"
7361 CFLAGS="$lt_save_CFLAGS"
7363 echo "cannot find nm_test_func in $nlist" >&5
7366 echo "cannot find nm_test_var in $nlist" >&5
7369 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7372 echo "$progname: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7375 rm -f conftest* conftst*
7377 # Do not use the global_symbol_pipe unless it works.
7378 if test "$pipe_works" = yes; then
7381 lt_cv_sys_global_symbol_pipe=
7387 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7388 lt_cv_sys_global_symbol_to_cdecl=
7390 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7391 echo "$as_me:$LINENO: result: failed" >&5
7392 echo "${ECHO_T}failed" >&6
7394 echo "$as_me:$LINENO: result: ok" >&5
7395 echo "${ECHO_T}ok" >&6
7398 echo "$as_me:$LINENO: checking for objdir" >&5
7399 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7400 if test "${lt_cv_objdir+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 rm -f .libs 2>/dev/null
7404 mkdir .libs 2>/dev/null
7405 if test -d .libs; then
7408 # MS-DOS does not allow filenames that begin with a dot.
7411 rmdir .libs 2>/dev/null
7413 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7414 echo "${ECHO_T}$lt_cv_objdir" >&6
7415 objdir=$lt_cv_objdir
7423 # AIX sometimes has problems with the GCC collect2 program. For some
7424 # reason, if we set the COLLECT_NAMES environment variable, the problems
7425 # vanish in a puff of smoke.
7426 if test "X${COLLECT_NAMES+set}" != Xset; then
7428 export COLLECT_NAMES
7433 # Sed substitution that helps us do robust quoting. It backslashifies
7434 # metacharacters that are still active within double-quoted strings.
7435 Xsed='sed -e s/^X//'
7436 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7438 # Same as above, but do not quote variable references.
7439 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7441 # Sed substitution to delay expansion of an escaped shell variable in a
7442 # double_quote_subst'ed string.
7443 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7445 # Sed substitution to avoid accidental globbing in evaled expressions
7446 no_glob_subst='s/\*/\\\*/g'
7453 can_build_shared=yes
7455 # All known linkers require a `.a' archive for static linking (except M$VC,
7456 # which needs '.lib').
7458 ltmain="$ac_aux_dir/ltmain.sh"
7459 ofile="$default_ofile"
7460 with_gnu_ld="$lt_cv_prog_gnu_ld"
7462 if test -n "$ac_tool_prefix"; then
7463 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7464 set dummy ${ac_tool_prefix}ar; ac_word=$2
7465 echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7467 if test "${ac_cv_prog_AR+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 if test -n "$AR"; then
7471 ac_cv_prog_AR="$AR" # Let the user override the test.
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480 ac_cv_prog_AR="${ac_tool_prefix}ar"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 if test -n "$AR"; then
7491 echo "$as_me:$LINENO: result: $AR" >&5
7492 echo "${ECHO_T}$AR" >&6
7494 echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7499 if test -z "$ac_cv_prog_AR"; then
7501 # Extract the first word of "ar", so it can be a program name with args.
7502 set dummy ar; ac_word=$2
7503 echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 if test -n "$ac_ct_AR"; then
7509 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_ac_ct_AR="ar"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7528 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7529 if test -n "$ac_ct_AR"; then
7530 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7531 echo "${ECHO_T}$ac_ct_AR" >&6
7533 echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7542 if test -n "$ac_tool_prefix"; then
7543 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7545 echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547 if test "${ac_cv_prog_RANLIB+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 if test -n "$RANLIB"; then
7551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 RANLIB=$ac_cv_prog_RANLIB
7570 if test -n "$RANLIB"; then
7571 echo "$as_me:$LINENO: result: $RANLIB" >&5
7572 echo "${ECHO_T}$RANLIB" >&6
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7579 if test -z "$ac_cv_prog_RANLIB"; then
7580 ac_ct_RANLIB=$RANLIB
7581 # Extract the first word of "ranlib", so it can be a program name with args.
7582 set dummy ranlib; ac_word=$2
7583 echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 if test -n "$ac_ct_RANLIB"; then
7589 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_RANLIB="ranlib"
7599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7609 if test -n "$ac_ct_RANLIB"; then
7610 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7611 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7613 echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7617 RANLIB=$ac_ct_RANLIB
7619 RANLIB="$ac_cv_prog_RANLIB"
7622 if test -n "$ac_tool_prefix"; then
7623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}strip; ac_word=$2
7625 echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7627 if test "${ac_cv_prog_STRIP+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 if test -n "$STRIP"; then
7631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 STRIP=$ac_cv_prog_STRIP
7650 if test -n "$STRIP"; then
7651 echo "$as_me:$LINENO: result: $STRIP" >&5
7652 echo "${ECHO_T}$STRIP" >&6
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7659 if test -z "$ac_cv_prog_STRIP"; then
7661 # Extract the first word of "strip", so it can be a program name with args.
7662 set dummy strip; ac_word=$2
7663 echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 if test -n "$ac_ct_STRIP"; then
7669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_ac_ct_STRIP="strip"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7688 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7689 if test -n "$ac_ct_STRIP"; then
7690 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7691 echo "${ECHO_T}$ac_ct_STRIP" >&6
7693 echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6
7699 STRIP="$ac_cv_prog_STRIP"
7704 old_CFLAGS="$CFLAGS"
7706 # Set sane defaults for various variables
7707 test -z "$AR" && AR=ar
7708 test -z "$AR_FLAGS" && AR_FLAGS=cru
7709 test -z "$AS" && AS=as
7710 test -z "$CC" && CC=cc
7711 test -z "$LTCC" && LTCC=$CC
7712 test -z "$DLLTOOL" && DLLTOOL=dlltool
7713 test -z "$LD" && LD=ld
7714 test -z "$LN_S" && LN_S="ln -s"
7715 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7716 test -z "$NM" && NM=nm
7717 test -z "$SED" && SED=sed
7718 test -z "$OBJDUMP" && OBJDUMP=objdump
7719 test -z "$RANLIB" && RANLIB=:
7720 test -z "$STRIP" && STRIP=:
7721 test -z "$ac_objext" && ac_objext=o
7723 # Determine commands to create old-style static archives.
7724 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7725 old_postinstall_cmds='chmod 644 $oldlib'
7726 old_postuninstall_cmds=
7728 if test -n "$RANLIB"; then
7731 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7734 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7737 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7740 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7742 # Only perform the check for file, if the check method requires it
7743 case $deplibs_check_method in
7745 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7746 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7747 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7748 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7756 lt_save_MAGIC_CMD="$MAGIC_CMD"
7757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7759 for ac_dir in $ac_dummy; do
7761 test -z "$ac_dir" && ac_dir=.
7762 if test -f $ac_dir/${ac_tool_prefix}file; then
7763 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7764 if test -n "$file_magic_test_file"; then
7765 case $deplibs_check_method in
7767 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7770 $EGREP "$file_magic_regex" > /dev/null; then
7775 *** Warning: the command libtool uses to detect shared libraries,
7776 *** $file_magic_cmd, produces output that libtool cannot recognize.
7777 *** The result is that libtool may fail to recognize shared libraries
7778 *** as such. This will affect the creation of libtool libraries that
7779 *** depend on shared libraries, but programs linked with such libtool
7780 *** libraries will work regardless of this problem. Nevertheless, you
7781 *** may want to report the problem to your system manager and/or to
7782 *** bug-libtool@gnu.org
7792 MAGIC_CMD="$lt_save_MAGIC_CMD"
7797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7798 if test -n "$MAGIC_CMD"; then
7799 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7800 echo "${ECHO_T}$MAGIC_CMD" >&6
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7806 if test -z "$lt_cv_path_MAGIC_CMD"; then
7807 if test -n "$ac_tool_prefix"; then
7808 echo "$as_me:$LINENO: checking for file" >&5
7809 echo $ECHO_N "checking for file... $ECHO_C" >&6
7810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7818 lt_save_MAGIC_CMD="$MAGIC_CMD"
7819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7821 for ac_dir in $ac_dummy; do
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f $ac_dir/file; then
7825 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7826 if test -n "$file_magic_test_file"; then
7827 case $deplibs_check_method in
7829 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7832 $EGREP "$file_magic_regex" > /dev/null; then
7837 *** Warning: the command libtool uses to detect shared libraries,
7838 *** $file_magic_cmd, produces output that libtool cannot recognize.
7839 *** The result is that libtool may fail to recognize shared libraries
7840 *** as such. This will affect the creation of libtool libraries that
7841 *** depend on shared libraries, but programs linked with such libtool
7842 *** libraries will work regardless of this problem. Nevertheless, you
7843 *** may want to report the problem to your system manager and/or to
7844 *** bug-libtool@gnu.org
7854 MAGIC_CMD="$lt_save_MAGIC_CMD"
7859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7860 if test -n "$MAGIC_CMD"; then
7861 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7862 echo "${ECHO_T}$MAGIC_CMD" >&6
7864 echo "$as_me:$LINENO: result: no" >&5
7865 echo "${ECHO_T}no" >&6
7880 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7881 if test "${enable_libtool_lock+set}" = set; then
7882 enableval="$enable_libtool_lock"
7885 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7888 # Check whether --with-pic or --without-pic was given.
7889 if test "${with_pic+set}" = set; then
7895 test -z "$pic_mode" && pic_mode=default
7897 # Use C for the default configuration in the libtool script
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 # Source file extension for C test sources.
7910 # Object file extension for compiled C test sources.
7914 # Code to be used in simple compile tests
7915 lt_simple_compile_test_code="int some_variable = 0;\n"
7917 # Code to be used in simple link tests
7918 lt_simple_link_test_code='int main(){return(0);}\n'
7921 # If no C compiler was specified, use CC.
7924 # Allow CC to be a program name with arguments.
7929 # Check for any special shared library compilation flags.
7932 if test "$GCC" = no; then
7935 lt_prog_cc_shlib='-belf'
7939 if test -n "$lt_prog_cc_shlib"; then
7940 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7941 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7942 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7944 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7945 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7946 lt_cv_prog_cc_can_build_shared=no
7952 # Check to make sure the static flag actually works.
7954 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7955 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7956 if test "${lt_prog_compiler_static_works+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 lt_prog_compiler_static_works=no
7960 save_LDFLAGS="$LDFLAGS"
7961 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7962 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings
7966 if test -s conftest.err; then
7967 # Append any errors to the config.log.
7968 cat conftest.err 1>&5
7970 lt_prog_compiler_static_works=yes
7974 LDFLAGS="$save_LDFLAGS"
7977 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7978 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7980 if test x"$lt_prog_compiler_static_works" = xyes; then
7983 lt_prog_compiler_static=
7989 lt_prog_compiler_no_builtin_flag=
7991 if test "$GCC" = yes; then
7992 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7995 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7996 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7997 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 lt_cv_prog_compiler_rtti_exceptions=no
8001 ac_outfile=conftest.$ac_objext
8002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8003 lt_compiler_flag="-fno-rtti -fno-exceptions"
8004 # Insert the option either (1) after the last *FLAGS variable, or
8005 # (2) before a word containing "conftest.", or (3) at the end.
8006 # Note that $ac_compile itself does not contain backslashes and begins
8007 # with a dollar sign (not a hyphen), so the echo should work correctly.
8008 # The option is referenced via a variable to avoid confusing sed.
8009 lt_compile=`echo "$ac_compile" | $SED \
8010 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8012 -e 's:$: $lt_compiler_flag:'`
8013 (eval echo "\"\$as_me:8013: $lt_compile\"" >&5)
8014 (eval "$lt_compile" 2>conftest.err)
8016 cat conftest.err >&5
8017 echo "$as_me:8017: \$? = $ac_status" >&5
8018 if (exit $ac_status) && test -s "$ac_outfile"; then
8019 # The compiler can only warn and ignore the option if not recognized
8020 # So say no if there are warnings
8021 if test ! -s conftest.err; then
8022 lt_cv_prog_compiler_rtti_exceptions=yes
8028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8029 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8031 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8032 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8039 lt_prog_compiler_wl=
8040 lt_prog_compiler_pic=
8041 lt_prog_compiler_static=
8043 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8044 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8046 if test "$GCC" = yes; then
8047 lt_prog_compiler_wl='-Wl,'
8048 lt_prog_compiler_static='-static'
8052 # All AIX code is PIC.
8053 if test "$host_cpu" = ia64; then
8054 # AIX 5 now supports IA64 processor
8055 lt_prog_compiler_static='-Bstatic'
8060 # FIXME: we need at least 68020 code to build shared libraries, but
8061 # adding the `-m68020' flag to GCC prevents building anything better,
8063 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8066 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8067 # PIC is the default for these OSes.
8070 mingw* | pw32* | os2*)
8071 # This hack is so that the source file can tell whether it is being
8072 # built for inclusion in a dll (and should export symbols for example).
8073 lt_prog_compiler_pic='-DDLL_EXPORT'
8076 darwin* | rhapsody*)
8077 # PIC is the default on this platform
8078 # Common symbols not allowed in MH_DYLIB files
8079 lt_prog_compiler_pic='-fno-common'
8083 # Just because we use GCC doesn't mean we suddenly get shared libraries
8084 # on systems that don't support them.
8085 lt_prog_compiler_can_build_shared=no
8090 if test -d /usr/nec; then
8091 lt_prog_compiler_pic=-Kconform_pic
8096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8103 lt_prog_compiler_pic='-fPIC'
8109 lt_prog_compiler_pic='-fPIC'
8113 # PORTME Check for flag to pass linker flags through the system compiler.
8116 lt_prog_compiler_wl='-Wl,'
8117 if test "$host_cpu" = ia64; then
8118 # AIX 5 now supports IA64 processor
8119 lt_prog_compiler_static='-Bstatic'
8121 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8125 # PIC is the default on this platform
8126 # Common symbols not allowed in MH_DYLIB files
8127 case "$cc_basename" in
8129 lt_prog_compiler_pic='-qnocommon'
8130 lt_prog_compiler_wl='-Wl,'
8135 mingw* | pw32* | os2*)
8136 # This hack is so that the source file can tell whether it is being
8137 # built for inclusion in a dll (and should export symbols for example).
8138 lt_prog_compiler_pic='-DDLL_EXPORT'
8141 hpux9* | hpux10* | hpux11*)
8142 lt_prog_compiler_wl='-Wl,'
8143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8150 lt_prog_compiler_pic='+Z'
8153 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8154 lt_prog_compiler_static='${wl}-a ${wl}archive'
8157 irix5* | irix6* | nonstopux*)
8158 lt_prog_compiler_wl='-Wl,'
8159 # PIC (with -KPIC) is the default.
8160 lt_prog_compiler_static='-non_shared'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-Bstatic'
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='-KPIC'
8173 lt_prog_compiler_static='-static'
8176 lt_prog_compiler_wl='-Wl,'
8177 # All Alpha code is PIC.
8178 lt_prog_compiler_static='-non_shared'
8183 osf3* | osf4* | osf5*)
8184 lt_prog_compiler_wl='-Wl,'
8185 # All OSF/1 code is PIC.
8186 lt_prog_compiler_static='-non_shared'
8190 lt_prog_compiler_pic='-Kpic'
8191 lt_prog_compiler_static='-dn'
8195 lt_prog_compiler_wl='-Wl,'
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-Bstatic'
8201 lt_prog_compiler_wl='-Qoption ld '
8202 lt_prog_compiler_pic='-PIC'
8203 lt_prog_compiler_static='-Bstatic'
8206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-Bstatic'
8213 if test -d /usr/nec ;then
8214 lt_prog_compiler_pic='-Kconform_pic'
8215 lt_prog_compiler_static='-Bstatic'
8220 lt_prog_compiler_pic='-pic'
8221 lt_prog_compiler_static='-Bstatic'
8225 lt_prog_compiler_can_build_shared=no
8230 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8231 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8234 # Check to make sure the PIC flag actually works.
8236 if test -n "$lt_prog_compiler_pic"; then
8238 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8239 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8240 if test "${lt_prog_compiler_pic_works+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 lt_prog_compiler_pic_works=no
8244 ac_outfile=conftest.$ac_objext
8245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8246 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8247 # Insert the option either (1) after the last *FLAGS variable, or
8248 # (2) before a word containing "conftest.", or (3) at the end.
8249 # Note that $ac_compile itself does not contain backslashes and begins
8250 # with a dollar sign (not a hyphen), so the echo should work correctly.
8251 # The option is referenced via a variable to avoid confusing sed.
8252 lt_compile=`echo "$ac_compile" | $SED \
8253 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255 -e 's:$: $lt_compiler_flag:'`
8256 (eval echo "\"\$as_me:8256: $lt_compile\"" >&5)
8257 (eval "$lt_compile" 2>conftest.err)
8259 cat conftest.err >&5
8260 echo "$as_me:8260: \$? = $ac_status" >&5
8261 if (exit $ac_status) && test -s "$ac_outfile"; then
8262 # The compiler can only warn and ignore the option if not recognized
8263 # So say no if there are warnings
8264 if test ! -s conftest.err; then
8265 lt_prog_compiler_pic_works=yes
8271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8272 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8274 if test x"$lt_prog_compiler_pic_works" = xyes; then
8275 case $lt_prog_compiler_pic in
8277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8280 lt_prog_compiler_pic=
8281 lt_prog_compiler_can_build_shared=no
8286 # For platforms which do not support PIC, -DPIC is meaningless:
8288 lt_prog_compiler_pic=
8291 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8295 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8296 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8297 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 lt_cv_prog_compiler_c_o=no
8301 $rm -r conftest 2>/dev/null
8305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8307 lt_compiler_flag="-o out/conftest2.$ac_objext"
8308 # Insert the option either (1) after the last *FLAGS variable, or
8309 # (2) before a word containing "conftest.", or (3) at the end.
8310 # Note that $ac_compile itself does not contain backslashes and begins
8311 # with a dollar sign (not a hyphen), so the echo should work correctly.
8312 lt_compile=`echo "$ac_compile" | $SED \
8313 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315 -e 's:$: $lt_compiler_flag:'`
8316 (eval echo "\"\$as_me:8316: $lt_compile\"" >&5)
8317 (eval "$lt_compile" 2>out/conftest.err)
8319 cat out/conftest.err >&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8323 # The compiler can only warn and ignore the option if not recognized
8324 # So say no if there are warnings
8325 if test ! -s out/conftest.err; then
8326 lt_cv_prog_compiler_c_o=yes
8331 # SGI C++ compiler will create directory out/ii_files/ for
8332 # template instantiation
8333 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8334 $rm out/* && rmdir out
8340 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8341 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8344 hard_links="nottested"
8345 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8346 # do not overwrite the value of need_locks provided by the user
8347 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8353 ln conftest.a conftest.b 2>&5 || hard_links=no
8354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8355 echo "$as_me:$LINENO: result: $hard_links" >&5
8356 echo "${ECHO_T}$hard_links" >&6
8357 if test "$hard_links" = no; then
8358 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8366 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8367 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8370 allow_undefined_flag=
8371 enable_shared_with_static_runtimes=no
8373 archive_expsym_cmds=
8374 old_archive_From_new_cmds=
8375 old_archive_from_expsyms_cmds=
8376 export_dynamic_flag_spec=
8377 whole_archive_flag_spec=
8378 thread_safe_flag_spec=
8379 hardcode_libdir_flag_spec=
8380 hardcode_libdir_flag_spec_ld=
8381 hardcode_libdir_separator=
8384 hardcode_shlibpath_var=unsupported
8385 link_all_deplibs=unknown
8386 hardcode_automatic=no
8389 always_export_symbols=no
8390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8391 # include_expsyms should be a list of space-separated symbols to be *always*
8392 # included in the symbol list
8394 # exclude_expsyms can be an extended regexp of symbols to exclude
8395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8397 # as well as any symbol that contains `d'.
8398 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8400 # platforms (ab)use it in PIC code, but their linkers get confused if
8401 # the symbol is explicitly referenced. Since portable code cannot
8402 # rely on this symbol name, it's probably fine to never include it in
8403 # preloaded symbol tables.
8404 extract_expsyms_cmds=
8407 cygwin* | mingw* | pw32*)
8408 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8409 # When not using gcc, we currently assume that we are using
8410 # Microsoft Visual C++.
8411 if test "$GCC" != yes; then
8421 if test "$with_gnu_ld" = yes; then
8422 # If archive_cmds runs LD, not CC, wlarc should be empty
8425 # See if GNU ld supports shared libraries.
8427 aix3* | aix4* | aix5*)
8428 # On AIX/PPC, the GNU linker is very broken
8429 if test "$host_cpu" != ia64; then
8433 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8434 *** to be unable to reliably create shared libraries on AIX.
8435 *** Therefore, libtool is disabling shared libraries support. If you
8436 *** really care for shared libraries, you may want to modify your PATH
8437 *** so that a non-GNU linker is found, and then restart.
8444 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)'
8445 hardcode_libdir_flag_spec='-L$libdir'
8446 hardcode_minus_L=yes
8448 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8449 # that the semantics of dynamic libraries on AmigaOS, at least up
8450 # to version 4, is to share data among multiple programs linked
8451 # with the same dynamic library. Since this doesn't match the
8452 # behavior of shared libraries on other platforms, we can't use
8458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8459 allow_undefined_flag=unsupported
8460 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8461 # support --undefined. This deserves some investigation. FIXME
8462 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468 cygwin* | mingw* | pw32*)
8469 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8470 # as there is no search path for DLLs.
8471 hardcode_libdir_flag_spec='-L$libdir'
8472 allow_undefined_flag=unsupported
8473 always_export_symbols=no
8474 enable_shared_with_static_runtimes=yes
8475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8477 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8479 # If the export-symbols file already is a .def file (1st line
8480 # is EXPORTS), use it as is; otherwise, prepend...
8481 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8482 cp $export_symbols $output_objdir/$soname.def;
8484 echo EXPORTS > $output_objdir/$soname.def;
8485 cat $export_symbols >> $output_objdir/$soname.def;
8487 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8509 *** create shared libraries on Solaris systems. Therefore, libtool
8510 *** is disabling shared libraries support. We urge you to upgrade GNU
8511 *** binutils to release 2.9.1 or newer. Another option is to modify
8512 *** your PATH or compiler configuration so that the native linker is
8513 *** used, and then restart.
8516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8525 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8528 hardcode_shlibpath_var=no
8532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8533 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534 archive_cmds="$tmp_archive_cmds"
8535 supports_anon_versioning=no
8536 case `$LD -v 2>/dev/null` in
8537 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8538 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8539 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8540 *\ 2.11.*) ;; # other 2.11 versions
8541 *) supports_anon_versioning=yes ;;
8543 if test $supports_anon_versioning = yes; then
8544 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8546 $echo "local: *; };" >> $output_objdir/$libname.ver~
8547 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8549 archive_expsym_cmds="$tmp_archive_cmds"
8557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8566 if test "$ld_shlibs" = yes; then
8567 runpath_var=LD_RUN_PATH
8568 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8569 export_dynamic_flag_spec='${wl}--export-dynamic'
8570 # ancient GNU ld didn't support --whole-archive et. al.
8571 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8572 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8574 whole_archive_flag_spec=
8578 # PORTME fill in a description of your system's linker (not GNU ld)
8581 allow_undefined_flag=unsupported
8582 always_export_symbols=yes
8583 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'
8584 # Note: this linker hardcodes the directories in LIBPATH if there
8585 # are no directories specified by -L.
8586 hardcode_minus_L=yes
8587 if test "$GCC" = yes && test -z "$link_static_flag"; then
8588 # Neither direct hardcoding nor static linking is supported with a
8590 hardcode_direct=unsupported
8595 if test "$host_cpu" = ia64; then
8596 # On IA64, the linker does run time linking by default, so we don't
8597 # have to do anything special.
8598 aix_use_runtimelinking=no
8599 exp_sym_flag='-Bexport'
8602 # If we're using GNU nm, then we don't want the "-C" option.
8603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8605 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8607 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'
8609 aix_use_runtimelinking=no
8611 # Test if we are trying to use run time linking or normal
8612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8613 # need to do runtime linking.
8614 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8615 for ld_flag in $LDFLAGS; do
8616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8617 aix_use_runtimelinking=yes
8623 exp_sym_flag='-bexport'
8624 no_entry_flag='-bnoentry'
8627 # When large executables or shared objects are built, AIX ld can
8628 # have problems creating the table of contents. If linking a library
8629 # or program results in "error TOC overflow" add -mminimal-toc to
8630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8635 hardcode_libdir_separator=':'
8636 link_all_deplibs=yes
8638 if test "$GCC" = yes; then
8639 case $host_os in aix4.012|aix4.012.*)
8640 # We only want to do this on AIX 4.2 and lower, the check
8641 # below for broken collect2 doesn't work under 4.3+
8642 collect2name=`${CC} -print-prog-name=collect2`
8643 if test -f "$collect2name" && \
8644 strings "$collect2name" | grep resolve_lib_name >/dev/null
8646 # We have reworked collect2
8649 # We have old collect2
8650 hardcode_direct=unsupported
8651 # It fails to find uninstalled libraries when the uninstalled
8652 # path is not listed in the libpath. Setting hardcode_minus_L
8653 # to unsupported forces relinking
8654 hardcode_minus_L=yes
8655 hardcode_libdir_flag_spec='-L$libdir'
8656 hardcode_libdir_separator=
8659 shared_flag='-shared'
8662 if test "$host_cpu" = ia64; then
8663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8664 # chokes on -Wl,-G. The following line is correct:
8667 if test "$aix_use_runtimelinking" = yes; then
8668 shared_flag='${wl}-G'
8670 shared_flag='${wl}-bM:SRE'
8675 # It seems that -bexpall does not export symbols beginning with
8676 # underscore (_), so it is better to generate a list of symbols to export.
8677 always_export_symbols=yes
8678 if test "$aix_use_runtimelinking" = yes; then
8679 # Warning - without using the other runtime loading flags (-brtl),
8680 # -berok will link without error, but may produce a broken library.
8681 allow_undefined_flag='-berok'
8682 # Determine the default libpath from the value encoded in an empty executable.
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700 (eval $ac_link) 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag"
8708 || test ! -s conftest.err'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8721 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8723 # Check for a 64-bit object if we didn't find anything.
8724 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8731 rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8735 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8736 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8738 if test "$host_cpu" = ia64; then
8739 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8740 allow_undefined_flag="-z nodefs"
8741 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8743 # Determine the default libpath from the value encoded in an empty executable.
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag"
8769 || test ! -s conftest.err'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try='test -s conftest$ac_exeext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8782 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8784 # Check for a 64-bit object if we didn't find anything.
8785 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8792 rm -f conftest.err conftest.$ac_objext \
8793 conftest$ac_exeext conftest.$ac_ext
8794 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8796 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8797 # Warning - without using the other run time loading flags,
8798 # -berok will link without error, but may produce a broken library.
8799 no_undefined_flag=' ${wl}-bernotok'
8800 allow_undefined_flag=' ${wl}-berok'
8801 # -bexpall does not export symbols beginning with underscore (_)
8802 always_export_symbols=yes
8803 # Exported symbols can be pulled into shared objects from archives
8804 whole_archive_flag_spec=' '
8805 archive_cmds_need_lc=yes
8806 # This is similar to how AIX traditionally builds it's shared libraries.
8807 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8813 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)'
8814 hardcode_libdir_flag_spec='-L$libdir'
8815 hardcode_minus_L=yes
8816 # see comment about different semantics on the GNU ld section
8821 export_dynamic_flag_spec=-rdynamic
8824 cygwin* | mingw* | pw32*)
8825 # When not using gcc, we currently assume that we are using
8826 # Microsoft Visual C++.
8827 # hardcode_libdir_flag_spec is actually meaningless, as there is
8828 # no search path for DLLs.
8829 hardcode_libdir_flag_spec=' '
8830 allow_undefined_flag=unsupported
8831 # Tell ltmain to make .lib files, not .a files.
8833 # Tell ltmain to make .dll files, not .so files.
8835 # FIXME: Setting linknames here is a bad hack.
8836 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8837 # The linker will automatically build a .lib file if we build a DLL.
8838 old_archive_From_new_cmds='true'
8839 # FIXME: Should let the user specify the lib program.
8840 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8841 fix_srcfile_path='`cygpath -w "$srcfile"`'
8842 enable_shared_with_static_runtimes=yes
8845 darwin* | rhapsody*)
8847 rhapsody* | darwin1.[012])
8848 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8851 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8852 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8854 case ${MACOSX_DEPLOYMENT_TARGET} in
8856 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8859 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8865 archive_cmds_need_lc=no
8867 hardcode_automatic=yes
8868 hardcode_shlibpath_var=unsupported
8869 whole_archive_flag_spec=''
8870 link_all_deplibs=yes
8871 if test "$GCC" = yes ; then
8872 output_verbose_link_cmd='echo'
8873 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8874 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8876 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8877 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8879 case "$cc_basename" in
8881 output_verbose_link_cmd='echo'
8882 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8883 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8885 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8886 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897 hardcode_libdir_flag_spec='-L$libdir'
8898 hardcode_shlibpath_var=no
8905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8906 # support. Future versions do this automatically, but an explicit c++rt0.o
8907 # does not break anything, and helps significantly (at the cost of a little
8910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8911 hardcode_libdir_flag_spec='-R$libdir'
8913 hardcode_shlibpath_var=no
8916 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8920 hardcode_minus_L=yes
8921 hardcode_shlibpath_var=no
8924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8925 freebsd* | kfreebsd*-gnu)
8926 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8927 hardcode_libdir_flag_spec='-R$libdir'
8929 hardcode_shlibpath_var=no
8933 if test "$GCC" = yes; then
8934 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8936 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'
8938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8939 hardcode_libdir_separator=:
8942 # hardcode_minus_L: Not really in the search PATH,
8943 # but as the default location of the library.
8944 hardcode_minus_L=yes
8945 export_dynamic_flag_spec='${wl}-E'
8949 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8952 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8961 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8964 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8968 if test "$with_gnu_ld" = no; then
8971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8972 hardcode_libdir_flag_spec_ld='+b $libdir'
8973 hardcode_libdir_separator=:
8975 hardcode_shlibpath_var=no
8978 hardcode_libdir_flag_spec='-L$libdir'
8980 hardcode_shlibpath_var=no
8982 # hardcode_minus_L: Not really in the search PATH,
8983 # but as the default location of the library.
8984 hardcode_minus_L=yes
8987 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8988 hardcode_libdir_separator=:
8990 export_dynamic_flag_spec='${wl}-E'
8992 # hardcode_minus_L: Not really in the search PATH,
8993 # but as the default location of the library.
8994 hardcode_minus_L=yes
9000 irix5* | irix6* | nonstopux*)
9001 if test "$GCC" = yes; then
9002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9004 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9005 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008 hardcode_libdir_separator=:
9009 link_all_deplibs=yes
9013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9016 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9018 hardcode_libdir_flag_spec='-R$libdir'
9020 hardcode_shlibpath_var=no
9024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027 hardcode_libdir_separator=:
9028 hardcode_shlibpath_var=no
9033 hardcode_shlibpath_var=no
9034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9035 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9036 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9037 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9038 export_dynamic_flag_spec='${wl}-E'
9041 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9043 hardcode_libdir_flag_spec='-R$libdir'
9046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9054 hardcode_libdir_flag_spec='-L$libdir'
9055 hardcode_minus_L=yes
9056 allow_undefined_flag=unsupported
9057 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'
9058 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9062 if test "$GCC" = yes; then
9063 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9064 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9066 allow_undefined_flag=' -expect_unresolved \*'
9067 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9070 hardcode_libdir_separator=:
9073 osf4* | osf5*) # as osf3* with the addition of -msym flag
9074 if test "$GCC" = yes; then
9075 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9076 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9079 allow_undefined_flag=' -expect_unresolved \*'
9080 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9081 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9082 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9084 # Both c and cxx compiler support -rpath directly
9085 hardcode_libdir_flag_spec='-rpath $libdir'
9087 hardcode_libdir_separator=:
9091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092 hardcode_shlibpath_var=no
9093 export_dynamic_flag_spec='${wl}-Bexport'
9094 runpath_var=LD_RUN_PATH
9095 hardcode_runpath_var=yes
9099 no_undefined_flag=' -z text'
9100 if test "$GCC" = yes; then
9101 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9102 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9103 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9105 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9106 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9107 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9109 hardcode_libdir_flag_spec='-R$libdir'
9110 hardcode_shlibpath_var=no
9112 solaris2.[0-5] | solaris2.[0-5].*) ;;
9113 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9114 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9116 link_all_deplibs=yes
9120 if test "x$host_vendor" = xsequent; then
9121 # Use $CC to link under sequent, because it throws in some extra .o
9122 # files that make .init and .fini sections work.
9123 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9125 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_minus_L=yes
9130 hardcode_shlibpath_var=no
9134 case $host_vendor in
9136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137 hardcode_direct=yes # is this really true???
9140 ## LD is ld it makes a PLAMLIB
9141 ## CC just makes a GrossModule.
9142 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9143 reload_cmds='$CC -r -o $output$reload_objs'
9147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9151 runpath_var='LD_RUN_PATH'
9152 hardcode_shlibpath_var=no
9156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9157 hardcode_shlibpath_var=no
9158 export_dynamic_flag_spec='-Bexport'
9162 if test -d /usr/nec; then
9163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9164 hardcode_shlibpath_var=no
9165 runpath_var=LD_RUN_PATH
9166 hardcode_runpath_var=yes
9172 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9175 hardcode_shlibpath_var=no
9176 hardcode_runpath_var=yes
9177 runpath_var=LD_RUN_PATH
9180 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9181 no_undefined_flag='${wl}-z ${wl}text'
9182 if test "$GCC" = yes; then
9183 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9185 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187 runpath_var='LD_RUN_PATH'
9188 hardcode_shlibpath_var=no
9192 no_undefined_flag=' -z text'
9193 # $CC -shared without GNU ld will not create a library from C++
9194 # object files and a static libstdc++, better avoid it by now
9195 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9198 hardcode_libdir_flag_spec=
9199 hardcode_shlibpath_var=no
9200 runpath_var='LD_RUN_PATH'
9204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9205 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_shlibpath_var=no
9215 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9216 echo "${ECHO_T}$ld_shlibs" >&6
9217 test "$ld_shlibs" = no && can_build_shared=no
9219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9220 if test "$GCC" = yes; then
9221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9225 # Do we need to explicitly link libc?
9227 case "x$archive_cmds_need_lc" in
9229 # Assume -lc should be added
9230 archive_cmds_need_lc=yes
9232 if test "$enable_shared" = yes && test "$GCC" = yes; then
9233 case $archive_cmds in
9235 # FIXME: we may have to deal with multi-command sequences.
9238 # Test whether the compiler implicitly links with -lc since on some
9239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9240 # to ld, don't add -lc before -lgcc.
9241 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9242 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247 (eval $ac_compile) 2>&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } 2>conftest.err; then
9253 libobjs=conftest.$ac_objext
9255 wl=$lt_prog_compiler_wl
9261 lt_save_allow_undefined_flag=$allow_undefined_flag
9262 allow_undefined_flag=
9263 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9264 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }
9269 archive_cmds_need_lc=no
9271 archive_cmds_need_lc=yes
9273 allow_undefined_flag=$lt_save_allow_undefined_flag
9275 cat conftest.err 1>&5
9278 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9279 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9286 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9289 libname_spec='lib$name'
9297 shlibpath_overrides_runpath=unknown
9299 dynamic_linker="$host_os ld.so"
9300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9301 if test "$GCC" = yes; then
9302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9303 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9304 # if the path contains ";" then we assume it to be the separator
9305 # otherwise default to the standard path separator (i.e. ":") - it is
9306 # assumed that no part of a normal pathname contains ";" but that should
9307 # okay in the real world where ";" in dirpaths is itself problematic.
9308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9315 need_lib_prefix=unknown
9316 hardcode_into_libs=no
9318 # when you set need_version to no, make sure it does not cause -set_version
9319 # flags to be left without arguments
9320 need_version=unknown
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9326 shlibpath_var=LIBPATH
9328 # AIX 3 has no versioning support, so we append a major version to the name.
9329 soname_spec='${libname}${release}${shared_ext}$major'
9336 hardcode_into_libs=yes
9337 if test "$host_cpu" = ia64; then
9338 # AIX 5 supports IA64
9339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9340 shlibpath_var=LD_LIBRARY_PATH
9342 # With GCC up to 2.95.x, collect2 would create an import file
9343 # for dependence libraries. The import file would start with
9344 # the line `#! .'. This would cause the generated library to
9345 # depend on `.', always an invalid library. This was fixed in
9346 # development snapshots of GCC prior to 3.0.
9348 aix4 | aix4.[01] | aix4.[01].*)
9349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9359 # soname into executable. Probably we can add versioning support to
9360 # collect2, so additional links can be useful in future.
9361 if test "$aix_use_runtimelinking" = yes; then
9362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9363 # instead of lib<name>.a to let people know that these are not
9364 # typical AIX shared libraries.
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 # We preserve .a as extension for shared libraries through AIX4.2
9368 # and later when we are not doing run time linking.
9369 library_names_spec='${libname}${release}.a $libname.a'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9372 shlibpath_var=LIBPATH
9377 library_names_spec='$libname.ixlibrary $libname.a'
9378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9379 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9383 library_names_spec='${libname}${shared_ext}'
9384 dynamic_linker="$host_os ld.so"
9385 shlibpath_var=LIBRARY_PATH
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9397 # the default ld.so.conf also contains /usr/contrib/lib and
9398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9399 # libtool to hard-code these into programs
9402 cygwin* | mingw* | pw32*)
9403 version_type=windows
9408 case $GCC,$host_os in
9409 yes,cygwin* | yes,mingw* | yes,pw32*)
9410 library_names_spec='$libname.dll.a'
9411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9412 postinstall_cmds='base_file=`basename \${file}`~
9413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9414 dldir=$destdir/`dirname \$dlpath`~
9415 test -d \$dldir || mkdir -p \$dldir~
9416 $install_prog $dir/$dlname \$dldir/$dlname'
9417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9418 dlpath=$dir/\$dldll~
9420 shlibpath_overrides_runpath=yes
9424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9426 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9429 # MinGW DLLs use traditional 'lib' prefix
9430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9431 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9432 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9433 # It is most probably a Windows format PATH printed by
9434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9435 # path with ; separators, and with drive letters. We can handle the
9436 # drive letters (cygwin fileutils understands them), so leave them,
9437 # especially as we might pass files found there to a mingw objdump,
9438 # which wouldn't understand a cygwinified path. Ahh.
9439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9445 # pw32 DLLs use 'pw' prefix rather than 'lib'
9446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9455 dynamic_linker='Win32 ld.exe'
9456 # FIXME: first we should search . and the directory the executable is in
9460 darwin* | rhapsody*)
9461 dynamic_linker="$host_os dyld"
9465 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9466 soname_spec='${libname}${release}${major}$shared_ext'
9467 shlibpath_overrides_runpath=yes
9468 shlibpath_var=DYLD_LIBRARY_PATH
9469 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9470 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9471 if test "$GCC" = yes; then
9472 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9474 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 shlibpath_var=LD_LIBRARY_PATH
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=no
9500 hardcode_into_libs=yes
9501 dynamic_linker='GNU ld.so'
9505 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9506 version_type=freebsd-$objformat
9507 case $version_type in
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9518 shlibpath_var=LD_LIBRARY_PATH
9521 shlibpath_overrides_runpath=yes
9523 freebsd3.01* | freebsdelf3.01*)
9524 shlibpath_overrides_runpath=yes
9525 hardcode_into_libs=yes
9528 shlibpath_overrides_runpath=no
9529 hardcode_into_libs=yes
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9539 soname_spec='${libname}${release}${shared_ext}$major'
9540 shlibpath_var=LD_LIBRARY_PATH
9541 hardcode_into_libs=yes
9544 hpux9* | hpux10* | hpux11*)
9545 # Give a soname corresponding to the major version so that dld.sl refuses to
9546 # link against other versions.
9553 hardcode_into_libs=yes
9554 dynamic_linker="$host_os dld.so"
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 if test "X$HPUX_IA64_MODE" = X32; then
9560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9568 hardcode_into_libs=yes
9569 dynamic_linker="$host_os dld.sl"
9570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9579 dynamic_linker="$host_os dld.sl"
9580 shlibpath_var=SHLIB_PATH
9581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9587 postinstall_cmds='chmod 555 $lib'
9590 irix5* | irix6* | nonstopux*)
9592 nonstopux*) version_type=nonstopux ;;
9594 if test "$lt_cv_prog_gnu_ld" = yes; then
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9605 irix5* | nonstopux*)
9609 case $LD in # libtool.m4 will add one of these switches to LD
9610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9611 libsuff= shlibsuff= libmagic=32-bit;;
9612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9613 libsuff=32 shlibsuff=N32 libmagic=N32;;
9614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9615 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9616 *) libsuff= shlibsuff= libmagic=never-match;;
9620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9621 shlibpath_overrides_runpath=no
9622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9624 hardcode_into_libs=yes
9627 # No shared lib support for Linux oldld, aout, or coff.
9628 linux*oldld* | linux*aout* | linux*coff*)
9632 # This must be Linux ELF.
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9640 shlibpath_var=LD_LIBRARY_PATH
9641 shlibpath_overrides_runpath=no
9642 # This implies no fast_install, which is unacceptable.
9643 # Some rework will be needed to allow for fast_install
9644 # before this can be enabled.
9645 hardcode_into_libs=yes
9647 # Append ld.so.conf contents to the search path
9648 if test -f /etc/ld.so.conf; then
9649 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9650 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9653 # We used to test for /lib/ld.so.1 and disable shared libraries on
9654 # powerpc, because MkLinux only supported shared libraries with the
9655 # GNU dynamic linker. Since this was broken with cross compilers,
9656 # most powerpc-linux boxes support dynamic linking these days and
9657 # people can always --disable-shared, the test was removed, and we
9658 # assume the GNU/Linux dynamic linker is in use.
9659 dynamic_linker='GNU/Linux ld.so'
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 shlibpath_var=LD_LIBRARY_PATH
9669 shlibpath_overrides_runpath=no
9670 hardcode_into_libs=yes
9671 dynamic_linker='GNU ld.so'
9678 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9681 dynamic_linker='NetBSD (a.out) ld.so'
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 dynamic_linker='NetBSD ld.elf_so'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 shlibpath_overrides_runpath=yes
9689 hardcode_into_libs=yes
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath=yes
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9718 openbsd2.[89] | openbsd2.[89].*)
9719 shlibpath_overrides_runpath=no
9722 shlibpath_overrides_runpath=yes
9726 shlibpath_overrides_runpath=yes
9731 libname_spec='$name'
9734 library_names_spec='$libname${shared_ext} $libname.a'
9735 dynamic_linker='OS/2 ld.exe'
9736 shlibpath_var=LIBPATH
9739 osf3* | osf4* | osf5*)
9743 soname_spec='${libname}${release}${shared_ext}$major'
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 shlibpath_var=LD_LIBRARY_PATH
9746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9752 soname_spec='${libname}${release}${shared_ext}$major'
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 shlibpath_var=LD_LIBRARY_PATH
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765 hardcode_into_libs=yes
9766 # ldd complains unless libraries are executable
9767 postinstall_cmds='chmod +x $lib'
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=yes
9776 if test "$with_gnu_ld" = yes; then
9782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 shlibpath_var=LD_LIBRARY_PATH
9787 case $host_vendor in
9789 shlibpath_overrides_runpath=no
9791 export_dynamic_flag_spec='${wl}-Blargedynsym'
9792 runpath_var=LD_RUN_PATH
9800 shlibpath_overrides_runpath=no
9801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9807 if test -d /usr/nec ;then
9809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9810 soname_spec='$libname${shared_ext}.$major'
9811 shlibpath_var=LD_LIBRARY_PATH
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 soname_spec='${libname}${release}${shared_ext}$major'
9819 shlibpath_var=LD_LIBRARY_PATH
9826 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9827 echo "${ECHO_T}$dynamic_linker" >&6
9828 test "$dynamic_linker" = no && can_build_shared=no
9830 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9833 if test -n "$hardcode_libdir_flag_spec" || \
9834 test -n "$runpath_var" || \
9835 test "X$hardcode_automatic" = "Xyes" ; then
9837 # We can hardcode non-existant directories.
9838 if test "$hardcode_direct" != no &&
9839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9840 # have to relink, otherwise we might link with an installed library
9841 # when we should be linking with a yet-to-be-installed one
9842 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9843 test "$hardcode_minus_L" != no; then
9844 # Linking always hardcodes the temporary library directory.
9845 hardcode_action=relink
9847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9848 hardcode_action=immediate
9851 # We cannot hardcode anything, or else we can only hardcode existing
9853 hardcode_action=unsupported
9855 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9856 echo "${ECHO_T}$hardcode_action" >&6
9858 if test "$hardcode_action" = relink; then
9859 # Fast installation is not supported
9860 enable_fast_install=no
9861 elif test "$shlibpath_overrides_runpath" = yes ||
9862 test "$enable_shared" = no; then
9863 # Fast installation is not necessary
9864 enable_fast_install=needless
9869 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9870 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9871 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9872 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9873 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9874 echo "$as_me:$LINENO: result: yes" >&5
9875 echo "${ECHO_T}yes" >&6
9877 # FIXME - insert some real tests, host_os isn't really good enough
9880 if test -n "$STRIP" ; then
9881 striplib="$STRIP -x"
9882 echo "$as_me:$LINENO: result: yes" >&5
9883 echo "${ECHO_T}yes" >&6
9885 echo "$as_me:$LINENO: result: no" >&5
9886 echo "${ECHO_T}no" >&6
9890 echo "$as_me:$LINENO: result: no" >&5
9891 echo "${ECHO_T}no" >&6
9896 if test "x$enable_dlopen" != xyes; then
9897 enable_dlopen=unknown
9898 enable_dlopen_self=unknown
9899 enable_dlopen_self_static=unknown
9906 lt_cv_dlopen="load_add_on"
9908 lt_cv_dlopen_self=yes
9912 lt_cv_dlopen="LoadLibrary"
9917 lt_cv_dlopen="dlopen"
9922 # if libdl is installed we need to link against it
9923 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 ac_check_lib_save_LIBS=$LIBS
9930 cat >conftest.$ac_ext <<_ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9937 /* Override any gcc2 internal prototype to avoid an error. */
9941 /* We use char because int might match the return type of a gcc2
9942 builtin and then its argument prototype would still apply. */
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag"
9962 || test ! -s conftest.err'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_cv_lib_dl_dlopen=yes
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_cv_lib_dl_dlopen=no
9981 rm -f conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9987 if test $ac_cv_lib_dl_dlopen = yes; then
9988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9993 lt_cv_dlopen_self=yes
10000 echo "$as_me:$LINENO: checking for shl_load" >&5
10001 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10002 if test "${ac_cv_func_shl_load+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013 #define shl_load innocuous_shl_load
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char shl_load (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10021 # include <limits.h>
10023 # include <assert.h>
10028 /* Override any gcc2 internal prototype to avoid an error. */
10033 /* We use char because int might match the return type of a gcc2
10034 builtin and then its argument prototype would still apply. */
10036 /* The GNU C library defines this for functions which it implements
10037 to always fail with ENOSYS. Some functions are actually named
10038 something starting with __ and the normal name is an alias. */
10039 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10042 char (*f) () = shl_load;
10051 return f != shl_load;
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058 (eval $ac_link) 2>conftest.er1
10060 grep -v '^ *+' conftest.er1 >conftest.err
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag"
10066 || test ! -s conftest.err'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_func_shl_load=yes
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_cv_func_shl_load=no
10085 rm -f conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10088 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10089 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10090 if test $ac_cv_func_shl_load = yes; then
10091 lt_cv_dlopen="shl_load"
10093 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10094 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10095 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 ac_check_lib_save_LIBS=$LIBS
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10107 /* Override any gcc2 internal prototype to avoid an error. */
10111 /* We use char because int might match the return type of a gcc2
10112 builtin and then its argument prototype would still apply. */
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124 (eval $ac_link) 2>conftest.er1
10126 grep -v '^ *+' conftest.er1 >conftest.err
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try='test -z "$ac_c_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_lib_dld_shl_load=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_lib_dld_shl_load=no
10151 rm -f conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10153 LIBS=$ac_check_lib_save_LIBS
10155 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10156 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10157 if test $ac_cv_lib_dld_shl_load = yes; then
10158 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10160 echo "$as_me:$LINENO: checking for dlopen" >&5
10161 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10162 if test "${ac_cv_func_dlopen+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 cat >conftest.$ac_ext <<_ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10173 #define dlopen innocuous_dlopen
10175 /* System header to define __stub macros and hopefully few prototypes,
10176 which can conflict with char dlopen (); below.
10177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10178 <limits.h> exists even on freestanding compilers. */
10181 # include <limits.h>
10183 # include <assert.h>
10188 /* Override any gcc2 internal prototype to avoid an error. */
10193 /* We use char because int might match the return type of a gcc2
10194 builtin and then its argument prototype would still apply. */
10196 /* The GNU C library defines this for functions which it implements
10197 to always fail with ENOSYS. Some functions are actually named
10198 something starting with __ and the normal name is an alias. */
10199 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10202 char (*f) () = dlopen;
10211 return f != dlopen;
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>conftest.er1
10220 grep -v '^ *+' conftest.er1 >conftest.err
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag"
10226 || test ! -s conftest.err'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest$ac_exeext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_func_dlopen=yes
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_func_dlopen=no
10245 rm -f conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10248 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10249 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10250 if test $ac_cv_func_dlopen = yes; then
10251 lt_cv_dlopen="dlopen"
10253 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10254 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 ac_check_lib_save_LIBS=$LIBS
10260 cat >conftest.$ac_ext <<_ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10267 /* Override any gcc2 internal prototype to avoid an error. */
10271 /* We use char because int might match the return type of a gcc2
10272 builtin and then its argument prototype would still apply. */
10282 rm -f conftest.$ac_objext conftest$ac_exeext
10283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284 (eval $ac_link) 2>conftest.er1
10286 grep -v '^ *+' conftest.er1 >conftest.err
10288 cat conftest.err >&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -z "$ac_c_werror_flag"
10292 || test ! -s conftest.err'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; } &&
10298 { ac_try='test -s conftest$ac_exeext'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_cv_lib_dl_dlopen=yes
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_cv_lib_dl_dlopen=no
10311 rm -f conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313 LIBS=$ac_check_lib_save_LIBS
10315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10317 if test $ac_cv_lib_dl_dlopen = yes; then
10318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10320 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-lsvld $LIBS"
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10334 /* Override any gcc2 internal prototype to avoid an error. */
10338 /* We use char because int might match the return type of a gcc2
10339 builtin and then its argument prototype would still apply. */
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>conftest.er1
10353 grep -v '^ *+' conftest.er1 >conftest.err
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_lib_svld_dlopen=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_lib_svld_dlopen=no
10378 rm -f conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10384 if test $ac_cv_lib_svld_dlopen = yes; then
10385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10387 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 ac_check_lib_save_LIBS=$LIBS
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10401 /* Override any gcc2 internal prototype to avoid an error. */
10405 /* We use char because int might match the return type of a gcc2
10406 builtin and then its argument prototype would still apply. */
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418 (eval $ac_link) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest$ac_exeext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_cv_lib_dld_dld_link=yes
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_cv_lib_dld_dld_link=no
10445 rm -f conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 LIBS=$ac_check_lib_save_LIBS
10449 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10450 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10451 if test $ac_cv_lib_dld_dld_link = yes; then
10452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10473 if test "x$lt_cv_dlopen" != xno; then
10479 case $lt_cv_dlopen in
10481 save_CPPFLAGS="$CPPFLAGS"
10482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10484 save_LDFLAGS="$LDFLAGS"
10485 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10488 LIBS="$lt_cv_dlopen_libs $LIBS"
10490 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10491 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10492 if test "${lt_cv_dlopen_self+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 if test "$cross_compiling" = yes; then :
10496 lt_cv_dlopen_self=cross
10498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10499 lt_status=$lt_dlunknown
10500 cat > conftest.$ac_ext <<EOF
10501 #line 10501 "configure"
10502 #include "confdefs.h"
10511 # define LT_DLGLOBAL RTLD_GLOBAL
10514 # define LT_DLGLOBAL DL_GLOBAL
10516 # define LT_DLGLOBAL 0
10520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10521 find out it does not work in some platform. */
10522 #ifndef LT_DLLAZY_OR_NOW
10524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10527 # define LT_DLLAZY_OR_NOW DL_LAZY
10530 # define LT_DLLAZY_OR_NOW RTLD_NOW
10533 # define LT_DLLAZY_OR_NOW DL_NOW
10535 # define LT_DLLAZY_OR_NOW 0
10543 extern "C" void exit (int);
10546 void fnord() { int i=42;}
10549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10550 int status = $lt_dlunknown;
10554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10556 /* dlclose (self); */
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10567 (./conftest; exit; ) 2>/dev/null
10569 case x$lt_status in
10570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10572 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10575 # compilation failed
10576 lt_cv_dlopen_self=no
10583 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10584 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10586 if test "x$lt_cv_dlopen_self" = xyes; then
10587 LDFLAGS="$LDFLAGS $link_static_flag"
10588 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10589 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10590 if test "${lt_cv_dlopen_self_static+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10593 if test "$cross_compiling" = yes; then :
10594 lt_cv_dlopen_self_static=cross
10596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10597 lt_status=$lt_dlunknown
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10599 "configure"
10600 #include "confdefs.h"
10609 # define LT_DLGLOBAL RTLD_GLOBAL
10612 # define LT_DLGLOBAL DL_GLOBAL
10614 # define LT_DLGLOBAL 0
10618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10619 find out it does not work in some platform. */
10620 #ifndef LT_DLLAZY_OR_NOW
10622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10625 # define LT_DLLAZY_OR_NOW DL_LAZY
10628 # define LT_DLLAZY_OR_NOW RTLD_NOW
10631 # define LT_DLLAZY_OR_NOW DL_NOW
10633 # define LT_DLLAZY_OR_NOW 0
10641 extern "C" void exit (int);
10644 void fnord() { int i=42;}
10647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10648 int status = $lt_dlunknown;
10652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10654 /* dlclose (self); */
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661 (eval $ac_link) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10665 (./conftest; exit; ) 2>/dev/null
10667 case x$lt_status in
10668 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10669 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10670 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10673 # compilation failed
10674 lt_cv_dlopen_self_static=no
10681 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10682 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10685 CPPFLAGS="$save_CPPFLAGS"
10686 LDFLAGS="$save_LDFLAGS"
10691 case $lt_cv_dlopen_self in
10692 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10693 *) enable_dlopen_self=unknown ;;
10696 case $lt_cv_dlopen_self_static in
10697 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10698 *) enable_dlopen_self_static=unknown ;;
10703 # Report which librarie types wil actually be built
10704 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10705 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10706 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10707 echo "${ECHO_T}$can_build_shared" >&6
10709 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10710 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10711 test "$can_build_shared" = "no" && enable_shared=no
10713 # On AIX, shared libraries and static libraries use the same namespace, and
10714 # are all built from PIC.
10717 test "$enable_shared" = yes && enable_static=no
10718 if test -n "$RANLIB"; then
10719 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10720 postinstall_cmds='$RANLIB $lib'
10725 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10726 test "$enable_shared" = yes && enable_static=no
10730 echo "$as_me:$LINENO: result: $enable_shared" >&5
10731 echo "${ECHO_T}$enable_shared" >&6
10733 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10734 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10735 # Make sure either enable_shared or enable_static is yes.
10736 test "$enable_shared" = yes || enable_static=yes
10737 echo "$as_me:$LINENO: result: $enable_static" >&5
10738 echo "${ECHO_T}$enable_static" >&6
10740 # The else clause should only fire when bootstrapping the
10741 # libtool distribution, otherwise you forgot to ship ltmain.sh
10742 # with your package, and you will get complaints that there are
10743 # no rules to generate ltmain.sh.
10744 if test -f "$ltmain"; then
10745 # See if we are running on zsh, and set the options which allow our commands through
10746 # without removal of \ escapes.
10747 if test -n "${ZSH_VERSION+set}" ; then
10748 setopt NO_GLOB_SUBST
10750 # Now quote all the things that may contain metacharacters while being
10751 # careful not to overquote the AC_SUBSTed values. We take copies of the
10752 # variables and quote the copies for generation of the libtool script.
10753 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10755 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10756 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10757 deplibs_check_method reload_flag reload_cmds need_locks \
10758 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10759 lt_cv_sys_global_symbol_to_c_name_address \
10760 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10761 old_postinstall_cmds old_postuninstall_cmds \
10765 lt_prog_compiler_wl \
10766 lt_prog_compiler_pic \
10767 lt_prog_compiler_static \
10768 lt_prog_compiler_no_builtin_flag \
10769 export_dynamic_flag_spec \
10770 thread_safe_flag_spec \
10771 whole_archive_flag_spec \
10772 enable_shared_with_static_runtimes \
10774 old_archive_from_new_cmds \
10779 compiler_lib_search_path \
10781 archive_expsym_cmds \
10783 postuninstall_cmds \
10784 old_archive_from_expsyms_cmds \
10785 allow_undefined_flag \
10786 no_undefined_flag \
10787 export_symbols_cmds \
10788 hardcode_libdir_flag_spec \
10789 hardcode_libdir_flag_spec_ld \
10790 hardcode_libdir_separator \
10791 hardcode_automatic \
10793 module_expsym_cmds \
10794 lt_cv_prog_compiler_c_o \
10796 include_expsyms; do
10799 old_archive_cmds | \
10800 old_archive_from_new_cmds | \
10802 archive_expsym_cmds | \
10804 module_expsym_cmds | \
10805 old_archive_from_expsyms_cmds | \
10806 export_symbols_cmds | \
10807 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10808 postinstall_cmds | postuninstall_cmds | \
10809 old_postinstall_cmds | old_postuninstall_cmds | \
10810 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10811 # Double-quote double-evaled strings.
10812 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10821 *'\$0 --fallback-echo"')
10822 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10826 cfgfile="${ofile}T"
10827 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10829 { echo "$as_me:$LINENO: creating $ofile" >&5
10830 echo "$as_me: creating $ofile" >&6;}
10832 cat <<__EOF__ >> "$cfgfile"
10835 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10836 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10837 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10839 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10840 # Free Software Foundation, Inc.
10842 # This file is part of GNU Libtool:
10843 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10845 # This program is free software; you can redistribute it and/or modify
10846 # it under the terms of the GNU General Public License as published by
10847 # the Free Software Foundation; either version 2 of the License, or
10848 # (at your option) any later version.
10850 # This program is distributed in the hope that it will be useful, but
10851 # WITHOUT ANY WARRANTY; without even the implied warranty of
10852 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10853 # General Public License for more details.
10855 # You should have received a copy of the GNU General Public License
10856 # along with this program; if not, write to the Free Software
10857 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10859 # As a special exception to the GNU General Public License, if you
10860 # distribute this file as part of a program that contains a
10861 # configuration script generated by Autoconf, you may include it under
10862 # the same distribution terms that you use for the rest of that program.
10864 # A sed program that does not truncate output.
10867 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10868 Xsed="$SED -e s/^X//"
10870 # The HP-UX ksh and POSIX shell print the target directory to stdout
10871 # if CDPATH is set.
10872 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10874 # The names of the tagged configurations supported by this script.
10877 # ### BEGIN LIBTOOL CONFIG
10879 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10881 # Shell to use when invoking shell scripts.
10884 # Whether or not to build shared libraries.
10885 build_libtool_libs=$enable_shared
10887 # Whether or not to build static libraries.
10888 build_old_libs=$enable_static
10890 # Whether or not to add -lc for building shared libraries.
10891 build_libtool_need_lc=$archive_cmds_need_lc
10893 # Whether or not to disallow shared libs when runtime libs are static
10894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10896 # Whether or not to optimize for fast installation.
10897 fast_install=$enable_fast_install
10900 host_alias=$host_alias
10903 # An echo program that does not interpret backslashes.
10908 AR_FLAGS=$lt_AR_FLAGS
10913 # A language-specific compiler.
10916 # Is the compiler the GNU C compiler?
10922 # The linker used to build libraries.
10925 # Whether we need hard or soft links.
10928 # A BSD-compatible nm program.
10931 # A symbol stripping program
10934 # Used to examine libraries when file_magic_cmd begins "file"
10935 MAGIC_CMD=$MAGIC_CMD
10937 # Used on cygwin: DLL creation program.
10940 # Used on cygwin: object dumper.
10943 # Used on cygwin: assembler.
10946 # The name of the directory that contains temporary libtool files.
10949 # How to create reloadable object files.
10950 reload_flag=$lt_reload_flag
10951 reload_cmds=$lt_reload_cmds
10953 # How to pass a linker flag through the compiler.
10954 wl=$lt_lt_prog_compiler_wl
10956 # Object file suffix (normally "o").
10957 objext="$ac_objext"
10959 # Old archive suffix (normally "a").
10962 # Shared library suffix (normally ".so").
10963 shrext_cmds='$shrext_cmds'
10965 # Executable file suffix (normally "").
10968 # Additional compiler flags for building library objects.
10969 pic_flag=$lt_lt_prog_compiler_pic
10972 # What is the maximum length of a command?
10973 max_cmd_len=$lt_cv_sys_max_cmd_len
10975 # Does compiler simultaneously support -c and -o options?
10976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10978 # Must we lock files when doing compilation ?
10979 need_locks=$lt_need_locks
10981 # Do we need the lib prefix for modules?
10982 need_lib_prefix=$need_lib_prefix
10984 # Do we need a version for libraries?
10985 need_version=$need_version
10987 # Whether dlopen is supported.
10988 dlopen_support=$enable_dlopen
10990 # Whether dlopen of programs is supported.
10991 dlopen_self=$enable_dlopen_self
10993 # Whether dlopen of statically linked programs is supported.
10994 dlopen_self_static=$enable_dlopen_self_static
10996 # Compiler flag to prevent dynamic linking.
10997 link_static_flag=$lt_lt_prog_compiler_static
10999 # Compiler flag to turn off builtin functions.
11000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11002 # Compiler flag to allow reflexive dlopens.
11003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11005 # Compiler flag to generate shared objects directly from archives.
11006 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11008 # Compiler flag to generate thread-safe objects.
11009 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11011 # Library versioning type.
11012 version_type=$version_type
11014 # Format of library name prefix.
11015 libname_spec=$lt_libname_spec
11017 # List of archive names. First name is the real one, the rest are links.
11018 # The last name is the one that the linker finds with -lNAME.
11019 library_names_spec=$lt_library_names_spec
11021 # The coded name of the library, if different from the real name.
11022 soname_spec=$lt_soname_spec
11024 # Commands used to build and install an old-style archive.
11026 old_archive_cmds=$lt_old_archive_cmds
11027 old_postinstall_cmds=$lt_old_postinstall_cmds
11028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11030 # Create an old-style archive from a shared archive.
11031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11033 # Create a temporary old-style archive to link instead of a shared archive.
11034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11036 # Commands used to build and install a shared archive.
11037 archive_cmds=$lt_archive_cmds
11038 archive_expsym_cmds=$lt_archive_expsym_cmds
11039 postinstall_cmds=$lt_postinstall_cmds
11040 postuninstall_cmds=$lt_postuninstall_cmds
11042 # Commands used to build a loadable module (assumed same as above if empty)
11043 module_cmds=$lt_module_cmds
11044 module_expsym_cmds=$lt_module_expsym_cmds
11046 # Commands to strip libraries.
11047 old_striplib=$lt_old_striplib
11048 striplib=$lt_striplib
11050 # Dependencies to place before the objects being linked to create a
11052 predep_objects=$lt_predep_objects
11054 # Dependencies to place after the objects being linked to create a
11056 postdep_objects=$lt_postdep_objects
11058 # Dependencies to place before the objects being linked to create a
11060 predeps=$lt_predeps
11062 # Dependencies to place after the objects being linked to create a
11064 postdeps=$lt_postdeps
11066 # The library search path used internally by the compiler when linking
11067 # a shared library.
11068 compiler_lib_search_path=$lt_compiler_lib_search_path
11070 # Method to check whether dependent libraries are shared objects.
11071 deplibs_check_method=$lt_deplibs_check_method
11073 # Command to use when deplibs_check_method == file_magic.
11074 file_magic_cmd=$lt_file_magic_cmd
11076 # Flag that allows shared libraries with undefined symbols to be built.
11077 allow_undefined_flag=$lt_allow_undefined_flag
11079 # Flag that forces no undefined symbols.
11080 no_undefined_flag=$lt_no_undefined_flag
11082 # Commands used to finish a libtool library installation in a directory.
11083 finish_cmds=$lt_finish_cmds
11085 # Same as above, but a single script fragment to be evaled but not shown.
11086 finish_eval=$lt_finish_eval
11088 # Take the output of nm and produce a listing of raw symbols and C names.
11089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11091 # Transform the output of nm in a proper C declaration
11092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11094 # Transform the output of nm in a C name address pair
11095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11097 # This is the shared library runtime path variable.
11098 runpath_var=$runpath_var
11100 # This is the shared library path variable.
11101 shlibpath_var=$shlibpath_var
11103 # Is shlibpath searched before the hard-coded library search path?
11104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11106 # How to hardcode a shared library path into an executable.
11107 hardcode_action=$hardcode_action
11109 # Whether we should hardcode library paths into libraries.
11110 hardcode_into_libs=$hardcode_into_libs
11112 # Flag to hardcode \$libdir into a binary during linking.
11113 # This must work even if \$libdir does not exist.
11114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11116 # If ld is used when linking, flag to hardcode \$libdir into
11117 # a binary during linking. This must work even if \$libdir does
11119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11121 # Whether we need a single -rpath flag with a separated argument.
11122 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11125 # resulting binary.
11126 hardcode_direct=$hardcode_direct
11128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11129 # resulting binary.
11130 hardcode_minus_L=$hardcode_minus_L
11132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11133 # the resulting binary.
11134 hardcode_shlibpath_var=$hardcode_shlibpath_var
11136 # Set to yes if building a shared library automatically hardcodes DIR into the library
11137 # and all subsequent libraries and executables linked against it.
11138 hardcode_automatic=$hardcode_automatic
11140 # Variables whose values should be saved in libtool wrapper scripts and
11141 # restored at relink time.
11142 variables_saved_for_relink="$variables_saved_for_relink"
11144 # Whether libtool must link a program against all its dependency libraries.
11145 link_all_deplibs=$link_all_deplibs
11147 # Compile-time system search path for libraries
11148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11150 # Run-time system search path for libraries
11151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11153 # Fix the shell variable \$srcfile for the compiler.
11154 fix_srcfile_path="$fix_srcfile_path"
11156 # Set to yes if exported symbols are required.
11157 always_export_symbols=$always_export_symbols
11159 # The commands to list exported symbols.
11160 export_symbols_cmds=$lt_export_symbols_cmds
11162 # The commands to extract the exported symbol list from a shared archive.
11163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11165 # Symbols that should not be listed in the preloaded symbols.
11166 exclude_expsyms=$lt_exclude_expsyms
11168 # Symbols that must always be exported.
11169 include_expsyms=$lt_include_expsyms
11171 # ### END LIBTOOL CONFIG
11178 cat <<\EOF >> "$cfgfile"
11180 # AIX sometimes has problems with the GCC collect2 program. For some
11181 # reason, if we set the COLLECT_NAMES environment variable, the problems
11182 # vanish in a puff of smoke.
11183 if test "X${COLLECT_NAMES+set}" != Xset; then
11185 export COLLECT_NAMES
11191 # We use sed instead of cat because bash on DJGPP gets confused if
11192 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11193 # text mode, it properly converts lines to CR/LF. This bash problem
11194 # is reportedly fixed, but why not run on old versions too?
11195 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11197 mv -f "$cfgfile" "$ofile" || \
11198 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11202 # If there is no Makefile yet, we rely on a make rule to execute
11203 # `config.status --recheck' to rerun these tests and create the
11204 # libtool script then.
11205 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11206 if test -f "$ltmain_in"; then
11207 test -f Makefile && make "$ltmain"
11213 ac_cpp='$CPP $CPPFLAGS'
11214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11221 # Check whether --with-tags or --without-tags was given.
11222 if test "${with_tags+set}" = set; then
11223 withval="$with_tags"
11224 tagnames="$withval"
11227 if test -f "$ltmain" && test -n "$tagnames"; then
11228 if test ! -f "${ofile}"; then
11229 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11230 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11233 if test -z "$LTCC"; then
11234 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11235 if test -z "$LTCC"; then
11236 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11237 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11240 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11244 # Extract list of available tagged configurations in $ofile.
11245 # Note that this assumes the entire list is on one line.
11246 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11249 for tagname in $tagnames; do
11251 # Check whether tagname contains only valid characters
11252 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11254 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11255 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11256 { (exit 1); exit 1; }; }
11260 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11262 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11263 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11264 { (exit 1); exit 1; }; }
11267 # Update the list of available tags.
11268 if test -n "$tagname"; then
11269 echo appending configuration tag "$tagname" to $ofile
11273 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11274 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11275 (test "X$CXX" != "Xg++"))) ; then
11277 ac_cpp='$CXXCPP $CPPFLAGS'
11278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11285 archive_cmds_need_lc_CXX=no
11286 allow_undefined_flag_CXX=
11287 always_export_symbols_CXX=no
11288 archive_expsym_cmds_CXX=
11289 export_dynamic_flag_spec_CXX=
11290 hardcode_direct_CXX=no
11291 hardcode_libdir_flag_spec_CXX=
11292 hardcode_libdir_flag_spec_ld_CXX=
11293 hardcode_libdir_separator_CXX=
11294 hardcode_minus_L_CXX=no
11295 hardcode_automatic_CXX=no
11297 module_expsym_cmds_CXX=
11298 link_all_deplibs_CXX=unknown
11299 old_archive_cmds_CXX=$old_archive_cmds
11300 no_undefined_flag_CXX=
11301 whole_archive_flag_spec_CXX=
11302 enable_shared_with_static_runtimes_CXX=no
11304 # Dependencies to place before and after the object being linked:
11305 predep_objects_CXX=
11306 postdep_objects_CXX=
11309 compiler_lib_search_path_CXX=
11311 # Source file extension for C++ test sources.
11314 # Object file extension for compiled C++ test sources.
11318 # Code to be used in simple compile tests
11319 lt_simple_compile_test_code="int some_variable = 0;\n"
11321 # Code to be used in simple link tests
11322 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11324 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11326 # If no C compiler was specified, use CC.
11329 # Allow CC to be a program name with arguments.
11333 # Allow CC to be a program name with arguments.
11338 lt_save_with_gnu_ld=$with_gnu_ld
11339 lt_save_path_LD=$lt_cv_path_LD
11340 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11341 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11343 unset lt_cv_prog_gnu_ld
11345 if test -n "${lt_cv_path_LDCXX+set}"; then
11346 lt_cv_path_LD=$lt_cv_path_LDCXX
11348 unset lt_cv_path_LD
11350 test -z "${LDCXX+set}" || LD=$LDCXX
11354 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11356 # We don't want -fno-exception wen compiling C++ code, so set the
11357 # no_builtin_flag separately
11358 if test "$GXX" = yes; then
11359 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11361 lt_prog_compiler_no_builtin_flag_CXX=
11364 if test "$GXX" = yes; then
11365 # Set up default GNU C++ configuration
11368 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11369 if test "${with_gnu_ld+set}" = set; then
11370 withval="$with_gnu_ld"
11371 test "$withval" = no || with_gnu_ld=yes
11376 if test "$GCC" = yes; then
11377 # Check if gcc -print-prog-name=ld gives a path.
11378 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11379 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11382 # gcc leaves a trailing carriage return which upsets mingw
11383 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11385 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11388 # Accept absolute paths.
11390 re_direlt='/[^/][^/]*/\.\./'
11391 # Canonicalize the pathname of ld
11392 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11393 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11394 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11396 test -z "$LD" && LD="$ac_prog"
11399 # If it fails, then pretend we aren't using GCC.
11403 # If it is relative, then search for the first ld in PATH.
11404 with_gnu_ld=unknown
11407 elif test "$with_gnu_ld" = yes; then
11408 echo "$as_me:$LINENO: checking for GNU ld" >&5
11409 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11411 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11412 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11414 if test "${lt_cv_path_LD+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 if test -z "$LD"; then
11418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11419 for ac_dir in $PATH; do
11421 test -z "$ac_dir" && ac_dir=.
11422 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11423 lt_cv_path_LD="$ac_dir/$ac_prog"
11424 # Check to see if the program is GNU ld. I'd rather use --version,
11425 # but apparently some GNU ld's only accept -v.
11426 # Break only if it was the GNU/non-GNU ld that we prefer.
11427 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11428 *GNU* | *'with BFD'*)
11429 test "$with_gnu_ld" != no && break
11432 test "$with_gnu_ld" != yes && break
11439 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11443 LD="$lt_cv_path_LD"
11444 if test -n "$LD"; then
11445 echo "$as_me:$LINENO: result: $LD" >&5
11446 echo "${ECHO_T}$LD" >&6
11448 echo "$as_me:$LINENO: result: no" >&5
11449 echo "${ECHO_T}no" >&6
11451 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11452 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11453 { (exit 1); exit 1; }; }
11454 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11455 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11456 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11460 case `$LD -v 2>&1 </dev/null` in
11461 *GNU* | *'with BFD'*)
11462 lt_cv_prog_gnu_ld=yes
11465 lt_cv_prog_gnu_ld=no
11469 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11470 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11471 with_gnu_ld=$lt_cv_prog_gnu_ld
11475 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11476 # archiving commands below assume that GNU ld is being used.
11477 if test "$with_gnu_ld" = yes; then
11478 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11479 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11481 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11484 # If archive_cmds runs LD, not CC, wlarc should be empty
11485 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11486 # investigate it a little bit more. (MM)
11489 # ancient GNU ld didn't support --whole-archive et. al.
11490 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11491 grep 'no-whole-archive' > /dev/null; then
11492 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11494 whole_archive_flag_spec_CXX=
11500 # A generic and very simple default shared library creation
11501 # command for GNU C++ for the case where it uses the native
11502 # linker, instead of GNU ld. If possible, this setting should
11503 # overridden to take advantage of the native linker features on
11504 # the platform it is being used on.
11505 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11508 # Commands to make compiler produce verbose output that lists
11509 # what "hidden" libraries, object files and flags are used when
11510 # linking a shared library.
11511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11519 # PORTME: fill in a description of your system's C++ link characteristics
11520 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11521 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11525 # FIXME: insert proper C++ library support
11529 if test "$host_cpu" = ia64; then
11530 # On IA64, the linker does run time linking by default, so we don't
11531 # have to do anything special.
11532 aix_use_runtimelinking=no
11533 exp_sym_flag='-Bexport'
11536 aix_use_runtimelinking=no
11538 # Test if we are trying to use run time linking or normal
11539 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11540 # need to do runtime linking.
11541 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11542 for ld_flag in $LDFLAGS; do
11545 aix_use_runtimelinking=yes
11552 exp_sym_flag='-bexport'
11553 no_entry_flag='-bnoentry'
11556 # When large executables or shared objects are built, AIX ld can
11557 # have problems creating the table of contents. If linking a library
11558 # or program results in "error TOC overflow" add -mminimal-toc to
11559 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11560 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11562 archive_cmds_CXX=''
11563 hardcode_direct_CXX=yes
11564 hardcode_libdir_separator_CXX=':'
11565 link_all_deplibs_CXX=yes
11567 if test "$GXX" = yes; then
11568 case $host_os in aix4.012|aix4.012.*)
11569 # We only want to do this on AIX 4.2 and lower, the check
11570 # below for broken collect2 doesn't work under 4.3+
11571 collect2name=`${CC} -print-prog-name=collect2`
11572 if test -f "$collect2name" && \
11573 strings "$collect2name" | grep resolve_lib_name >/dev/null
11575 # We have reworked collect2
11576 hardcode_direct_CXX=yes
11578 # We have old collect2
11579 hardcode_direct_CXX=unsupported
11580 # It fails to find uninstalled libraries when the uninstalled
11581 # path is not listed in the libpath. Setting hardcode_minus_L
11582 # to unsupported forces relinking
11583 hardcode_minus_L_CXX=yes
11584 hardcode_libdir_flag_spec_CXX='-L$libdir'
11585 hardcode_libdir_separator_CXX=
11588 shared_flag='-shared'
11591 if test "$host_cpu" = ia64; then
11592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11593 # chokes on -Wl,-G. The following line is correct:
11596 if test "$aix_use_runtimelinking" = yes; then
11597 shared_flag='${wl}-G'
11599 shared_flag='${wl}-bM:SRE'
11604 # It seems that -bexpall does not export symbols beginning with
11605 # underscore (_), so it is better to generate a list of symbols to export.
11606 always_export_symbols_CXX=yes
11607 if test "$aix_use_runtimelinking" = yes; then
11608 # Warning - without using the other runtime loading flags (-brtl),
11609 # -berok will link without error, but may produce a broken library.
11610 allow_undefined_flag_CXX='-berok'
11611 # Determine the default libpath from the value encoded in an empty executable.
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11627 rm -f conftest.$ac_objext conftest$ac_exeext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11629 (eval $ac_link) 2>conftest.er1
11631 grep -v '^ *+' conftest.er1 >conftest.err
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_cxx_werror_flag"
11637 || test ! -s conftest.err'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11652 # Check for a 64-bit object if we didn't find anything.
11653 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11660 rm -f conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11664 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11666 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11668 if test "$host_cpu" = ia64; then
11669 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11670 allow_undefined_flag_CXX="-z nodefs"
11671 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11673 # Determine the default libpath from the value encoded in an empty executable.
11674 cat >conftest.$ac_ext <<_ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>conftest.er1
11693 grep -v '^ *+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -z "$ac_cxx_werror_flag"
11699 || test ! -s conftest.err'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11714 # Check for a 64-bit object if we didn't find anything.
11715 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11722 rm -f conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11726 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11727 # Warning - without using the other run time loading flags,
11728 # -berok will link without error, but may produce a broken library.
11729 no_undefined_flag_CXX=' ${wl}-bernotok'
11730 allow_undefined_flag_CXX=' ${wl}-berok'
11731 # -bexpall does not export symbols beginning with underscore (_)
11732 always_export_symbols_CXX=yes
11733 # Exported symbols can be pulled into shared objects from archives
11734 whole_archive_flag_spec_CXX=' '
11735 archive_cmds_need_lc_CXX=yes
11736 # This is similar to how AIX traditionally builds it's shared libraries.
11737 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11742 case $cc_basename in
11744 # FIXME: insert proper C++ library support
11751 cygwin* | mingw* | pw32*)
11752 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11753 # as there is no search path for DLLs.
11754 hardcode_libdir_flag_spec_CXX='-L$libdir'
11755 allow_undefined_flag_CXX=unsupported
11756 always_export_symbols_CXX=no
11757 enable_shared_with_static_runtimes_CXX=yes
11759 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11760 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11761 # If the export-symbols file already is a .def file (1st line
11762 # is EXPORTS), use it as is; otherwise, prepend...
11763 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11764 cp $export_symbols $output_objdir/$soname.def;
11766 echo EXPORTS > $output_objdir/$soname.def;
11767 cat $export_symbols >> $output_objdir/$soname.def;
11769 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11774 darwin* | rhapsody*)
11776 rhapsody* | darwin1.[012])
11777 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11780 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11781 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11783 case ${MACOSX_DEPLOYMENT_TARGET} in
11785 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11788 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11794 archive_cmds_need_lc_CXX=no
11795 hardcode_direct_CXX=no
11796 hardcode_automatic_CXX=yes
11797 hardcode_shlibpath_var_CXX=unsupported
11798 whole_archive_flag_spec_CXX=''
11799 link_all_deplibs_CXX=yes
11801 if test "$GXX" = yes ; then
11802 lt_int_apple_cc_single_mod=no
11803 output_verbose_link_cmd='echo'
11804 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11805 lt_int_apple_cc_single_mod=yes
11807 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11808 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11810 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'
11812 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11813 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11814 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11815 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11817 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11819 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11821 case "$cc_basename" in
11823 output_verbose_link_cmd='echo'
11824 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11825 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11826 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11827 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11828 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11838 case $cc_basename in
11840 # FIXME: insert proper C++ library support
11844 # Green Hills C++ Compiler
11845 # FIXME: insert proper C++ library support
11849 # FIXME: insert proper C++ library support
11855 # C++ shared libraries reported to be fairly broken before switch to ELF
11859 archive_cmds_need_lc_CXX=no
11861 freebsd* | kfreebsd*-gnu)
11862 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11869 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11870 hardcode_libdir_separator_CXX=:
11871 export_dynamic_flag_spec_CXX='${wl}-E'
11872 hardcode_direct_CXX=yes
11873 hardcode_minus_L_CXX=yes # Not in the search PATH,
11874 # but as the default
11875 # location of the library.
11877 case $cc_basename in
11879 # FIXME: insert proper C++ library support
11883 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'
11884 # Commands to make compiler produce verbose output that lists
11885 # what "hidden" libraries, object files and flags are used when
11886 # linking a shared library.
11888 # There doesn't appear to be a way to prevent this compiler from
11889 # explicitly linking system object files so we need to strip them
11890 # from the output so that they don't get included in the library
11892 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11895 if test "$GXX" = yes; then
11896 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11898 # FIXME: insert proper C++ library support
11905 if test $with_gnu_ld = no; then
11906 case "$host_cpu" in
11908 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11909 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11910 hardcode_libdir_separator_CXX=:
11913 hardcode_libdir_flag_spec_CXX='-L$libdir'
11916 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11917 hardcode_libdir_separator_CXX=:
11918 export_dynamic_flag_spec_CXX='${wl}-E'
11922 case "$host_cpu" in
11924 hardcode_direct_CXX=no
11925 hardcode_shlibpath_var_CXX=no
11928 hardcode_direct_CXX=no
11929 hardcode_shlibpath_var_CXX=no
11930 hardcode_minus_L_CXX=yes # Not in the search PATH,
11931 # but as the default
11932 # location of the library.
11935 hardcode_direct_CXX=yes
11936 hardcode_minus_L_CXX=yes # Not in the search PATH,
11937 # but as the default
11938 # location of the library.
11942 case $cc_basename in
11944 # FIXME: insert proper C++ library support
11948 case "$host_cpu" in
11950 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11953 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11956 # Commands to make compiler produce verbose output that lists
11957 # what "hidden" libraries, object files and flags are used when
11958 # linking a shared library.
11960 # There doesn't appear to be a way to prevent this compiler from
11961 # explicitly linking system object files so we need to strip them
11962 # from the output so that they don't get included in the library
11964 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11967 if test "$GXX" = yes; then
11968 if test $with_gnu_ld = no; then
11969 case "$host_cpu" in
11971 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11974 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11979 # FIXME: insert proper C++ library support
11986 case $cc_basename in
11989 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11991 # Archives containing C++ object files must be created using
11992 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11993 # necessary to make sure instantiated templates are included
11995 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11998 if test "$GXX" = yes; then
11999 if test "$with_gnu_ld" = no; then
12000 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12002 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12005 link_all_deplibs_CXX=yes
12008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009 hardcode_libdir_separator_CXX=:
12012 case $cc_basename in
12014 # Kuck and Associates, Inc. (KAI) C++ Compiler
12016 # KCC will only create a shared library if the output file
12017 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12018 # to its proper name (with version) after linking.
12019 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'
12020 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'
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12025 # There doesn't appear to be a way to prevent this compiler from
12026 # explicitly linking system object files so we need to strip them
12027 # from the output so that they don't get included in the library
12029 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12031 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12034 # Archives containing C++ object files must be created using
12035 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12036 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12041 # version 8.0 and above of icpc choke on multiply defined symbols
12042 # if we add $predep_objects and $postdep_objects, however 7.1 and
12043 # earlier do not add the objects themselves.
12044 case `$CC -V 2>&1` in
12046 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047 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'
12049 *) # Version 8.0 or newer
12050 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12054 archive_cmds_need_lc_CXX=no
12055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12057 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12061 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12062 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'
12064 runpath_var=LD_RUN_PATH
12065 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12066 hardcode_libdir_separator_CXX=:
12068 # Commands to make compiler produce verbose output that lists
12069 # what "hidden" libraries, object files and flags are used when
12070 # linking a shared library.
12072 # There doesn't appear to be a way to prevent this compiler from
12073 # explicitly linking system object files so we need to strip them
12074 # from the output so that they don't get included in the library
12076 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
12081 # FIXME: insert proper C++ library support
12085 # FIXME: insert proper C++ library support
12089 case $cc_basename in
12091 # FIXME: insert proper C++ library support
12095 # FIXME: insert proper C++ library support
12101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12102 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12104 hardcode_libdir_flag_spec_CXX='-R$libdir'
12105 hardcode_direct_CXX=yes
12106 hardcode_shlibpath_var_CXX=no
12108 # Workaround some broken pre-1.5 toolchains
12109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12112 # C++ shared libraries are fairly broken
12116 hardcode_direct_CXX=yes
12117 hardcode_shlibpath_var_CXX=no
12118 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12121 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12122 export_dynamic_flag_spec_CXX='${wl}-E'
12123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12125 output_verbose_link_cmd='echo'
12128 case $cc_basename in
12130 # Kuck and Associates, Inc. (KAI) C++ Compiler
12132 # KCC will only create a shared library if the output file
12133 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12134 # to its proper name (with version) after linking.
12135 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'
12137 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12138 hardcode_libdir_separator_CXX=:
12140 # Archives containing C++ object files must be created using
12141 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12142 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12146 # Rational C++ 2.4.1
12147 # FIXME: insert proper C++ library support
12151 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12152 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12155 hardcode_libdir_separator_CXX=:
12157 # Commands to make compiler produce verbose output that lists
12158 # what "hidden" libraries, object files and flags are used when
12159 # linking a shared library.
12161 # There doesn't appear to be a way to prevent this compiler from
12162 # explicitly linking system object files so we need to strip them
12163 # from the output so that they don't get included in the library
12165 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12168 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12169 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12170 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12173 hardcode_libdir_separator_CXX=:
12175 # Commands to make compiler produce verbose output that lists
12176 # what "hidden" libraries, object files and flags are used when
12177 # linking a shared library.
12178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12181 # FIXME: insert proper C++ library support
12188 case $cc_basename in
12190 # Kuck and Associates, Inc. (KAI) C++ Compiler
12192 # KCC will only create a shared library if the output file
12193 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12194 # to its proper name (with version) after linking.
12195 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'
12197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12198 hardcode_libdir_separator_CXX=:
12200 # Archives containing C++ object files must be created using
12201 # the KAI C++ compiler.
12202 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12205 # Rational C++ 2.4.1
12206 # FIXME: insert proper C++ library support
12210 allow_undefined_flag_CXX=' -expect_unresolved \*'
12211 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12212 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12213 echo "-hidden">> $lib.exp~
12214 $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 $objdir/so_locations -o $lib~
12217 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12218 hardcode_libdir_separator_CXX=:
12220 # Commands to make compiler produce verbose output that lists
12221 # what "hidden" libraries, object files and flags are used when
12222 # linking a shared library.
12224 # There doesn't appear to be a way to prevent this compiler from
12225 # explicitly linking system object files so we need to strip them
12226 # from the output so that they don't get included in the library
12228 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12231 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12232 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12233 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12235 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12236 hardcode_libdir_separator_CXX=:
12238 # Commands to make compiler produce verbose output that lists
12239 # what "hidden" libraries, object files and flags are used when
12240 # linking a shared library.
12241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12244 # FIXME: insert proper C++ library support
12251 # FIXME: insert proper C++ library support
12255 archive_cmds_need_lc_CXX=no
12256 case $cc_basename in
12258 # FIXME: insert proper C++ library support
12262 # FIXME: insert proper C++ library support
12268 case $cc_basename in
12271 # FIXME: insert proper C++ library support
12276 # FIXME: insert proper C++ library support
12280 # FIXME: insert proper C++ library support
12286 case $cc_basename in
12288 # Sun C++ 4.2, 5.x and Centerline C++
12289 no_undefined_flag_CXX=' -zdefs'
12290 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12291 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12292 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12294 hardcode_libdir_flag_spec_CXX='-R$libdir'
12295 hardcode_shlibpath_var_CXX=no
12297 solaris2.0-5 | solaris2.0-5.*) ;;
12299 # The C++ compiler is used as linker so we must use $wl
12300 # flag to pass the commands to the underlying system
12302 # Supported since Solaris 2.6 (maybe 2.5.1?)
12303 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12306 link_all_deplibs_CXX=yes
12308 # Commands to make compiler produce verbose output that lists
12309 # what "hidden" libraries, object files and flags are used when
12310 # linking a shared library.
12312 # There doesn't appear to be a way to prevent this compiler from
12313 # explicitly linking system object files so we need to strip them
12314 # from the output so that they don't get included in the library
12316 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12318 # Archives containing C++ object files must be created using
12319 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12320 # necessary to make sure instantiated templates are included
12322 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12325 # Green Hills C++ Compiler
12326 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12328 # The C++ compiler must be used to create the archive.
12329 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12332 # GNU C++ compiler with Solaris linker
12333 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12334 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12335 if $CC --version | grep -v '^2\.7' > /dev/null; then
12336 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12337 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12338 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12340 # Commands to make compiler produce verbose output that lists
12341 # what "hidden" libraries, object files and flags are used when
12342 # linking a shared library.
12343 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12345 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12347 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12348 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12349 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12351 # Commands to make compiler produce verbose output that lists
12352 # what "hidden" libraries, object files and flags are used when
12353 # linking a shared library.
12354 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12357 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12362 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12363 archive_cmds_need_lc_CXX=no
12366 case $cc_basename in
12368 # NonStop-UX NCC 3.20
12369 # FIXME: insert proper C++ library support
12373 # FIXME: insert proper C++ library support
12379 # FIXME: insert proper C++ library support
12383 # FIXME: insert proper C++ library support
12387 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12388 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12389 test "$ld_shlibs_CXX" = no && can_build_shared=no
12395 cat > conftest.$ac_ext <<EOF
12399 Foo (void) { a = 0; }
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; then
12410 # Parse the compiler output and extract the necessary
12411 # objects, libraries and library flags.
12413 # Sentinel used to keep track of whether or not we are before
12414 # the conftest object file.
12415 pre_test_object_deps_done=no
12417 # The `*' in the case matches for architectures that use `case' in
12418 # $output_verbose_cmd can trigger glob expansion during the loop
12419 # eval without this substitution.
12420 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12422 for p in `eval $output_verbose_link_cmd`; do
12426 # Some compilers place space between "-{L,R}" and the path.
12427 # Remove the space.
12428 if test $p = "-L" \
12429 || test $p = "-R"; then
12436 if test "$pre_test_object_deps_done" = no; then
12439 # Internal compiler library paths should come after those
12440 # provided the user. The postdeps already come after the
12441 # user supplied libs so there is no need to process them.
12442 if test -z "$compiler_lib_search_path_CXX"; then
12443 compiler_lib_search_path_CXX="${prev}${p}"
12445 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12448 # The "-l" case would never come before the object being
12449 # linked, so don't bother handling this case.
12452 if test -z "$postdeps_CXX"; then
12453 postdeps_CXX="${prev}${p}"
12455 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12461 # This assumes that the test object file only shows up
12462 # once in the compiler output.
12463 if test "$p" = "conftest.$objext"; then
12464 pre_test_object_deps_done=yes
12468 if test "$pre_test_object_deps_done" = no; then
12469 if test -z "$predep_objects_CXX"; then
12470 predep_objects_CXX="$p"
12472 predep_objects_CXX="$predep_objects_CXX $p"
12475 if test -z "$postdep_objects_CXX"; then
12476 postdep_objects_CXX="$p"
12478 postdep_objects_CXX="$postdep_objects_CXX $p"
12483 *) ;; # Ignore the rest.
12491 echo "libtool.m4: error: problem compiling CXX test program"
12494 $rm -f confest.$objext
12496 case " $postdeps_CXX " in
12497 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12500 lt_prog_compiler_wl_CXX=
12501 lt_prog_compiler_pic_CXX=
12502 lt_prog_compiler_static_CXX=
12504 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12505 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12507 # C++ specific cases for pic, static, wl, etc.
12508 if test "$GXX" = yes; then
12509 lt_prog_compiler_wl_CXX='-Wl,'
12510 lt_prog_compiler_static_CXX='-static'
12514 # All AIX code is PIC.
12515 if test "$host_cpu" = ia64; then
12516 # AIX 5 now supports IA64 processor
12517 lt_prog_compiler_static_CXX='-Bstatic'
12521 # FIXME: we need at least 68020 code to build shared libraries, but
12522 # adding the `-m68020' flag to GCC prevents building anything better,
12524 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12526 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12527 # PIC is the default for these OSes.
12529 mingw* | os2* | pw32*)
12530 # This hack is so that the source file can tell whether it is being
12531 # built for inclusion in a dll (and should export symbols for example).
12532 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12534 darwin* | rhapsody*)
12535 # PIC is the default on this platform
12536 # Common symbols not allowed in MH_DYLIB files
12537 lt_prog_compiler_pic_CXX='-fno-common'
12540 # DJGPP does not support shared libraries at all
12541 lt_prog_compiler_pic_CXX=
12544 if test -d /usr/nec; then
12545 lt_prog_compiler_pic_CXX=-Kconform_pic
12549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12550 # not for PA HP-UX.
12551 case "$host_cpu" in
12555 lt_prog_compiler_pic_CXX='-fPIC'
12560 lt_prog_compiler_pic_CXX='-fPIC'
12566 # All AIX code is PIC.
12567 if test "$host_cpu" = ia64; then
12568 # AIX 5 now supports IA64 processor
12569 lt_prog_compiler_static_CXX='-Bstatic'
12571 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12575 case $cc_basename in
12577 # Green Hills C++ Compiler
12578 # _LT_AC_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"
12583 # PIC is the default on this platform
12584 # Common symbols not allowed in MH_DYLIB files
12585 case "$cc_basename" in
12587 lt_prog_compiler_pic_CXX='-qnocommon'
12588 lt_prog_compiler_wl_CXX='-Wl,'
12593 case $cc_basename in
12595 lt_prog_compiler_pic_CXX='-KPIC'
12598 # Green Hills C++ Compiler
12599 lt_prog_compiler_pic_CXX='-pic'
12605 freebsd* | kfreebsd*-gnu)
12606 # FreeBSD uses GNU C++
12608 hpux9* | hpux10* | hpux11*)
12609 case $cc_basename in
12611 lt_prog_compiler_wl_CXX='-Wl,'
12612 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12613 if test "$host_cpu" != ia64; then
12614 lt_prog_compiler_pic_CXX='+Z'
12618 lt_prog_compiler_wl_CXX='-Wl,'
12619 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12620 case "$host_cpu" in
12625 lt_prog_compiler_pic_CXX='+Z'
12633 irix5* | irix6* | nonstopux*)
12634 case $cc_basename in
12636 lt_prog_compiler_wl_CXX='-Wl,'
12637 lt_prog_compiler_static_CXX='-non_shared'
12638 # CC pic flag -KPIC is the default.
12645 case $cc_basename in
12648 lt_prog_compiler_wl_CXX='--backend -Wl,'
12649 lt_prog_compiler_pic_CXX='-fPIC'
12653 lt_prog_compiler_wl_CXX='-Wl,'
12654 lt_prog_compiler_pic_CXX='-KPIC'
12655 lt_prog_compiler_static_CXX='-static'
12659 # Make sure the PIC flag is empty. It appears that all Alpha
12660 # Linux and Compaq Tru64 Unix objects are PIC.
12661 lt_prog_compiler_pic_CXX=
12662 lt_prog_compiler_static_CXX='-non_shared'
12673 case $cc_basename in
12675 lt_prog_compiler_pic_CXX='-W c,exportall'
12683 osf3* | osf4* | osf5*)
12684 case $cc_basename in
12686 lt_prog_compiler_wl_CXX='--backend -Wl,'
12689 # Rational C++ 2.4.1
12690 lt_prog_compiler_pic_CXX='-pic'
12693 # Digital/Compaq C++
12694 lt_prog_compiler_wl_CXX='-Wl,'
12695 # Make sure the PIC flag is empty. It appears that all Alpha
12696 # Linux and Compaq Tru64 Unix objects are PIC.
12697 lt_prog_compiler_pic_CXX=
12698 lt_prog_compiler_static_CXX='-non_shared'
12707 case $cc_basename in
12709 lt_prog_compiler_pic_CXX='-fPIC'
12716 case $cc_basename in
12718 # Sun C++ 4.2, 5.x and Centerline C++
12719 lt_prog_compiler_pic_CXX='-KPIC'
12720 lt_prog_compiler_static_CXX='-Bstatic'
12721 lt_prog_compiler_wl_CXX='-Qoption ld '
12724 # Green Hills C++ Compiler
12725 lt_prog_compiler_pic_CXX='-PIC'
12732 case $cc_basename in
12735 lt_prog_compiler_pic_CXX='-pic'
12736 lt_prog_compiler_static_CXX='-Bstatic'
12740 lt_prog_compiler_pic_CXX='-pic'
12747 case $cc_basename in
12749 # NonStop-UX NCC 3.20
12750 lt_prog_compiler_pic_CXX='-KPIC'
12761 lt_prog_compiler_can_build_shared_CXX=no
12766 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12767 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12770 # Check to make sure the PIC flag actually works.
12772 if test -n "$lt_prog_compiler_pic_CXX"; then
12774 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12775 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12776 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 lt_prog_compiler_pic_works_CXX=no
12780 ac_outfile=conftest.$ac_objext
12781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12782 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12783 # Insert the option either (1) after the last *FLAGS variable, or
12784 # (2) before a word containing "conftest.", or (3) at the end.
12785 # Note that $ac_compile itself does not contain backslashes and begins
12786 # with a dollar sign (not a hyphen), so the echo should work correctly.
12787 # The option is referenced via a variable to avoid confusing sed.
12788 lt_compile=`echo "$ac_compile" | $SED \
12789 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12791 -e 's:$: $lt_compiler_flag:'`
12792 (eval echo "\"\$as_me:12792: $lt_compile\"" >&5)
12793 (eval "$lt_compile" 2>conftest.err)
12795 cat conftest.err >&5
12796 echo "$as_me:12796: \$? = $ac_status" >&5
12797 if (exit $ac_status) && test -s "$ac_outfile"; then
12798 # The compiler can only warn and ignore the option if not recognized
12799 # So say no if there are warnings
12800 if test ! -s conftest.err; then
12801 lt_prog_compiler_pic_works_CXX=yes
12807 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12808 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12810 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12811 case $lt_prog_compiler_pic_CXX in
12813 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12816 lt_prog_compiler_pic_CXX=
12817 lt_prog_compiler_can_build_shared_CXX=no
12822 # For platforms which do not support PIC, -DPIC is meaningless:
12824 lt_prog_compiler_pic_CXX=
12827 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12831 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12832 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12833 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 lt_cv_prog_compiler_c_o_CXX=no
12837 $rm -r conftest 2>/dev/null
12841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12843 lt_compiler_flag="-o out/conftest2.$ac_objext"
12844 # Insert the option either (1) after the last *FLAGS variable, or
12845 # (2) before a word containing "conftest.", or (3) at the end.
12846 # Note that $ac_compile itself does not contain backslashes and begins
12847 # with a dollar sign (not a hyphen), so the echo should work correctly.
12848 lt_compile=`echo "$ac_compile" | $SED \
12849 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12851 -e 's:$: $lt_compiler_flag:'`
12852 (eval echo "\"\$as_me:12852: $lt_compile\"" >&5)
12853 (eval "$lt_compile" 2>out/conftest.err)
12855 cat out/conftest.err >&5
12856 echo "$as_me:12856: \$? = $ac_status" >&5
12857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12859 # The compiler can only warn and ignore the option if not recognized
12860 # So say no if there are warnings
12861 if test ! -s out/conftest.err; then
12862 lt_cv_prog_compiler_c_o_CXX=yes
12867 # SGI C++ compiler will create directory out/ii_files/ for
12868 # template instantiation
12869 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12870 $rm out/* && rmdir out
12876 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12877 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12880 hard_links="nottested"
12881 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12882 # do not overwrite the value of need_locks provided by the user
12883 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12884 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12889 ln conftest.a conftest.b 2>&5 || hard_links=no
12890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12891 echo "$as_me:$LINENO: result: $hard_links" >&5
12892 echo "${ECHO_T}$hard_links" >&6
12893 if test "$hard_links" = no; then
12894 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12895 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12902 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12903 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12905 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12908 # If we're using GNU nm, then we don't want the "-C" option.
12909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12911 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12913 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'
12917 export_symbols_cmds_CXX="$ltdll_cmds"
12920 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12923 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12927 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12928 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12929 test "$ld_shlibs_CXX" = no && can_build_shared=no
12931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12932 if test "$GCC" = yes; then
12933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12937 # Do we need to explicitly link libc?
12939 case "x$archive_cmds_need_lc_CXX" in
12941 # Assume -lc should be added
12942 archive_cmds_need_lc_CXX=yes
12944 if test "$enable_shared" = yes && test "$GCC" = yes; then
12945 case $archive_cmds_CXX in
12947 # FIXME: we may have to deal with multi-command sequences.
12950 # Test whether the compiler implicitly links with -lc since on some
12951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12952 # to ld, don't add -lc before -lgcc.
12953 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959 (eval $ac_compile) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } 2>conftest.err; then
12965 libobjs=conftest.$ac_objext
12967 wl=$lt_prog_compiler_wl_CXX
12973 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12974 allow_undefined_flag_CXX=
12975 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12976 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }
12981 archive_cmds_need_lc_CXX=no
12983 archive_cmds_need_lc_CXX=yes
12985 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12987 cat conftest.err 1>&5
12990 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12991 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12998 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12999 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13000 library_names_spec=
13001 libname_spec='lib$name'
13005 postuninstall_cmds=
13009 shlibpath_overrides_runpath=unknown
13011 dynamic_linker="$host_os ld.so"
13012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13013 if test "$GCC" = yes; then
13014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13015 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13016 # if the path contains ";" then we assume it to be the separator
13017 # otherwise default to the standard path separator (i.e. ":") - it is
13018 # assumed that no part of a normal pathname contains ";" but that should
13019 # okay in the real world where ";" in dirpaths is itself problematic.
13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13027 need_lib_prefix=unknown
13028 hardcode_into_libs=no
13030 # when you set need_version to no, make sure it does not cause -set_version
13031 # flags to be left without arguments
13032 need_version=unknown
13037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13038 shlibpath_var=LIBPATH
13040 # AIX 3 has no versioning support, so we append a major version to the name.
13041 soname_spec='${libname}${release}${shared_ext}$major'
13048 hardcode_into_libs=yes
13049 if test "$host_cpu" = ia64; then
13050 # AIX 5 supports IA64
13051 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13052 shlibpath_var=LD_LIBRARY_PATH
13054 # With GCC up to 2.95.x, collect2 would create an import file
13055 # for dependence libraries. The import file would start with
13056 # the line `#! .'. This would cause the generated library to
13057 # depend on `.', always an invalid library. This was fixed in
13058 # development snapshots of GCC prior to 3.0.
13060 aix4 | aix4.[01] | aix4.[01].*)
13061 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13063 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13066 can_build_shared=no
13070 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13071 # soname into executable. Probably we can add versioning support to
13072 # collect2, so additional links can be useful in future.
13073 if test "$aix_use_runtimelinking" = yes; then
13074 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13075 # instead of lib<name>.a to let people know that these are not
13076 # typical AIX shared libraries.
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079 # We preserve .a as extension for shared libraries through AIX4.2
13080 # and later when we are not doing run time linking.
13081 library_names_spec='${libname}${release}.a $libname.a'
13082 soname_spec='${libname}${release}${shared_ext}$major'
13084 shlibpath_var=LIBPATH
13089 library_names_spec='$libname.ixlibrary $libname.a'
13090 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13091 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13095 library_names_spec='${libname}${shared_ext}'
13096 dynamic_linker="$host_os ld.so"
13097 shlibpath_var=LIBRARY_PATH
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13106 shlibpath_var=LD_LIBRARY_PATH
13107 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13108 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13109 # the default ld.so.conf also contains /usr/contrib/lib and
13110 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13111 # libtool to hard-code these into programs
13114 cygwin* | mingw* | pw32*)
13115 version_type=windows
13120 case $GCC,$host_os in
13121 yes,cygwin* | yes,mingw* | yes,pw32*)
13122 library_names_spec='$libname.dll.a'
13123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13124 postinstall_cmds='base_file=`basename \${file}`~
13125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13126 dldir=$destdir/`dirname \$dlpath`~
13127 test -d \$dldir || mkdir -p \$dldir~
13128 $install_prog $dir/$dlname \$dldir/$dlname'
13129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13130 dlpath=$dir/\$dldll~
13132 shlibpath_overrides_runpath=yes
13136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13138 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13141 # MinGW DLLs use traditional 'lib' prefix
13142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13144 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13145 # It is most probably a Windows format PATH printed by
13146 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13147 # path with ; separators, and with drive letters. We can handle the
13148 # drive letters (cygwin fileutils understands them), so leave them,
13149 # especially as we might pass files found there to a mingw objdump,
13150 # which wouldn't understand a cygwinified path. Ahh.
13151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13157 # pw32 DLLs use 'pw' prefix rather than 'lib'
13158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13167 dynamic_linker='Win32 ld.exe'
13168 # FIXME: first we should search . and the directory the executable is in
13172 darwin* | rhapsody*)
13173 dynamic_linker="$host_os dyld"
13174 version_type=darwin
13177 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13178 soname_spec='${libname}${release}${major}$shared_ext'
13179 shlibpath_overrides_runpath=yes
13180 shlibpath_var=DYLD_LIBRARY_PATH
13181 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13182 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13183 if test "$GCC" = yes; then
13184 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13186 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13188 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LD_LIBRARY_PATH
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13209 soname_spec='${libname}${release}${shared_ext}$major'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=no
13212 hardcode_into_libs=yes
13213 dynamic_linker='GNU ld.so'
13217 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13218 version_type=freebsd-$objformat
13219 case $version_type in
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13230 shlibpath_var=LD_LIBRARY_PATH
13233 shlibpath_overrides_runpath=yes
13235 freebsd3.01* | freebsdelf3.01*)
13236 shlibpath_overrides_runpath=yes
13237 hardcode_into_libs=yes
13240 shlibpath_overrides_runpath=no
13241 hardcode_into_libs=yes
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 hardcode_into_libs=yes
13256 hpux9* | hpux10* | hpux11*)
13257 # Give a soname corresponding to the major version so that dld.sl refuses to
13258 # link against other versions.
13262 case "$host_cpu" in
13265 hardcode_into_libs=yes
13266 dynamic_linker="$host_os dld.so"
13267 shlibpath_var=LD_LIBRARY_PATH
13268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 if test "X$HPUX_IA64_MODE" = X32; then
13272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13280 hardcode_into_libs=yes
13281 dynamic_linker="$host_os dld.sl"
13282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13291 dynamic_linker="$host_os dld.sl"
13292 shlibpath_var=SHLIB_PATH
13293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13299 postinstall_cmds='chmod 555 $lib'
13302 irix5* | irix6* | nonstopux*)
13304 nonstopux*) version_type=nonstopux ;;
13306 if test "$lt_cv_prog_gnu_ld" = yes; then
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13317 irix5* | nonstopux*)
13318 libsuff= shlibsuff=
13321 case $LD in # libtool.m4 will add one of these switches to LD
13322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13323 libsuff= shlibsuff= libmagic=32-bit;;
13324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13325 libsuff=32 shlibsuff=N32 libmagic=N32;;
13326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13327 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13328 *) libsuff= shlibsuff= libmagic=never-match;;
13332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13333 shlibpath_overrides_runpath=no
13334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13336 hardcode_into_libs=yes
13339 # No shared lib support for Linux oldld, aout, or coff.
13340 linux*oldld* | linux*aout* | linux*coff*)
13344 # This must be Linux ELF.
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350 soname_spec='${libname}${release}${shared_ext}$major'
13351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=no
13354 # This implies no fast_install, which is unacceptable.
13355 # Some rework will be needed to allow for fast_install
13356 # before this can be enabled.
13357 hardcode_into_libs=yes
13359 # Append ld.so.conf contents to the search path
13360 if test -f /etc/ld.so.conf; then
13361 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13365 # We used to test for /lib/ld.so.1 and disable shared libraries on
13366 # powerpc, because MkLinux only supported shared libraries with the
13367 # GNU dynamic linker. Since this was broken with cross compilers,
13368 # most powerpc-linux boxes support dynamic linking these days and
13369 # people can always --disable-shared, the test was removed, and we
13370 # assume the GNU/Linux dynamic linker is in use.
13371 dynamic_linker='GNU/Linux ld.so'
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=no
13382 hardcode_into_libs=yes
13383 dynamic_linker='GNU ld.so'
13390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13393 dynamic_linker='NetBSD (a.out) ld.so'
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
13397 dynamic_linker='NetBSD ld.elf_so'
13399 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=yes
13401 hardcode_into_libs=yes
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 shlibpath_overrides_runpath=yes
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 soname_spec='${libname}${release}${shared_ext}$major'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 shlibpath_overrides_runpath=yes
13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13430 openbsd2.[89] | openbsd2.[89].*)
13431 shlibpath_overrides_runpath=no
13434 shlibpath_overrides_runpath=yes
13438 shlibpath_overrides_runpath=yes
13443 libname_spec='$name'
13446 library_names_spec='$libname${shared_ext} $libname.a'
13447 dynamic_linker='OS/2 ld.exe'
13448 shlibpath_var=LIBPATH
13451 osf3* | osf4* | osf5*)
13455 soname_spec='${libname}${release}${shared_ext}$major'
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 shlibpath_var=LD_LIBRARY_PATH
13458 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13459 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466 shlibpath_var=LD_LIBRARY_PATH
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 shlibpath_overrides_runpath=yes
13477 hardcode_into_libs=yes
13478 # ldd complains unless libraries are executable
13479 postinstall_cmds='chmod +x $lib'
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13488 if test "$with_gnu_ld" = yes; then
13494 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497 soname_spec='${libname}${release}${shared_ext}$major'
13498 shlibpath_var=LD_LIBRARY_PATH
13499 case $host_vendor in
13501 shlibpath_overrides_runpath=no
13503 export_dynamic_flag_spec='${wl}-Blargedynsym'
13504 runpath_var=LD_RUN_PATH
13512 shlibpath_overrides_runpath=no
13513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13519 if test -d /usr/nec ;then
13521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13522 soname_spec='$libname${shared_ext}.$major'
13523 shlibpath_var=LD_LIBRARY_PATH
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 shlibpath_var=LD_LIBRARY_PATH
13538 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13539 echo "${ECHO_T}$dynamic_linker" >&6
13540 test "$dynamic_linker" = no && can_build_shared=no
13542 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13544 hardcode_action_CXX=
13545 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13546 test -n "$runpath_var_CXX" || \
13547 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13549 # We can hardcode non-existant directories.
13550 if test "$hardcode_direct_CXX" != no &&
13551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552 # have to relink, otherwise we might link with an installed library
13553 # when we should be linking with a yet-to-be-installed one
13554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13555 test "$hardcode_minus_L_CXX" != no; then
13556 # Linking always hardcodes the temporary library directory.
13557 hardcode_action_CXX=relink
13559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560 hardcode_action_CXX=immediate
13563 # We cannot hardcode anything, or else we can only hardcode existing
13565 hardcode_action_CXX=unsupported
13567 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13568 echo "${ECHO_T}$hardcode_action_CXX" >&6
13570 if test "$hardcode_action_CXX" = relink; then
13571 # Fast installation is not supported
13572 enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574 test "$enable_shared" = no; then
13575 # Fast installation is not necessary
13576 enable_fast_install=needless
13581 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13582 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13583 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13584 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13585 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13586 echo "$as_me:$LINENO: result: yes" >&5
13587 echo "${ECHO_T}yes" >&6
13589 # FIXME - insert some real tests, host_os isn't really good enough
13592 if test -n "$STRIP" ; then
13593 striplib="$STRIP -x"
13594 echo "$as_me:$LINENO: result: yes" >&5
13595 echo "${ECHO_T}yes" >&6
13597 echo "$as_me:$LINENO: result: no" >&5
13598 echo "${ECHO_T}no" >&6
13602 echo "$as_me:$LINENO: result: no" >&5
13603 echo "${ECHO_T}no" >&6
13608 if test "x$enable_dlopen" != xyes; then
13609 enable_dlopen=unknown
13610 enable_dlopen_self=unknown
13611 enable_dlopen_self_static=unknown
13618 lt_cv_dlopen="load_add_on"
13620 lt_cv_dlopen_self=yes
13624 lt_cv_dlopen="LoadLibrary"
13629 lt_cv_dlopen="dlopen"
13634 # if libdl is installed we need to link against it
13635 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13636 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13637 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 ac_check_lib_save_LIBS=$LIBS
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13649 /* Override any gcc2 internal prototype to avoid an error. */
13653 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_cxx_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_cv_lib_dl_dlopen=yes
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_cv_lib_dl_dlopen=no
13693 rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13697 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13698 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13699 if test $ac_cv_lib_dl_dlopen = yes; then
13700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13703 lt_cv_dlopen="dyld"
13705 lt_cv_dlopen_self=yes
13712 echo "$as_me:$LINENO: checking for shl_load" >&5
13713 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13714 if test "${ac_cv_func_shl_load+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 cat >conftest.$ac_ext <<_ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13725 #define shl_load innocuous_shl_load
13727 /* System header to define __stub macros and hopefully few prototypes,
13728 which can conflict with char shl_load (); below.
13729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13730 <limits.h> exists even on freestanding compilers. */
13733 # include <limits.h>
13735 # include <assert.h>
13740 /* Override any gcc2 internal prototype to avoid an error. */
13745 /* We use char because int might match the return type of a gcc2
13746 builtin and then its argument prototype would still apply. */
13748 /* The GNU C library defines this for functions which it implements
13749 to always fail with ENOSYS. Some functions are actually named
13750 something starting with __ and the normal name is an alias. */
13751 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13754 char (*f) () = shl_load;
13763 return f != shl_load;
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13770 (eval $ac_link) 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_cxx_werror_flag"
13778 || test ! -s conftest.err'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest$ac_exeext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_func_shl_load=yes
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_cv_func_shl_load=no
13797 rm -f conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13801 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13802 if test $ac_cv_func_shl_load = yes; then
13803 lt_cv_dlopen="shl_load"
13805 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13806 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13807 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 ac_check_lib_save_LIBS=$LIBS
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13819 /* Override any gcc2 internal prototype to avoid an error. */
13823 /* We use char because int might match the return type of a gcc2
13824 builtin and then its argument prototype would still apply. */
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836 (eval $ac_link) 2>conftest.er1
13838 grep -v '^ *+' conftest.er1 >conftest.err
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_cxx_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest$ac_exeext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_cv_lib_dld_shl_load=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_cv_lib_dld_shl_load=no
13863 rm -f conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 LIBS=$ac_check_lib_save_LIBS
13867 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13868 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13869 if test $ac_cv_lib_dld_shl_load = yes; then
13870 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13872 echo "$as_me:$LINENO: checking for dlopen" >&5
13873 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13874 if test "${ac_cv_func_dlopen+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 cat >conftest.$ac_ext <<_ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13885 #define dlopen innocuous_dlopen
13887 /* System header to define __stub macros and hopefully few prototypes,
13888 which can conflict with char dlopen (); below.
13889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13890 <limits.h> exists even on freestanding compilers. */
13893 # include <limits.h>
13895 # include <assert.h>
13900 /* Override any gcc2 internal prototype to avoid an error. */
13905 /* We use char because int might match the return type of a gcc2
13906 builtin and then its argument prototype would still apply. */
13908 /* The GNU C library defines this for functions which it implements
13909 to always fail with ENOSYS. Some functions are actually named
13910 something starting with __ and the normal name is an alias. */
13911 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13914 char (*f) () = dlopen;
13923 return f != dlopen;
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13930 (eval $ac_link) 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_cxx_werror_flag"
13938 || test ! -s conftest.err'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest$ac_exeext'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 ac_cv_func_dlopen=yes
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_cv_func_dlopen=no
13957 rm -f conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13960 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13961 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13962 if test $ac_cv_func_dlopen = yes; then
13963 lt_cv_dlopen="dlopen"
13965 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 ac_check_lib_save_LIBS=$LIBS
13972 cat >conftest.$ac_ext <<_ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13979 /* Override any gcc2 internal prototype to avoid an error. */
13983 /* We use char because int might match the return type of a gcc2
13984 builtin and then its argument prototype would still apply. */
13994 rm -f conftest.$ac_objext conftest$ac_exeext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13996 (eval $ac_link) 2>conftest.er1
13998 grep -v '^ *+' conftest.er1 >conftest.err
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_cxx_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest$ac_exeext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_lib_dl_dlopen=yes
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_cv_lib_dl_dlopen=no
14023 rm -f conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025 LIBS=$ac_check_lib_save_LIBS
14027 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14029 if test $ac_cv_lib_dl_dlopen = yes; then
14030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14032 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14033 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14034 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lsvld $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14046 /* Override any gcc2 internal prototype to avoid an error. */
14050 /* We use char because int might match the return type of a gcc2
14051 builtin and then its argument prototype would still apply. */
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_cxx_werror_flag"
14071 || test ! -s conftest.err'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_lib_svld_dlopen=yes
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 ac_cv_lib_svld_dlopen=no
14090 rm -f conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14094 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14096 if test $ac_cv_lib_svld_dlopen = yes; then
14097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14099 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 ac_check_lib_save_LIBS=$LIBS
14106 cat >conftest.$ac_ext <<_ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14113 /* Override any gcc2 internal prototype to avoid an error. */
14117 /* We use char because int might match the return type of a gcc2
14118 builtin and then its argument prototype would still apply. */
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130 (eval $ac_link) 2>conftest.er1
14132 grep -v '^ *+' conftest.er1 >conftest.err
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -z "$ac_cxx_werror_flag"
14138 || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_lib_dld_dld_link=yes
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_cv_lib_dld_dld_link=no
14157 rm -f conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14161 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14162 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14163 if test $ac_cv_lib_dld_dld_link = yes; then
14164 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14185 if test "x$lt_cv_dlopen" != xno; then
14191 case $lt_cv_dlopen in
14193 save_CPPFLAGS="$CPPFLAGS"
14194 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14196 save_LDFLAGS="$LDFLAGS"
14197 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14200 LIBS="$lt_cv_dlopen_libs $LIBS"
14202 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14203 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14204 if test "${lt_cv_dlopen_self+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 if test "$cross_compiling" = yes; then :
14208 lt_cv_dlopen_self=cross
14210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14211 lt_status=$lt_dlunknown
14212 cat > conftest.$ac_ext <<EOF
14213 #line 14213 "configure"
14214 #include "confdefs.h"
14223 # define LT_DLGLOBAL RTLD_GLOBAL
14226 # define LT_DLGLOBAL DL_GLOBAL
14228 # define LT_DLGLOBAL 0
14232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14233 find out it does not work in some platform. */
14234 #ifndef LT_DLLAZY_OR_NOW
14236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14239 # define LT_DLLAZY_OR_NOW DL_LAZY
14242 # define LT_DLLAZY_OR_NOW RTLD_NOW
14245 # define LT_DLLAZY_OR_NOW DL_NOW
14247 # define LT_DLLAZY_OR_NOW 0
14255 extern "C" void exit (int);
14258 void fnord() { int i=42;}
14261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14262 int status = $lt_dlunknown;
14266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14268 /* dlclose (self); */
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275 (eval $ac_link) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14279 (./conftest; exit; ) 2>/dev/null
14281 case x$lt_status in
14282 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14283 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14284 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14287 # compilation failed
14288 lt_cv_dlopen_self=no
14295 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14296 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14298 if test "x$lt_cv_dlopen_self" = xyes; then
14299 LDFLAGS="$LDFLAGS $link_static_flag"
14300 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14301 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14302 if test "${lt_cv_dlopen_self_static+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 if test "$cross_compiling" = yes; then :
14306 lt_cv_dlopen_self_static=cross
14308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14309 lt_status=$lt_dlunknown
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14311 "configure"
14312 #include "confdefs.h"
14321 # define LT_DLGLOBAL RTLD_GLOBAL
14324 # define LT_DLGLOBAL DL_GLOBAL
14326 # define LT_DLGLOBAL 0
14330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14331 find out it does not work in some platform. */
14332 #ifndef LT_DLLAZY_OR_NOW
14334 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14337 # define LT_DLLAZY_OR_NOW DL_LAZY
14340 # define LT_DLLAZY_OR_NOW RTLD_NOW
14343 # define LT_DLLAZY_OR_NOW DL_NOW
14345 # define LT_DLLAZY_OR_NOW 0
14353 extern "C" void exit (int);
14356 void fnord() { int i=42;}
14359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14360 int status = $lt_dlunknown;
14364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14365 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14366 /* dlclose (self); */
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14377 (./conftest; exit; ) 2>/dev/null
14379 case x$lt_status in
14380 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14381 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14382 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14385 # compilation failed
14386 lt_cv_dlopen_self_static=no
14393 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14394 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14397 CPPFLAGS="$save_CPPFLAGS"
14398 LDFLAGS="$save_LDFLAGS"
14403 case $lt_cv_dlopen_self in
14404 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14405 *) enable_dlopen_self=unknown ;;
14408 case $lt_cv_dlopen_self_static in
14409 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14410 *) enable_dlopen_self_static=unknown ;;
14415 # The else clause should only fire when bootstrapping the
14416 # libtool distribution, otherwise you forgot to ship ltmain.sh
14417 # with your package, and you will get complaints that there are
14418 # no rules to generate ltmain.sh.
14419 if test -f "$ltmain"; then
14420 # See if we are running on zsh, and set the options which allow our commands through
14421 # without removal of \ escapes.
14422 if test -n "${ZSH_VERSION+set}" ; then
14423 setopt NO_GLOB_SUBST
14425 # Now quote all the things that may contain metacharacters while being
14426 # careful not to overquote the AC_SUBSTed values. We take copies of the
14427 # variables and quote the copies for generation of the libtool script.
14428 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14430 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14431 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14432 deplibs_check_method reload_flag reload_cmds need_locks \
14433 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14434 lt_cv_sys_global_symbol_to_c_name_address \
14435 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14436 old_postinstall_cmds old_postuninstall_cmds \
14440 lt_prog_compiler_wl_CXX \
14441 lt_prog_compiler_pic_CXX \
14442 lt_prog_compiler_static_CXX \
14443 lt_prog_compiler_no_builtin_flag_CXX \
14444 export_dynamic_flag_spec_CXX \
14445 thread_safe_flag_spec_CXX \
14446 whole_archive_flag_spec_CXX \
14447 enable_shared_with_static_runtimes_CXX \
14448 old_archive_cmds_CXX \
14449 old_archive_from_new_cmds_CXX \
14450 predep_objects_CXX \
14451 postdep_objects_CXX \
14454 compiler_lib_search_path_CXX \
14456 archive_expsym_cmds_CXX \
14457 postinstall_cmds_CXX \
14458 postuninstall_cmds_CXX \
14459 old_archive_from_expsyms_cmds_CXX \
14460 allow_undefined_flag_CXX \
14461 no_undefined_flag_CXX \
14462 export_symbols_cmds_CXX \
14463 hardcode_libdir_flag_spec_CXX \
14464 hardcode_libdir_flag_spec_ld_CXX \
14465 hardcode_libdir_separator_CXX \
14466 hardcode_automatic_CXX \
14468 module_expsym_cmds_CXX \
14469 lt_cv_prog_compiler_c_o_CXX \
14470 exclude_expsyms_CXX \
14471 include_expsyms_CXX; do
14474 old_archive_cmds_CXX | \
14475 old_archive_from_new_cmds_CXX | \
14476 archive_cmds_CXX | \
14477 archive_expsym_cmds_CXX | \
14478 module_cmds_CXX | \
14479 module_expsym_cmds_CXX | \
14480 old_archive_from_expsyms_cmds_CXX | \
14481 export_symbols_cmds_CXX | \
14482 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14483 postinstall_cmds | postuninstall_cmds | \
14484 old_postinstall_cmds | old_postuninstall_cmds | \
14485 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14486 # Double-quote double-evaled strings.
14487 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14490 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14496 *'\$0 --fallback-echo"')
14497 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14503 cat <<__EOF__ >> "$cfgfile"
14504 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14506 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14508 # Shell to use when invoking shell scripts.
14511 # Whether or not to build shared libraries.
14512 build_libtool_libs=$enable_shared
14514 # Whether or not to build static libraries.
14515 build_old_libs=$enable_static
14517 # Whether or not to add -lc for building shared libraries.
14518 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14520 # Whether or not to disallow shared libs when runtime libs are static
14521 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14523 # Whether or not to optimize for fast installation.
14524 fast_install=$enable_fast_install
14527 host_alias=$host_alias
14530 # An echo program that does not interpret backslashes.
14535 AR_FLAGS=$lt_AR_FLAGS
14540 # A language-specific compiler.
14541 CC=$lt_compiler_CXX
14543 # Is the compiler the GNU C compiler?
14549 # The linker used to build libraries.
14552 # Whether we need hard or soft links.
14555 # A BSD-compatible nm program.
14558 # A symbol stripping program
14561 # Used to examine libraries when file_magic_cmd begins "file"
14562 MAGIC_CMD=$MAGIC_CMD
14564 # Used on cygwin: DLL creation program.
14567 # Used on cygwin: object dumper.
14570 # Used on cygwin: assembler.
14573 # The name of the directory that contains temporary libtool files.
14576 # How to create reloadable object files.
14577 reload_flag=$lt_reload_flag
14578 reload_cmds=$lt_reload_cmds
14580 # How to pass a linker flag through the compiler.
14581 wl=$lt_lt_prog_compiler_wl_CXX
14583 # Object file suffix (normally "o").
14584 objext="$ac_objext"
14586 # Old archive suffix (normally "a").
14589 # Shared library suffix (normally ".so").
14590 shrext_cmds='$shrext_cmds'
14592 # Executable file suffix (normally "").
14595 # Additional compiler flags for building library objects.
14596 pic_flag=$lt_lt_prog_compiler_pic_CXX
14599 # What is the maximum length of a command?
14600 max_cmd_len=$lt_cv_sys_max_cmd_len
14602 # Does compiler simultaneously support -c and -o options?
14603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14605 # Must we lock files when doing compilation ?
14606 need_locks=$lt_need_locks
14608 # Do we need the lib prefix for modules?
14609 need_lib_prefix=$need_lib_prefix
14611 # Do we need a version for libraries?
14612 need_version=$need_version
14614 # Whether dlopen is supported.
14615 dlopen_support=$enable_dlopen
14617 # Whether dlopen of programs is supported.
14618 dlopen_self=$enable_dlopen_self
14620 # Whether dlopen of statically linked programs is supported.
14621 dlopen_self_static=$enable_dlopen_self_static
14623 # Compiler flag to prevent dynamic linking.
14624 link_static_flag=$lt_lt_prog_compiler_static_CXX
14626 # Compiler flag to turn off builtin functions.
14627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14629 # Compiler flag to allow reflexive dlopens.
14630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14632 # Compiler flag to generate shared objects directly from archives.
14633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14635 # Compiler flag to generate thread-safe objects.
14636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14638 # Library versioning type.
14639 version_type=$version_type
14641 # Format of library name prefix.
14642 libname_spec=$lt_libname_spec
14644 # List of archive names. First name is the real one, the rest are links.
14645 # The last name is the one that the linker finds with -lNAME.
14646 library_names_spec=$lt_library_names_spec
14648 # The coded name of the library, if different from the real name.
14649 soname_spec=$lt_soname_spec
14651 # Commands used to build and install an old-style archive.
14653 old_archive_cmds=$lt_old_archive_cmds_CXX
14654 old_postinstall_cmds=$lt_old_postinstall_cmds
14655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14657 # Create an old-style archive from a shared archive.
14658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14660 # Create a temporary old-style archive to link instead of a shared archive.
14661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14663 # Commands used to build and install a shared archive.
14664 archive_cmds=$lt_archive_cmds_CXX
14665 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14666 postinstall_cmds=$lt_postinstall_cmds
14667 postuninstall_cmds=$lt_postuninstall_cmds
14669 # Commands used to build a loadable module (assumed same as above if empty)
14670 module_cmds=$lt_module_cmds_CXX
14671 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14673 # Commands to strip libraries.
14674 old_striplib=$lt_old_striplib
14675 striplib=$lt_striplib
14677 # Dependencies to place before the objects being linked to create a
14679 predep_objects=$lt_predep_objects_CXX
14681 # Dependencies to place after the objects being linked to create a
14683 postdep_objects=$lt_postdep_objects_CXX
14685 # Dependencies to place before the objects being linked to create a
14687 predeps=$lt_predeps_CXX
14689 # Dependencies to place after the objects being linked to create a
14691 postdeps=$lt_postdeps_CXX
14693 # The library search path used internally by the compiler when linking
14694 # a shared library.
14695 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14697 # Method to check whether dependent libraries are shared objects.
14698 deplibs_check_method=$lt_deplibs_check_method
14700 # Command to use when deplibs_check_method == file_magic.
14701 file_magic_cmd=$lt_file_magic_cmd
14703 # Flag that allows shared libraries with undefined symbols to be built.
14704 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14706 # Flag that forces no undefined symbols.
14707 no_undefined_flag=$lt_no_undefined_flag_CXX
14709 # Commands used to finish a libtool library installation in a directory.
14710 finish_cmds=$lt_finish_cmds
14712 # Same as above, but a single script fragment to be evaled but not shown.
14713 finish_eval=$lt_finish_eval
14715 # Take the output of nm and produce a listing of raw symbols and C names.
14716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14718 # Transform the output of nm in a proper C declaration
14719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14721 # Transform the output of nm in a C name address pair
14722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14724 # This is the shared library runtime path variable.
14725 runpath_var=$runpath_var
14727 # This is the shared library path variable.
14728 shlibpath_var=$shlibpath_var
14730 # Is shlibpath searched before the hard-coded library search path?
14731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14733 # How to hardcode a shared library path into an executable.
14734 hardcode_action=$hardcode_action_CXX
14736 # Whether we should hardcode library paths into libraries.
14737 hardcode_into_libs=$hardcode_into_libs
14739 # Flag to hardcode \$libdir into a binary during linking.
14740 # This must work even if \$libdir does not exist.
14741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14743 # If ld is used when linking, flag to hardcode \$libdir into
14744 # a binary during linking. This must work even if \$libdir does
14746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14748 # Whether we need a single -rpath flag with a separated argument.
14749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14752 # resulting binary.
14753 hardcode_direct=$hardcode_direct_CXX
14755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14756 # resulting binary.
14757 hardcode_minus_L=$hardcode_minus_L_CXX
14759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14760 # the resulting binary.
14761 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14763 # Set to yes if building a shared library automatically hardcodes DIR into the library
14764 # and all subsequent libraries and executables linked against it.
14765 hardcode_automatic=$hardcode_automatic_CXX
14767 # Variables whose values should be saved in libtool wrapper scripts and
14768 # restored at relink time.
14769 variables_saved_for_relink="$variables_saved_for_relink"
14771 # Whether libtool must link a program against all its dependency libraries.
14772 link_all_deplibs=$link_all_deplibs_CXX
14774 # Compile-time system search path for libraries
14775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14777 # Run-time system search path for libraries
14778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14780 # Fix the shell variable \$srcfile for the compiler.
14781 fix_srcfile_path="$fix_srcfile_path_CXX"
14783 # Set to yes if exported symbols are required.
14784 always_export_symbols=$always_export_symbols_CXX
14786 # The commands to list exported symbols.
14787 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14789 # The commands to extract the exported symbol list from a shared archive.
14790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14792 # Symbols that should not be listed in the preloaded symbols.
14793 exclude_expsyms=$lt_exclude_expsyms_CXX
14795 # Symbols that must always be exported.
14796 include_expsyms=$lt_include_expsyms_CXX
14798 # ### END LIBTOOL TAG CONFIG: $tagname
14804 # If there is no Makefile yet, we rely on a make rule to execute
14805 # `config.status --recheck' to rerun these tests and create the
14806 # libtool script then.
14807 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14808 if test -f "$ltmain_in"; then
14809 test -f Makefile && make "$ltmain"
14815 ac_cpp='$CPP $CPPFLAGS'
14816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14824 with_gnu_ldcxx=$with_gnu_ld
14825 with_gnu_ld=$lt_save_with_gnu_ld
14826 lt_cv_path_LDCXX=$lt_cv_path_LD
14827 lt_cv_path_LD=$lt_save_path_LD
14828 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14829 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14837 if test -n "$F77" && test "X$F77" != "Xno"; then
14840 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14841 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14842 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14845 archive_cmds_need_lc_F77=no
14846 allow_undefined_flag_F77=
14847 always_export_symbols_F77=no
14848 archive_expsym_cmds_F77=
14849 export_dynamic_flag_spec_F77=
14850 hardcode_direct_F77=no
14851 hardcode_libdir_flag_spec_F77=
14852 hardcode_libdir_flag_spec_ld_F77=
14853 hardcode_libdir_separator_F77=
14854 hardcode_minus_L_F77=no
14855 hardcode_automatic_F77=no
14857 module_expsym_cmds_F77=
14858 link_all_deplibs_F77=unknown
14859 old_archive_cmds_F77=$old_archive_cmds
14860 no_undefined_flag_F77=
14861 whole_archive_flag_spec_F77=
14862 enable_shared_with_static_runtimes_F77=no
14864 # Source file extension for f77 test sources.
14867 # Object file extension for compiled f77 test sources.
14871 # Code to be used in simple compile tests
14872 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14874 # Code to be used in simple link tests
14875 lt_simple_link_test_code=" program t\n end\n"
14877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14879 # If no C compiler was specified, use CC.
14882 # Allow CC to be a program name with arguments.
14886 # Allow CC to be a program name with arguments.
14891 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14893 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14894 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14895 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14896 echo "${ECHO_T}$can_build_shared" >&6
14898 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14899 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14900 test "$can_build_shared" = "no" && enable_shared=no
14902 # On AIX, shared libraries and static libraries use the same namespace, and
14903 # are all built from PIC.
14906 test "$enable_shared" = yes && enable_static=no
14907 if test -n "$RANLIB"; then
14908 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14909 postinstall_cmds='$RANLIB $lib'
14913 test "$enable_shared" = yes && enable_static=no
14916 echo "$as_me:$LINENO: result: $enable_shared" >&5
14917 echo "${ECHO_T}$enable_shared" >&6
14919 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14921 # Make sure either enable_shared or enable_static is yes.
14922 test "$enable_shared" = yes || enable_static=yes
14923 echo "$as_me:$LINENO: result: $enable_static" >&5
14924 echo "${ECHO_T}$enable_static" >&6
14926 test "$ld_shlibs_F77" = no && can_build_shared=no
14931 lt_prog_compiler_wl_F77=
14932 lt_prog_compiler_pic_F77=
14933 lt_prog_compiler_static_F77=
14935 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14936 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14938 if test "$GCC" = yes; then
14939 lt_prog_compiler_wl_F77='-Wl,'
14940 lt_prog_compiler_static_F77='-static'
14944 # All AIX code is PIC.
14945 if test "$host_cpu" = ia64; then
14946 # AIX 5 now supports IA64 processor
14947 lt_prog_compiler_static_F77='-Bstatic'
14952 # FIXME: we need at least 68020 code to build shared libraries, but
14953 # adding the `-m68020' flag to GCC prevents building anything better,
14955 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14958 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14959 # PIC is the default for these OSes.
14962 mingw* | pw32* | os2*)
14963 # This hack is so that the source file can tell whether it is being
14964 # built for inclusion in a dll (and should export symbols for example).
14965 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14968 darwin* | rhapsody*)
14969 # PIC is the default on this platform
14970 # Common symbols not allowed in MH_DYLIB files
14971 lt_prog_compiler_pic_F77='-fno-common'
14975 # Just because we use GCC doesn't mean we suddenly get shared libraries
14976 # on systems that don't support them.
14977 lt_prog_compiler_can_build_shared_F77=no
14982 if test -d /usr/nec; then
14983 lt_prog_compiler_pic_F77=-Kconform_pic
14988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14989 # not for PA HP-UX.
14990 case "$host_cpu" in
14995 lt_prog_compiler_pic_F77='-fPIC'
15001 lt_prog_compiler_pic_F77='-fPIC'
15005 # PORTME Check for flag to pass linker flags through the system compiler.
15008 lt_prog_compiler_wl_F77='-Wl,'
15009 if test "$host_cpu" = ia64; then
15010 # AIX 5 now supports IA64 processor
15011 lt_prog_compiler_static_F77='-Bstatic'
15013 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15017 # PIC is the default on this platform
15018 # Common symbols not allowed in MH_DYLIB files
15019 case "$cc_basename" in
15021 lt_prog_compiler_pic_F77='-qnocommon'
15022 lt_prog_compiler_wl_F77='-Wl,'
15027 mingw* | pw32* | os2*)
15028 # This hack is so that the source file can tell whether it is being
15029 # built for inclusion in a dll (and should export symbols for example).
15030 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15033 hpux9* | hpux10* | hpux11*)
15034 lt_prog_compiler_wl_F77='-Wl,'
15035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15036 # not for PA HP-UX.
15037 case "$host_cpu" in
15042 lt_prog_compiler_pic_F77='+Z'
15045 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15046 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15049 irix5* | irix6* | nonstopux*)
15050 lt_prog_compiler_wl_F77='-Wl,'
15051 # PIC (with -KPIC) is the default.
15052 lt_prog_compiler_static_F77='-non_shared'
15056 lt_prog_compiler_pic_F77='-KPIC'
15057 lt_prog_compiler_static_F77='-Bstatic'
15063 lt_prog_compiler_wl_F77='-Wl,'
15064 lt_prog_compiler_pic_F77='-KPIC'
15065 lt_prog_compiler_static_F77='-static'
15068 lt_prog_compiler_wl_F77='-Wl,'
15069 # All Alpha code is PIC.
15070 lt_prog_compiler_static_F77='-non_shared'
15075 osf3* | osf4* | osf5*)
15076 lt_prog_compiler_wl_F77='-Wl,'
15077 # All OSF/1 code is PIC.
15078 lt_prog_compiler_static_F77='-non_shared'
15082 lt_prog_compiler_pic_F77='-Kpic'
15083 lt_prog_compiler_static_F77='-dn'
15087 lt_prog_compiler_wl_F77='-Wl,'
15088 lt_prog_compiler_pic_F77='-KPIC'
15089 lt_prog_compiler_static_F77='-Bstatic'
15093 lt_prog_compiler_wl_F77='-Qoption ld '
15094 lt_prog_compiler_pic_F77='-PIC'
15095 lt_prog_compiler_static_F77='-Bstatic'
15098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15099 lt_prog_compiler_wl_F77='-Wl,'
15100 lt_prog_compiler_pic_F77='-KPIC'
15101 lt_prog_compiler_static_F77='-Bstatic'
15105 if test -d /usr/nec ;then
15106 lt_prog_compiler_pic_F77='-Kconform_pic'
15107 lt_prog_compiler_static_F77='-Bstatic'
15112 lt_prog_compiler_pic_F77='-pic'
15113 lt_prog_compiler_static_F77='-Bstatic'
15117 lt_prog_compiler_can_build_shared_F77=no
15122 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15123 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15126 # Check to make sure the PIC flag actually works.
15128 if test -n "$lt_prog_compiler_pic_F77"; then
15130 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15131 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15132 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 lt_prog_compiler_pic_works_F77=no
15136 ac_outfile=conftest.$ac_objext
15137 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15138 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15139 # Insert the option either (1) after the last *FLAGS variable, or
15140 # (2) before a word containing "conftest.", or (3) at the end.
15141 # Note that $ac_compile itself does not contain backslashes and begins
15142 # with a dollar sign (not a hyphen), so the echo should work correctly.
15143 # The option is referenced via a variable to avoid confusing sed.
15144 lt_compile=`echo "$ac_compile" | $SED \
15145 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15147 -e 's:$: $lt_compiler_flag:'`
15148 (eval echo "\"\$as_me:15148: $lt_compile\"" >&5)
15149 (eval "$lt_compile" 2>conftest.err)
15151 cat conftest.err >&5
15152 echo "$as_me:15152: \$? = $ac_status" >&5
15153 if (exit $ac_status) && test -s "$ac_outfile"; then
15154 # The compiler can only warn and ignore the option if not recognized
15155 # So say no if there are warnings
15156 if test ! -s conftest.err; then
15157 lt_prog_compiler_pic_works_F77=yes
15163 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15164 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15166 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15167 case $lt_prog_compiler_pic_F77 in
15169 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15172 lt_prog_compiler_pic_F77=
15173 lt_prog_compiler_can_build_shared_F77=no
15178 # For platforms which do not support PIC, -DPIC is meaningless:
15180 lt_prog_compiler_pic_F77=
15183 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15187 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15188 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15189 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 lt_cv_prog_compiler_c_o_F77=no
15193 $rm -r conftest 2>/dev/null
15197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15199 lt_compiler_flag="-o out/conftest2.$ac_objext"
15200 # Insert the option either (1) after the last *FLAGS variable, or
15201 # (2) before a word containing "conftest.", or (3) at the end.
15202 # Note that $ac_compile itself does not contain backslashes and begins
15203 # with a dollar sign (not a hyphen), so the echo should work correctly.
15204 lt_compile=`echo "$ac_compile" | $SED \
15205 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15207 -e 's:$: $lt_compiler_flag:'`
15208 (eval echo "\"\$as_me:15208: $lt_compile\"" >&5)
15209 (eval "$lt_compile" 2>out/conftest.err)
15211 cat out/conftest.err >&5
15212 echo "$as_me:15212: \$? = $ac_status" >&5
15213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15215 # The compiler can only warn and ignore the option if not recognized
15216 # So say no if there are warnings
15217 if test ! -s out/conftest.err; then
15218 lt_cv_prog_compiler_c_o_F77=yes
15223 # SGI C++ compiler will create directory out/ii_files/ for
15224 # template instantiation
15225 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15226 $rm out/* && rmdir out
15232 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15233 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15236 hard_links="nottested"
15237 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15238 # do not overwrite the value of need_locks provided by the user
15239 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15240 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15245 ln conftest.a conftest.b 2>&5 || hard_links=no
15246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15247 echo "$as_me:$LINENO: result: $hard_links" >&5
15248 echo "${ECHO_T}$hard_links" >&6
15249 if test "$hard_links" = no; then
15250 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15251 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15258 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15262 allow_undefined_flag_F77=
15263 enable_shared_with_static_runtimes_F77=no
15265 archive_expsym_cmds_F77=
15266 old_archive_From_new_cmds_F77=
15267 old_archive_from_expsyms_cmds_F77=
15268 export_dynamic_flag_spec_F77=
15269 whole_archive_flag_spec_F77=
15270 thread_safe_flag_spec_F77=
15271 hardcode_libdir_flag_spec_F77=
15272 hardcode_libdir_flag_spec_ld_F77=
15273 hardcode_libdir_separator_F77=
15274 hardcode_direct_F77=no
15275 hardcode_minus_L_F77=no
15276 hardcode_shlibpath_var_F77=unsupported
15277 link_all_deplibs_F77=unknown
15278 hardcode_automatic_F77=no
15280 module_expsym_cmds_F77=
15281 always_export_symbols_F77=no
15282 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15283 # include_expsyms should be a list of space-separated symbols to be *always*
15284 # included in the symbol list
15285 include_expsyms_F77=
15286 # exclude_expsyms can be an extended regexp of symbols to exclude
15287 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15288 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15289 # as well as any symbol that contains `d'.
15290 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15292 # platforms (ab)use it in PIC code, but their linkers get confused if
15293 # the symbol is explicitly referenced. Since portable code cannot
15294 # rely on this symbol name, it's probably fine to never include it in
15295 # preloaded symbol tables.
15296 extract_expsyms_cmds=
15299 cygwin* | mingw* | pw32*)
15300 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15301 # When not using gcc, we currently assume that we are using
15302 # Microsoft Visual C++.
15303 if test "$GCC" != yes; then
15313 if test "$with_gnu_ld" = yes; then
15314 # If archive_cmds runs LD, not CC, wlarc should be empty
15317 # See if GNU ld supports shared libraries.
15319 aix3* | aix4* | aix5*)
15320 # On AIX/PPC, the GNU linker is very broken
15321 if test "$host_cpu" != ia64; then
15325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15326 *** to be unable to reliably create shared libraries on AIX.
15327 *** Therefore, libtool is disabling shared libraries support. If you
15328 *** really care for shared libraries, you may want to modify your PATH
15329 *** so that a non-GNU linker is found, and then restart.
15336 archive_cmds_F77='$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)'
15337 hardcode_libdir_flag_spec_F77='-L$libdir'
15338 hardcode_minus_L_F77=yes
15340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15341 # that the semantics of dynamic libraries on AmigaOS, at least up
15342 # to version 4, is to share data among multiple programs linked
15343 # with the same dynamic library. Since this doesn't match the
15344 # behavior of shared libraries on other platforms, we can't use
15350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15351 allow_undefined_flag_F77=unsupported
15352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15353 # support --undefined. This deserves some investigation. FIXME
15354 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15360 cygwin* | mingw* | pw32*)
15361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15362 # as there is no search path for DLLs.
15363 hardcode_libdir_flag_spec_F77='-L$libdir'
15364 allow_undefined_flag_F77=unsupported
15365 always_export_symbols_F77=no
15366 enable_shared_with_static_runtimes_F77=yes
15367 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15370 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15371 # If the export-symbols file already is a .def file (1st line
15372 # is EXPORTS), use it as is; otherwise, prepend...
15373 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15374 cp $export_symbols $output_objdir/$soname.def;
15376 echo EXPORTS > $output_objdir/$soname.def;
15377 cat $export_symbols >> $output_objdir/$soname.def;
15379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15390 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15391 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15396 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15401 *** create shared libraries on Solaris systems. Therefore, libtool
15402 *** is disabling shared libraries support. We urge you to upgrade GNU
15403 *** binutils to release 2.9.1 or newer. Another option is to modify
15404 *** your PATH or compiler configuration so that the native linker is
15405 *** used, and then restart.
15408 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15409 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15417 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_direct_F77=yes
15420 hardcode_shlibpath_var_F77=no
15424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15425 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426 archive_cmds_F77="$tmp_archive_cmds"
15427 supports_anon_versioning=no
15428 case `$LD -v 2>/dev/null` in
15429 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15432 *\ 2.11.*) ;; # other 2.11 versions
15433 *) supports_anon_versioning=yes ;;
15435 if test $supports_anon_versioning = yes; then
15436 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15438 $echo "local: *; };" >> $output_objdir/$libname.ver~
15439 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15441 archive_expsym_cmds_F77="$tmp_archive_cmds"
15449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15450 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15458 if test "$ld_shlibs_F77" = yes; then
15459 runpath_var=LD_RUN_PATH
15460 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15461 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15462 # ancient GNU ld didn't support --whole-archive et. al.
15463 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15464 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15466 whole_archive_flag_spec_F77=
15470 # PORTME fill in a description of your system's linker (not GNU ld)
15473 allow_undefined_flag_F77=unsupported
15474 always_export_symbols_F77=yes
15475 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15476 # Note: this linker hardcodes the directories in LIBPATH if there
15477 # are no directories specified by -L.
15478 hardcode_minus_L_F77=yes
15479 if test "$GCC" = yes && test -z "$link_static_flag"; then
15480 # Neither direct hardcoding nor static linking is supported with a
15482 hardcode_direct_F77=unsupported
15487 if test "$host_cpu" = ia64; then
15488 # On IA64, the linker does run time linking by default, so we don't
15489 # have to do anything special.
15490 aix_use_runtimelinking=no
15491 exp_sym_flag='-Bexport'
15494 # If we're using GNU nm, then we don't want the "-C" option.
15495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15496 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15497 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15499 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15501 aix_use_runtimelinking=no
15503 # Test if we are trying to use run time linking or normal
15504 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15505 # need to do runtime linking.
15506 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15507 for ld_flag in $LDFLAGS; do
15508 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15509 aix_use_runtimelinking=yes
15515 exp_sym_flag='-bexport'
15516 no_entry_flag='-bnoentry'
15519 # When large executables or shared objects are built, AIX ld can
15520 # have problems creating the table of contents. If linking a library
15521 # or program results in "error TOC overflow" add -mminimal-toc to
15522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15525 archive_cmds_F77=''
15526 hardcode_direct_F77=yes
15527 hardcode_libdir_separator_F77=':'
15528 link_all_deplibs_F77=yes
15530 if test "$GCC" = yes; then
15531 case $host_os in aix4.012|aix4.012.*)
15532 # We only want to do this on AIX 4.2 and lower, the check
15533 # below for broken collect2 doesn't work under 4.3+
15534 collect2name=`${CC} -print-prog-name=collect2`
15535 if test -f "$collect2name" && \
15536 strings "$collect2name" | grep resolve_lib_name >/dev/null
15538 # We have reworked collect2
15539 hardcode_direct_F77=yes
15541 # We have old collect2
15542 hardcode_direct_F77=unsupported
15543 # It fails to find uninstalled libraries when the uninstalled
15544 # path is not listed in the libpath. Setting hardcode_minus_L
15545 # to unsupported forces relinking
15546 hardcode_minus_L_F77=yes
15547 hardcode_libdir_flag_spec_F77='-L$libdir'
15548 hardcode_libdir_separator_F77=
15551 shared_flag='-shared'
15554 if test "$host_cpu" = ia64; then
15555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15556 # chokes on -Wl,-G. The following line is correct:
15559 if test "$aix_use_runtimelinking" = yes; then
15560 shared_flag='${wl}-G'
15562 shared_flag='${wl}-bM:SRE'
15567 # It seems that -bexpall does not export symbols beginning with
15568 # underscore (_), so it is better to generate a list of symbols to export.
15569 always_export_symbols_F77=yes
15570 if test "$aix_use_runtimelinking" = yes; then
15571 # Warning - without using the other runtime loading flags (-brtl),
15572 # -berok will link without error, but may produce a broken library.
15573 allow_undefined_flag_F77='-berok'
15574 # Determine the default libpath from the value encoded in an empty executable.
15575 cat >conftest.$ac_ext <<_ACEOF
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15582 (eval $ac_link) 2>conftest.er1
15584 grep -v '^ *+' conftest.er1 >conftest.err
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -z "$ac_f77_werror_flag"
15590 || test ! -s conftest.err'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try='test -s conftest$ac_exeext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15605 # Check for a 64-bit object if we didn't find anything.
15606 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15613 rm -f conftest.err conftest.$ac_objext \
15614 conftest$ac_exeext conftest.$ac_ext
15615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15617 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15618 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15620 if test "$host_cpu" = ia64; then
15621 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15622 allow_undefined_flag_F77="-z nodefs"
15623 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15625 # Determine the default libpath from the value encoded in an empty executable.
15626 cat >conftest.$ac_ext <<_ACEOF
15631 rm -f conftest.$ac_objext conftest$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>conftest.er1
15635 grep -v '^ *+' conftest.er1 >conftest.err
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -z "$ac_f77_werror_flag"
15641 || test ! -s conftest.err'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest$ac_exeext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15656 # Check for a 64-bit object if we didn't find anything.
15657 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15664 rm -f conftest.err conftest.$ac_objext \
15665 conftest$ac_exeext conftest.$ac_ext
15666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15668 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15669 # Warning - without using the other run time loading flags,
15670 # -berok will link without error, but may produce a broken library.
15671 no_undefined_flag_F77=' ${wl}-bernotok'
15672 allow_undefined_flag_F77=' ${wl}-berok'
15673 # -bexpall does not export symbols beginning with underscore (_)
15674 always_export_symbols_F77=yes
15675 # Exported symbols can be pulled into shared objects from archives
15676 whole_archive_flag_spec_F77=' '
15677 archive_cmds_need_lc_F77=yes
15678 # This is similar to how AIX traditionally builds it's shared libraries.
15679 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15685 archive_cmds_F77='$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)'
15686 hardcode_libdir_flag_spec_F77='-L$libdir'
15687 hardcode_minus_L_F77=yes
15688 # see comment about different semantics on the GNU ld section
15693 export_dynamic_flag_spec_F77=-rdynamic
15696 cygwin* | mingw* | pw32*)
15697 # When not using gcc, we currently assume that we are using
15698 # Microsoft Visual C++.
15699 # hardcode_libdir_flag_spec is actually meaningless, as there is
15700 # no search path for DLLs.
15701 hardcode_libdir_flag_spec_F77=' '
15702 allow_undefined_flag_F77=unsupported
15703 # Tell ltmain to make .lib files, not .a files.
15705 # Tell ltmain to make .dll files, not .so files.
15707 # FIXME: Setting linknames here is a bad hack.
15708 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15709 # The linker will automatically build a .lib file if we build a DLL.
15710 old_archive_From_new_cmds_F77='true'
15711 # FIXME: Should let the user specify the lib program.
15712 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15713 fix_srcfile_path='`cygpath -w "$srcfile"`'
15714 enable_shared_with_static_runtimes_F77=yes
15717 darwin* | rhapsody*)
15719 rhapsody* | darwin1.[012])
15720 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15723 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15724 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15726 case ${MACOSX_DEPLOYMENT_TARGET} in
15728 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15731 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15737 archive_cmds_need_lc_F77=no
15738 hardcode_direct_F77=no
15739 hardcode_automatic_F77=yes
15740 hardcode_shlibpath_var_F77=unsupported
15741 whole_archive_flag_spec_F77=''
15742 link_all_deplibs_F77=yes
15743 if test "$GCC" = yes ; then
15744 output_verbose_link_cmd='echo'
15745 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15746 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15748 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15749 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15751 case "$cc_basename" in
15753 output_verbose_link_cmd='echo'
15754 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15755 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15756 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15757 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15758 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15769 hardcode_libdir_flag_spec_F77='-L$libdir'
15770 hardcode_shlibpath_var_F77=no
15777 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15778 # support. Future versions do this automatically, but an explicit c++rt0.o
15779 # does not break anything, and helps significantly (at the cost of a little
15782 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15783 hardcode_libdir_flag_spec_F77='-R$libdir'
15784 hardcode_direct_F77=yes
15785 hardcode_shlibpath_var_F77=no
15788 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15790 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_direct_F77=yes
15792 hardcode_minus_L_F77=yes
15793 hardcode_shlibpath_var_F77=no
15796 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15797 freebsd* | kfreebsd*-gnu)
15798 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15799 hardcode_libdir_flag_spec_F77='-R$libdir'
15800 hardcode_direct_F77=yes
15801 hardcode_shlibpath_var_F77=no
15805 if test "$GCC" = yes; then
15806 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15808 archive_cmds_F77='$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'
15810 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15811 hardcode_libdir_separator_F77=:
15812 hardcode_direct_F77=yes
15814 # hardcode_minus_L: Not really in the search PATH,
15815 # but as the default location of the library.
15816 hardcode_minus_L_F77=yes
15817 export_dynamic_flag_spec_F77='${wl}-E'
15821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15822 case "$host_cpu" in
15824 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15831 case "$host_cpu" in
15833 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15836 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15840 if test "$with_gnu_ld" = no; then
15841 case "$host_cpu" in
15843 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15844 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15845 hardcode_libdir_separator_F77=:
15846 hardcode_direct_F77=no
15847 hardcode_shlibpath_var_F77=no
15850 hardcode_libdir_flag_spec_F77='-L$libdir'
15851 hardcode_direct_F77=no
15852 hardcode_shlibpath_var_F77=no
15854 # hardcode_minus_L: Not really in the search PATH,
15855 # but as the default location of the library.
15856 hardcode_minus_L_F77=yes
15859 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15860 hardcode_libdir_separator_F77=:
15861 hardcode_direct_F77=yes
15862 export_dynamic_flag_spec_F77='${wl}-E'
15864 # hardcode_minus_L: Not really in the search PATH,
15865 # but as the default location of the library.
15866 hardcode_minus_L_F77=yes
15872 irix5* | irix6* | nonstopux*)
15873 if test "$GCC" = yes; then
15874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15876 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15877 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15879 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15880 hardcode_libdir_separator_F77=:
15881 link_all_deplibs_F77=yes
15885 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15886 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15888 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15890 hardcode_libdir_flag_spec_F77='-R$libdir'
15891 hardcode_direct_F77=yes
15892 hardcode_shlibpath_var_F77=no
15896 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15897 hardcode_direct_F77=yes
15898 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15899 hardcode_libdir_separator_F77=:
15900 hardcode_shlibpath_var_F77=no
15904 hardcode_direct_F77=yes
15905 hardcode_shlibpath_var_F77=no
15906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15907 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15909 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15910 export_dynamic_flag_spec_F77='${wl}-E'
15913 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15914 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15915 hardcode_libdir_flag_spec_F77='-R$libdir'
15918 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15919 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15926 hardcode_libdir_flag_spec_F77='-L$libdir'
15927 hardcode_minus_L_F77=yes
15928 allow_undefined_flag_F77=unsupported
15929 archive_cmds_F77='$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'
15930 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15934 if test "$GCC" = yes; then
15935 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15936 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15938 allow_undefined_flag_F77=' -expect_unresolved \*'
15939 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15941 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15942 hardcode_libdir_separator_F77=:
15945 osf4* | osf5*) # as osf3* with the addition of -msym flag
15946 if test "$GCC" = yes; then
15947 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15948 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15949 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15951 allow_undefined_flag_F77=' -expect_unresolved \*'
15952 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15953 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15954 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15956 # Both c and cxx compiler support -rpath directly
15957 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15959 hardcode_libdir_separator_F77=:
15963 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15964 hardcode_shlibpath_var_F77=no
15965 export_dynamic_flag_spec_F77='${wl}-Bexport'
15966 runpath_var=LD_RUN_PATH
15967 hardcode_runpath_var=yes
15971 no_undefined_flag_F77=' -z text'
15972 if test "$GCC" = yes; then
15973 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15974 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15977 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15978 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15979 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15981 hardcode_libdir_flag_spec_F77='-R$libdir'
15982 hardcode_shlibpath_var_F77=no
15984 solaris2.[0-5] | solaris2.[0-5].*) ;;
15985 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15986 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15988 link_all_deplibs_F77=yes
15992 if test "x$host_vendor" = xsequent; then
15993 # Use $CC to link under sequent, because it throws in some extra .o
15994 # files that make .init and .fini sections work.
15995 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15997 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15999 hardcode_libdir_flag_spec_F77='-L$libdir'
16000 hardcode_direct_F77=yes
16001 hardcode_minus_L_F77=yes
16002 hardcode_shlibpath_var_F77=no
16006 case $host_vendor in
16008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009 hardcode_direct_F77=yes # is this really true???
16012 ## LD is ld it makes a PLAMLIB
16013 ## CC just makes a GrossModule.
16014 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16015 reload_cmds_F77='$CC -r -o $output$reload_objs'
16016 hardcode_direct_F77=no
16019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16023 runpath_var='LD_RUN_PATH'
16024 hardcode_shlibpath_var_F77=no
16028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16029 hardcode_shlibpath_var_F77=no
16030 export_dynamic_flag_spec_F77='-Bexport'
16034 if test -d /usr/nec; then
16035 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16036 hardcode_shlibpath_var_F77=no
16037 runpath_var=LD_RUN_PATH
16038 hardcode_runpath_var=yes
16044 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16045 hardcode_direct_F77=yes
16046 hardcode_minus_L_F77=no
16047 hardcode_shlibpath_var_F77=no
16048 hardcode_runpath_var=yes
16049 runpath_var=LD_RUN_PATH
16052 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16053 no_undefined_flag_F77='${wl}-z ${wl}text'
16054 if test "$GCC" = yes; then
16055 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16059 runpath_var='LD_RUN_PATH'
16060 hardcode_shlibpath_var_F77=no
16064 no_undefined_flag_F77=' -z text'
16065 # $CC -shared without GNU ld will not create a library from C++
16066 # object files and a static libstdc++, better avoid it by now
16067 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16070 hardcode_libdir_flag_spec_F77=
16071 hardcode_shlibpath_var_F77=no
16072 runpath_var='LD_RUN_PATH'
16076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077 hardcode_libdir_flag_spec_F77='-L$libdir'
16078 hardcode_shlibpath_var_F77=no
16087 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16088 echo "${ECHO_T}$ld_shlibs_F77" >&6
16089 test "$ld_shlibs_F77" = no && can_build_shared=no
16091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16092 if test "$GCC" = yes; then
16093 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16097 # Do we need to explicitly link libc?
16099 case "x$archive_cmds_need_lc_F77" in
16101 # Assume -lc should be added
16102 archive_cmds_need_lc_F77=yes
16104 if test "$enable_shared" = yes && test "$GCC" = yes; then
16105 case $archive_cmds_F77 in
16107 # FIXME: we may have to deal with multi-command sequences.
16110 # Test whether the compiler implicitly links with -lc since on some
16111 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16112 # to ld, don't add -lc before -lgcc.
16113 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16114 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16119 (eval $ac_compile) 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } 2>conftest.err; then
16125 libobjs=conftest.$ac_objext
16127 wl=$lt_prog_compiler_wl_F77
16133 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16134 allow_undefined_flag_F77=
16135 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16136 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }
16141 archive_cmds_need_lc_F77=no
16143 archive_cmds_need_lc_F77=yes
16145 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16147 cat conftest.err 1>&5
16150 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16151 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16158 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16160 library_names_spec=
16161 libname_spec='lib$name'
16165 postuninstall_cmds=
16169 shlibpath_overrides_runpath=unknown
16171 dynamic_linker="$host_os ld.so"
16172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16173 if test "$GCC" = yes; then
16174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16175 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16176 # if the path contains ";" then we assume it to be the separator
16177 # otherwise default to the standard path separator (i.e. ":") - it is
16178 # assumed that no part of a normal pathname contains ";" but that should
16179 # okay in the real world where ";" in dirpaths is itself problematic.
16180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16187 need_lib_prefix=unknown
16188 hardcode_into_libs=no
16190 # when you set need_version to no, make sure it does not cause -set_version
16191 # flags to be left without arguments
16192 need_version=unknown
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16198 shlibpath_var=LIBPATH
16200 # AIX 3 has no versioning support, so we append a major version to the name.
16201 soname_spec='${libname}${release}${shared_ext}$major'
16208 hardcode_into_libs=yes
16209 if test "$host_cpu" = ia64; then
16210 # AIX 5 supports IA64
16211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16212 shlibpath_var=LD_LIBRARY_PATH
16214 # With GCC up to 2.95.x, collect2 would create an import file
16215 # for dependence libraries. The import file would start with
16216 # the line `#! .'. This would cause the generated library to
16217 # depend on `.', always an invalid library. This was fixed in
16218 # development snapshots of GCC prior to 3.0.
16220 aix4 | aix4.[01] | aix4.[01].*)
16221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16226 can_build_shared=no
16230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16231 # soname into executable. Probably we can add versioning support to
16232 # collect2, so additional links can be useful in future.
16233 if test "$aix_use_runtimelinking" = yes; then
16234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16235 # instead of lib<name>.a to let people know that these are not
16236 # typical AIX shared libraries.
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239 # We preserve .a as extension for shared libraries through AIX4.2
16240 # and later when we are not doing run time linking.
16241 library_names_spec='${libname}${release}.a $libname.a'
16242 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LIBPATH
16249 library_names_spec='$libname.ixlibrary $libname.a'
16250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16251 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16255 library_names_spec='${libname}${shared_ext}'
16256 dynamic_linker="$host_os ld.so"
16257 shlibpath_var=LIBRARY_PATH
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16269 # the default ld.so.conf also contains /usr/contrib/lib and
16270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16271 # libtool to hard-code these into programs
16274 cygwin* | mingw* | pw32*)
16275 version_type=windows
16280 case $GCC,$host_os in
16281 yes,cygwin* | yes,mingw* | yes,pw32*)
16282 library_names_spec='$libname.dll.a'
16283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16284 postinstall_cmds='base_file=`basename \${file}`~
16285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16286 dldir=$destdir/`dirname \$dlpath`~
16287 test -d \$dldir || mkdir -p \$dldir~
16288 $install_prog $dir/$dlname \$dldir/$dlname'
16289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16290 dlpath=$dir/\$dldll~
16292 shlibpath_overrides_runpath=yes
16296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16301 # MinGW DLLs use traditional 'lib' prefix
16302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16303 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16304 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16305 # It is most probably a Windows format PATH printed by
16306 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16307 # path with ; separators, and with drive letters. We can handle the
16308 # drive letters (cygwin fileutils understands them), so leave them,
16309 # especially as we might pass files found there to a mingw objdump,
16310 # which wouldn't understand a cygwinified path. Ahh.
16311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16317 # pw32 DLLs use 'pw' prefix rather than 'lib'
16318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16327 dynamic_linker='Win32 ld.exe'
16328 # FIXME: first we should search . and the directory the executable is in
16332 darwin* | rhapsody*)
16333 dynamic_linker="$host_os dyld"
16334 version_type=darwin
16337 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16338 soname_spec='${libname}${release}${major}$shared_ext'
16339 shlibpath_overrides_runpath=yes
16340 shlibpath_var=DYLD_LIBRARY_PATH
16341 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16342 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16343 if test "$GCC" = yes; then
16344 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16346 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16348 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 shlibpath_var=LD_LIBRARY_PATH
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=no
16372 hardcode_into_libs=yes
16373 dynamic_linker='GNU ld.so'
16377 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16378 version_type=freebsd-$objformat
16379 case $version_type in
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16390 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=yes
16395 freebsd3.01* | freebsdelf3.01*)
16396 shlibpath_overrides_runpath=yes
16397 hardcode_into_libs=yes
16400 shlibpath_overrides_runpath=no
16401 hardcode_into_libs=yes
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 hardcode_into_libs=yes
16416 hpux9* | hpux10* | hpux11*)
16417 # Give a soname corresponding to the major version so that dld.sl refuses to
16418 # link against other versions.
16422 case "$host_cpu" in
16425 hardcode_into_libs=yes
16426 dynamic_linker="$host_os dld.so"
16427 shlibpath_var=LD_LIBRARY_PATH
16428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430 soname_spec='${libname}${release}${shared_ext}$major'
16431 if test "X$HPUX_IA64_MODE" = X32; then
16432 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16434 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16440 hardcode_into_libs=yes
16441 dynamic_linker="$host_os dld.sl"
16442 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16451 dynamic_linker="$host_os dld.sl"
16452 shlibpath_var=SHLIB_PATH
16453 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16458 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16459 postinstall_cmds='chmod 555 $lib'
16462 irix5* | irix6* | nonstopux*)
16464 nonstopux*) version_type=nonstopux ;;
16466 if test "$lt_cv_prog_gnu_ld" = yes; then
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16477 irix5* | nonstopux*)
16478 libsuff= shlibsuff=
16481 case $LD in # libtool.m4 will add one of these switches to LD
16482 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16483 libsuff= shlibsuff= libmagic=32-bit;;
16484 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16485 libsuff=32 shlibsuff=N32 libmagic=N32;;
16486 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16487 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16488 *) libsuff= shlibsuff= libmagic=never-match;;
16492 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16493 shlibpath_overrides_runpath=no
16494 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16495 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16496 hardcode_into_libs=yes
16499 # No shared lib support for Linux oldld, aout, or coff.
16500 linux*oldld* | linux*aout* | linux*coff*)
16504 # This must be Linux ELF.
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510 soname_spec='${libname}${release}${shared_ext}$major'
16511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16512 shlibpath_var=LD_LIBRARY_PATH
16513 shlibpath_overrides_runpath=no
16514 # This implies no fast_install, which is unacceptable.
16515 # Some rework will be needed to allow for fast_install
16516 # before this can be enabled.
16517 hardcode_into_libs=yes
16519 # Append ld.so.conf contents to the search path
16520 if test -f /etc/ld.so.conf; then
16521 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16522 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16525 # We used to test for /lib/ld.so.1 and disable shared libraries on
16526 # powerpc, because MkLinux only supported shared libraries with the
16527 # GNU dynamic linker. Since this was broken with cross compilers,
16528 # most powerpc-linux boxes support dynamic linking these days and
16529 # people can always --disable-shared, the test was removed, and we
16530 # assume the GNU/Linux dynamic linker is in use.
16531 dynamic_linker='GNU/Linux ld.so'
16538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16539 soname_spec='${libname}${release}${shared_ext}$major'
16540 shlibpath_var=LD_LIBRARY_PATH
16541 shlibpath_overrides_runpath=no
16542 hardcode_into_libs=yes
16543 dynamic_linker='GNU ld.so'
16550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16553 dynamic_linker='NetBSD (a.out) ld.so'
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 dynamic_linker='NetBSD ld.elf_so'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 shlibpath_overrides_runpath=yes
16561 hardcode_into_libs=yes
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 shlibpath_overrides_runpath=yes
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576 soname_spec='${libname}${release}${shared_ext}$major'
16577 shlibpath_var=LD_LIBRARY_PATH
16578 shlibpath_overrides_runpath=yes
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16590 openbsd2.[89] | openbsd2.[89].*)
16591 shlibpath_overrides_runpath=no
16594 shlibpath_overrides_runpath=yes
16598 shlibpath_overrides_runpath=yes
16603 libname_spec='$name'
16606 library_names_spec='$libname${shared_ext} $libname.a'
16607 dynamic_linker='OS/2 ld.exe'
16608 shlibpath_var=LIBPATH
16611 osf3* | osf4* | osf5*)
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617 shlibpath_var=LD_LIBRARY_PATH
16618 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16619 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16624 soname_spec='${libname}${release}${shared_ext}$major'
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626 shlibpath_var=LD_LIBRARY_PATH
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634 soname_spec='${libname}${release}${shared_ext}$major'
16635 shlibpath_var=LD_LIBRARY_PATH
16636 shlibpath_overrides_runpath=yes
16637 hardcode_into_libs=yes
16638 # ldd complains unless libraries are executable
16639 postinstall_cmds='chmod +x $lib'
16644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16645 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16646 shlibpath_var=LD_LIBRARY_PATH
16647 shlibpath_overrides_runpath=yes
16648 if test "$with_gnu_ld" = yes; then
16654 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 shlibpath_var=LD_LIBRARY_PATH
16659 case $host_vendor in
16661 shlibpath_overrides_runpath=no
16663 export_dynamic_flag_spec='${wl}-Blargedynsym'
16664 runpath_var=LD_RUN_PATH
16672 shlibpath_overrides_runpath=no
16673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16679 if test -d /usr/nec ;then
16681 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16682 soname_spec='$libname${shared_ext}.$major'
16683 shlibpath_var=LD_LIBRARY_PATH
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690 soname_spec='${libname}${release}${shared_ext}$major'
16691 shlibpath_var=LD_LIBRARY_PATH
16698 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16699 echo "${ECHO_T}$dynamic_linker" >&6
16700 test "$dynamic_linker" = no && can_build_shared=no
16702 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16703 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16704 hardcode_action_F77=
16705 if test -n "$hardcode_libdir_flag_spec_F77" || \
16706 test -n "$runpath_var_F77" || \
16707 test "X$hardcode_automatic_F77" = "Xyes" ; then
16709 # We can hardcode non-existant directories.
16710 if test "$hardcode_direct_F77" != no &&
16711 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16712 # have to relink, otherwise we might link with an installed library
16713 # when we should be linking with a yet-to-be-installed one
16714 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16715 test "$hardcode_minus_L_F77" != no; then
16716 # Linking always hardcodes the temporary library directory.
16717 hardcode_action_F77=relink
16719 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16720 hardcode_action_F77=immediate
16723 # We cannot hardcode anything, or else we can only hardcode existing
16725 hardcode_action_F77=unsupported
16727 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16728 echo "${ECHO_T}$hardcode_action_F77" >&6
16730 if test "$hardcode_action_F77" = relink; then
16731 # Fast installation is not supported
16732 enable_fast_install=no
16733 elif test "$shlibpath_overrides_runpath" = yes ||
16734 test "$enable_shared" = no; then
16735 # Fast installation is not necessary
16736 enable_fast_install=needless
16741 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16742 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16743 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16744 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16745 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16746 echo "$as_me:$LINENO: result: yes" >&5
16747 echo "${ECHO_T}yes" >&6
16749 # FIXME - insert some real tests, host_os isn't really good enough
16752 if test -n "$STRIP" ; then
16753 striplib="$STRIP -x"
16754 echo "$as_me:$LINENO: result: yes" >&5
16755 echo "${ECHO_T}yes" >&6
16757 echo "$as_me:$LINENO: result: no" >&5
16758 echo "${ECHO_T}no" >&6
16762 echo "$as_me:$LINENO: result: no" >&5
16763 echo "${ECHO_T}no" >&6
16770 # The else clause should only fire when bootstrapping the
16771 # libtool distribution, otherwise you forgot to ship ltmain.sh
16772 # with your package, and you will get complaints that there are
16773 # no rules to generate ltmain.sh.
16774 if test -f "$ltmain"; then
16775 # See if we are running on zsh, and set the options which allow our commands through
16776 # without removal of \ escapes.
16777 if test -n "${ZSH_VERSION+set}" ; then
16778 setopt NO_GLOB_SUBST
16780 # Now quote all the things that may contain metacharacters while being
16781 # careful not to overquote the AC_SUBSTed values. We take copies of the
16782 # variables and quote the copies for generation of the libtool script.
16783 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16785 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16786 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16787 deplibs_check_method reload_flag reload_cmds need_locks \
16788 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16789 lt_cv_sys_global_symbol_to_c_name_address \
16790 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16791 old_postinstall_cmds old_postuninstall_cmds \
16795 lt_prog_compiler_wl_F77 \
16796 lt_prog_compiler_pic_F77 \
16797 lt_prog_compiler_static_F77 \
16798 lt_prog_compiler_no_builtin_flag_F77 \
16799 export_dynamic_flag_spec_F77 \
16800 thread_safe_flag_spec_F77 \
16801 whole_archive_flag_spec_F77 \
16802 enable_shared_with_static_runtimes_F77 \
16803 old_archive_cmds_F77 \
16804 old_archive_from_new_cmds_F77 \
16805 predep_objects_F77 \
16806 postdep_objects_F77 \
16809 compiler_lib_search_path_F77 \
16811 archive_expsym_cmds_F77 \
16812 postinstall_cmds_F77 \
16813 postuninstall_cmds_F77 \
16814 old_archive_from_expsyms_cmds_F77 \
16815 allow_undefined_flag_F77 \
16816 no_undefined_flag_F77 \
16817 export_symbols_cmds_F77 \
16818 hardcode_libdir_flag_spec_F77 \
16819 hardcode_libdir_flag_spec_ld_F77 \
16820 hardcode_libdir_separator_F77 \
16821 hardcode_automatic_F77 \
16823 module_expsym_cmds_F77 \
16824 lt_cv_prog_compiler_c_o_F77 \
16825 exclude_expsyms_F77 \
16826 include_expsyms_F77; do
16829 old_archive_cmds_F77 | \
16830 old_archive_from_new_cmds_F77 | \
16831 archive_cmds_F77 | \
16832 archive_expsym_cmds_F77 | \
16833 module_cmds_F77 | \
16834 module_expsym_cmds_F77 | \
16835 old_archive_from_expsyms_cmds_F77 | \
16836 export_symbols_cmds_F77 | \
16837 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16838 postinstall_cmds | postuninstall_cmds | \
16839 old_postinstall_cmds | old_postuninstall_cmds | \
16840 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16841 # Double-quote double-evaled strings.
16842 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16845 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16851 *'\$0 --fallback-echo"')
16852 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16858 cat <<__EOF__ >> "$cfgfile"
16859 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16863 # Shell to use when invoking shell scripts.
16866 # Whether or not to build shared libraries.
16867 build_libtool_libs=$enable_shared
16869 # Whether or not to build static libraries.
16870 build_old_libs=$enable_static
16872 # Whether or not to add -lc for building shared libraries.
16873 build_libtool_need_lc=$archive_cmds_need_lc_F77
16875 # Whether or not to disallow shared libs when runtime libs are static
16876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16878 # Whether or not to optimize for fast installation.
16879 fast_install=$enable_fast_install
16882 host_alias=$host_alias
16885 # An echo program that does not interpret backslashes.
16890 AR_FLAGS=$lt_AR_FLAGS
16895 # A language-specific compiler.
16896 CC=$lt_compiler_F77
16898 # Is the compiler the GNU C compiler?
16904 # The linker used to build libraries.
16907 # Whether we need hard or soft links.
16910 # A BSD-compatible nm program.
16913 # A symbol stripping program
16916 # Used to examine libraries when file_magic_cmd begins "file"
16917 MAGIC_CMD=$MAGIC_CMD
16919 # Used on cygwin: DLL creation program.
16922 # Used on cygwin: object dumper.
16925 # Used on cygwin: assembler.
16928 # The name of the directory that contains temporary libtool files.
16931 # How to create reloadable object files.
16932 reload_flag=$lt_reload_flag
16933 reload_cmds=$lt_reload_cmds
16935 # How to pass a linker flag through the compiler.
16936 wl=$lt_lt_prog_compiler_wl_F77
16938 # Object file suffix (normally "o").
16939 objext="$ac_objext"
16941 # Old archive suffix (normally "a").
16944 # Shared library suffix (normally ".so").
16945 shrext_cmds='$shrext_cmds'
16947 # Executable file suffix (normally "").
16950 # Additional compiler flags for building library objects.
16951 pic_flag=$lt_lt_prog_compiler_pic_F77
16954 # What is the maximum length of a command?
16955 max_cmd_len=$lt_cv_sys_max_cmd_len
16957 # Does compiler simultaneously support -c and -o options?
16958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16960 # Must we lock files when doing compilation ?
16961 need_locks=$lt_need_locks
16963 # Do we need the lib prefix for modules?
16964 need_lib_prefix=$need_lib_prefix
16966 # Do we need a version for libraries?
16967 need_version=$need_version
16969 # Whether dlopen is supported.
16970 dlopen_support=$enable_dlopen
16972 # Whether dlopen of programs is supported.
16973 dlopen_self=$enable_dlopen_self
16975 # Whether dlopen of statically linked programs is supported.
16976 dlopen_self_static=$enable_dlopen_self_static
16978 # Compiler flag to prevent dynamic linking.
16979 link_static_flag=$lt_lt_prog_compiler_static_F77
16981 # Compiler flag to turn off builtin functions.
16982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16984 # Compiler flag to allow reflexive dlopens.
16985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16987 # Compiler flag to generate shared objects directly from archives.
16988 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16990 # Compiler flag to generate thread-safe objects.
16991 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16993 # Library versioning type.
16994 version_type=$version_type
16996 # Format of library name prefix.
16997 libname_spec=$lt_libname_spec
16999 # List of archive names. First name is the real one, the rest are links.
17000 # The last name is the one that the linker finds with -lNAME.
17001 library_names_spec=$lt_library_names_spec
17003 # The coded name of the library, if different from the real name.
17004 soname_spec=$lt_soname_spec
17006 # Commands used to build and install an old-style archive.
17008 old_archive_cmds=$lt_old_archive_cmds_F77
17009 old_postinstall_cmds=$lt_old_postinstall_cmds
17010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17012 # Create an old-style archive from a shared archive.
17013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17015 # Create a temporary old-style archive to link instead of a shared archive.
17016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17018 # Commands used to build and install a shared archive.
17019 archive_cmds=$lt_archive_cmds_F77
17020 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17021 postinstall_cmds=$lt_postinstall_cmds
17022 postuninstall_cmds=$lt_postuninstall_cmds
17024 # Commands used to build a loadable module (assumed same as above if empty)
17025 module_cmds=$lt_module_cmds_F77
17026 module_expsym_cmds=$lt_module_expsym_cmds_F77
17028 # Commands to strip libraries.
17029 old_striplib=$lt_old_striplib
17030 striplib=$lt_striplib
17032 # Dependencies to place before the objects being linked to create a
17034 predep_objects=$lt_predep_objects_F77
17036 # Dependencies to place after the objects being linked to create a
17038 postdep_objects=$lt_postdep_objects_F77
17040 # Dependencies to place before the objects being linked to create a
17042 predeps=$lt_predeps_F77
17044 # Dependencies to place after the objects being linked to create a
17046 postdeps=$lt_postdeps_F77
17048 # The library search path used internally by the compiler when linking
17049 # a shared library.
17050 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17052 # Method to check whether dependent libraries are shared objects.
17053 deplibs_check_method=$lt_deplibs_check_method
17055 # Command to use when deplibs_check_method == file_magic.
17056 file_magic_cmd=$lt_file_magic_cmd
17058 # Flag that allows shared libraries with undefined symbols to be built.
17059 allow_undefined_flag=$lt_allow_undefined_flag_F77
17061 # Flag that forces no undefined symbols.
17062 no_undefined_flag=$lt_no_undefined_flag_F77
17064 # Commands used to finish a libtool library installation in a directory.
17065 finish_cmds=$lt_finish_cmds
17067 # Same as above, but a single script fragment to be evaled but not shown.
17068 finish_eval=$lt_finish_eval
17070 # Take the output of nm and produce a listing of raw symbols and C names.
17071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17073 # Transform the output of nm in a proper C declaration
17074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17076 # Transform the output of nm in a C name address pair
17077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17079 # This is the shared library runtime path variable.
17080 runpath_var=$runpath_var
17082 # This is the shared library path variable.
17083 shlibpath_var=$shlibpath_var
17085 # Is shlibpath searched before the hard-coded library search path?
17086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17088 # How to hardcode a shared library path into an executable.
17089 hardcode_action=$hardcode_action_F77
17091 # Whether we should hardcode library paths into libraries.
17092 hardcode_into_libs=$hardcode_into_libs
17094 # Flag to hardcode \$libdir into a binary during linking.
17095 # This must work even if \$libdir does not exist.
17096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17098 # If ld is used when linking, flag to hardcode \$libdir into
17099 # a binary during linking. This must work even if \$libdir does
17101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17103 # Whether we need a single -rpath flag with a separated argument.
17104 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17107 # resulting binary.
17108 hardcode_direct=$hardcode_direct_F77
17110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17111 # resulting binary.
17112 hardcode_minus_L=$hardcode_minus_L_F77
17114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17115 # the resulting binary.
17116 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17118 # Set to yes if building a shared library automatically hardcodes DIR into the library
17119 # and all subsequent libraries and executables linked against it.
17120 hardcode_automatic=$hardcode_automatic_F77
17122 # Variables whose values should be saved in libtool wrapper scripts and
17123 # restored at relink time.
17124 variables_saved_for_relink="$variables_saved_for_relink"
17126 # Whether libtool must link a program against all its dependency libraries.
17127 link_all_deplibs=$link_all_deplibs_F77
17129 # Compile-time system search path for libraries
17130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17132 # Run-time system search path for libraries
17133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17135 # Fix the shell variable \$srcfile for the compiler.
17136 fix_srcfile_path="$fix_srcfile_path_F77"
17138 # Set to yes if exported symbols are required.
17139 always_export_symbols=$always_export_symbols_F77
17141 # The commands to list exported symbols.
17142 export_symbols_cmds=$lt_export_symbols_cmds_F77
17144 # The commands to extract the exported symbol list from a shared archive.
17145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17147 # Symbols that should not be listed in the preloaded symbols.
17148 exclude_expsyms=$lt_exclude_expsyms_F77
17150 # Symbols that must always be exported.
17151 include_expsyms=$lt_include_expsyms_F77
17153 # ### END LIBTOOL TAG CONFIG: $tagname
17159 # If there is no Makefile yet, we rely on a make rule to execute
17160 # `config.status --recheck' to rerun these tests and create the
17161 # libtool script then.
17162 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17163 if test -f "$ltmain_in"; then
17164 test -f Makefile && make "$ltmain"
17170 ac_cpp='$CPP $CPPFLAGS'
17171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17183 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17185 ac_cpp='$CPP $CPPFLAGS'
17186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17191 # Source file extension for Java test sources.
17194 # Object file extension for compiled Java test sources.
17198 # Code to be used in simple compile tests
17199 lt_simple_compile_test_code="class foo {}\n"
17201 # Code to be used in simple link tests
17202 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17204 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17206 # If no C compiler was specified, use CC.
17209 # Allow CC to be a program name with arguments.
17213 # Allow CC to be a program name with arguments.
17219 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17220 archive_cmds_need_lc_GCJ=no
17223 lt_prog_compiler_no_builtin_flag_GCJ=
17225 if test "$GCC" = yes; then
17226 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17229 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17230 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17231 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 lt_cv_prog_compiler_rtti_exceptions=no
17235 ac_outfile=conftest.$ac_objext
17236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17237 lt_compiler_flag="-fno-rtti -fno-exceptions"
17238 # Insert the option either (1) after the last *FLAGS variable, or
17239 # (2) before a word containing "conftest.", or (3) at the end.
17240 # Note that $ac_compile itself does not contain backslashes and begins
17241 # with a dollar sign (not a hyphen), so the echo should work correctly.
17242 # The option is referenced via a variable to avoid confusing sed.
17243 lt_compile=`echo "$ac_compile" | $SED \
17244 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17246 -e 's:$: $lt_compiler_flag:'`
17247 (eval echo "\"\$as_me:17247: $lt_compile\"" >&5)
17248 (eval "$lt_compile" 2>conftest.err)
17250 cat conftest.err >&5
17251 echo "$as_me:17251: \$? = $ac_status" >&5
17252 if (exit $ac_status) && test -s "$ac_outfile"; then
17253 # The compiler can only warn and ignore the option if not recognized
17254 # So say no if there are warnings
17255 if test ! -s conftest.err; then
17256 lt_cv_prog_compiler_rtti_exceptions=yes
17262 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17266 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17273 lt_prog_compiler_wl_GCJ=
17274 lt_prog_compiler_pic_GCJ=
17275 lt_prog_compiler_static_GCJ=
17277 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17280 if test "$GCC" = yes; then
17281 lt_prog_compiler_wl_GCJ='-Wl,'
17282 lt_prog_compiler_static_GCJ='-static'
17286 # All AIX code is PIC.
17287 if test "$host_cpu" = ia64; then
17288 # AIX 5 now supports IA64 processor
17289 lt_prog_compiler_static_GCJ='-Bstatic'
17294 # FIXME: we need at least 68020 code to build shared libraries, but
17295 # adding the `-m68020' flag to GCC prevents building anything better,
17297 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17300 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17301 # PIC is the default for these OSes.
17304 mingw* | pw32* | os2*)
17305 # This hack is so that the source file can tell whether it is being
17306 # built for inclusion in a dll (and should export symbols for example).
17307 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17310 darwin* | rhapsody*)
17311 # PIC is the default on this platform
17312 # Common symbols not allowed in MH_DYLIB files
17313 lt_prog_compiler_pic_GCJ='-fno-common'
17317 # Just because we use GCC doesn't mean we suddenly get shared libraries
17318 # on systems that don't support them.
17319 lt_prog_compiler_can_build_shared_GCJ=no
17324 if test -d /usr/nec; then
17325 lt_prog_compiler_pic_GCJ=-Kconform_pic
17330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17331 # not for PA HP-UX.
17332 case "$host_cpu" in
17337 lt_prog_compiler_pic_GCJ='-fPIC'
17343 lt_prog_compiler_pic_GCJ='-fPIC'
17347 # PORTME Check for flag to pass linker flags through the system compiler.
17350 lt_prog_compiler_wl_GCJ='-Wl,'
17351 if test "$host_cpu" = ia64; then
17352 # AIX 5 now supports IA64 processor
17353 lt_prog_compiler_static_GCJ='-Bstatic'
17355 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17359 # PIC is the default on this platform
17360 # Common symbols not allowed in MH_DYLIB files
17361 case "$cc_basename" in
17363 lt_prog_compiler_pic_GCJ='-qnocommon'
17364 lt_prog_compiler_wl_GCJ='-Wl,'
17369 mingw* | pw32* | os2*)
17370 # This hack is so that the source file can tell whether it is being
17371 # built for inclusion in a dll (and should export symbols for example).
17372 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17375 hpux9* | hpux10* | hpux11*)
17376 lt_prog_compiler_wl_GCJ='-Wl,'
17377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17378 # not for PA HP-UX.
17379 case "$host_cpu" in
17384 lt_prog_compiler_pic_GCJ='+Z'
17387 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17388 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17391 irix5* | irix6* | nonstopux*)
17392 lt_prog_compiler_wl_GCJ='-Wl,'
17393 # PIC (with -KPIC) is the default.
17394 lt_prog_compiler_static_GCJ='-non_shared'
17398 lt_prog_compiler_pic_GCJ='-KPIC'
17399 lt_prog_compiler_static_GCJ='-Bstatic'
17405 lt_prog_compiler_wl_GCJ='-Wl,'
17406 lt_prog_compiler_pic_GCJ='-KPIC'
17407 lt_prog_compiler_static_GCJ='-static'
17410 lt_prog_compiler_wl_GCJ='-Wl,'
17411 # All Alpha code is PIC.
17412 lt_prog_compiler_static_GCJ='-non_shared'
17417 osf3* | osf4* | osf5*)
17418 lt_prog_compiler_wl_GCJ='-Wl,'
17419 # All OSF/1 code is PIC.
17420 lt_prog_compiler_static_GCJ='-non_shared'
17424 lt_prog_compiler_pic_GCJ='-Kpic'
17425 lt_prog_compiler_static_GCJ='-dn'
17429 lt_prog_compiler_wl_GCJ='-Wl,'
17430 lt_prog_compiler_pic_GCJ='-KPIC'
17431 lt_prog_compiler_static_GCJ='-Bstatic'
17435 lt_prog_compiler_wl_GCJ='-Qoption ld '
17436 lt_prog_compiler_pic_GCJ='-PIC'
17437 lt_prog_compiler_static_GCJ='-Bstatic'
17440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17441 lt_prog_compiler_wl_GCJ='-Wl,'
17442 lt_prog_compiler_pic_GCJ='-KPIC'
17443 lt_prog_compiler_static_GCJ='-Bstatic'
17447 if test -d /usr/nec ;then
17448 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17449 lt_prog_compiler_static_GCJ='-Bstatic'
17454 lt_prog_compiler_pic_GCJ='-pic'
17455 lt_prog_compiler_static_GCJ='-Bstatic'
17459 lt_prog_compiler_can_build_shared_GCJ=no
17464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17465 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17468 # Check to make sure the PIC flag actually works.
17470 if test -n "$lt_prog_compiler_pic_GCJ"; then
17472 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17474 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 lt_prog_compiler_pic_works_GCJ=no
17478 ac_outfile=conftest.$ac_objext
17479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17480 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17481 # Insert the option either (1) after the last *FLAGS variable, or
17482 # (2) before a word containing "conftest.", or (3) at the end.
17483 # Note that $ac_compile itself does not contain backslashes and begins
17484 # with a dollar sign (not a hyphen), so the echo should work correctly.
17485 # The option is referenced via a variable to avoid confusing sed.
17486 lt_compile=`echo "$ac_compile" | $SED \
17487 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17489 -e 's:$: $lt_compiler_flag:'`
17490 (eval echo "\"\$as_me:17490: $lt_compile\"" >&5)
17491 (eval "$lt_compile" 2>conftest.err)
17493 cat conftest.err >&5
17494 echo "$as_me:17494: \$? = $ac_status" >&5
17495 if (exit $ac_status) && test -s "$ac_outfile"; then
17496 # The compiler can only warn and ignore the option if not recognized
17497 # So say no if there are warnings
17498 if test ! -s conftest.err; then
17499 lt_prog_compiler_pic_works_GCJ=yes
17505 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17506 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17508 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17509 case $lt_prog_compiler_pic_GCJ in
17511 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17514 lt_prog_compiler_pic_GCJ=
17515 lt_prog_compiler_can_build_shared_GCJ=no
17520 # For platforms which do not support PIC, -DPIC is meaningless:
17522 lt_prog_compiler_pic_GCJ=
17525 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17529 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17530 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17531 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 lt_cv_prog_compiler_c_o_GCJ=no
17535 $rm -r conftest 2>/dev/null
17539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17541 lt_compiler_flag="-o out/conftest2.$ac_objext"
17542 # Insert the option either (1) after the last *FLAGS variable, or
17543 # (2) before a word containing "conftest.", or (3) at the end.
17544 # Note that $ac_compile itself does not contain backslashes and begins
17545 # with a dollar sign (not a hyphen), so the echo should work correctly.
17546 lt_compile=`echo "$ac_compile" | $SED \
17547 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17549 -e 's:$: $lt_compiler_flag:'`
17550 (eval echo "\"\$as_me:17550: $lt_compile\"" >&5)
17551 (eval "$lt_compile" 2>out/conftest.err)
17553 cat out/conftest.err >&5
17554 echo "$as_me:17554: \$? = $ac_status" >&5
17555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17557 # The compiler can only warn and ignore the option if not recognized
17558 # So say no if there are warnings
17559 if test ! -s out/conftest.err; then
17560 lt_cv_prog_compiler_c_o_GCJ=yes
17565 # SGI C++ compiler will create directory out/ii_files/ for
17566 # template instantiation
17567 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17568 $rm out/* && rmdir out
17574 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17578 hard_links="nottested"
17579 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17580 # do not overwrite the value of need_locks provided by the user
17581 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17582 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17587 ln conftest.a conftest.b 2>&5 || hard_links=no
17588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17589 echo "$as_me:$LINENO: result: $hard_links" >&5
17590 echo "${ECHO_T}$hard_links" >&6
17591 if test "$hard_links" = no; then
17592 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17593 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17600 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17601 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17604 allow_undefined_flag_GCJ=
17605 enable_shared_with_static_runtimes_GCJ=no
17607 archive_expsym_cmds_GCJ=
17608 old_archive_From_new_cmds_GCJ=
17609 old_archive_from_expsyms_cmds_GCJ=
17610 export_dynamic_flag_spec_GCJ=
17611 whole_archive_flag_spec_GCJ=
17612 thread_safe_flag_spec_GCJ=
17613 hardcode_libdir_flag_spec_GCJ=
17614 hardcode_libdir_flag_spec_ld_GCJ=
17615 hardcode_libdir_separator_GCJ=
17616 hardcode_direct_GCJ=no
17617 hardcode_minus_L_GCJ=no
17618 hardcode_shlibpath_var_GCJ=unsupported
17619 link_all_deplibs_GCJ=unknown
17620 hardcode_automatic_GCJ=no
17622 module_expsym_cmds_GCJ=
17623 always_export_symbols_GCJ=no
17624 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17625 # include_expsyms should be a list of space-separated symbols to be *always*
17626 # included in the symbol list
17627 include_expsyms_GCJ=
17628 # exclude_expsyms can be an extended regexp of symbols to exclude
17629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17630 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17631 # as well as any symbol that contains `d'.
17632 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17634 # platforms (ab)use it in PIC code, but their linkers get confused if
17635 # the symbol is explicitly referenced. Since portable code cannot
17636 # rely on this symbol name, it's probably fine to never include it in
17637 # preloaded symbol tables.
17638 extract_expsyms_cmds=
17641 cygwin* | mingw* | pw32*)
17642 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17643 # When not using gcc, we currently assume that we are using
17644 # Microsoft Visual C++.
17645 if test "$GCC" != yes; then
17655 if test "$with_gnu_ld" = yes; then
17656 # If archive_cmds runs LD, not CC, wlarc should be empty
17659 # See if GNU ld supports shared libraries.
17661 aix3* | aix4* | aix5*)
17662 # On AIX/PPC, the GNU linker is very broken
17663 if test "$host_cpu" != ia64; then
17667 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17668 *** to be unable to reliably create shared libraries on AIX.
17669 *** Therefore, libtool is disabling shared libraries support. If you
17670 *** really care for shared libraries, you may want to modify your PATH
17671 *** so that a non-GNU linker is found, and then restart.
17678 archive_cmds_GCJ='$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)'
17679 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17680 hardcode_minus_L_GCJ=yes
17682 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17683 # that the semantics of dynamic libraries on AmigaOS, at least up
17684 # to version 4, is to share data among multiple programs linked
17685 # with the same dynamic library. Since this doesn't match the
17686 # behavior of shared libraries on other platforms, we can't use
17692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17693 allow_undefined_flag_GCJ=unsupported
17694 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17695 # support --undefined. This deserves some investigation. FIXME
17696 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17702 cygwin* | mingw* | pw32*)
17703 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17704 # as there is no search path for DLLs.
17705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17706 allow_undefined_flag_GCJ=unsupported
17707 always_export_symbols_GCJ=no
17708 enable_shared_with_static_runtimes_GCJ=yes
17709 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17711 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17712 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17713 # If the export-symbols file already is a .def file (1st line
17714 # is EXPORTS), use it as is; otherwise, prepend...
17715 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17716 cp $export_symbols $output_objdir/$soname.def;
17718 echo EXPORTS > $output_objdir/$soname.def;
17719 cat $export_symbols >> $output_objdir/$soname.def;
17721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17729 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17732 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17738 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17743 *** create shared libraries on Solaris systems. Therefore, libtool
17744 *** is disabling shared libraries support. We urge you to upgrade GNU
17745 *** binutils to release 2.9.1 or newer. Another option is to modify
17746 *** your PATH or compiler configuration so that the native linker is
17747 *** used, and then restart.
17750 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17751 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17752 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17759 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17761 hardcode_direct_GCJ=yes
17762 hardcode_shlibpath_var_GCJ=no
17766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17767 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17768 archive_cmds_GCJ="$tmp_archive_cmds"
17769 supports_anon_versioning=no
17770 case `$LD -v 2>/dev/null` in
17771 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17774 *\ 2.11.*) ;; # other 2.11 versions
17775 *) supports_anon_versioning=yes ;;
17777 if test $supports_anon_versioning = yes; then
17778 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17780 $echo "local: *; };" >> $output_objdir/$libname.ver~
17781 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17783 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17792 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17793 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17800 if test "$ld_shlibs_GCJ" = yes; then
17801 runpath_var=LD_RUN_PATH
17802 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17803 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17804 # ancient GNU ld didn't support --whole-archive et. al.
17805 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17806 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17808 whole_archive_flag_spec_GCJ=
17812 # PORTME fill in a description of your system's linker (not GNU ld)
17815 allow_undefined_flag_GCJ=unsupported
17816 always_export_symbols_GCJ=yes
17817 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17818 # Note: this linker hardcodes the directories in LIBPATH if there
17819 # are no directories specified by -L.
17820 hardcode_minus_L_GCJ=yes
17821 if test "$GCC" = yes && test -z "$link_static_flag"; then
17822 # Neither direct hardcoding nor static linking is supported with a
17824 hardcode_direct_GCJ=unsupported
17829 if test "$host_cpu" = ia64; then
17830 # On IA64, the linker does run time linking by default, so we don't
17831 # have to do anything special.
17832 aix_use_runtimelinking=no
17833 exp_sym_flag='-Bexport'
17836 # If we're using GNU nm, then we don't want the "-C" option.
17837 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17838 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17839 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17841 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17843 aix_use_runtimelinking=no
17845 # Test if we are trying to use run time linking or normal
17846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17847 # need to do runtime linking.
17848 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17849 for ld_flag in $LDFLAGS; do
17850 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17851 aix_use_runtimelinking=yes
17857 exp_sym_flag='-bexport'
17858 no_entry_flag='-bnoentry'
17861 # When large executables or shared objects are built, AIX ld can
17862 # have problems creating the table of contents. If linking a library
17863 # or program results in "error TOC overflow" add -mminimal-toc to
17864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17867 archive_cmds_GCJ=''
17868 hardcode_direct_GCJ=yes
17869 hardcode_libdir_separator_GCJ=':'
17870 link_all_deplibs_GCJ=yes
17872 if test "$GCC" = yes; then
17873 case $host_os in aix4.012|aix4.012.*)
17874 # We only want to do this on AIX 4.2 and lower, the check
17875 # below for broken collect2 doesn't work under 4.3+
17876 collect2name=`${CC} -print-prog-name=collect2`
17877 if test -f "$collect2name" && \
17878 strings "$collect2name" | grep resolve_lib_name >/dev/null
17880 # We have reworked collect2
17881 hardcode_direct_GCJ=yes
17883 # We have old collect2
17884 hardcode_direct_GCJ=unsupported
17885 # It fails to find uninstalled libraries when the uninstalled
17886 # path is not listed in the libpath. Setting hardcode_minus_L
17887 # to unsupported forces relinking
17888 hardcode_minus_L_GCJ=yes
17889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17890 hardcode_libdir_separator_GCJ=
17893 shared_flag='-shared'
17896 if test "$host_cpu" = ia64; then
17897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17898 # chokes on -Wl,-G. The following line is correct:
17901 if test "$aix_use_runtimelinking" = yes; then
17902 shared_flag='${wl}-G'
17904 shared_flag='${wl}-bM:SRE'
17909 # It seems that -bexpall does not export symbols beginning with
17910 # underscore (_), so it is better to generate a list of symbols to export.
17911 always_export_symbols_GCJ=yes
17912 if test "$aix_use_runtimelinking" = yes; then
17913 # Warning - without using the other runtime loading flags (-brtl),
17914 # -berok will link without error, but may produce a broken library.
17915 allow_undefined_flag_GCJ='-berok'
17916 # Determine the default libpath from the value encoded in an empty executable.
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17934 (eval $ac_link) 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag"
17942 || test ! -s conftest.err'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17955 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17957 # Check for a 64-bit object if we didn't find anything.
17958 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17965 rm -f conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17969 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17970 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17972 if test "$host_cpu" = ia64; then
17973 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17974 allow_undefined_flag_GCJ="-z nodefs"
17975 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17977 # Determine the default libpath from the value encoded in an empty executable.
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995 (eval $ac_link) 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest$ac_exeext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18018 # Check for a 64-bit object if we didn't find anything.
18019 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18026 rm -f conftest.err conftest.$ac_objext \
18027 conftest$ac_exeext conftest.$ac_ext
18028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18030 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18031 # Warning - without using the other run time loading flags,
18032 # -berok will link without error, but may produce a broken library.
18033 no_undefined_flag_GCJ=' ${wl}-bernotok'
18034 allow_undefined_flag_GCJ=' ${wl}-berok'
18035 # -bexpall does not export symbols beginning with underscore (_)
18036 always_export_symbols_GCJ=yes
18037 # Exported symbols can be pulled into shared objects from archives
18038 whole_archive_flag_spec_GCJ=' '
18039 archive_cmds_need_lc_GCJ=yes
18040 # This is similar to how AIX traditionally builds it's shared libraries.
18041 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18047 archive_cmds_GCJ='$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)'
18048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18049 hardcode_minus_L_GCJ=yes
18050 # see comment about different semantics on the GNU ld section
18055 export_dynamic_flag_spec_GCJ=-rdynamic
18058 cygwin* | mingw* | pw32*)
18059 # When not using gcc, we currently assume that we are using
18060 # Microsoft Visual C++.
18061 # hardcode_libdir_flag_spec is actually meaningless, as there is
18062 # no search path for DLLs.
18063 hardcode_libdir_flag_spec_GCJ=' '
18064 allow_undefined_flag_GCJ=unsupported
18065 # Tell ltmain to make .lib files, not .a files.
18067 # Tell ltmain to make .dll files, not .so files.
18069 # FIXME: Setting linknames here is a bad hack.
18070 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18071 # The linker will automatically build a .lib file if we build a DLL.
18072 old_archive_From_new_cmds_GCJ='true'
18073 # FIXME: Should let the user specify the lib program.
18074 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18075 fix_srcfile_path='`cygpath -w "$srcfile"`'
18076 enable_shared_with_static_runtimes_GCJ=yes
18079 darwin* | rhapsody*)
18081 rhapsody* | darwin1.[012])
18082 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18085 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18086 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18088 case ${MACOSX_DEPLOYMENT_TARGET} in
18090 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18093 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18099 archive_cmds_need_lc_GCJ=no
18100 hardcode_direct_GCJ=no
18101 hardcode_automatic_GCJ=yes
18102 hardcode_shlibpath_var_GCJ=unsupported
18103 whole_archive_flag_spec_GCJ=''
18104 link_all_deplibs_GCJ=yes
18105 if test "$GCC" = yes ; then
18106 output_verbose_link_cmd='echo'
18107 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18108 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18110 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18111 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18113 case "$cc_basename" in
18115 output_verbose_link_cmd='echo'
18116 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18117 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18119 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18120 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18132 hardcode_shlibpath_var_GCJ=no
18139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18140 # support. Future versions do this automatically, but an explicit c++rt0.o
18141 # does not break anything, and helps significantly (at the cost of a little
18144 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18145 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18146 hardcode_direct_GCJ=yes
18147 hardcode_shlibpath_var_GCJ=no
18150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18153 hardcode_direct_GCJ=yes
18154 hardcode_minus_L_GCJ=yes
18155 hardcode_shlibpath_var_GCJ=no
18158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18159 freebsd* | kfreebsd*-gnu)
18160 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18161 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18162 hardcode_direct_GCJ=yes
18163 hardcode_shlibpath_var_GCJ=no
18167 if test "$GCC" = yes; then
18168 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18170 archive_cmds_GCJ='$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'
18172 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18173 hardcode_libdir_separator_GCJ=:
18174 hardcode_direct_GCJ=yes
18176 # hardcode_minus_L: Not really in the search PATH,
18177 # but as the default location of the library.
18178 hardcode_minus_L_GCJ=yes
18179 export_dynamic_flag_spec_GCJ='${wl}-E'
18183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18184 case "$host_cpu" in
18186 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18189 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18193 case "$host_cpu" in
18195 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18198 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18202 if test "$with_gnu_ld" = no; then
18203 case "$host_cpu" in
18205 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18206 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18207 hardcode_libdir_separator_GCJ=:
18208 hardcode_direct_GCJ=no
18209 hardcode_shlibpath_var_GCJ=no
18212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18213 hardcode_direct_GCJ=no
18214 hardcode_shlibpath_var_GCJ=no
18216 # hardcode_minus_L: Not really in the search PATH,
18217 # but as the default location of the library.
18218 hardcode_minus_L_GCJ=yes
18221 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18222 hardcode_libdir_separator_GCJ=:
18223 hardcode_direct_GCJ=yes
18224 export_dynamic_flag_spec_GCJ='${wl}-E'
18226 # hardcode_minus_L: Not really in the search PATH,
18227 # but as the default location of the library.
18228 hardcode_minus_L_GCJ=yes
18234 irix5* | irix6* | nonstopux*)
18235 if test "$GCC" = yes; then
18236 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18238 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18239 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18241 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18242 hardcode_libdir_separator_GCJ=:
18243 link_all_deplibs_GCJ=yes
18247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18248 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18250 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18252 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18253 hardcode_direct_GCJ=yes
18254 hardcode_shlibpath_var_GCJ=no
18258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259 hardcode_direct_GCJ=yes
18260 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18261 hardcode_libdir_separator_GCJ=:
18262 hardcode_shlibpath_var_GCJ=no
18266 hardcode_direct_GCJ=yes
18267 hardcode_shlibpath_var_GCJ=no
18268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18269 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18270 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18271 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18272 export_dynamic_flag_spec_GCJ='${wl}-E'
18275 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18276 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18280 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18281 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18289 hardcode_minus_L_GCJ=yes
18290 allow_undefined_flag_GCJ=unsupported
18291 archive_cmds_GCJ='$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'
18292 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18296 if test "$GCC" = yes; then
18297 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18298 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18300 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18301 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18304 hardcode_libdir_separator_GCJ=:
18307 osf4* | osf5*) # as osf3* with the addition of -msym flag
18308 if test "$GCC" = yes; then
18309 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18310 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18311 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18313 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18314 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18315 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18316 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18318 # Both c and cxx compiler support -rpath directly
18319 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18321 hardcode_libdir_separator_GCJ=:
18325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326 hardcode_shlibpath_var_GCJ=no
18327 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18328 runpath_var=LD_RUN_PATH
18329 hardcode_runpath_var=yes
18333 no_undefined_flag_GCJ=' -z text'
18334 if test "$GCC" = yes; then
18335 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18336 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18337 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18339 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18343 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18344 hardcode_shlibpath_var_GCJ=no
18346 solaris2.[0-5] | solaris2.[0-5].*) ;;
18347 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18348 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18350 link_all_deplibs_GCJ=yes
18354 if test "x$host_vendor" = xsequent; then
18355 # Use $CC to link under sequent, because it throws in some extra .o
18356 # files that make .init and .fini sections work.
18357 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18359 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18362 hardcode_direct_GCJ=yes
18363 hardcode_minus_L_GCJ=yes
18364 hardcode_shlibpath_var_GCJ=no
18368 case $host_vendor in
18370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18371 hardcode_direct_GCJ=yes # is this really true???
18374 ## LD is ld it makes a PLAMLIB
18375 ## CC just makes a GrossModule.
18376 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18377 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18378 hardcode_direct_GCJ=no
18381 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18385 runpath_var='LD_RUN_PATH'
18386 hardcode_shlibpath_var_GCJ=no
18390 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391 hardcode_shlibpath_var_GCJ=no
18392 export_dynamic_flag_spec_GCJ='-Bexport'
18396 if test -d /usr/nec; then
18397 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18398 hardcode_shlibpath_var_GCJ=no
18399 runpath_var=LD_RUN_PATH
18400 hardcode_runpath_var=yes
18406 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18407 hardcode_direct_GCJ=yes
18408 hardcode_minus_L_GCJ=no
18409 hardcode_shlibpath_var_GCJ=no
18410 hardcode_runpath_var=yes
18411 runpath_var=LD_RUN_PATH
18414 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18415 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18416 if test "$GCC" = yes; then
18417 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18419 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18421 runpath_var='LD_RUN_PATH'
18422 hardcode_shlibpath_var_GCJ=no
18426 no_undefined_flag_GCJ=' -z text'
18427 # $CC -shared without GNU ld will not create a library from C++
18428 # object files and a static libstdc++, better avoid it by now
18429 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18430 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18431 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18432 hardcode_libdir_flag_spec_GCJ=
18433 hardcode_shlibpath_var_GCJ=no
18434 runpath_var='LD_RUN_PATH'
18438 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18440 hardcode_shlibpath_var_GCJ=no
18449 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18450 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18451 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18453 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18454 if test "$GCC" = yes; then
18455 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18459 # Do we need to explicitly link libc?
18461 case "x$archive_cmds_need_lc_GCJ" in
18463 # Assume -lc should be added
18464 archive_cmds_need_lc_GCJ=yes
18466 if test "$enable_shared" = yes && test "$GCC" = yes; then
18467 case $archive_cmds_GCJ in
18469 # FIXME: we may have to deal with multi-command sequences.
18472 # Test whether the compiler implicitly links with -lc since on some
18473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18474 # to ld, don't add -lc before -lgcc.
18475 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18476 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481 (eval $ac_compile) 2>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } 2>conftest.err; then
18487 libobjs=conftest.$ac_objext
18489 wl=$lt_prog_compiler_wl_GCJ
18495 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18496 allow_undefined_flag_GCJ=
18497 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18498 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }
18503 archive_cmds_need_lc_GCJ=no
18505 archive_cmds_need_lc_GCJ=yes
18507 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18509 cat conftest.err 1>&5
18512 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18513 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18520 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18521 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18522 library_names_spec=
18523 libname_spec='lib$name'
18527 postuninstall_cmds=
18531 shlibpath_overrides_runpath=unknown
18533 dynamic_linker="$host_os ld.so"
18534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18535 if test "$GCC" = yes; then
18536 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18537 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18538 # if the path contains ";" then we assume it to be the separator
18539 # otherwise default to the standard path separator (i.e. ":") - it is
18540 # assumed that no part of a normal pathname contains ";" but that should
18541 # okay in the real world where ";" in dirpaths is itself problematic.
18542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18549 need_lib_prefix=unknown
18550 hardcode_into_libs=no
18552 # when you set need_version to no, make sure it does not cause -set_version
18553 # flags to be left without arguments
18554 need_version=unknown
18559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18560 shlibpath_var=LIBPATH
18562 # AIX 3 has no versioning support, so we append a major version to the name.
18563 soname_spec='${libname}${release}${shared_ext}$major'
18570 hardcode_into_libs=yes
18571 if test "$host_cpu" = ia64; then
18572 # AIX 5 supports IA64
18573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18574 shlibpath_var=LD_LIBRARY_PATH
18576 # With GCC up to 2.95.x, collect2 would create an import file
18577 # for dependence libraries. The import file would start with
18578 # the line `#! .'. This would cause the generated library to
18579 # depend on `.', always an invalid library. This was fixed in
18580 # development snapshots of GCC prior to 3.0.
18582 aix4 | aix4.[01] | aix4.[01].*)
18583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18585 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18588 can_build_shared=no
18592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18593 # soname into executable. Probably we can add versioning support to
18594 # collect2, so additional links can be useful in future.
18595 if test "$aix_use_runtimelinking" = yes; then
18596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18597 # instead of lib<name>.a to let people know that these are not
18598 # typical AIX shared libraries.
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18601 # We preserve .a as extension for shared libraries through AIX4.2
18602 # and later when we are not doing run time linking.
18603 library_names_spec='${libname}${release}.a $libname.a'
18604 soname_spec='${libname}${release}${shared_ext}$major'
18606 shlibpath_var=LIBPATH
18611 library_names_spec='$libname.ixlibrary $libname.a'
18612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18613 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18617 library_names_spec='${libname}${shared_ext}'
18618 dynamic_linker="$host_os ld.so"
18619 shlibpath_var=LIBRARY_PATH
18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18626 soname_spec='${libname}${release}${shared_ext}$major'
18627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18631 # the default ld.so.conf also contains /usr/contrib/lib and
18632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18633 # libtool to hard-code these into programs
18636 cygwin* | mingw* | pw32*)
18637 version_type=windows
18642 case $GCC,$host_os in
18643 yes,cygwin* | yes,mingw* | yes,pw32*)
18644 library_names_spec='$libname.dll.a'
18645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18646 postinstall_cmds='base_file=`basename \${file}`~
18647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18648 dldir=$destdir/`dirname \$dlpath`~
18649 test -d \$dldir || mkdir -p \$dldir~
18650 $install_prog $dir/$dlname \$dldir/$dlname'
18651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18652 dlpath=$dir/\$dldll~
18654 shlibpath_overrides_runpath=yes
18658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18663 # MinGW DLLs use traditional 'lib' prefix
18664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18667 # It is most probably a Windows format PATH printed by
18668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18669 # path with ; separators, and with drive letters. We can handle the
18670 # drive letters (cygwin fileutils understands them), so leave them,
18671 # especially as we might pass files found there to a mingw objdump,
18672 # which wouldn't understand a cygwinified path. Ahh.
18673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18679 # pw32 DLLs use 'pw' prefix rather than 'lib'
18680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18689 dynamic_linker='Win32 ld.exe'
18690 # FIXME: first we should search . and the directory the executable is in
18694 darwin* | rhapsody*)
18695 dynamic_linker="$host_os dyld"
18696 version_type=darwin
18699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18700 soname_spec='${libname}${release}${major}$shared_ext'
18701 shlibpath_overrides_runpath=yes
18702 shlibpath_var=DYLD_LIBRARY_PATH
18703 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18705 if test "$GCC" = yes; then
18706 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18718 soname_spec='${libname}${release}${shared_ext}$major'
18719 shlibpath_var=LD_LIBRARY_PATH
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18731 soname_spec='${libname}${release}${shared_ext}$major'
18732 shlibpath_var=LD_LIBRARY_PATH
18733 shlibpath_overrides_runpath=no
18734 hardcode_into_libs=yes
18735 dynamic_linker='GNU ld.so'
18739 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18740 version_type=freebsd-$objformat
18741 case $version_type in
18743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18752 shlibpath_var=LD_LIBRARY_PATH
18755 shlibpath_overrides_runpath=yes
18757 freebsd3.01* | freebsdelf3.01*)
18758 shlibpath_overrides_runpath=yes
18759 hardcode_into_libs=yes
18762 shlibpath_overrides_runpath=no
18763 hardcode_into_libs=yes
18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18773 soname_spec='${libname}${release}${shared_ext}$major'
18774 shlibpath_var=LD_LIBRARY_PATH
18775 hardcode_into_libs=yes
18778 hpux9* | hpux10* | hpux11*)
18779 # Give a soname corresponding to the major version so that dld.sl refuses to
18780 # link against other versions.
18784 case "$host_cpu" in
18787 hardcode_into_libs=yes
18788 dynamic_linker="$host_os dld.so"
18789 shlibpath_var=LD_LIBRARY_PATH
18790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792 soname_spec='${libname}${release}${shared_ext}$major'
18793 if test "X$HPUX_IA64_MODE" = X32; then
18794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18802 hardcode_into_libs=yes
18803 dynamic_linker="$host_os dld.sl"
18804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807 soname_spec='${libname}${release}${shared_ext}$major'
18808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18813 dynamic_linker="$host_os dld.sl"
18814 shlibpath_var=SHLIB_PATH
18815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817 soname_spec='${libname}${release}${shared_ext}$major'
18820 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18821 postinstall_cmds='chmod 555 $lib'
18824 irix5* | irix6* | nonstopux*)
18826 nonstopux*) version_type=nonstopux ;;
18828 if test "$lt_cv_prog_gnu_ld" = yes; then
18836 soname_spec='${libname}${release}${shared_ext}$major'
18837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18839 irix5* | nonstopux*)
18840 libsuff= shlibsuff=
18843 case $LD in # libtool.m4 will add one of these switches to LD
18844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18845 libsuff= shlibsuff= libmagic=32-bit;;
18846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18847 libsuff=32 shlibsuff=N32 libmagic=N32;;
18848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18849 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18850 *) libsuff= shlibsuff= libmagic=never-match;;
18854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18855 shlibpath_overrides_runpath=no
18856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18858 hardcode_into_libs=yes
18861 # No shared lib support for Linux oldld, aout, or coff.
18862 linux*oldld* | linux*aout* | linux*coff*)
18866 # This must be Linux ELF.
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872 soname_spec='${libname}${release}${shared_ext}$major'
18873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 shlibpath_overrides_runpath=no
18876 # This implies no fast_install, which is unacceptable.
18877 # Some rework will be needed to allow for fast_install
18878 # before this can be enabled.
18879 hardcode_into_libs=yes
18881 # Append ld.so.conf contents to the search path
18882 if test -f /etc/ld.so.conf; then
18883 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18884 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18887 # We used to test for /lib/ld.so.1 and disable shared libraries on
18888 # powerpc, because MkLinux only supported shared libraries with the
18889 # GNU dynamic linker. Since this was broken with cross compilers,
18890 # most powerpc-linux boxes support dynamic linking these days and
18891 # people can always --disable-shared, the test was removed, and we
18892 # assume the GNU/Linux dynamic linker is in use.
18893 dynamic_linker='GNU/Linux ld.so'
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18901 soname_spec='${libname}${release}${shared_ext}$major'
18902 shlibpath_var=LD_LIBRARY_PATH
18903 shlibpath_overrides_runpath=no
18904 hardcode_into_libs=yes
18905 dynamic_linker='GNU ld.so'
18912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18915 dynamic_linker='NetBSD (a.out) ld.so'
18917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18918 soname_spec='${libname}${release}${shared_ext}$major'
18919 dynamic_linker='NetBSD ld.elf_so'
18921 shlibpath_var=LD_LIBRARY_PATH
18922 shlibpath_overrides_runpath=yes
18923 hardcode_into_libs=yes
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 shlibpath_var=LD_LIBRARY_PATH
18930 shlibpath_overrides_runpath=yes
18937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938 soname_spec='${libname}${release}${shared_ext}$major'
18939 shlibpath_var=LD_LIBRARY_PATH
18940 shlibpath_overrides_runpath=yes
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18949 shlibpath_var=LD_LIBRARY_PATH
18950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18952 openbsd2.[89] | openbsd2.[89].*)
18953 shlibpath_overrides_runpath=no
18956 shlibpath_overrides_runpath=yes
18960 shlibpath_overrides_runpath=yes
18965 libname_spec='$name'
18968 library_names_spec='$libname${shared_ext} $libname.a'
18969 dynamic_linker='OS/2 ld.exe'
18970 shlibpath_var=LIBPATH
18973 osf3* | osf4* | osf5*)
18977 soname_spec='${libname}${release}${shared_ext}$major'
18978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18979 shlibpath_var=LD_LIBRARY_PATH
18980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18986 soname_spec='${libname}${release}${shared_ext}$major'
18987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988 shlibpath_var=LD_LIBRARY_PATH
18995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18996 soname_spec='${libname}${release}${shared_ext}$major'
18997 shlibpath_var=LD_LIBRARY_PATH
18998 shlibpath_overrides_runpath=yes
18999 hardcode_into_libs=yes
19000 # ldd complains unless libraries are executable
19001 postinstall_cmds='chmod +x $lib'
19006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19008 shlibpath_var=LD_LIBRARY_PATH
19009 shlibpath_overrides_runpath=yes
19010 if test "$with_gnu_ld" = yes; then
19016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19019 soname_spec='${libname}${release}${shared_ext}$major'
19020 shlibpath_var=LD_LIBRARY_PATH
19021 case $host_vendor in
19023 shlibpath_overrides_runpath=no
19025 export_dynamic_flag_spec='${wl}-Blargedynsym'
19026 runpath_var=LD_RUN_PATH
19034 shlibpath_overrides_runpath=no
19035 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19041 if test -d /usr/nec ;then
19043 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19044 soname_spec='$libname${shared_ext}.$major'
19045 shlibpath_var=LD_LIBRARY_PATH
19051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19052 soname_spec='${libname}${release}${shared_ext}$major'
19053 shlibpath_var=LD_LIBRARY_PATH
19060 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19061 echo "${ECHO_T}$dynamic_linker" >&6
19062 test "$dynamic_linker" = no && can_build_shared=no
19064 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19065 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19066 hardcode_action_GCJ=
19067 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19068 test -n "$runpath_var_GCJ" || \
19069 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19071 # We can hardcode non-existant directories.
19072 if test "$hardcode_direct_GCJ" != no &&
19073 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19074 # have to relink, otherwise we might link with an installed library
19075 # when we should be linking with a yet-to-be-installed one
19076 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19077 test "$hardcode_minus_L_GCJ" != no; then
19078 # Linking always hardcodes the temporary library directory.
19079 hardcode_action_GCJ=relink
19081 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19082 hardcode_action_GCJ=immediate
19085 # We cannot hardcode anything, or else we can only hardcode existing
19087 hardcode_action_GCJ=unsupported
19089 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19090 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19092 if test "$hardcode_action_GCJ" = relink; then
19093 # Fast installation is not supported
19094 enable_fast_install=no
19095 elif test "$shlibpath_overrides_runpath" = yes ||
19096 test "$enable_shared" = no; then
19097 # Fast installation is not necessary
19098 enable_fast_install=needless
19103 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19104 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19105 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19106 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19107 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19108 echo "$as_me:$LINENO: result: yes" >&5
19109 echo "${ECHO_T}yes" >&6
19111 # FIXME - insert some real tests, host_os isn't really good enough
19114 if test -n "$STRIP" ; then
19115 striplib="$STRIP -x"
19116 echo "$as_me:$LINENO: result: yes" >&5
19117 echo "${ECHO_T}yes" >&6
19119 echo "$as_me:$LINENO: result: no" >&5
19120 echo "${ECHO_T}no" >&6
19124 echo "$as_me:$LINENO: result: no" >&5
19125 echo "${ECHO_T}no" >&6
19130 if test "x$enable_dlopen" != xyes; then
19131 enable_dlopen=unknown
19132 enable_dlopen_self=unknown
19133 enable_dlopen_self_static=unknown
19140 lt_cv_dlopen="load_add_on"
19142 lt_cv_dlopen_self=yes
19146 lt_cv_dlopen="LoadLibrary"
19151 lt_cv_dlopen="dlopen"
19156 # if libdl is installed we need to link against it
19157 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19158 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19159 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 ac_check_lib_save_LIBS=$LIBS
19164 cat >conftest.$ac_ext <<_ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19171 /* Override any gcc2 internal prototype to avoid an error. */
19175 /* We use char because int might match the return type of a gcc2
19176 builtin and then its argument prototype would still apply. */
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188 (eval $ac_link) 2>conftest.er1
19190 grep -v '^ *+' conftest.er1 >conftest.err
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } &&
19195 { ac_try='test -z "$ac_c_werror_flag"
19196 || test ! -s conftest.err'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest$ac_exeext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_lib_dl_dlopen=yes
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_cv_lib_dl_dlopen=no
19215 rm -f conftest.err conftest.$ac_objext \
19216 conftest$ac_exeext conftest.$ac_ext
19217 LIBS=$ac_check_lib_save_LIBS
19219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19221 if test $ac_cv_lib_dl_dlopen = yes; then
19222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19225 lt_cv_dlopen="dyld"
19227 lt_cv_dlopen_self=yes
19234 echo "$as_me:$LINENO: checking for shl_load" >&5
19235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19236 if test "${ac_cv_func_shl_load+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19247 #define shl_load innocuous_shl_load
19249 /* System header to define __stub macros and hopefully few prototypes,
19250 which can conflict with char shl_load (); below.
19251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19252 <limits.h> exists even on freestanding compilers. */
19255 # include <limits.h>
19257 # include <assert.h>
19262 /* Override any gcc2 internal prototype to avoid an error. */
19267 /* We use char because int might match the return type of a gcc2
19268 builtin and then its argument prototype would still apply. */
19270 /* The GNU C library defines this for functions which it implements
19271 to always fail with ENOSYS. Some functions are actually named
19272 something starting with __ and the normal name is an alias. */
19273 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19276 char (*f) () = shl_load;
19285 return f != shl_load;
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
19299 { ac_try='test -z "$ac_c_werror_flag"
19300 || test ! -s conftest.err'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest$ac_exeext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_func_shl_load=yes
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_cv_func_shl_load=no
19319 rm -f conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
19322 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19323 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19324 if test $ac_cv_func_shl_load = yes; then
19325 lt_cv_dlopen="shl_load"
19327 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19328 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19329 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 ac_check_lib_save_LIBS=$LIBS
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19341 /* Override any gcc2 internal prototype to avoid an error. */
19345 /* We use char because int might match the return type of a gcc2
19346 builtin and then its argument prototype would still apply. */
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358 (eval $ac_link) 2>conftest.er1
19360 grep -v '^ *+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_c_werror_flag"
19366 || test ! -s conftest.err'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest$ac_exeext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_cv_lib_dld_shl_load=yes
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19383 ac_cv_lib_dld_shl_load=no
19385 rm -f conftest.err conftest.$ac_objext \
19386 conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19391 if test $ac_cv_lib_dld_shl_load = yes; then
19392 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19394 echo "$as_me:$LINENO: checking for dlopen" >&5
19395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19396 if test "${ac_cv_func_dlopen+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19407 #define dlopen innocuous_dlopen
19409 /* System header to define __stub macros and hopefully few prototypes,
19410 which can conflict with char dlopen (); below.
19411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19412 <limits.h> exists even on freestanding compilers. */
19415 # include <limits.h>
19417 # include <assert.h>
19422 /* Override any gcc2 internal prototype to avoid an error. */
19427 /* We use char because int might match the return type of a gcc2
19428 builtin and then its argument prototype would still apply. */
19430 /* The GNU C library defines this for functions which it implements
19431 to always fail with ENOSYS. Some functions are actually named
19432 something starting with __ and the normal name is an alias. */
19433 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19436 char (*f) () = dlopen;
19445 return f != dlopen;
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452 (eval $ac_link) 2>conftest.er1
19454 grep -v '^ *+' conftest.er1 >conftest.err
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_c_werror_flag"
19460 || test ! -s conftest.err'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest$ac_exeext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_cv_func_dlopen=yes
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19477 ac_cv_func_dlopen=no
19479 rm -f conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19482 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19483 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19484 if test $ac_cv_func_dlopen = yes; then
19485 lt_cv_dlopen="dlopen"
19487 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19488 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 ac_check_lib_save_LIBS=$LIBS
19494 cat >conftest.$ac_ext <<_ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19501 /* Override any gcc2 internal prototype to avoid an error. */
19505 /* We use char because int might match the return type of a gcc2
19506 builtin and then its argument prototype would still apply. */
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19518 (eval $ac_link) 2>conftest.er1
19520 grep -v '^ *+' conftest.er1 >conftest.err
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag"
19526 || test ! -s conftest.err'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest$ac_exeext'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_lib_dl_dlopen=yes
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19543 ac_cv_lib_dl_dlopen=no
19545 rm -f conftest.err conftest.$ac_objext \
19546 conftest$ac_exeext conftest.$ac_ext
19547 LIBS=$ac_check_lib_save_LIBS
19549 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19550 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19551 if test $ac_cv_lib_dl_dlopen = yes; then
19552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19554 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19555 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19556 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 ac_check_lib_save_LIBS=$LIBS
19560 LIBS="-lsvld $LIBS"
19561 cat >conftest.$ac_ext <<_ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19568 /* Override any gcc2 internal prototype to avoid an error. */
19572 /* We use char because int might match the return type of a gcc2
19573 builtin and then its argument prototype would still apply. */
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19585 (eval $ac_link) 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_c_werror_flag"
19593 || test ! -s conftest.err'
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; } &&
19599 { ac_try='test -s conftest$ac_exeext'
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; }; then
19605 ac_cv_lib_svld_dlopen=yes
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_cv_lib_svld_dlopen=no
19612 rm -f conftest.err conftest.$ac_objext \
19613 conftest$ac_exeext conftest.$ac_ext
19614 LIBS=$ac_check_lib_save_LIBS
19616 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19617 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19618 if test $ac_cv_lib_svld_dlopen = yes; then
19619 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19621 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19622 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19623 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 ac_check_lib_save_LIBS=$LIBS
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 /* Override any gcc2 internal prototype to avoid an error. */
19639 /* We use char because int might match the return type of a gcc2
19640 builtin and then its argument prototype would still apply. */
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19652 (eval $ac_link) 2>conftest.er1
19654 grep -v '^ *+' conftest.er1 >conftest.err
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } &&
19659 { ac_try='test -z "$ac_c_werror_flag"
19660 || test ! -s conftest.err'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest$ac_exeext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 ac_cv_lib_dld_dld_link=yes
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 ac_cv_lib_dld_dld_link=no
19679 rm -f conftest.err conftest.$ac_objext \
19680 conftest$ac_exeext conftest.$ac_ext
19681 LIBS=$ac_check_lib_save_LIBS
19683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19684 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19685 if test $ac_cv_lib_dld_dld_link = yes; then
19686 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19707 if test "x$lt_cv_dlopen" != xno; then
19713 case $lt_cv_dlopen in
19715 save_CPPFLAGS="$CPPFLAGS"
19716 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19718 save_LDFLAGS="$LDFLAGS"
19719 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19722 LIBS="$lt_cv_dlopen_libs $LIBS"
19724 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19725 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19726 if test "${lt_cv_dlopen_self+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 if test "$cross_compiling" = yes; then :
19730 lt_cv_dlopen_self=cross
19732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19733 lt_status=$lt_dlunknown
19734 cat > conftest.$ac_ext <<EOF
19735 #line 19735 "configure"
19736 #include "confdefs.h"
19745 # define LT_DLGLOBAL RTLD_GLOBAL
19748 # define LT_DLGLOBAL DL_GLOBAL
19750 # define LT_DLGLOBAL 0
19754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19755 find out it does not work in some platform. */
19756 #ifndef LT_DLLAZY_OR_NOW
19758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19761 # define LT_DLLAZY_OR_NOW DL_LAZY
19764 # define LT_DLLAZY_OR_NOW RTLD_NOW
19767 # define LT_DLLAZY_OR_NOW DL_NOW
19769 # define LT_DLLAZY_OR_NOW 0
19777 extern "C" void exit (int);
19780 void fnord() { int i=42;}
19783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19784 int status = $lt_dlunknown;
19788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19789 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19790 /* dlclose (self); */
19796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19797 (eval $ac_link) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19801 (./conftest; exit; ) 2>/dev/null
19803 case x$lt_status in
19804 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19805 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19806 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19809 # compilation failed
19810 lt_cv_dlopen_self=no
19817 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19818 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19820 if test "x$lt_cv_dlopen_self" = xyes; then
19821 LDFLAGS="$LDFLAGS $link_static_flag"
19822 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19823 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19824 if test "${lt_cv_dlopen_self_static+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 if test "$cross_compiling" = yes; then :
19828 lt_cv_dlopen_self_static=cross
19830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19831 lt_status=$lt_dlunknown
19832 cat > conftest.$ac_ext <<EOF
19833 #line 19833 "configure"
19834 #include "confdefs.h"
19843 # define LT_DLGLOBAL RTLD_GLOBAL
19846 # define LT_DLGLOBAL DL_GLOBAL
19848 # define LT_DLGLOBAL 0
19852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19853 find out it does not work in some platform. */
19854 #ifndef LT_DLLAZY_OR_NOW
19856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19859 # define LT_DLLAZY_OR_NOW DL_LAZY
19862 # define LT_DLLAZY_OR_NOW RTLD_NOW
19865 # define LT_DLLAZY_OR_NOW DL_NOW
19867 # define LT_DLLAZY_OR_NOW 0
19875 extern "C" void exit (int);
19878 void fnord() { int i=42;}
19881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19882 int status = $lt_dlunknown;
19886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19887 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19888 /* dlclose (self); */
19894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19895 (eval $ac_link) 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19899 (./conftest; exit; ) 2>/dev/null
19901 case x$lt_status in
19902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19904 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19907 # compilation failed
19908 lt_cv_dlopen_self_static=no
19915 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19916 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19919 CPPFLAGS="$save_CPPFLAGS"
19920 LDFLAGS="$save_LDFLAGS"
19925 case $lt_cv_dlopen_self in
19926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19927 *) enable_dlopen_self=unknown ;;
19930 case $lt_cv_dlopen_self_static in
19931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19932 *) enable_dlopen_self_static=unknown ;;
19937 # The else clause should only fire when bootstrapping the
19938 # libtool distribution, otherwise you forgot to ship ltmain.sh
19939 # with your package, and you will get complaints that there are
19940 # no rules to generate ltmain.sh.
19941 if test -f "$ltmain"; then
19942 # See if we are running on zsh, and set the options which allow our commands through
19943 # without removal of \ escapes.
19944 if test -n "${ZSH_VERSION+set}" ; then
19945 setopt NO_GLOB_SUBST
19947 # Now quote all the things that may contain metacharacters while being
19948 # careful not to overquote the AC_SUBSTed values. We take copies of the
19949 # variables and quote the copies for generation of the libtool script.
19950 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19952 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19953 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19954 deplibs_check_method reload_flag reload_cmds need_locks \
19955 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19956 lt_cv_sys_global_symbol_to_c_name_address \
19957 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19958 old_postinstall_cmds old_postuninstall_cmds \
19962 lt_prog_compiler_wl_GCJ \
19963 lt_prog_compiler_pic_GCJ \
19964 lt_prog_compiler_static_GCJ \
19965 lt_prog_compiler_no_builtin_flag_GCJ \
19966 export_dynamic_flag_spec_GCJ \
19967 thread_safe_flag_spec_GCJ \
19968 whole_archive_flag_spec_GCJ \
19969 enable_shared_with_static_runtimes_GCJ \
19970 old_archive_cmds_GCJ \
19971 old_archive_from_new_cmds_GCJ \
19972 predep_objects_GCJ \
19973 postdep_objects_GCJ \
19976 compiler_lib_search_path_GCJ \
19978 archive_expsym_cmds_GCJ \
19979 postinstall_cmds_GCJ \
19980 postuninstall_cmds_GCJ \
19981 old_archive_from_expsyms_cmds_GCJ \
19982 allow_undefined_flag_GCJ \
19983 no_undefined_flag_GCJ \
19984 export_symbols_cmds_GCJ \
19985 hardcode_libdir_flag_spec_GCJ \
19986 hardcode_libdir_flag_spec_ld_GCJ \
19987 hardcode_libdir_separator_GCJ \
19988 hardcode_automatic_GCJ \
19990 module_expsym_cmds_GCJ \
19991 lt_cv_prog_compiler_c_o_GCJ \
19992 exclude_expsyms_GCJ \
19993 include_expsyms_GCJ; do
19996 old_archive_cmds_GCJ | \
19997 old_archive_from_new_cmds_GCJ | \
19998 archive_cmds_GCJ | \
19999 archive_expsym_cmds_GCJ | \
20000 module_cmds_GCJ | \
20001 module_expsym_cmds_GCJ | \
20002 old_archive_from_expsyms_cmds_GCJ | \
20003 export_symbols_cmds_GCJ | \
20004 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20005 postinstall_cmds | postuninstall_cmds | \
20006 old_postinstall_cmds | old_postuninstall_cmds | \
20007 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20008 # Double-quote double-evaled strings.
20009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20018 *'\$0 --fallback-echo"')
20019 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20025 cat <<__EOF__ >> "$cfgfile"
20026 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20030 # Shell to use when invoking shell scripts.
20033 # Whether or not to build shared libraries.
20034 build_libtool_libs=$enable_shared
20036 # Whether or not to build static libraries.
20037 build_old_libs=$enable_static
20039 # Whether or not to add -lc for building shared libraries.
20040 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20042 # Whether or not to disallow shared libs when runtime libs are static
20043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20045 # Whether or not to optimize for fast installation.
20046 fast_install=$enable_fast_install
20049 host_alias=$host_alias
20052 # An echo program that does not interpret backslashes.
20057 AR_FLAGS=$lt_AR_FLAGS
20062 # A language-specific compiler.
20063 CC=$lt_compiler_GCJ
20065 # Is the compiler the GNU C compiler?
20071 # The linker used to build libraries.
20074 # Whether we need hard or soft links.
20077 # A BSD-compatible nm program.
20080 # A symbol stripping program
20083 # Used to examine libraries when file_magic_cmd begins "file"
20084 MAGIC_CMD=$MAGIC_CMD
20086 # Used on cygwin: DLL creation program.
20089 # Used on cygwin: object dumper.
20092 # Used on cygwin: assembler.
20095 # The name of the directory that contains temporary libtool files.
20098 # How to create reloadable object files.
20099 reload_flag=$lt_reload_flag
20100 reload_cmds=$lt_reload_cmds
20102 # How to pass a linker flag through the compiler.
20103 wl=$lt_lt_prog_compiler_wl_GCJ
20105 # Object file suffix (normally "o").
20106 objext="$ac_objext"
20108 # Old archive suffix (normally "a").
20111 # Shared library suffix (normally ".so").
20112 shrext_cmds='$shrext_cmds'
20114 # Executable file suffix (normally "").
20117 # Additional compiler flags for building library objects.
20118 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20121 # What is the maximum length of a command?
20122 max_cmd_len=$lt_cv_sys_max_cmd_len
20124 # Does compiler simultaneously support -c and -o options?
20125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20127 # Must we lock files when doing compilation ?
20128 need_locks=$lt_need_locks
20130 # Do we need the lib prefix for modules?
20131 need_lib_prefix=$need_lib_prefix
20133 # Do we need a version for libraries?
20134 need_version=$need_version
20136 # Whether dlopen is supported.
20137 dlopen_support=$enable_dlopen
20139 # Whether dlopen of programs is supported.
20140 dlopen_self=$enable_dlopen_self
20142 # Whether dlopen of statically linked programs is supported.
20143 dlopen_self_static=$enable_dlopen_self_static
20145 # Compiler flag to prevent dynamic linking.
20146 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20148 # Compiler flag to turn off builtin functions.
20149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20151 # Compiler flag to allow reflexive dlopens.
20152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20154 # Compiler flag to generate shared objects directly from archives.
20155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20157 # Compiler flag to generate thread-safe objects.
20158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20160 # Library versioning type.
20161 version_type=$version_type
20163 # Format of library name prefix.
20164 libname_spec=$lt_libname_spec
20166 # List of archive names. First name is the real one, the rest are links.
20167 # The last name is the one that the linker finds with -lNAME.
20168 library_names_spec=$lt_library_names_spec
20170 # The coded name of the library, if different from the real name.
20171 soname_spec=$lt_soname_spec
20173 # Commands used to build and install an old-style archive.
20175 old_archive_cmds=$lt_old_archive_cmds_GCJ
20176 old_postinstall_cmds=$lt_old_postinstall_cmds
20177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20179 # Create an old-style archive from a shared archive.
20180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20182 # Create a temporary old-style archive to link instead of a shared archive.
20183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20185 # Commands used to build and install a shared archive.
20186 archive_cmds=$lt_archive_cmds_GCJ
20187 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20188 postinstall_cmds=$lt_postinstall_cmds
20189 postuninstall_cmds=$lt_postuninstall_cmds
20191 # Commands used to build a loadable module (assumed same as above if empty)
20192 module_cmds=$lt_module_cmds_GCJ
20193 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20195 # Commands to strip libraries.
20196 old_striplib=$lt_old_striplib
20197 striplib=$lt_striplib
20199 # Dependencies to place before the objects being linked to create a
20201 predep_objects=$lt_predep_objects_GCJ
20203 # Dependencies to place after the objects being linked to create a
20205 postdep_objects=$lt_postdep_objects_GCJ
20207 # Dependencies to place before the objects being linked to create a
20209 predeps=$lt_predeps_GCJ
20211 # Dependencies to place after the objects being linked to create a
20213 postdeps=$lt_postdeps_GCJ
20215 # The library search path used internally by the compiler when linking
20216 # a shared library.
20217 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20219 # Method to check whether dependent libraries are shared objects.
20220 deplibs_check_method=$lt_deplibs_check_method
20222 # Command to use when deplibs_check_method == file_magic.
20223 file_magic_cmd=$lt_file_magic_cmd
20225 # Flag that allows shared libraries with undefined symbols to be built.
20226 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20228 # Flag that forces no undefined symbols.
20229 no_undefined_flag=$lt_no_undefined_flag_GCJ
20231 # Commands used to finish a libtool library installation in a directory.
20232 finish_cmds=$lt_finish_cmds
20234 # Same as above, but a single script fragment to be evaled but not shown.
20235 finish_eval=$lt_finish_eval
20237 # Take the output of nm and produce a listing of raw symbols and C names.
20238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20240 # Transform the output of nm in a proper C declaration
20241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20243 # Transform the output of nm in a C name address pair
20244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20246 # This is the shared library runtime path variable.
20247 runpath_var=$runpath_var
20249 # This is the shared library path variable.
20250 shlibpath_var=$shlibpath_var
20252 # Is shlibpath searched before the hard-coded library search path?
20253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20255 # How to hardcode a shared library path into an executable.
20256 hardcode_action=$hardcode_action_GCJ
20258 # Whether we should hardcode library paths into libraries.
20259 hardcode_into_libs=$hardcode_into_libs
20261 # Flag to hardcode \$libdir into a binary during linking.
20262 # This must work even if \$libdir does not exist.
20263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20265 # If ld is used when linking, flag to hardcode \$libdir into
20266 # a binary during linking. This must work even if \$libdir does
20268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20270 # Whether we need a single -rpath flag with a separated argument.
20271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20274 # resulting binary.
20275 hardcode_direct=$hardcode_direct_GCJ
20277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20278 # resulting binary.
20279 hardcode_minus_L=$hardcode_minus_L_GCJ
20281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20282 # the resulting binary.
20283 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20285 # Set to yes if building a shared library automatically hardcodes DIR into the library
20286 # and all subsequent libraries and executables linked against it.
20287 hardcode_automatic=$hardcode_automatic_GCJ
20289 # Variables whose values should be saved in libtool wrapper scripts and
20290 # restored at relink time.
20291 variables_saved_for_relink="$variables_saved_for_relink"
20293 # Whether libtool must link a program against all its dependency libraries.
20294 link_all_deplibs=$link_all_deplibs_GCJ
20296 # Compile-time system search path for libraries
20297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20299 # Run-time system search path for libraries
20300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20302 # Fix the shell variable \$srcfile for the compiler.
20303 fix_srcfile_path="$fix_srcfile_path_GCJ"
20305 # Set to yes if exported symbols are required.
20306 always_export_symbols=$always_export_symbols_GCJ
20308 # The commands to list exported symbols.
20309 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20311 # The commands to extract the exported symbol list from a shared archive.
20312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20314 # Symbols that should not be listed in the preloaded symbols.
20315 exclude_expsyms=$lt_exclude_expsyms_GCJ
20317 # Symbols that must always be exported.
20318 include_expsyms=$lt_include_expsyms_GCJ
20320 # ### END LIBTOOL TAG CONFIG: $tagname
20326 # If there is no Makefile yet, we rely on a make rule to execute
20327 # `config.status --recheck' to rerun these tests and create the
20328 # libtool script then.
20329 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20330 if test -f "$ltmain_in"; then
20331 test -f Makefile && make "$ltmain"
20337 ac_cpp='$CPP $CPPFLAGS'
20338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20351 ac_cpp='$CPP $CPPFLAGS'
20352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20357 # Source file extension for RC test sources.
20360 # Object file extension for compiled RC test sources.
20364 # Code to be used in simple compile tests
20365 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20367 # Code to be used in simple link tests
20368 lt_simple_link_test_code="$lt_simple_compile_test_code"
20370 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20372 # If no C compiler was specified, use CC.
20375 # Allow CC to be a program name with arguments.
20379 # Allow CC to be a program name with arguments.
20384 lt_cv_prog_compiler_c_o_RC=yes
20386 # The else clause should only fire when bootstrapping the
20387 # libtool distribution, otherwise you forgot to ship ltmain.sh
20388 # with your package, and you will get complaints that there are
20389 # no rules to generate ltmain.sh.
20390 if test -f "$ltmain"; then
20391 # See if we are running on zsh, and set the options which allow our commands through
20392 # without removal of \ escapes.
20393 if test -n "${ZSH_VERSION+set}" ; then
20394 setopt NO_GLOB_SUBST
20396 # Now quote all the things that may contain metacharacters while being
20397 # careful not to overquote the AC_SUBSTed values. We take copies of the
20398 # variables and quote the copies for generation of the libtool script.
20399 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20401 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20402 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20403 deplibs_check_method reload_flag reload_cmds need_locks \
20404 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20405 lt_cv_sys_global_symbol_to_c_name_address \
20406 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20407 old_postinstall_cmds old_postuninstall_cmds \
20411 lt_prog_compiler_wl_RC \
20412 lt_prog_compiler_pic_RC \
20413 lt_prog_compiler_static_RC \
20414 lt_prog_compiler_no_builtin_flag_RC \
20415 export_dynamic_flag_spec_RC \
20416 thread_safe_flag_spec_RC \
20417 whole_archive_flag_spec_RC \
20418 enable_shared_with_static_runtimes_RC \
20419 old_archive_cmds_RC \
20420 old_archive_from_new_cmds_RC \
20421 predep_objects_RC \
20422 postdep_objects_RC \
20425 compiler_lib_search_path_RC \
20427 archive_expsym_cmds_RC \
20428 postinstall_cmds_RC \
20429 postuninstall_cmds_RC \
20430 old_archive_from_expsyms_cmds_RC \
20431 allow_undefined_flag_RC \
20432 no_undefined_flag_RC \
20433 export_symbols_cmds_RC \
20434 hardcode_libdir_flag_spec_RC \
20435 hardcode_libdir_flag_spec_ld_RC \
20436 hardcode_libdir_separator_RC \
20437 hardcode_automatic_RC \
20439 module_expsym_cmds_RC \
20440 lt_cv_prog_compiler_c_o_RC \
20441 exclude_expsyms_RC \
20442 include_expsyms_RC; do
20445 old_archive_cmds_RC | \
20446 old_archive_from_new_cmds_RC | \
20447 archive_cmds_RC | \
20448 archive_expsym_cmds_RC | \
20450 module_expsym_cmds_RC | \
20451 old_archive_from_expsyms_cmds_RC | \
20452 export_symbols_cmds_RC | \
20453 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20454 postinstall_cmds | postuninstall_cmds | \
20455 old_postinstall_cmds | old_postuninstall_cmds | \
20456 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20457 # Double-quote double-evaled strings.
20458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20461 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20467 *'\$0 --fallback-echo"')
20468 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20474 cat <<__EOF__ >> "$cfgfile"
20475 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20477 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20479 # Shell to use when invoking shell scripts.
20482 # Whether or not to build shared libraries.
20483 build_libtool_libs=$enable_shared
20485 # Whether or not to build static libraries.
20486 build_old_libs=$enable_static
20488 # Whether or not to add -lc for building shared libraries.
20489 build_libtool_need_lc=$archive_cmds_need_lc_RC
20491 # Whether or not to disallow shared libs when runtime libs are static
20492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20494 # Whether or not to optimize for fast installation.
20495 fast_install=$enable_fast_install
20498 host_alias=$host_alias
20501 # An echo program that does not interpret backslashes.
20506 AR_FLAGS=$lt_AR_FLAGS
20511 # A language-specific compiler.
20514 # Is the compiler the GNU C compiler?
20520 # The linker used to build libraries.
20523 # Whether we need hard or soft links.
20526 # A BSD-compatible nm program.
20529 # A symbol stripping program
20532 # Used to examine libraries when file_magic_cmd begins "file"
20533 MAGIC_CMD=$MAGIC_CMD
20535 # Used on cygwin: DLL creation program.
20538 # Used on cygwin: object dumper.
20541 # Used on cygwin: assembler.
20544 # The name of the directory that contains temporary libtool files.
20547 # How to create reloadable object files.
20548 reload_flag=$lt_reload_flag
20549 reload_cmds=$lt_reload_cmds
20551 # How to pass a linker flag through the compiler.
20552 wl=$lt_lt_prog_compiler_wl_RC
20554 # Object file suffix (normally "o").
20555 objext="$ac_objext"
20557 # Old archive suffix (normally "a").
20560 # Shared library suffix (normally ".so").
20561 shrext_cmds='$shrext_cmds'
20563 # Executable file suffix (normally "").
20566 # Additional compiler flags for building library objects.
20567 pic_flag=$lt_lt_prog_compiler_pic_RC
20570 # What is the maximum length of a command?
20571 max_cmd_len=$lt_cv_sys_max_cmd_len
20573 # Does compiler simultaneously support -c and -o options?
20574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20576 # Must we lock files when doing compilation ?
20577 need_locks=$lt_need_locks
20579 # Do we need the lib prefix for modules?
20580 need_lib_prefix=$need_lib_prefix
20582 # Do we need a version for libraries?
20583 need_version=$need_version
20585 # Whether dlopen is supported.
20586 dlopen_support=$enable_dlopen
20588 # Whether dlopen of programs is supported.
20589 dlopen_self=$enable_dlopen_self
20591 # Whether dlopen of statically linked programs is supported.
20592 dlopen_self_static=$enable_dlopen_self_static
20594 # Compiler flag to prevent dynamic linking.
20595 link_static_flag=$lt_lt_prog_compiler_static_RC
20597 # Compiler flag to turn off builtin functions.
20598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20600 # Compiler flag to allow reflexive dlopens.
20601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20603 # Compiler flag to generate shared objects directly from archives.
20604 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20606 # Compiler flag to generate thread-safe objects.
20607 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20609 # Library versioning type.
20610 version_type=$version_type
20612 # Format of library name prefix.
20613 libname_spec=$lt_libname_spec
20615 # List of archive names. First name is the real one, the rest are links.
20616 # The last name is the one that the linker finds with -lNAME.
20617 library_names_spec=$lt_library_names_spec
20619 # The coded name of the library, if different from the real name.
20620 soname_spec=$lt_soname_spec
20622 # Commands used to build and install an old-style archive.
20624 old_archive_cmds=$lt_old_archive_cmds_RC
20625 old_postinstall_cmds=$lt_old_postinstall_cmds
20626 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20628 # Create an old-style archive from a shared archive.
20629 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20631 # Create a temporary old-style archive to link instead of a shared archive.
20632 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20634 # Commands used to build and install a shared archive.
20635 archive_cmds=$lt_archive_cmds_RC
20636 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20637 postinstall_cmds=$lt_postinstall_cmds
20638 postuninstall_cmds=$lt_postuninstall_cmds
20640 # Commands used to build a loadable module (assumed same as above if empty)
20641 module_cmds=$lt_module_cmds_RC
20642 module_expsym_cmds=$lt_module_expsym_cmds_RC
20644 # Commands to strip libraries.
20645 old_striplib=$lt_old_striplib
20646 striplib=$lt_striplib
20648 # Dependencies to place before the objects being linked to create a
20650 predep_objects=$lt_predep_objects_RC
20652 # Dependencies to place after the objects being linked to create a
20654 postdep_objects=$lt_postdep_objects_RC
20656 # Dependencies to place before the objects being linked to create a
20658 predeps=$lt_predeps_RC
20660 # Dependencies to place after the objects being linked to create a
20662 postdeps=$lt_postdeps_RC
20664 # The library search path used internally by the compiler when linking
20665 # a shared library.
20666 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20668 # Method to check whether dependent libraries are shared objects.
20669 deplibs_check_method=$lt_deplibs_check_method
20671 # Command to use when deplibs_check_method == file_magic.
20672 file_magic_cmd=$lt_file_magic_cmd
20674 # Flag that allows shared libraries with undefined symbols to be built.
20675 allow_undefined_flag=$lt_allow_undefined_flag_RC
20677 # Flag that forces no undefined symbols.
20678 no_undefined_flag=$lt_no_undefined_flag_RC
20680 # Commands used to finish a libtool library installation in a directory.
20681 finish_cmds=$lt_finish_cmds
20683 # Same as above, but a single script fragment to be evaled but not shown.
20684 finish_eval=$lt_finish_eval
20686 # Take the output of nm and produce a listing of raw symbols and C names.
20687 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20689 # Transform the output of nm in a proper C declaration
20690 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20692 # Transform the output of nm in a C name address pair
20693 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20695 # This is the shared library runtime path variable.
20696 runpath_var=$runpath_var
20698 # This is the shared library path variable.
20699 shlibpath_var=$shlibpath_var
20701 # Is shlibpath searched before the hard-coded library search path?
20702 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20704 # How to hardcode a shared library path into an executable.
20705 hardcode_action=$hardcode_action_RC
20707 # Whether we should hardcode library paths into libraries.
20708 hardcode_into_libs=$hardcode_into_libs
20710 # Flag to hardcode \$libdir into a binary during linking.
20711 # This must work even if \$libdir does not exist.
20712 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20714 # If ld is used when linking, flag to hardcode \$libdir into
20715 # a binary during linking. This must work even if \$libdir does
20717 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20719 # Whether we need a single -rpath flag with a separated argument.
20720 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20722 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20723 # resulting binary.
20724 hardcode_direct=$hardcode_direct_RC
20726 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20727 # resulting binary.
20728 hardcode_minus_L=$hardcode_minus_L_RC
20730 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20731 # the resulting binary.
20732 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20734 # Set to yes if building a shared library automatically hardcodes DIR into the library
20735 # and all subsequent libraries and executables linked against it.
20736 hardcode_automatic=$hardcode_automatic_RC
20738 # Variables whose values should be saved in libtool wrapper scripts and
20739 # restored at relink time.
20740 variables_saved_for_relink="$variables_saved_for_relink"
20742 # Whether libtool must link a program against all its dependency libraries.
20743 link_all_deplibs=$link_all_deplibs_RC
20745 # Compile-time system search path for libraries
20746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20748 # Run-time system search path for libraries
20749 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20751 # Fix the shell variable \$srcfile for the compiler.
20752 fix_srcfile_path="$fix_srcfile_path_RC"
20754 # Set to yes if exported symbols are required.
20755 always_export_symbols=$always_export_symbols_RC
20757 # The commands to list exported symbols.
20758 export_symbols_cmds=$lt_export_symbols_cmds_RC
20760 # The commands to extract the exported symbol list from a shared archive.
20761 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20763 # Symbols that should not be listed in the preloaded symbols.
20764 exclude_expsyms=$lt_exclude_expsyms_RC
20766 # Symbols that must always be exported.
20767 include_expsyms=$lt_include_expsyms_RC
20769 # ### END LIBTOOL TAG CONFIG: $tagname
20775 # If there is no Makefile yet, we rely on a make rule to execute
20776 # `config.status --recheck' to rerun these tests and create the
20777 # libtool script then.
20778 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20779 if test -f "$ltmain_in"; then
20780 test -f Makefile && make "$ltmain"
20786 ac_cpp='$CPP $CPPFLAGS'
20787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20796 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20797 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20798 { (exit 1); exit 1; }; }
20802 # Append the new tag name to the list of available tags.
20803 if test -n "$tagname" ; then
20804 available_tags="$available_tags $tagname"
20810 # Now substitute the updated list of available tags.
20811 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20812 mv "${ofile}T" "$ofile"
20816 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20817 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20818 { (exit 1); exit 1; }; }
20824 # This can be used to rebuild libtool when needed
20825 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20827 # Always use our own libtool.
20828 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
20830 # Prevent multiple expansion
20852 # Extract the first word of "dot", so it can be a program name with args.
20853 set dummy dot; ac_word=$2
20854 echo "$as_me:$LINENO: checking for $ac_word" >&5
20855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20856 if test "${ac_cv_path_DOT+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20865 for as_dir in $PATH
20868 test -z "$as_dir" && as_dir=.
20869 for ac_exec_ext in '' $ac_executable_extensions; do
20870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20871 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20878 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20882 DOT=$ac_cv_path_DOT
20884 if test -n "$DOT"; then
20885 echo "$as_me:$LINENO: result: $DOT" >&5
20886 echo "${ECHO_T}$DOT" >&6
20888 echo "$as_me:$LINENO: result: no" >&5
20889 echo "${ECHO_T}no" >&6
20892 # Extract the first word of "etags", so it can be a program name with args.
20893 set dummy etags; ac_word=$2
20894 echo "$as_me:$LINENO: checking for $ac_word" >&5
20895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20896 if test "${ac_cv_path_ETAGS+set}" = set; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20905 for as_dir in $PATH
20908 test -z "$as_dir" && as_dir=.
20909 for ac_exec_ext in '' $ac_executable_extensions; do
20910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20911 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20918 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20922 ETAGS=$ac_cv_path_ETAGS
20924 if test -n "$ETAGS"; then
20925 echo "$as_me:$LINENO: result: $ETAGS" >&5
20926 echo "${ECHO_T}$ETAGS" >&6
20928 echo "$as_me:$LINENO: result: no" >&5
20929 echo "${ECHO_T}no" >&6
20932 # Extract the first word of "python", so it can be a program name with args.
20933 set dummy python; ac_word=$2
20934 echo "$as_me:$LINENO: checking for $ac_word" >&5
20935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20936 if test "${ac_cv_path_PYTHON+set}" = set; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20945 for as_dir in $PATH
20948 test -z "$as_dir" && as_dir=.
20949 for ac_exec_ext in '' $ac_executable_extensions; do
20950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20951 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20958 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20962 PYTHON=$ac_cv_path_PYTHON
20964 if test -n "$PYTHON"; then
20965 echo "$as_me:$LINENO: result: $PYTHON" >&5
20966 echo "${ECHO_T}$PYTHON" >&6
20968 echo "$as_me:$LINENO: result: no" >&5
20969 echo "${ECHO_T}no" >&6
20972 # Extract the first word of "qmtest", so it can be a program name with args.
20973 set dummy qmtest; ac_word=$2
20974 echo "$as_me:$LINENO: checking for $ac_word" >&5
20975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20976 if test "${ac_cv_path_QMTEST+set}" = set; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20985 for as_dir in $PATH
20988 test -z "$as_dir" && as_dir=.
20989 for ac_exec_ext in '' $ac_executable_extensions; do
20990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20991 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20998 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
21002 QMTEST=$ac_cv_path_QMTEST
21004 if test -n "$QMTEST"; then
21005 echo "$as_me:$LINENO: result: $QMTEST" >&5
21006 echo "${ECHO_T}$QMTEST" >&6
21008 echo "$as_me:$LINENO: result: no" >&5
21009 echo "${ECHO_T}no" >&6
21014 if test "$GCC" != "yes"
21016 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
21017 echo "$as_me: error: gcc required but not found" >&2;}
21018 { (exit 1); exit 1; }; }
21021 if test "$GXX" != "yes"
21023 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
21024 echo "$as_me: error: g++ required but not found" >&2;}
21025 { (exit 1); exit 1; }; }
21028 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
21029 if test "$gccmajor" -lt "3"
21031 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
21032 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
21033 { (exit 1); exit 1; }; }
21036 echo "$as_me:$LINENO: checking for GNU make" >&5
21037 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
21038 if test "${_cv_gnu_make_command+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 _cv_gnu_make_command='' ;
21042 for a in "$MAKE" make gmake gnumake ; do
21043 if test -z "$a" ; then continue ; fi ;
21044 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
21045 _cv_gnu_make_command=$a ;
21051 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
21052 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
21053 if test "x$_cv_gnu_make_command" != "x" ; then
21057 echo "$as_me:$LINENO: result: \"Not found\"" >&5
21058 echo "${ECHO_T}\"Not found\"" >&6;
21062 if test -z "$_cv_gnu_make_command"
21064 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
21065 echo "$as_me: error: GNU Make required but not found" >&2;}
21066 { (exit 1); exit 1; }; }
21069 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21070 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21072 if test -d "$LLVMGCCDIR"
21074 if test -x "$LLVMGCCDIR/bin/gcc"
21076 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21080 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21081 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21082 if test "$LLVM_GCC_CHECK" = "no"
21087 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21088 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21090 if test -x "$LLVM_GCC_CHECK"
21092 cp /dev/null conftest.c
21093 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21099 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
21100 LLVMCC1=$llvmcc1path
21102 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
21103 LLVMCC1PLUS=$llvmcc1pluspath
21106 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21107 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21108 if test "$LLVM_GCC_SANE" = "no"
21113 etags_version=`$ETAGS --version 2>&1`
21114 case "$etags_version" in
21115 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
21116 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
21117 *) ETAGSFLAGS="" ;;
21119 ETAGSFLAGS=$ETAGSFLAGS
21122 if test "$PYTHON" = "false"
21124 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
21125 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
21127 if test "$QMTEST" = "false"
21129 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
21130 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
21133 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
21134 pymajor=`echo $pyversion | cut -d. -f1`
21135 pyminor=`echo $pyversion | cut -d. -f2`
21137 if test "$pymajor" -ge "2"
21139 if test "$pymajor" -eq "2"
21141 if test "$pyminor" -lt "2"
21143 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
21144 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
21149 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
21154 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
21155 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
21156 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 ac_check_lib_save_LIBS=$LIBS
21161 cat >conftest.$ac_ext <<_ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21168 /* Override any gcc2 internal prototype to avoid an error. */
21172 /* We use char because int might match the return type of a gcc2
21173 builtin and then its argument prototype would still apply. */
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21185 (eval $ac_link) 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } &&
21192 { ac_try='test -z "$ac_c_werror_flag"
21193 || test ! -s conftest.err'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; } &&
21199 { ac_try='test -s conftest$ac_exeext'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; }; then
21205 ac_cv_lib_elf_elf_begin=yes
21207 echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_cv_lib_elf_elf_begin=no
21212 rm -f conftest.err conftest.$ac_objext \
21213 conftest$ac_exeext conftest.$ac_ext
21214 LIBS=$ac_check_lib_save_LIBS
21216 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21217 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21218 if test $ac_cv_lib_elf_elf_begin = yes; then
21219 cat >>confdefs.h <<_ACEOF
21220 #define HAVE_LIBELF 1
21228 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
21229 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
21230 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 ac_check_lib_save_LIBS=$LIBS
21235 cat >conftest.$ac_ext <<_ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21242 /* Override any gcc2 internal prototype to avoid an error. */
21246 /* We use char because int might match the return type of a gcc2
21247 builtin and then its argument prototype would still apply. */
21248 char BZ2_bzCompressInit ();
21252 BZ2_bzCompressInit ();
21257 rm -f conftest.$ac_objext conftest$ac_exeext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21259 (eval $ac_link) 2>conftest.er1
21261 grep -v '^ *+' conftest.er1 >conftest.err
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try='test -z "$ac_c_werror_flag"
21267 || test ! -s conftest.err'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try='test -s conftest$ac_exeext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21284 ac_cv_lib_bz2_BZ2_bzCompressInit=no
21286 rm -f conftest.err conftest.$ac_objext \
21287 conftest$ac_exeext conftest.$ac_ext
21288 LIBS=$ac_check_lib_save_LIBS
21290 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
21291 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
21292 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
21298 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
21299 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
21300 if test "${ac_cv_lib_z_gzopen+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 ac_check_lib_save_LIBS=$LIBS
21305 cat >conftest.$ac_ext <<_ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21312 /* Override any gcc2 internal prototype to avoid an error. */
21316 /* We use char because int might match the return type of a gcc2
21317 builtin and then its argument prototype would still apply. */
21327 rm -f conftest.$ac_objext conftest$ac_exeext
21328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21329 (eval $ac_link) 2>conftest.er1
21331 grep -v '^ *+' conftest.er1 >conftest.err
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } &&
21336 { ac_try='test -z "$ac_c_werror_flag"
21337 || test ! -s conftest.err'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; } &&
21343 { ac_try='test -s conftest$ac_exeext'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; }; then
21349 ac_cv_lib_z_gzopen=yes
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_cv_lib_z_gzopen=no
21356 rm -f conftest.err conftest.$ac_objext \
21357 conftest$ac_exeext conftest.$ac_ext
21358 LIBS=$ac_check_lib_save_LIBS
21360 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
21361 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
21362 if test $ac_cv_lib_z_gzopen = yes; then
21369 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21370 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21371 if test "${ac_cv_search_dlopen+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 ac_func_search_save_LIBS=$LIBS
21375 ac_cv_search_dlopen=no
21376 cat >conftest.$ac_ext <<_ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21383 /* Override any gcc2 internal prototype to avoid an error. */
21387 /* We use char because int might match the return type of a gcc2
21388 builtin and then its argument prototype would still apply. */
21398 rm -f conftest.$ac_objext conftest$ac_exeext
21399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21400 (eval $ac_link) 2>conftest.er1
21402 grep -v '^ *+' conftest.er1 >conftest.err
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } &&
21407 { ac_try='test -z "$ac_c_werror_flag"
21408 || test ! -s conftest.err'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; } &&
21414 { ac_try='test -s conftest$ac_exeext'
21415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
21420 ac_cv_search_dlopen="none required"
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21426 rm -f conftest.err conftest.$ac_objext \
21427 conftest$ac_exeext conftest.$ac_ext
21428 if test "$ac_cv_search_dlopen" = no; then
21429 for ac_lib in dl; do
21430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21431 cat >conftest.$ac_ext <<_ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h. */
21438 /* Override any gcc2 internal prototype to avoid an error. */
21442 /* We use char because int might match the return type of a gcc2
21443 builtin and then its argument prototype would still apply. */
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21455 (eval $ac_link) 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
21462 { ac_try='test -z "$ac_c_werror_flag"
21463 || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest$ac_exeext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 ac_cv_search_dlopen="-l$ac_lib"
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21482 rm -f conftest.err conftest.$ac_objext \
21483 conftest$ac_exeext conftest.$ac_ext
21486 LIBS=$ac_func_search_save_LIBS
21488 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21489 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21490 if test "$ac_cv_search_dlopen" != no; then
21491 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21493 cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_DLOPEN 1
21498 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21499 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21503 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21504 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21505 if test "${ac_cv_search_mallinfo+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 ac_func_search_save_LIBS=$LIBS
21509 ac_cv_search_mallinfo=no
21510 cat >conftest.$ac_ext <<_ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 /* Override any gcc2 internal prototype to avoid an error. */
21521 /* We use char because int might match the return type of a gcc2
21522 builtin and then its argument prototype would still apply. */
21532 rm -f conftest.$ac_objext conftest$ac_exeext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21534 (eval $ac_link) 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try='test -z "$ac_c_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest$ac_exeext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_search_mallinfo="none required"
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21560 rm -f conftest.err conftest.$ac_objext \
21561 conftest$ac_exeext conftest.$ac_ext
21562 if test "$ac_cv_search_mallinfo" = no; then
21563 for ac_lib in malloc; do
21564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21572 /* Override any gcc2 internal prototype to avoid an error. */
21576 /* We use char because int might match the return type of a gcc2
21577 builtin and then its argument prototype would still apply. */
21587 rm -f conftest.$ac_objext conftest$ac_exeext
21588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21589 (eval $ac_link) 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_c_werror_flag"
21597 || test ! -s conftest.err'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } &&
21603 { ac_try='test -s conftest$ac_exeext'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 ac_cv_search_mallinfo="-l$ac_lib"
21612 echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21616 rm -f conftest.err conftest.$ac_objext \
21617 conftest$ac_exeext conftest.$ac_ext
21620 LIBS=$ac_func_search_save_LIBS
21622 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21623 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21624 if test "$ac_cv_search_mallinfo" != no; then
21625 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_MALLINFO 1
21634 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21635 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21636 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 ac_func_search_save_LIBS=$LIBS
21640 ac_cv_search_pthread_mutex_lock=no
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21648 /* Override any gcc2 internal prototype to avoid an error. */
21652 /* We use char because int might match the return type of a gcc2
21653 builtin and then its argument prototype would still apply. */
21654 char pthread_mutex_lock ();
21658 pthread_mutex_lock ();
21663 rm -f conftest.$ac_objext conftest$ac_exeext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21665 (eval $ac_link) 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try='test -z "$ac_c_werror_flag"
21673 || test ! -s conftest.err'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; } &&
21679 { ac_try='test -s conftest$ac_exeext'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; }; then
21685 ac_cv_search_pthread_mutex_lock="none required"
21687 echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21691 rm -f conftest.err conftest.$ac_objext \
21692 conftest$ac_exeext conftest.$ac_ext
21693 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21694 for ac_lib in pthread; do
21695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21696 cat >conftest.$ac_ext <<_ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21703 /* Override any gcc2 internal prototype to avoid an error. */
21707 /* We use char because int might match the return type of a gcc2
21708 builtin and then its argument prototype would still apply. */
21709 char pthread_mutex_lock ();
21713 pthread_mutex_lock ();
21718 rm -f conftest.$ac_objext conftest$ac_exeext
21719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21720 (eval $ac_link) 2>conftest.er1
21722 grep -v '^ *+' conftest.er1 >conftest.err
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); } &&
21727 { ac_try='test -z "$ac_c_werror_flag"
21728 || test ! -s conftest.err'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; } &&
21734 { ac_try='test -s conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21747 rm -f conftest.err conftest.$ac_objext \
21748 conftest$ac_exeext conftest.$ac_ext
21751 LIBS=$ac_func_search_save_LIBS
21753 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21754 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21755 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21756 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21758 cat >>confdefs.h <<\_ACEOF
21759 #define HAVE_PTHREAD_MUTEX_LOCK 1
21767 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21768 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21769 if test "${ac_cv_header_stdc+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 cat >conftest.$ac_ext <<_ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21778 #include <stdlib.h>
21779 #include <stdarg.h>
21780 #include <string.h>
21791 rm -f conftest.$ac_objext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21793 (eval $ac_compile) 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -z "$ac_c_werror_flag"
21801 || test ! -s conftest.err'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest.$ac_objext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 ac_cv_header_stdc=yes
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ac_cv_header_stdc=no
21820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21822 if test $ac_cv_header_stdc = yes; then
21823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21824 cat >conftest.$ac_ext <<_ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 #include <string.h>
21833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21834 $EGREP "memchr" >/dev/null 2>&1; then
21837 ac_cv_header_stdc=no
21843 if test $ac_cv_header_stdc = yes; then
21844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 #include <stdlib.h>
21854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21855 $EGREP "free" >/dev/null 2>&1; then
21858 ac_cv_header_stdc=no
21864 if test $ac_cv_header_stdc = yes; then
21865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21866 if test "$cross_compiling" = yes; then
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21876 #if ((' ' & 0x0FF) == 0x020)
21877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21880 # define ISLOWER(c) \
21881 (('a' <= (c) && (c) <= 'i') \
21882 || ('j' <= (c) && (c) <= 'r') \
21883 || ('s' <= (c) && (c) <= 'z'))
21884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21892 for (i = 0; i < 256; i++)
21893 if (XOR (islower (i), ISLOWER (i))
21894 || toupper (i) != TOUPPER (i))
21899 rm -f conftest$ac_exeext
21900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21901 (eval $ac_link) 2>&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; }; then
21912 echo "$as_me: program exited with status $ac_status" >&5
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ( exit $ac_status )
21917 ac_cv_header_stdc=no
21919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21923 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21924 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21925 if test $ac_cv_header_stdc = yes; then
21927 cat >>confdefs.h <<\_ACEOF
21928 #define STDC_HEADERS 1
21933 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21934 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21935 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 #include <sys/types.h>
21945 #include <sys/wait.h>
21946 #ifndef WEXITSTATUS
21947 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21950 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21958 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965 (eval $ac_compile) 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try='test -z "$ac_c_werror_flag"
21973 || test ! -s conftest.err'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; } &&
21979 { ac_try='test -s conftest.$ac_objext'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 ac_cv_header_sys_wait_h=yes
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 ac_cv_header_sys_wait_h=no
21992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21994 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21995 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21996 if test $ac_cv_header_sys_wait_h = yes; then
21998 cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_SYS_WAIT_H 1
22004 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22005 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22006 if test "${ac_cv_header_time+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 #include <sys/types.h>
22016 #include <sys/time.h>
22022 if ((struct tm *) 0)
22028 rm -f conftest.$ac_objext
22029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22030 (eval $ac_compile) 2>conftest.er1
22032 grep -v '^ *+' conftest.er1 >conftest.err
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } &&
22037 { ac_try='test -z "$ac_c_werror_flag"
22038 || test ! -s conftest.err'
22039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040 (eval $ac_try) 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try='test -s conftest.$ac_objext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
22050 ac_cv_header_time=yes
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_cv_header_time=no
22057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22059 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22060 echo "${ECHO_T}$ac_cv_header_time" >&6
22061 if test $ac_cv_header_time = yes; then
22063 cat >>confdefs.h <<\_ACEOF
22064 #define TIME_WITH_SYS_TIME 1
22069 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22070 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22071 if test "${ac_cv_header_mmap_anon+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22075 ac_cpp='$CPP $CPPFLAGS'
22076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22080 cat >conftest.$ac_ext <<_ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22086 #include <sys/mman.h>
22087 #include <unistd.h>
22092 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22097 rm -f conftest.$ac_objext
22098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22099 (eval $ac_compile) 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
22106 { ac_try='test -z "$ac_c_werror_flag"
22107 || test ! -s conftest.err'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; } &&
22113 { ac_try='test -s conftest.$ac_objext'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22119 ac_cv_header_mmap_anon=yes
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ac_cv_header_mmap_anon=no
22126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22128 ac_cpp='$CPP $CPPFLAGS'
22129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22135 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22136 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22137 if test "$ac_cv_header_mmap_anon" = yes; then
22139 cat >>confdefs.h <<\_ACEOF
22140 #define HAVE_MMAP_ANONYMOUS
22152 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h
22154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22156 echo "$as_me:$LINENO: checking for $ac_header" >&5
22157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22159 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22164 # Is the header compilable?
22165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22167 cat >conftest.$ac_ext <<_ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 $ac_includes_default
22174 #include <$ac_header>
22176 rm -f conftest.$ac_objext
22177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22178 (eval $ac_compile) 2>conftest.er1
22180 grep -v '^ *+' conftest.er1 >conftest.err
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
22185 { ac_try='test -z "$ac_c_werror_flag"
22186 || test ! -s conftest.err'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; } &&
22192 { ac_try='test -s conftest.$ac_objext'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; }; then
22198 ac_header_compiler=yes
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 ac_header_compiler=no
22205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22207 echo "${ECHO_T}$ac_header_compiler" >&6
22209 # Is the header present?
22210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22212 cat >conftest.$ac_ext <<_ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 #include <$ac_header>
22220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22223 grep -v '^ *+' conftest.er1 >conftest.err
22225 cat conftest.err >&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } >/dev/null; then
22228 if test -s conftest.err; then
22229 ac_cpp_err=$ac_c_preproc_warn_flag
22230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22237 if test -z "$ac_cpp_err"; then
22238 ac_header_preproc=yes
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22243 ac_header_preproc=no
22245 rm -f conftest.err conftest.$ac_ext
22246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22247 echo "${ECHO_T}$ac_header_preproc" >&6
22249 # So? What about this header?
22250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22256 ac_header_preproc=yes
22259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22273 ## ----------------------------------- ##
22274 ## Report this to llvmbugs@cs.uiuc.edu ##
22275 ## ----------------------------------- ##
22278 sed "s/^/$as_me: WARNING: /" >&2
22281 echo "$as_me:$LINENO: checking for $ac_header" >&5
22282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 eval "$as_ac_Header=\$ac_header_preproc"
22288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22293 cat >>confdefs.h <<_ACEOF
22294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22306 for ac_header in sys/resource.h dlfcn.h link.h execinfo.h windows.h
22308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22310 echo "$as_me:$LINENO: checking for $ac_header" >&5
22311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22318 # Is the header compilable?
22319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22321 cat >conftest.$ac_ext <<_ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 $ac_includes_default
22328 #include <$ac_header>
22330 rm -f conftest.$ac_objext
22331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22332 (eval $ac_compile) 2>conftest.er1
22334 grep -v '^ *+' conftest.er1 >conftest.err
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } &&
22339 { ac_try='test -z "$ac_c_werror_flag"
22340 || test ! -s conftest.err'
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; } &&
22346 { ac_try='test -s conftest.$ac_objext'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22352 ac_header_compiler=yes
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 ac_header_compiler=no
22359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22361 echo "${ECHO_T}$ac_header_compiler" >&6
22363 # Is the header present?
22364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 #include <$ac_header>
22374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22377 grep -v '^ *+' conftest.er1 >conftest.err
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } >/dev/null; then
22382 if test -s conftest.err; then
22383 ac_cpp_err=$ac_c_preproc_warn_flag
22384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22391 if test -z "$ac_cpp_err"; then
22392 ac_header_preproc=yes
22394 echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_header_preproc=no
22399 rm -f conftest.err conftest.$ac_ext
22400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22401 echo "${ECHO_T}$ac_header_preproc" >&6
22403 # So? What about this header?
22404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22410 ac_header_preproc=yes
22413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22427 ## ----------------------------------- ##
22428 ## Report this to llvmbugs@cs.uiuc.edu ##
22429 ## ----------------------------------- ##
22432 sed "s/^/$as_me: WARNING: /" >&2
22435 echo "$as_me:$LINENO: checking for $ac_header" >&5
22436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22440 eval "$as_ac_Header=\$ac_header_preproc"
22442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22447 cat >>confdefs.h <<_ACEOF
22448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22456 if test "${ac_cv_header_sys_types_h+set}" = set; then
22457 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22458 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22459 if test "${ac_cv_header_sys_types_h+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22463 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22465 # Is the header compilable?
22466 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
22467 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 $ac_includes_default
22475 #include <sys/types.h>
22477 rm -f conftest.$ac_objext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479 (eval $ac_compile) 2>conftest.er1
22481 grep -v '^ *+' conftest.er1 >conftest.err
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
22486 { ac_try='test -z "$ac_c_werror_flag"
22487 || test ! -s conftest.err'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; } &&
22493 { ac_try='test -s conftest.$ac_objext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 ac_header_compiler=yes
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ac_header_compiler=no
22506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22508 echo "${ECHO_T}$ac_header_compiler" >&6
22510 # Is the header present?
22511 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
22512 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 #include <sys/types.h>
22521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22524 grep -v '^ *+' conftest.er1 >conftest.err
22526 cat conftest.err >&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } >/dev/null; then
22529 if test -s conftest.err; then
22530 ac_cpp_err=$ac_c_preproc_warn_flag
22531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22538 if test -z "$ac_cpp_err"; then
22539 ac_header_preproc=yes
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_header_preproc=no
22546 rm -f conftest.err conftest.$ac_ext
22547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22548 echo "${ECHO_T}$ac_header_preproc" >&6
22550 # So? What about this header?
22551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22553 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
22554 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22555 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
22556 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
22557 ac_header_preproc=yes
22560 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
22561 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
22562 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
22563 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
22564 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
22565 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
22566 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
22567 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
22568 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
22569 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
22570 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
22571 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
22574 ## ----------------------------------- ##
22575 ## Report this to llvmbugs@cs.uiuc.edu ##
22576 ## ----------------------------------- ##
22579 sed "s/^/$as_me: WARNING: /" >&2
22582 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22583 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22584 if test "${ac_cv_header_sys_types_h+set}" = set; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 ac_cv_header_sys_types_h=$ac_header_preproc
22589 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22590 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22595 if test "${ac_cv_header_inttypes_h+set}" = set; then
22596 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22597 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22598 if test "${ac_cv_header_inttypes_h+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22602 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22604 # Is the header compilable?
22605 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
22606 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
22607 cat >conftest.$ac_ext <<_ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613 $ac_includes_default
22614 #include <inttypes.h>
22616 rm -f conftest.$ac_objext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22618 (eval $ac_compile) 2>conftest.er1
22620 grep -v '^ *+' conftest.er1 >conftest.err
22622 cat conftest.err >&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } &&
22625 { ac_try='test -z "$ac_c_werror_flag"
22626 || test ! -s conftest.err'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; } &&
22632 { ac_try='test -s conftest.$ac_objext'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }; then
22638 ac_header_compiler=yes
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 ac_header_compiler=no
22645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22647 echo "${ECHO_T}$ac_header_compiler" >&6
22649 # Is the header present?
22650 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
22651 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 #include <inttypes.h>
22660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22663 grep -v '^ *+' conftest.er1 >conftest.err
22665 cat conftest.err >&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); } >/dev/null; then
22668 if test -s conftest.err; then
22669 ac_cpp_err=$ac_c_preproc_warn_flag
22670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22677 if test -z "$ac_cpp_err"; then
22678 ac_header_preproc=yes
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_header_preproc=no
22685 rm -f conftest.err conftest.$ac_ext
22686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22687 echo "${ECHO_T}$ac_header_preproc" >&6
22689 # So? What about this header?
22690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22692 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
22693 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22694 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
22695 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
22696 ac_header_preproc=yes
22699 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
22700 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
22701 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
22702 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
22703 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
22704 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
22705 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
22706 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
22707 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
22708 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
22709 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
22710 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
22713 ## ----------------------------------- ##
22714 ## Report this to llvmbugs@cs.uiuc.edu ##
22715 ## ----------------------------------- ##
22718 sed "s/^/$as_me: WARNING: /" >&2
22721 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22722 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22723 if test "${ac_cv_header_inttypes_h+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 ac_cv_header_inttypes_h=$ac_header_preproc
22728 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22729 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22734 if test "${ac_cv_header_stdint_h+set}" = set; then
22735 echo "$as_me:$LINENO: checking for stdint.h" >&5
22736 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22737 if test "${ac_cv_header_stdint_h+set}" = set; then
22738 echo $ECHO_N "(cached) $ECHO_C" >&6
22740 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22741 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22743 # Is the header compilable?
22744 echo "$as_me:$LINENO: checking stdint.h usability" >&5
22745 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
22746 cat >conftest.$ac_ext <<_ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 $ac_includes_default
22753 #include <stdint.h>
22755 rm -f conftest.$ac_objext
22756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22757 (eval $ac_compile) 2>conftest.er1
22759 grep -v '^ *+' conftest.er1 >conftest.err
22761 cat conftest.err >&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } &&
22764 { ac_try='test -z "$ac_c_werror_flag"
22765 || test ! -s conftest.err'
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; } &&
22771 { ac_try='test -s conftest.$ac_objext'
22772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773 (eval $ac_try) 2>&5
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 ac_header_compiler=yes
22779 echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22782 ac_header_compiler=no
22784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22786 echo "${ECHO_T}$ac_header_compiler" >&6
22788 # Is the header present?
22789 echo "$as_me:$LINENO: checking stdint.h presence" >&5
22790 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
22791 cat >conftest.$ac_ext <<_ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 #include <stdint.h>
22799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22802 grep -v '^ *+' conftest.er1 >conftest.err
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } >/dev/null; then
22807 if test -s conftest.err; then
22808 ac_cpp_err=$ac_c_preproc_warn_flag
22809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22816 if test -z "$ac_cpp_err"; then
22817 ac_header_preproc=yes
22819 echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22822 ac_header_preproc=no
22824 rm -f conftest.err conftest.$ac_ext
22825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22826 echo "${ECHO_T}$ac_header_preproc" >&6
22828 # So? What about this header?
22829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22831 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
22832 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22833 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
22834 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
22835 ac_header_preproc=yes
22838 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
22839 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
22840 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
22841 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
22842 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
22843 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
22844 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
22845 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
22847 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
22848 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
22849 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
22852 ## ----------------------------------- ##
22853 ## Report this to llvmbugs@cs.uiuc.edu ##
22854 ## ----------------------------------- ##
22857 sed "s/^/$as_me: WARNING: /" >&2
22860 echo "$as_me:$LINENO: checking for stdint.h" >&5
22861 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22862 if test "${ac_cv_header_stdint_h+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 ac_cv_header_stdint_h=$ac_header_preproc
22867 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22868 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22875 for ac_header in bzlib.h
22877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22879 echo "$as_me:$LINENO: checking for $ac_header" >&5
22880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22882 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22887 # Is the header compilable?
22888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22890 cat >conftest.$ac_ext <<_ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22896 $ac_includes_default
22897 #include <$ac_header>
22899 rm -f conftest.$ac_objext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22901 (eval $ac_compile) 2>conftest.er1
22903 grep -v '^ *+' conftest.er1 >conftest.err
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
22908 { ac_try='test -z "$ac_c_werror_flag"
22909 || test ! -s conftest.err'
22910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911 (eval $ac_try) 2>&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }; } &&
22915 { ac_try='test -s conftest.$ac_objext'
22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; }; then
22921 ac_header_compiler=yes
22923 echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 ac_header_compiler=no
22928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22930 echo "${ECHO_T}$ac_header_compiler" >&6
22932 # Is the header present?
22933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22935 cat >conftest.$ac_ext <<_ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h. */
22941 #include <$ac_header>
22943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22946 grep -v '^ *+' conftest.er1 >conftest.err
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } >/dev/null; then
22951 if test -s conftest.err; then
22952 ac_cpp_err=$ac_c_preproc_warn_flag
22953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22960 if test -z "$ac_cpp_err"; then
22961 ac_header_preproc=yes
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 ac_header_preproc=no
22968 rm -f conftest.err conftest.$ac_ext
22969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22970 echo "${ECHO_T}$ac_header_preproc" >&6
22972 # So? What about this header?
22973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22979 ac_header_preproc=yes
22982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22996 ## ----------------------------------- ##
22997 ## Report this to llvmbugs@cs.uiuc.edu ##
22998 ## ----------------------------------- ##
23001 sed "s/^/$as_me: WARNING: /" >&2
23004 echo "$as_me:$LINENO: checking for $ac_header" >&5
23005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23009 eval "$as_ac_Header=\$ac_header_preproc"
23011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23016 cat >>confdefs.h <<_ACEOF
23017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23027 for ac_header in zlib.h
23029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23031 echo "$as_me:$LINENO: checking for $ac_header" >&5
23032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23039 # Is the header compilable?
23040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23042 cat >conftest.$ac_ext <<_ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23048 $ac_includes_default
23049 #include <$ac_header>
23051 rm -f conftest.$ac_objext
23052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23053 (eval $ac_compile) 2>conftest.er1
23055 grep -v '^ *+' conftest.er1 >conftest.err
23057 cat conftest.err >&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } &&
23060 { ac_try='test -z "$ac_c_werror_flag"
23061 || test ! -s conftest.err'
23062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063 (eval $ac_try) 2>&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); }; } &&
23067 { ac_try='test -s conftest.$ac_objext'
23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069 (eval $ac_try) 2>&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23073 ac_header_compiler=yes
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 ac_header_compiler=no
23080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23082 echo "${ECHO_T}$ac_header_compiler" >&6
23084 # Is the header present?
23085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 #include <$ac_header>
23095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23098 grep -v '^ *+' conftest.er1 >conftest.err
23100 cat conftest.err >&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); } >/dev/null; then
23103 if test -s conftest.err; then
23104 ac_cpp_err=$ac_c_preproc_warn_flag
23105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23112 if test -z "$ac_cpp_err"; then
23113 ac_header_preproc=yes
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_header_preproc=no
23120 rm -f conftest.err conftest.$ac_ext
23121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23122 echo "${ECHO_T}$ac_header_preproc" >&6
23124 # So? What about this header?
23125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23131 ac_header_preproc=yes
23134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23148 ## ----------------------------------- ##
23149 ## Report this to llvmbugs@cs.uiuc.edu ##
23150 ## ----------------------------------- ##
23153 sed "s/^/$as_me: WARNING: /" >&2
23156 echo "$as_me:$LINENO: checking for $ac_header" >&5
23157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23159 echo $ECHO_N "(cached) $ECHO_C" >&6
23161 eval "$as_ac_Header=\$ac_header_preproc"
23163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23168 cat >>confdefs.h <<_ACEOF
23169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23180 echo "$as_me:$LINENO: checking for pid_t" >&5
23181 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23182 if test "${ac_cv_type_pid_t+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 $ac_includes_default
23197 if (sizeof (pid_t))
23203 rm -f conftest.$ac_objext
23204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23205 (eval $ac_compile) 2>conftest.er1
23207 grep -v '^ *+' conftest.er1 >conftest.err
23209 cat conftest.err >&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } &&
23212 { ac_try='test -z "$ac_c_werror_flag"
23213 || test ! -s conftest.err'
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215 (eval $ac_try) 2>&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); }; } &&
23219 { ac_try='test -s conftest.$ac_objext'
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; }; then
23225 ac_cv_type_pid_t=yes
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ac_cv_type_pid_t=no
23232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23234 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23235 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23236 if test $ac_cv_type_pid_t = yes; then
23240 cat >>confdefs.h <<_ACEOF
23246 echo "$as_me:$LINENO: checking for size_t" >&5
23247 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23248 if test "${ac_cv_type_size_t+set}" = set; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 $ac_includes_default
23263 if (sizeof (size_t))
23269 rm -f conftest.$ac_objext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23271 (eval $ac_compile) 2>conftest.er1
23273 grep -v '^ *+' conftest.er1 >conftest.err
23275 cat conftest.err >&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } &&
23278 { ac_try='test -z "$ac_c_werror_flag"
23279 || test ! -s conftest.err'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; } &&
23285 { ac_try='test -s conftest.$ac_objext'
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 ac_cv_type_size_t=yes
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ac_cv_type_size_t=no
23298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23300 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23301 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23302 if test $ac_cv_type_size_t = yes; then
23306 cat >>confdefs.h <<_ACEOF
23307 #define size_t unsigned
23312 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23313 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23314 if test "${ac_cv_type_signal+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <sys/types.h>
23324 #include <signal.h>
23329 extern "C" void (*signal (int, void (*)(int)))(int);
23331 void (*signal ()) ();
23342 rm -f conftest.$ac_objext
23343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23344 (eval $ac_compile) 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try='test -z "$ac_c_werror_flag"
23352 || test ! -s conftest.err'
23353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; } &&
23358 { ac_try='test -s conftest.$ac_objext'
23359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360 (eval $ac_try) 2>&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); }; }; then
23364 ac_cv_type_signal=void
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 ac_cv_type_signal=int
23371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23373 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23374 echo "${ECHO_T}$ac_cv_type_signal" >&6
23376 cat >>confdefs.h <<_ACEOF
23377 #define RETSIGTYPE $ac_cv_type_signal
23381 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23382 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23383 if test "${ac_cv_struct_tm+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23386 cat >conftest.$ac_ext <<_ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23392 #include <sys/types.h>
23398 struct tm *tp; tp->tm_sec;
23403 rm -f conftest.$ac_objext
23404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23405 (eval $ac_compile) 2>conftest.er1
23407 grep -v '^ *+' conftest.er1 >conftest.err
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } &&
23412 { ac_try='test -z "$ac_c_werror_flag"
23413 || test ! -s conftest.err'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; } &&
23419 { ac_try='test -s conftest.$ac_objext'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 ac_cv_struct_tm=time.h
23427 echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23430 ac_cv_struct_tm=sys/time.h
23432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23434 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23435 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23436 if test $ac_cv_struct_tm = sys/time.h; then
23438 cat >>confdefs.h <<\_ACEOF
23439 #define TM_IN_SYS_TIME 1
23444 echo "$as_me:$LINENO: checking for int64_t" >&5
23445 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
23446 if test "${ac_cv_type_int64_t+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 $ac_includes_default
23461 if (sizeof (int64_t))
23467 rm -f conftest.$ac_objext
23468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23469 (eval $ac_compile) 2>conftest.er1
23471 grep -v '^ *+' conftest.er1 >conftest.err
23473 cat conftest.err >&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } &&
23476 { ac_try='test -z "$ac_c_werror_flag"
23477 || test ! -s conftest.err'
23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479 (eval $ac_try) 2>&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; } &&
23483 { ac_try='test -s conftest.$ac_objext'
23484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485 (eval $ac_try) 2>&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); }; }; then
23489 ac_cv_type_int64_t=yes
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 ac_cv_type_int64_t=no
23496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23498 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23499 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
23500 if test $ac_cv_type_int64_t = yes; then
23502 cat >>confdefs.h <<_ACEOF
23503 #define HAVE_INT64_T 1
23508 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
23509 echo "$as_me: error: Type int64_t required but not found" >&2;}
23510 { (exit 1); exit 1; }; }
23513 echo "$as_me:$LINENO: checking for uint64_t" >&5
23514 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
23515 if test "${ac_cv_type_uint64_t+set}" = set; then
23516 echo $ECHO_N "(cached) $ECHO_C" >&6
23518 cat >conftest.$ac_ext <<_ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23528 if ((uint64_t *) 0)
23530 if (sizeof (uint64_t))
23536 rm -f conftest.$ac_objext
23537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23538 (eval $ac_compile) 2>conftest.er1
23540 grep -v '^ *+' conftest.er1 >conftest.err
23542 cat conftest.err >&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } &&
23545 { ac_try='test -z "$ac_c_werror_flag"
23546 || test ! -s conftest.err'
23547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548 (eval $ac_try) 2>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); }; } &&
23552 { ac_try='test -s conftest.$ac_objext'
23553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554 (eval $ac_try) 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; }; then
23558 ac_cv_type_uint64_t=yes
23560 echo "$as_me: failed program was:" >&5
23561 sed 's/^/| /' conftest.$ac_ext >&5
23563 ac_cv_type_uint64_t=no
23565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23567 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23568 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
23569 if test $ac_cv_type_uint64_t = yes; then
23571 cat >>confdefs.h <<_ACEOF
23572 #define HAVE_UINT64_T 1
23577 echo "$as_me:$LINENO: checking for u_int64_t" >&5
23578 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
23579 if test "${ac_cv_type_u_int64_t+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
23582 cat >conftest.$ac_ext <<_ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23588 $ac_includes_default
23592 if ((u_int64_t *) 0)
23594 if (sizeof (u_int64_t))
23600 rm -f conftest.$ac_objext
23601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23602 (eval $ac_compile) 2>conftest.er1
23604 grep -v '^ *+' conftest.er1 >conftest.err
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } &&
23609 { ac_try='test -z "$ac_c_werror_flag"
23610 || test ! -s conftest.err'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; } &&
23616 { ac_try='test -s conftest.$ac_objext'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23622 ac_cv_type_u_int64_t=yes
23624 echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23627 ac_cv_type_u_int64_t=no
23629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23631 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23632 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23633 if test $ac_cv_type_u_int64_t = yes; then
23635 cat >>confdefs.h <<_ACEOF
23636 #define HAVE_U_INT64_T 1
23641 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23642 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23643 { (exit 1); exit 1; }; }
23650 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
23651 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
23653 ac_cpp='$CPP $CPPFLAGS'
23654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23658 if test "$cross_compiling" = yes; then
23661 cat >conftest.$ac_ext <<_ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23670 #include <stdlib.h>
23676 volatile double A, B;
23680 sprintf(Buffer, "%a", A);
23684 if (A != 0x1.999999999999ap-4)
23691 rm -f conftest$ac_exeext
23692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23693 (eval $ac_link) 2>&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; }; then
23704 echo "$as_me: program exited with status $ac_status" >&5
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23708 ( exit $ac_status )
23711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23714 ac_cpp='$CPP $CPPFLAGS'
23715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23719 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
23720 echo "${ECHO_T}$ac_c_printf_a" >&6
23721 if test "$ac_c_printf_a" = "yes"; then
23723 cat >>confdefs.h <<\_ACEOF
23724 #define HAVE_PRINTF_A 1
23730 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
23731 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
23732 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 ac_cpp='$CXXCPP $CPPFLAGS'
23737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23741 cat >conftest.$ac_ext <<_ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23748 int foo(float f) {return isnan(f);}
23750 rm -f conftest.$ac_objext
23751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23752 (eval $ac_compile) 2>conftest.er1
23754 grep -v '^ *+' conftest.er1 >conftest.err
23756 cat conftest.err >&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); } &&
23759 { ac_try='test -z "$ac_cxx_werror_flag"
23760 || test ! -s conftest.err'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; } &&
23766 { ac_try='test -s conftest.$ac_objext'
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_cv_func_isnan_in_math_h=yes
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23777 ac_cv_func_isnan_in_math_h=no
23779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23781 ac_cpp='$CPP $CPPFLAGS'
23782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23787 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
23788 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
23789 if test "$ac_cv_func_isnan_in_math_h" = "yes"
23792 cat >>confdefs.h <<\_ACEOF
23793 #define HAVE_ISNAN_IN_MATH_H 1
23797 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
23798 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
23799 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23803 ac_cpp='$CXXCPP $CPPFLAGS'
23804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23815 int foo(float f) {return isnan(f);}
23817 rm -f conftest.$ac_objext
23818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23819 (eval $ac_compile) 2>conftest.er1
23821 grep -v '^ *+' conftest.er1 >conftest.err
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } &&
23826 { ac_try='test -z "$ac_cxx_werror_flag"
23827 || test ! -s conftest.err'
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829 (eval $ac_try) 2>&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; } &&
23833 { ac_try='test -s conftest.$ac_objext'
23834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835 (eval $ac_try) 2>&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); }; }; then
23839 ac_cv_func_isnan_in_cmath=yes
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23844 ac_cv_func_isnan_in_cmath=no
23846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23848 ac_cpp='$CPP $CPPFLAGS'
23849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23854 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
23855 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
23856 if test "$ac_cv_func_isnan_in_cmath" = "yes"
23859 cat >>confdefs.h <<\_ACEOF
23860 #define HAVE_ISNAN_IN_CMATH 1
23864 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
23865 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
23866 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23870 ac_cpp='$CXXCPP $CPPFLAGS'
23871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23875 cat >conftest.$ac_ext <<_ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h. */
23882 using std::isnan; int foo(float f) {return isnan(f);}
23884 rm -f conftest.$ac_objext
23885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23886 (eval $ac_compile) 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } &&
23893 { ac_try='test -z "$ac_cxx_werror_flag"
23894 || test ! -s conftest.err'
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest.$ac_objext'
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; }; then
23906 ac_cv_func_std_isnan_in_cmath=yes
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23911 ac_cv_func_std_isnan_in_cmath=no
23913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23915 ac_cpp='$CPP $CPPFLAGS'
23916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23921 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
23922 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
23923 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
23926 cat >>confdefs.h <<\_ACEOF
23927 #define HAVE_STD_ISNAN_IN_CMATH 1
23933 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
23934 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
23935 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 ac_cpp='$CXXCPP $CPPFLAGS'
23940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23951 int foo(float f) {return isinf(f);}
23953 rm -f conftest.$ac_objext
23954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23955 (eval $ac_compile) 2>conftest.er1
23957 grep -v '^ *+' conftest.er1 >conftest.err
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } &&
23962 { ac_try='test -z "$ac_cxx_werror_flag"
23963 || test ! -s conftest.err'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; } &&
23969 { ac_try='test -s conftest.$ac_objext'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; }; then
23975 ac_cv_func_isinf_in_math_h=yes
23977 echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23980 ac_cv_func_isinf_in_math_h=no
23982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23984 ac_cpp='$CPP $CPPFLAGS'
23985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23990 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
23991 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
23992 if test "$ac_cv_func_isinf_in_math_h" = "yes"
23995 cat >>confdefs.h <<\_ACEOF
23996 #define HAVE_ISINF_IN_MATH_H 1
24000 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
24001 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
24002 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24006 ac_cpp='$CXXCPP $CPPFLAGS'
24007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24011 cat >conftest.$ac_ext <<_ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h. */
24018 int foo(float f) {return isinf(f);}
24020 rm -f conftest.$ac_objext
24021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24022 (eval $ac_compile) 2>conftest.er1
24024 grep -v '^ *+' conftest.er1 >conftest.err
24026 cat conftest.err >&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } &&
24029 { ac_try='test -z "$ac_cxx_werror_flag"
24030 || test ! -s conftest.err'
24031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032 (eval $ac_try) 2>&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); }; } &&
24036 { ac_try='test -s conftest.$ac_objext'
24037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038 (eval $ac_try) 2>&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); }; }; then
24042 ac_cv_func_isinf_in_cmath=yes
24044 echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24047 ac_cv_func_isinf_in_cmath=no
24049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24051 ac_cpp='$CPP $CPPFLAGS'
24052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24057 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
24058 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
24059 if test "$ac_cv_func_isinf_in_cmath" = "yes"
24062 cat >>confdefs.h <<\_ACEOF
24063 #define HAVE_ISINF_IN_CMATH 1
24067 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
24068 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
24069 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24073 ac_cpp='$CXXCPP $CPPFLAGS'
24074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24078 cat >conftest.$ac_ext <<_ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24085 using std::isinf; int foo(float f) {return isinf(f);}
24087 rm -f conftest.$ac_objext
24088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24089 (eval $ac_compile) 2>conftest.er1
24091 grep -v '^ *+' conftest.er1 >conftest.err
24093 cat conftest.err >&5
24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); } &&
24096 { ac_try='test -z "$ac_cxx_werror_flag"
24097 || test ! -s conftest.err'
24098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24099 (eval $ac_try) 2>&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); }; } &&
24103 { ac_try='test -s conftest.$ac_objext'
24104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; }; then
24109 ac_cv_func_std_isinf_in_cmath=yes
24111 echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114 ac_cv_func_std_isinf_in_cmath=no
24116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24118 ac_cpp='$CPP $CPPFLAGS'
24119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24124 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
24125 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
24126 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
24129 cat >>confdefs.h <<\_ACEOF
24130 #define HAVE_STD_ISINF_IN_CMATH 1
24134 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
24135 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
24136 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
24137 echo $ECHO_N "(cached) $ECHO_C" >&6
24140 ac_cpp='$CXXCPP $CPPFLAGS'
24141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24145 cat >conftest.$ac_ext <<_ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h. */
24151 #include <ieeefp.h>
24152 int foo(float f) {return finite(f);}
24154 rm -f conftest.$ac_objext
24155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24156 (eval $ac_compile) 2>conftest.er1
24158 grep -v '^ *+' conftest.er1 >conftest.err
24160 cat conftest.err >&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); } &&
24163 { ac_try='test -z "$ac_cxx_werror_flag"
24164 || test ! -s conftest.err'
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; } &&
24170 { ac_try='test -s conftest.$ac_objext'
24171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 (eval $ac_try) 2>&5
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); }; }; then
24176 ac_cv_func_finite_in_ieeefp_h=yes
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24181 ac_cv_func_finite_in_ieeefp_h=no
24183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24185 ac_cpp='$CPP $CPPFLAGS'
24186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24191 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
24192 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
24193 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
24196 cat >>confdefs.h <<\_ACEOF
24197 #define HAVE_FINITE_IN_IEEEFP_H 1
24202 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24203 # for constant arguments. Useless!
24204 echo "$as_me:$LINENO: checking for working alloca.h" >&5
24205 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
24206 if test "${ac_cv_working_alloca_h+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24209 cat >conftest.$ac_ext <<_ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24215 #include <alloca.h>
24219 char *p = (char *) alloca (2 * sizeof (int));
24224 rm -f conftest.$ac_objext conftest$ac_exeext
24225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24226 (eval $ac_link) 2>conftest.er1
24228 grep -v '^ *+' conftest.er1 >conftest.err
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } &&
24233 { ac_try='test -z "$ac_c_werror_flag"
24234 || test ! -s conftest.err'
24235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236 (eval $ac_try) 2>&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; } &&
24240 { ac_try='test -s conftest$ac_exeext'
24241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242 (eval $ac_try) 2>&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); }; }; then
24246 ac_cv_working_alloca_h=yes
24248 echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24251 ac_cv_working_alloca_h=no
24253 rm -f conftest.err conftest.$ac_objext \
24254 conftest$ac_exeext conftest.$ac_ext
24256 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24257 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24258 if test $ac_cv_working_alloca_h = yes; then
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_ALLOCA_H 1
24266 echo "$as_me:$LINENO: checking for alloca" >&5
24267 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24268 if test "${ac_cv_func_alloca_works+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 cat >conftest.$ac_ext <<_ACEOF
24274 cat confdefs.h >>conftest.$ac_ext
24275 cat >>conftest.$ac_ext <<_ACEOF
24276 /* end confdefs.h. */
24278 # define alloca __builtin_alloca
24281 # include <malloc.h>
24282 # define alloca _alloca
24285 # include <alloca.h>
24290 # ifndef alloca /* predefined by HP cc +Olibcalls */
24301 char *p = (char *) alloca (1);
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24308 (eval $ac_link) 2>conftest.er1
24310 grep -v '^ *+' conftest.er1 >conftest.err
24312 cat conftest.err >&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } &&
24315 { ac_try='test -z "$ac_c_werror_flag"
24316 || test ! -s conftest.err'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; } &&
24322 { ac_try='test -s conftest$ac_exeext'
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 ac_cv_func_alloca_works=yes
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ac_cv_func_alloca_works=no
24335 rm -f conftest.err conftest.$ac_objext \
24336 conftest$ac_exeext conftest.$ac_ext
24338 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24339 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24341 if test $ac_cv_func_alloca_works = yes; then
24343 cat >>confdefs.h <<\_ACEOF
24344 #define HAVE_ALLOCA 1
24348 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24349 # that cause trouble. Some versions do not even contain alloca or
24350 # contain a buggy version. If you still want to use their alloca,
24351 # use ar to extract alloca.o from them instead of compiling alloca.c.
24353 ALLOCA=alloca.$ac_objext
24355 cat >>confdefs.h <<\_ACEOF
24360 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24361 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24362 if test "${ac_cv_os_cray+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24365 cat >conftest.$ac_ext <<_ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24371 #if defined(CRAY) && ! defined(CRAY2)
24378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24379 $EGREP "webecray" >/dev/null 2>&1; then
24387 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24388 echo "${ECHO_T}$ac_cv_os_cray" >&6
24389 if test $ac_cv_os_cray = yes; then
24390 for ac_func in _getb67 GETB67 getb67; do
24391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24392 echo "$as_me:$LINENO: checking for $ac_func" >&5
24393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24394 if eval "test \"\${$as_ac_var+set}\" = set"; then
24395 echo $ECHO_N "(cached) $ECHO_C" >&6
24397 cat >conftest.$ac_ext <<_ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h. */
24403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24405 #define $ac_func innocuous_$ac_func
24407 /* System header to define __stub macros and hopefully few prototypes,
24408 which can conflict with char $ac_func (); below.
24409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24410 <limits.h> exists even on freestanding compilers. */
24413 # include <limits.h>
24415 # include <assert.h>
24420 /* Override any gcc2 internal prototype to avoid an error. */
24425 /* We use char because int might match the return type of a gcc2
24426 builtin and then its argument prototype would still apply. */
24428 /* The GNU C library defines this for functions which it implements
24429 to always fail with ENOSYS. Some functions are actually named
24430 something starting with __ and the normal name is an alias. */
24431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24434 char (*f) () = $ac_func;
24443 return f != $ac_func;
24448 rm -f conftest.$ac_objext conftest$ac_exeext
24449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24450 (eval $ac_link) 2>conftest.er1
24452 grep -v '^ *+' conftest.er1 >conftest.err
24454 cat conftest.err >&5
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } &&
24457 { ac_try='test -z "$ac_c_werror_flag"
24458 || test ! -s conftest.err'
24459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460 (eval $ac_try) 2>&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; } &&
24464 { ac_try='test -s conftest$ac_exeext'
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; }; then
24470 eval "$as_ac_var=yes"
24472 echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 eval "$as_ac_var=no"
24477 rm -f conftest.err conftest.$ac_objext \
24478 conftest$ac_exeext conftest.$ac_ext
24480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24482 if test `eval echo '${'$as_ac_var'}'` = yes; then
24484 cat >>confdefs.h <<_ACEOF
24485 #define CRAY_STACKSEG_END $ac_func
24494 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24495 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24496 if test "${ac_cv_c_stack_direction+set}" = set; then
24497 echo $ECHO_N "(cached) $ECHO_C" >&6
24499 if test "$cross_compiling" = yes; then
24500 ac_cv_c_stack_direction=0
24502 cat >conftest.$ac_ext <<_ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h. */
24509 find_stack_direction ()
24511 static char *addr = 0;
24516 return find_stack_direction ();
24519 return (&dummy > addr) ? 1 : -1;
24525 exit (find_stack_direction () < 0);
24528 rm -f conftest$ac_exeext
24529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24530 (eval $ac_link) 2>&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535 (eval $ac_try) 2>&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; }; then
24539 ac_cv_c_stack_direction=1
24541 echo "$as_me: program exited with status $ac_status" >&5
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 ( exit $ac_status )
24546 ac_cv_c_stack_direction=-1
24548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24551 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24552 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24554 cat >>confdefs.h <<_ACEOF
24555 #define STACK_DIRECTION $ac_cv_c_stack_direction
24563 for ac_header in stdlib.h unistd.h
24565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24567 echo "$as_me:$LINENO: checking for $ac_header" >&5
24568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
24572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24575 # Is the header compilable?
24576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24578 cat >conftest.$ac_ext <<_ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24584 $ac_includes_default
24585 #include <$ac_header>
24587 rm -f conftest.$ac_objext
24588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24589 (eval $ac_compile) 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
24596 { ac_try='test -z "$ac_c_werror_flag"
24597 || test ! -s conftest.err'
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; } &&
24603 { ac_try='test -s conftest.$ac_objext'
24604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605 (eval $ac_try) 2>&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; }; then
24609 ac_header_compiler=yes
24611 echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24614 ac_header_compiler=no
24616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24618 echo "${ECHO_T}$ac_header_compiler" >&6
24620 # Is the header present?
24621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24623 cat >conftest.$ac_ext <<_ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 #include <$ac_header>
24631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24634 grep -v '^ *+' conftest.er1 >conftest.err
24636 cat conftest.err >&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); } >/dev/null; then
24639 if test -s conftest.err; then
24640 ac_cpp_err=$ac_c_preproc_warn_flag
24641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24648 if test -z "$ac_cpp_err"; then
24649 ac_header_preproc=yes
24651 echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24654 ac_header_preproc=no
24656 rm -f conftest.err conftest.$ac_ext
24657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24658 echo "${ECHO_T}$ac_header_preproc" >&6
24660 # So? What about this header?
24661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24667 ac_header_preproc=yes
24670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24684 ## ----------------------------------- ##
24685 ## Report this to llvmbugs@cs.uiuc.edu ##
24686 ## ----------------------------------- ##
24689 sed "s/^/$as_me: WARNING: /" >&2
24692 echo "$as_me:$LINENO: checking for $ac_header" >&5
24693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24695 echo $ECHO_N "(cached) $ECHO_C" >&6
24697 eval "$as_ac_Header=\$ac_header_preproc"
24699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24704 cat >>confdefs.h <<_ACEOF
24705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24713 for ac_func in getpagesize
24715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24716 echo "$as_me:$LINENO: checking for $ac_func" >&5
24717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24718 if eval "test \"\${$as_ac_var+set}\" = set"; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 cat >conftest.$ac_ext <<_ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h. */
24727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24729 #define $ac_func innocuous_$ac_func
24731 /* System header to define __stub macros and hopefully few prototypes,
24732 which can conflict with char $ac_func (); below.
24733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24734 <limits.h> exists even on freestanding compilers. */
24737 # include <limits.h>
24739 # include <assert.h>
24744 /* Override any gcc2 internal prototype to avoid an error. */
24749 /* We use char because int might match the return type of a gcc2
24750 builtin and then its argument prototype would still apply. */
24752 /* The GNU C library defines this for functions which it implements
24753 to always fail with ENOSYS. Some functions are actually named
24754 something starting with __ and the normal name is an alias. */
24755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24758 char (*f) () = $ac_func;
24767 return f != $ac_func;
24772 rm -f conftest.$ac_objext conftest$ac_exeext
24773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24774 (eval $ac_link) 2>conftest.er1
24776 grep -v '^ *+' conftest.er1 >conftest.err
24778 cat conftest.err >&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } &&
24781 { ac_try='test -z "$ac_c_werror_flag"
24782 || test ! -s conftest.err'
24783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784 (eval $ac_try) 2>&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); }; } &&
24788 { ac_try='test -s conftest$ac_exeext'
24789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); }; }; then
24794 eval "$as_ac_var=yes"
24796 echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24799 eval "$as_ac_var=no"
24801 rm -f conftest.err conftest.$ac_objext \
24802 conftest$ac_exeext conftest.$ac_ext
24804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24806 if test `eval echo '${'$as_ac_var'}'` = yes; then
24807 cat >>confdefs.h <<_ACEOF
24808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24814 echo "$as_me:$LINENO: checking for working mmap" >&5
24815 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24816 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24819 if test "$cross_compiling" = yes; then
24820 ac_cv_func_mmap_fixed_mapped=no
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24828 $ac_includes_default
24829 /* malloc might have been renamed as rpl_malloc. */
24832 /* Thanks to Mike Haertel and Jim Avera for this test.
24833 Here is a matrix of mmap possibilities:
24834 mmap private not fixed
24835 mmap private fixed at somewhere currently unmapped
24836 mmap private fixed at somewhere already mapped
24837 mmap shared not fixed
24838 mmap shared fixed at somewhere currently unmapped
24839 mmap shared fixed at somewhere already mapped
24840 For private mappings, we should verify that changes cannot be read()
24841 back from the file, nor mmap's back from the file at a different
24842 address. (There have been systems where private was not correctly
24843 implemented like the infamous i386 svr4.0, and systems where the
24844 VM page cache was not coherent with the file system buffer cache
24845 like early versions of FreeBSD and possibly contemporary NetBSD.)
24846 For shared mappings, we should conversely verify that changes get
24847 propagated back to all the places they're supposed to be.
24849 Grep wants private fixed already mapped.
24850 The main things grep needs to know about mmap are:
24851 * does it exist and is it safe to write into the mmap'd area
24852 * how to use it (BSD variants) */
24855 #include <sys/mman.h>
24857 #if !STDC_HEADERS && !HAVE_STDLIB_H
24861 /* This mess was copied from the GNU getpagesize.h. */
24862 #if !HAVE_GETPAGESIZE
24863 /* Assume that all systems that can run configure have sys/param.h. */
24864 # if !HAVE_SYS_PARAM_H
24865 # define HAVE_SYS_PARAM_H 1
24868 # ifdef _SC_PAGESIZE
24869 # define getpagesize() sysconf(_SC_PAGESIZE)
24870 # else /* no _SC_PAGESIZE */
24871 # if HAVE_SYS_PARAM_H
24872 # include <sys/param.h>
24873 # ifdef EXEC_PAGESIZE
24874 # define getpagesize() EXEC_PAGESIZE
24875 # else /* no EXEC_PAGESIZE */
24877 # define getpagesize() NBPG * CLSIZE
24880 # endif /* no CLSIZE */
24881 # else /* no NBPG */
24883 # define getpagesize() NBPC
24884 # else /* no NBPC */
24886 # define getpagesize() PAGESIZE
24887 # endif /* PAGESIZE */
24888 # endif /* no NBPC */
24889 # endif /* no NBPG */
24890 # endif /* no EXEC_PAGESIZE */
24891 # else /* no HAVE_SYS_PARAM_H */
24892 # define getpagesize() 8192 /* punt totally */
24893 # endif /* no HAVE_SYS_PARAM_H */
24894 # endif /* no _SC_PAGESIZE */
24896 #endif /* no HAVE_GETPAGESIZE */
24901 char *data, *data2, *data3;
24905 pagesize = getpagesize ();
24907 /* First, make a file with some known garbage in it. */
24908 data = (char *) malloc (pagesize);
24911 for (i = 0; i < pagesize; ++i)
24912 *(data + i) = rand ();
24914 fd = creat ("conftest.mmap", 0600);
24917 if (write (fd, data, pagesize) != pagesize)
24921 /* Next, try to mmap the file at a fixed address which already has
24922 something else allocated at it. If we can, also make sure that
24923 we see the same garbage. */
24924 fd = open ("conftest.mmap", O_RDWR);
24927 data2 = (char *) malloc (2 * pagesize);
24930 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24931 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24932 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24934 for (i = 0; i < pagesize; ++i)
24935 if (*(data + i) != *(data2 + i))
24938 /* Finally, make sure that changes to the mapped area do not
24939 percolate back to the file as seen by read(). (This is a bug on
24940 some variants of i386 svr4.0.) */
24941 for (i = 0; i < pagesize; ++i)
24942 *(data2 + i) = *(data2 + i) + 1;
24943 data3 = (char *) malloc (pagesize);
24946 if (read (fd, data3, pagesize) != pagesize)
24948 for (i = 0; i < pagesize; ++i)
24949 if (*(data + i) != *(data3 + i))
24955 rm -f conftest$ac_exeext
24956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24957 (eval $ac_link) 2>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24962 (eval $ac_try) 2>&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); }; }; then
24966 ac_cv_func_mmap_fixed_mapped=yes
24968 echo "$as_me: program exited with status $ac_status" >&5
24969 echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.$ac_ext >&5
24972 ( exit $ac_status )
24973 ac_cv_func_mmap_fixed_mapped=no
24975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24978 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24979 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24980 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24982 cat >>confdefs.h <<\_ACEOF
24983 #define HAVE_MMAP 1
24987 rm -f conftest.mmap
24989 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
24991 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
24992 echo "$as_me: WARNING: mmap() required but not found" >&2;}
24994 echo "$as_me:$LINENO: checking for mmap of files" >&5
24995 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
24996 if test "${ac_cv_func_mmap_file+set}" = set; then
24997 echo $ECHO_N "(cached) $ECHO_C" >&6
25000 ac_cpp='$CPP $CPPFLAGS'
25001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25005 if test "$cross_compiling" = yes; then
25006 ac_cv_func_mmap_file=no
25008 cat >conftest.$ac_ext <<_ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h. */
25016 #include <sys/types.h>
25017 #include <sys/mman.h>
25025 fd = creat ("foo",0777);
25026 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
25028 return (fd != (int) MAP_FAILED);
25033 rm -f conftest$ac_exeext
25034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25035 (eval $ac_link) 2>&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044 ac_cv_func_mmap_file=yes
25046 echo "$as_me: program exited with status $ac_status" >&5
25047 echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25050 ( exit $ac_status )
25051 ac_cv_func_mmap_file=no
25053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25056 ac_cpp='$CPP $CPPFLAGS'
25057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25063 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
25064 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
25065 if test "$ac_cv_func_mmap_file" = yes; then
25067 cat >>confdefs.h <<\_ACEOF
25068 #define HAVE_MMAP_FILE
25075 if test "$ac_cv_func_mmap_file" = "no"
25077 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
25078 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
25087 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
25089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25090 echo "$as_me:$LINENO: checking for $ac_func" >&5
25091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25092 if eval "test \"\${$as_ac_var+set}\" = set"; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 cat >conftest.$ac_ext <<_ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h. */
25101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25103 #define $ac_func innocuous_$ac_func
25105 /* System header to define __stub macros and hopefully few prototypes,
25106 which can conflict with char $ac_func (); below.
25107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25108 <limits.h> exists even on freestanding compilers. */
25111 # include <limits.h>
25113 # include <assert.h>
25118 /* Override any gcc2 internal prototype to avoid an error. */
25123 /* We use char because int might match the return type of a gcc2
25124 builtin and then its argument prototype would still apply. */
25126 /* The GNU C library defines this for functions which it implements
25127 to always fail with ENOSYS. Some functions are actually named
25128 something starting with __ and the normal name is an alias. */
25129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25132 char (*f) () = $ac_func;
25141 return f != $ac_func;
25146 rm -f conftest.$ac_objext conftest$ac_exeext
25147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25148 (eval $ac_link) 2>conftest.er1
25150 grep -v '^ *+' conftest.er1 >conftest.err
25152 cat conftest.err >&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } &&
25155 { ac_try='test -z "$ac_c_werror_flag"
25156 || test ! -s conftest.err'
25157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25158 (eval $ac_try) 2>&5
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); }; } &&
25162 { ac_try='test -s conftest$ac_exeext'
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; }; then
25168 eval "$as_ac_var=yes"
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25173 eval "$as_ac_var=no"
25175 rm -f conftest.err conftest.$ac_objext \
25176 conftest$ac_exeext conftest.$ac_ext
25178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25180 if test `eval echo '${'$as_ac_var'}'` = yes; then
25181 cat >>confdefs.h <<_ACEOF
25182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25190 for ac_func in mkstemp getrusage
25192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25193 echo "$as_me:$LINENO: checking for $ac_func" >&5
25194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25195 if eval "test \"\${$as_ac_var+set}\" = set"; then
25196 echo $ECHO_N "(cached) $ECHO_C" >&6
25198 cat >conftest.$ac_ext <<_ACEOF
25201 cat confdefs.h >>conftest.$ac_ext
25202 cat >>conftest.$ac_ext <<_ACEOF
25203 /* end confdefs.h. */
25204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25206 #define $ac_func innocuous_$ac_func
25208 /* System header to define __stub macros and hopefully few prototypes,
25209 which can conflict with char $ac_func (); below.
25210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25211 <limits.h> exists even on freestanding compilers. */
25214 # include <limits.h>
25216 # include <assert.h>
25221 /* Override any gcc2 internal prototype to avoid an error. */
25226 /* We use char because int might match the return type of a gcc2
25227 builtin and then its argument prototype would still apply. */
25229 /* The GNU C library defines this for functions which it implements
25230 to always fail with ENOSYS. Some functions are actually named
25231 something starting with __ and the normal name is an alias. */
25232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25235 char (*f) () = $ac_func;
25244 return f != $ac_func;
25249 rm -f conftest.$ac_objext conftest$ac_exeext
25250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25251 (eval $ac_link) 2>conftest.er1
25253 grep -v '^ *+' conftest.er1 >conftest.err
25255 cat conftest.err >&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } &&
25258 { ac_try='test -z "$ac_c_werror_flag"
25259 || test ! -s conftest.err'
25260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261 (eval $ac_try) 2>&5
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }; } &&
25265 { ac_try='test -s conftest$ac_exeext'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; }; then
25271 eval "$as_ac_var=yes"
25273 echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25276 eval "$as_ac_var=no"
25278 rm -f conftest.err conftest.$ac_objext \
25279 conftest$ac_exeext conftest.$ac_ext
25281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25283 if test `eval echo '${'$as_ac_var'}'` = yes; then
25284 cat >>confdefs.h <<_ACEOF
25285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25291 echo "$as_me:$LINENO: checking for mprotect" >&5
25292 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25293 if test "${ac_cv_func_mprotect+set}" = set; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25304 #define mprotect innocuous_mprotect
25306 /* System header to define __stub macros and hopefully few prototypes,
25307 which can conflict with char mprotect (); below.
25308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25309 <limits.h> exists even on freestanding compilers. */
25312 # include <limits.h>
25314 # include <assert.h>
25319 /* Override any gcc2 internal prototype to avoid an error. */
25324 /* We use char because int might match the return type of a gcc2
25325 builtin and then its argument prototype would still apply. */
25327 /* The GNU C library defines this for functions which it implements
25328 to always fail with ENOSYS. Some functions are actually named
25329 something starting with __ and the normal name is an alias. */
25330 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25333 char (*f) () = mprotect;
25342 return f != mprotect;
25347 rm -f conftest.$ac_objext conftest$ac_exeext
25348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25349 (eval $ac_link) 2>conftest.er1
25351 grep -v '^ *+' conftest.er1 >conftest.err
25353 cat conftest.err >&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); } &&
25356 { ac_try='test -z "$ac_c_werror_flag"
25357 || test ! -s conftest.err'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; } &&
25363 { ac_try='test -s conftest$ac_exeext'
25364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25365 (eval $ac_try) 2>&5
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; }; then
25369 ac_cv_func_mprotect=yes
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ac_cv_func_mprotect=no
25376 rm -f conftest.err conftest.$ac_objext \
25377 conftest$ac_exeext conftest.$ac_ext
25379 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25380 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25381 if test $ac_cv_func_mprotect = yes; then
25384 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25385 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25386 { (exit 1); exit 1; }; }
25390 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
25391 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
25392 if test "${ac_cv_cxx_namespaces+set}" = set; then
25393 echo $ECHO_N "(cached) $ECHO_C" >&6
25396 ac_cpp='$CXXCPP $CPPFLAGS'
25397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25401 cat >conftest.$ac_ext <<_ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h. */
25407 namespace Outer { namespace Inner { int i = 0; }}
25411 using namespace Outer::Inner; return i;
25416 rm -f conftest.$ac_objext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25418 (eval $ac_compile) 2>conftest.er1
25420 grep -v '^ *+' conftest.er1 >conftest.err
25422 cat conftest.err >&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } &&
25425 { ac_try='test -z "$ac_cxx_werror_flag"
25426 || test ! -s conftest.err'
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; } &&
25432 { ac_try='test -s conftest.$ac_objext'
25433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; }; then
25438 ac_cv_cxx_namespaces=yes
25440 echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25443 ac_cv_cxx_namespaces=no
25445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25447 ac_cpp='$CPP $CPPFLAGS'
25448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25454 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
25455 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
25456 if test "$ac_cv_cxx_namespaces" = yes; then
25458 cat >>confdefs.h <<\_ACEOF
25459 #define HAVE_NAMESPACES
25464 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
25465 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
25466 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
25467 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 ac_cpp='$CXXCPP $CPPFLAGS'
25472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25476 cat >conftest.$ac_ext <<_ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25482 #include <ext/hash_map>
25483 #ifdef HAVE_NAMESPACES
25484 using namespace std;
25489 hash_map<int, int> t;
25494 rm -f conftest.$ac_objext
25495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25496 (eval $ac_compile) 2>conftest.er1
25498 grep -v '^ *+' conftest.er1 >conftest.err
25500 cat conftest.err >&5
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } &&
25503 { ac_try='test -z "$ac_cxx_werror_flag"
25504 || test ! -s conftest.err'
25505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506 (eval $ac_try) 2>&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); }; } &&
25510 { ac_try='test -s conftest.$ac_objext'
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; }; then
25516 ac_cv_cxx_have_std_ext_hash_map=yes
25518 echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25521 ac_cv_cxx_have_std_ext_hash_map=no
25523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25525 ac_cpp='$CPP $CPPFLAGS'
25526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25531 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
25532 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
25533 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
25536 cat >>confdefs.h <<\_ACEOF
25537 #define HAVE_STD_EXT_HASH_MAP 1
25542 cat >>confdefs.h <<\_ACEOF
25543 #define HAVE_STD_EXT_HASH_MAP 0
25548 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
25549 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
25550 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
25551 echo $ECHO_N "(cached) $ECHO_C" >&6
25555 ac_cpp='$CXXCPP $CPPFLAGS'
25556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25560 cat >conftest.$ac_ext <<_ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h. */
25566 #include <ext/hash_map>
25567 #ifdef HAVE_NAMESPACES
25568 using namespace __gnu_cxx;
25573 hash_map<int,int> t;
25578 rm -f conftest.$ac_objext
25579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25580 (eval $ac_compile) 2>conftest.er1
25582 grep -v '^ *+' conftest.er1 >conftest.err
25584 cat conftest.err >&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } &&
25587 { ac_try='test -z "$ac_cxx_werror_flag"
25588 || test ! -s conftest.err'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; } &&
25594 { ac_try='test -s conftest.$ac_objext'
25595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_cv_cxx_have_gnu_ext_hash_map=yes
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25605 ac_cv_cxx_have_gnu_ext_hash_map=no
25607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25609 ac_cpp='$CPP $CPPFLAGS'
25610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25615 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
25616 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
25617 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
25620 cat >>confdefs.h <<\_ACEOF
25621 #define HAVE_GNU_EXT_HASH_MAP 1
25626 cat >>confdefs.h <<\_ACEOF
25627 #define HAVE_GNU_EXT_HASH_MAP 0
25632 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
25633 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
25634 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
25635 echo $ECHO_N "(cached) $ECHO_C" >&6
25639 ac_cpp='$CXXCPP $CPPFLAGS'
25640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25644 cat >conftest.$ac_ext <<_ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h. */
25650 #include <hash_map>
25654 hash_map<int,int> t;
25659 rm -f conftest.$ac_objext
25660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25661 (eval $ac_compile) 2>conftest.er1
25663 grep -v '^ *+' conftest.er1 >conftest.err
25665 cat conftest.err >&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); } &&
25668 { ac_try='test -z "$ac_cxx_werror_flag"
25669 || test ! -s conftest.err'
25670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); }; } &&
25675 { ac_try='test -s conftest.$ac_objext'
25676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677 (eval $ac_try) 2>&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }; }; then
25681 ac_cv_cxx_have_global_hash_map=yes
25683 echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25686 ac_cv_cxx_have_global_hash_map=no
25688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25690 ac_cpp='$CPP $CPPFLAGS'
25691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25696 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
25697 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
25698 if test "$ac_cv_cxx_have_global_hash_map" = yes
25701 cat >>confdefs.h <<\_ACEOF
25702 #define HAVE_GLOBAL_HASH_MAP 1
25707 cat >>confdefs.h <<\_ACEOF
25708 #define HAVE_GLOBAL_HASH_MAP 0
25713 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
25714 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
25715 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25720 ac_cpp='$CXXCPP $CPPFLAGS'
25721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25725 cat >conftest.$ac_ext <<_ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h. */
25731 #include <ext/hash_set>
25732 #ifdef HAVE_NAMESPACES
25733 using namespace std;
25743 rm -f conftest.$ac_objext
25744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25745 (eval $ac_compile) 2>conftest.er1
25747 grep -v '^ *+' conftest.er1 >conftest.err
25749 cat conftest.err >&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } &&
25752 { ac_try='test -z "$ac_cxx_werror_flag"
25753 || test ! -s conftest.err'
25754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25755 (eval $ac_try) 2>&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); }; } &&
25759 { ac_try='test -s conftest.$ac_objext'
25760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761 (eval $ac_try) 2>&5
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; }; then
25765 ac_cv_cxx_have_std_ext_hash_set=yes
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ac_cv_cxx_have_std_ext_hash_set=no
25772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25774 ac_cpp='$CPP $CPPFLAGS'
25775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25780 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
25781 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
25782 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
25785 cat >>confdefs.h <<\_ACEOF
25786 #define HAVE_STD_EXT_HASH_SET 1
25791 cat >>confdefs.h <<\_ACEOF
25792 #define HAVE_STD_EXT_HASH_SET 0
25797 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
25798 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
25799 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
25800 echo $ECHO_N "(cached) $ECHO_C" >&6
25804 ac_cpp='$CXXCPP $CPPFLAGS'
25805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25809 cat >conftest.$ac_ext <<_ACEOF
25812 cat confdefs.h >>conftest.$ac_ext
25813 cat >>conftest.$ac_ext <<_ACEOF
25814 /* end confdefs.h. */
25815 #include <ext/hash_set>
25816 #ifdef HAVE_NAMESPACES
25817 using namespace __gnu_cxx;
25827 rm -f conftest.$ac_objext
25828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25829 (eval $ac_compile) 2>conftest.er1
25831 grep -v '^ *+' conftest.er1 >conftest.err
25833 cat conftest.err >&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); } &&
25836 { ac_try='test -z "$ac_cxx_werror_flag"
25837 || test ! -s conftest.err'
25838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839 (eval $ac_try) 2>&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); }; } &&
25843 { ac_try='test -s conftest.$ac_objext'
25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; }; then
25849 ac_cv_cxx_have_gnu_ext_hash_set=yes
25851 echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25854 ac_cv_cxx_have_gnu_ext_hash_set=no
25856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25858 ac_cpp='$CPP $CPPFLAGS'
25859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25864 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
25865 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
25866 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
25869 cat >>confdefs.h <<\_ACEOF
25870 #define HAVE_GNU_EXT_HASH_SET 1
25875 cat >>confdefs.h <<\_ACEOF
25876 #define HAVE_GNU_EXT_HASH_SET 0
25881 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
25882 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
25883 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
25884 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 ac_cpp='$CXXCPP $CPPFLAGS'
25889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25893 cat >conftest.$ac_ext <<_ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 #include <hash_set>
25903 hash_set<int> t; return 0;
25908 rm -f conftest.$ac_objext
25909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25910 (eval $ac_compile) 2>conftest.er1
25912 grep -v '^ *+' conftest.er1 >conftest.err
25914 cat conftest.err >&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } &&
25917 { ac_try='test -z "$ac_cxx_werror_flag"
25918 || test ! -s conftest.err'
25919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920 (eval $ac_try) 2>&5
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); }; } &&
25924 { ac_try='test -s conftest.$ac_objext'
25925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926 (eval $ac_try) 2>&5
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); }; }; then
25930 ac_cv_cxx_have_global_hash_set=yes
25932 echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25935 ac_cv_cxx_have_global_hash_set=no
25937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25939 ac_cpp='$CPP $CPPFLAGS'
25940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25945 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
25946 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
25947 if test "$ac_cv_cxx_have_global_hash_set" = yes
25950 cat >>confdefs.h <<\_ACEOF
25951 #define HAVE_GLOBAL_HASH_SET 1
25956 cat >>confdefs.h <<\_ACEOF
25957 #define HAVE_GLOBAL_HASH_SET 0
25962 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
25963 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
25964 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
25965 echo $ECHO_N "(cached) $ECHO_C" >&6
25969 ac_cpp='$CXXCPP $CPPFLAGS'
25970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25974 cat >conftest.$ac_ext <<_ACEOF
25977 cat confdefs.h >>conftest.$ac_ext
25978 cat >>conftest.$ac_ext <<_ACEOF
25979 /* end confdefs.h. */
25980 #include <iterator>
25981 #ifdef HAVE_NAMESPACES
25982 using namespace std;
25987 iterator<int,int,int> t; return 0;
25992 rm -f conftest.$ac_objext
25993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25994 (eval $ac_compile) 2>conftest.er1
25996 grep -v '^ *+' conftest.er1 >conftest.err
25998 cat conftest.err >&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } &&
26001 { ac_try='test -z "$ac_cxx_werror_flag"
26002 || test ! -s conftest.err'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; } &&
26008 { ac_try='test -s conftest.$ac_objext'
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; }; then
26014 ac_cv_cxx_have_std_iterator=yes
26016 echo "$as_me: failed program was:" >&5
26017 sed 's/^/| /' conftest.$ac_ext >&5
26019 ac_cv_cxx_have_std_iterator=no
26021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26023 ac_cpp='$CPP $CPPFLAGS'
26024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26030 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
26031 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
26032 if test "$ac_cv_cxx_have_std_iterator" = yes
26035 cat >>confdefs.h <<\_ACEOF
26036 #define HAVE_STD_ITERATOR 1
26041 cat >>confdefs.h <<\_ACEOF
26042 #define HAVE_STD_ITERATOR 0
26047 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
26048 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
26049 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26054 ac_cpp='$CXXCPP $CPPFLAGS'
26055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26059 cat >conftest.$ac_ext <<_ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h. */
26065 #include <iterator>
26066 #ifdef HAVE_NAMESPACES
26067 using namespace std;
26072 bidirectional_iterator<int,int> t; return 0;
26077 rm -f conftest.$ac_objext
26078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26079 (eval $ac_compile) 2>conftest.er1
26081 grep -v '^ *+' conftest.er1 >conftest.err
26083 cat conftest.err >&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } &&
26086 { ac_try='test -z "$ac_cxx_werror_flag"
26087 || test ! -s conftest.err'
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; } &&
26093 { ac_try='test -s conftest.$ac_objext'
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; }; then
26099 ac_cv_cxx_have_bi_iterator=yes
26101 echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26104 ac_cv_cxx_have_bi_iterator=no
26106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26108 ac_cpp='$CPP $CPPFLAGS'
26109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26115 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
26116 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
26117 if test "$ac_cv_cxx_have_bi_iterator" = yes
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_BI_ITERATOR 1
26126 cat >>confdefs.h <<\_ACEOF
26127 #define HAVE_BI_ITERATOR 0
26132 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
26133 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
26134 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
26135 echo $ECHO_N "(cached) $ECHO_C" >&6
26139 ac_cpp='$CXXCPP $CPPFLAGS'
26140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26144 cat >conftest.$ac_ext <<_ACEOF
26147 cat confdefs.h >>conftest.$ac_ext
26148 cat >>conftest.$ac_ext <<_ACEOF
26149 /* end confdefs.h. */
26150 #include <iterator>
26151 #ifdef HAVE_NAMESPACES
26152 using namespace std;
26157 forward_iterator<int,int> t; return 0;
26162 rm -f conftest.$ac_objext
26163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26164 (eval $ac_compile) 2>conftest.er1
26166 grep -v '^ *+' conftest.er1 >conftest.err
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } &&
26171 { ac_try='test -z "$ac_cxx_werror_flag"
26172 || test ! -s conftest.err'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; } &&
26178 { ac_try='test -s conftest.$ac_objext'
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; }; then
26184 ac_cv_cxx_have_fwd_iterator=yes
26186 echo "$as_me: failed program was:" >&5
26187 sed 's/^/| /' conftest.$ac_ext >&5
26189 ac_cv_cxx_have_fwd_iterator=no
26191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193 ac_cpp='$CPP $CPPFLAGS'
26194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26200 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
26201 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
26202 if test "$ac_cv_cxx_have_fwd_iterator" = yes
26205 cat >>confdefs.h <<\_ACEOF
26206 #define HAVE_FWD_ITERATOR 1
26211 cat >>confdefs.h <<\_ACEOF
26212 #define HAVE_FWD_ITERATOR 0
26219 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
26220 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
26222 ac_cpp='$CPP $CPPFLAGS'
26223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26227 oldcflags="$CFLAGS"
26228 CFLAGS="$CFLAGS -Wl,-R."
26229 cat >conftest.$ac_ext <<_ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h. */
26239 int main() { return 0; }
26244 rm -f conftest.$ac_objext conftest$ac_exeext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26246 (eval $ac_link) 2>conftest.er1
26248 grep -v '^ *+' conftest.er1 >conftest.err
26250 cat conftest.err >&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); } &&
26253 { ac_try='test -z "$ac_c_werror_flag"
26254 || test ! -s conftest.err'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; } &&
26260 { ac_try='test -s conftest$ac_exeext'
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; }; then
26266 ac_cv_link_use_r=yes
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ac_cv_link_use_r=no
26273 rm -f conftest.err conftest.$ac_objext \
26274 conftest$ac_exeext conftest.$ac_ext
26275 CFLAGS="$oldcflags"
26277 ac_cpp='$CPP $CPPFLAGS'
26278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26282 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
26283 echo "${ECHO_T}$ac_cv_link_use_r" >&6
26284 if test "$ac_cv_link_use_r" = yes
26287 cat >>confdefs.h <<\_ACEOF
26288 #define HAVE_LINK_R 1
26295 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
26297 cat >>confdefs.h <<\_ACEOF
26298 #define HAVE_ZLIB 1
26307 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
26309 cat >>confdefs.h <<\_ACEOF
26310 #define HAVE_BZIP2 1
26320 echo "$as_me:$LINENO: checking for shared library suffix" >&5
26321 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
26322 eval "SHLIBEXT=$shrext_cmds"
26323 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
26324 echo "${ECHO_T}$SHLIBEXT" >&6
26329 cat >>confdefs.h <<_ACEOF
26330 #define SHLIBEXT "$SHLIBEXT"
26334 # Translate the various configuration directories and other basic
26335 # information into substitutions that will end up in config.h.in so
26336 # that these configured values can be hard-wired into a program.
26337 eval LLVM_PREFIX="${prefix}";
26338 eval LLVM_BINDIR="${prefix}/bin";
26339 eval LLVM_LIBDIR="${prefix}/lib";
26340 eval LLVM_DATADIR="${prefix}/data";
26341 eval LLVM_DOCSDIR="${prefix}/docs";
26342 eval LLVM_ETCDIR="${prefix}/etc";
26343 eval LLVM_INCLUDEDIR="${prefix}/include";
26344 eval LLVM_INFODIR="${prefix}/info";
26345 eval LLVM_MANDIR="${prefix}/man";
26346 LLVM_CONFIGTIME=`date`
26360 cat >>confdefs.h <<_ACEOF
26361 #define LLVM_PREFIX "$LLVM_PREFIX"
26365 cat >>confdefs.h <<_ACEOF
26366 #define LLVM_BINDIR "$LLVM_BINDIR"
26370 cat >>confdefs.h <<_ACEOF
26371 #define LLVM_LIBDIR "$LLVM_LIBDIR"
26375 cat >>confdefs.h <<_ACEOF
26376 #define LLVM_DATADIR "$LLVM_DATADIR"
26380 cat >>confdefs.h <<_ACEOF
26381 #define LLVM_DATADIR "$LLVM_DOCSDIR"
26385 cat >>confdefs.h <<_ACEOF
26386 #define LLVM_ETCDIR "$LLVM_ETCDIR"
26390 cat >>confdefs.h <<_ACEOF
26391 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
26395 cat >>confdefs.h <<_ACEOF
26396 #define LLVM_INFODIR "$LLVM_INFODIR"
26400 cat >>confdefs.h <<_ACEOF
26401 #define LLVM_MANDIR "$LLVM_MANDIR"
26405 cat >>confdefs.h <<_ACEOF
26406 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
26411 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
26413 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
26415 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
26417 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
26419 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
26421 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
26424 ac_config_files="$ac_config_files Makefile"
26426 ac_config_files="$ac_config_files lib/Makefile"
26428 ac_config_files="$ac_config_files lib/Analysis/IPA/Makefile"
26430 ac_config_files="$ac_config_files lib/Analysis/Makefile"
26432 ac_config_files="$ac_config_files lib/Analysis/DataStructure/Makefile"
26434 ac_config_files="$ac_config_files lib/AsmParser/Makefile"
26436 ac_config_files="$ac_config_files lib/System/Makefile"
26438 ac_config_files="$ac_config_files lib/Bytecode/Reader/Makefile"
26440 ac_config_files="$ac_config_files lib/Bytecode/Makefile"
26442 ac_config_files="$ac_config_files lib/Bytecode/Writer/Makefile"
26444 ac_config_files="$ac_config_files lib/Bytecode/Archive/Makefile"
26446 ac_config_files="$ac_config_files lib/CodeGen/Makefile"
26448 ac_config_files="$ac_config_files lib/CodeGen/SelectionDAG/Makefile"
26450 ac_config_files="$ac_config_files lib/Debugger/Makefile"
26452 ac_config_files="$ac_config_files lib/ExecutionEngine/Interpreter/Makefile"
26454 ac_config_files="$ac_config_files lib/ExecutionEngine/Makefile"
26456 ac_config_files="$ac_config_files lib/ExecutionEngine/JIT/Makefile"
26458 ac_config_files="$ac_config_files lib/Support/Makefile"
26460 ac_config_files="$ac_config_files lib/Target/CBackend/Makefile"
26462 ac_config_files="$ac_config_files lib/Target/Makefile"
26464 ac_config_files="$ac_config_files lib/Target/Skeleton/Makefile"
26466 ac_config_files="$ac_config_files lib/Target/PowerPC/Makefile"
26468 ac_config_files="$ac_config_files lib/Target/SparcV9/Makefile"
26470 ac_config_files="$ac_config_files lib/Target/SparcV9/InstrSched/Makefile"
26472 ac_config_files="$ac_config_files lib/Target/SparcV9/LiveVar/Makefile"
26474 ac_config_files="$ac_config_files lib/Target/SparcV9/ModuloScheduling/Makefile"
26476 ac_config_files="$ac_config_files lib/Target/SparcV9/RegAlloc/Makefile"
26478 ac_config_files="$ac_config_files lib/Target/X86/Makefile"
26480 ac_config_files="$ac_config_files lib/Transforms/Hello/Makefile"
26482 ac_config_files="$ac_config_files lib/Transforms/Makefile"
26484 ac_config_files="$ac_config_files lib/Transforms/IPO/Makefile"
26486 ac_config_files="$ac_config_files lib/Transforms/Instrumentation/ProfilePaths/Makefile"
26488 ac_config_files="$ac_config_files lib/Transforms/Instrumentation/Makefile"
26490 ac_config_files="$ac_config_files lib/Transforms/Scalar/Makefile"
26492 ac_config_files="$ac_config_files lib/Transforms/Utils/Makefile"
26494 ac_config_files="$ac_config_files lib/VMCore/Makefile"
26496 ac_config_files="$ac_config_files utils/Makefile"
26498 ac_config_files="$ac_config_files utils/Burg/Makefile"
26500 ac_config_files="$ac_config_files utils/fpcmp/Makefile"
26502 ac_config_files="$ac_config_files utils/TableGen/Makefile"
26504 ac_config_files="$ac_config_files tools/Makefile"
26506 ac_config_files="$ac_config_files tools/analyze/Makefile"
26508 ac_config_files="$ac_config_files tools/llvmc/Makefile"
26510 ac_config_files="$ac_config_files tools/bugpoint/Makefile"
26512 ac_config_files="$ac_config_files tools/extract/Makefile"
26514 ac_config_files="$ac_config_files tools/gccas/Makefile"
26516 ac_config_files="$ac_config_files tools/gccld/Makefile"
26518 ac_config_files="$ac_config_files tools/llvm-bcanalyzer/Makefile"
26520 ac_config_files="$ac_config_files tools/llc/Makefile"
26522 ac_config_files="$ac_config_files tools/llee/Makefile"
26524 ac_config_files="$ac_config_files tools/lli/Makefile"
26526 ac_config_files="$ac_config_files tools/llvm-ar/Makefile"
26528 ac_config_files="$ac_config_files tools/llvm-as/Makefile"
26530 ac_config_files="$ac_config_files tools/llvm-db/Makefile"
26532 ac_config_files="$ac_config_files tools/llvm-dis/Makefile"
26534 ac_config_files="$ac_config_files tools/llvm-link/Makefile"
26536 ac_config_files="$ac_config_files tools/llvm-nm/Makefile"
26538 ac_config_files="$ac_config_files tools/llvm-prof/Makefile"
26540 ac_config_files="$ac_config_files tools/opt/Makefile"
26542 ac_config_files="$ac_config_files tools/llvm-ld/Makefile"
26544 ac_config_files="$ac_config_files tools/llvm-stub/Makefile"
26546 ac_config_files="$ac_config_files runtime/Makefile"
26548 ac_config_files="$ac_config_files runtime/GC/Makefile"
26550 ac_config_files="$ac_config_files runtime/GC/SemiSpace/Makefile"
26552 ac_config_files="$ac_config_files runtime/GCCLibraries/Makefile"
26554 ac_config_files="$ac_config_files runtime/GCCLibraries/crtend/Makefile"
26556 ac_config_files="$ac_config_files runtime/GCCLibraries/libc/Makefile"
26558 ac_config_files="$ac_config_files runtime/GCCLibraries/libcurses/Makefile"
26560 ac_config_files="$ac_config_files runtime/GCCLibraries/libg/Makefile"
26562 ac_config_files="$ac_config_files runtime/GCCLibraries/libgcc/Makefile"
26564 ac_config_files="$ac_config_files runtime/GCCLibraries/libgdbm/Makefile"
26566 ac_config_files="$ac_config_files runtime/GCCLibraries/libm/Makefile"
26568 ac_config_files="$ac_config_files runtime/GCCLibraries/libmalloc/Makefile"
26570 ac_config_files="$ac_config_files runtime/GCCLibraries/libpthread/Makefile"
26572 ac_config_files="$ac_config_files runtime/GCCLibraries/libtermcap/Makefile"
26574 ac_config_files="$ac_config_files runtime/GCCLibraries/libucb/Makefile"
26576 ac_config_files="$ac_config_files runtime/GCCLibraries/libutempter/Makefile"
26578 ac_config_files="$ac_config_files runtime/GCCLibraries/libutil/Makefile"
26580 ac_config_files="$ac_config_files runtime/libdummy/Makefile"
26582 ac_config_files="$ac_config_files runtime/libpng/Makefile"
26584 ac_config_files="$ac_config_files runtime/libprofile/Makefile"
26586 ac_config_files="$ac_config_files runtime/libtrace/Makefile"
26588 ac_config_files="$ac_config_files runtime/zlib/Makefile"
26591 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_platform_type"
26594 for i in `ls ${srcdir}/projects`
26596 if test -d ${srcdir}/projects/${i} ; then
26601 subdirs="$subdirs projects/sample"
26605 subdirs="$subdirs projects/Stacker"
26609 subdirs="$subdirs projects/llvm-test"
26613 subdirs="$subdirs projects/llvm-reopt"
26617 subdirs="$subdirs projects/llvm-gcc"
26621 subdirs="$subdirs projects/Java"
26625 subdirs="$subdirs projects/llvm-tv"
26629 subdirs="$subdirs projects/llvm-fefw"
26632 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
26633 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
26638 cat >confcache <<\_ACEOF
26639 # This file is a shell script that caches the results of configure
26640 # tests run on this system so they can be shared between configure
26641 # scripts and configure runs, see configure's option --config-cache.
26642 # It is not useful on other systems. If it contains results you don't
26643 # want to keep, you may remove or edit it.
26645 # config.status only pays attention to the cache file if you give it
26646 # the --recheck option to rerun configure.
26648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26650 # following values.
26654 # The following way of writing the cache mishandles newlines in values,
26655 # but we know of no workaround that is simple, portable, and efficient.
26656 # So, don't put newlines in cache variables' values.
26657 # Ultrix sh set writes to stderr and can't be redirected directly,
26658 # and sets the high bit in the cache file unless we assign to the vars.
26661 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26663 # `set' does not quote correctly, so add quotes (double-quote
26664 # substitution turns \\\\ into \\, and sed turns \\ into \).
26667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26670 # `set' quotes correctly as required by POSIX, so do not add quotes.
26672 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26679 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26681 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26683 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26684 if test -w $cache_file; then
26685 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26686 cat confcache >$cache_file
26688 echo "not updating unwritable cache $cache_file"
26693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26694 # Let make expand exec_prefix.
26695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26697 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26698 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26699 # trailing colons and then remove the whole line if VPATH becomes empty
26700 # (actually we leave an empty line to preserve line numbers).
26701 if test "x$srcdir" = x.; then
26702 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26703 s/:*\$(srcdir):*/:/;
26704 s/:*\${srcdir}:*/:/;
26706 s/^\([^=]*=[ ]*\):*/\1/;
26712 DEFS=-DHAVE_CONFIG_H
26716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26717 # 1. Remove the extension, and $U if already installed.
26718 ac_i=`echo "$ac_i" |
26719 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26721 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26722 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26724 LIBOBJS=$ac_libobjs
26726 LTLIBOBJS=$ac_ltlibobjs
26729 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
26730 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
26731 Usually this means the macro was only invoked conditionally." >&5
26732 echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
26733 Usually this means the macro was only invoked conditionally." >&2;}
26734 { (exit 1); exit 1; }; }
26736 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
26737 { { echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
26738 Usually this means the macro was only invoked conditionally." >&5
26739 echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
26740 Usually this means the macro was only invoked conditionally." >&2;}
26741 { (exit 1); exit 1; }; }
26743 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
26744 { { echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
26745 Usually this means the macro was only invoked conditionally." >&5
26746 echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
26747 Usually this means the macro was only invoked conditionally." >&2;}
26748 { (exit 1); exit 1; }; }
26750 if test -z "${ARCH_UNKNOWN_TRUE}" && test -z "${ARCH_UNKNOWN_FALSE}"; then
26751 { { echo "$as_me:$LINENO: error: conditional \"ARCH_UNKNOWN\" was never defined.
26752 Usually this means the macro was only invoked conditionally." >&5
26753 echo "$as_me: error: conditional \"ARCH_UNKNOWN\" was never defined.
26754 Usually this means the macro was only invoked conditionally." >&2;}
26755 { (exit 1); exit 1; }; }
26757 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26758 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26759 Usually this means the macro was only invoked conditionally." >&5
26760 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26761 Usually this means the macro was only invoked conditionally." >&2;}
26762 { (exit 1); exit 1; }; }
26764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26765 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26766 Usually this means the macro was only invoked conditionally." >&5
26767 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26768 Usually this means the macro was only invoked conditionally." >&2;}
26769 { (exit 1); exit 1; }; }
26771 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26772 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26773 Usually this means the macro was only invoked conditionally." >&5
26774 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26775 Usually this means the macro was only invoked conditionally." >&2;}
26776 { (exit 1); exit 1; }; }
26778 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26779 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26780 Usually this means the macro was only invoked conditionally." >&5
26781 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26782 Usually this means the macro was only invoked conditionally." >&2;}
26783 { (exit 1); exit 1; }; }
26786 : ${CONFIG_STATUS=./config.status}
26787 ac_clean_files_save=$ac_clean_files
26788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26791 cat >$CONFIG_STATUS <<_ACEOF
26793 # Generated by $as_me.
26794 # Run this file to recreate the current configuration.
26795 # Compiler output produced by configure, useful for debugging
26796 # configure, is in config.log if it exists.
26799 ac_cs_recheck=false
26801 SHELL=\${CONFIG_SHELL-$SHELL}
26804 cat >>$CONFIG_STATUS <<\_ACEOF
26805 ## --------------------- ##
26806 ## M4sh Initialization. ##
26807 ## --------------------- ##
26809 # Be Bourne compatible
26810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26813 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26814 # is contrary to our usage. Disable this feature.
26815 alias -g '${1+"$@"}'='"$@"'
26816 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26819 DUALCASE=1; export DUALCASE # for MKS sh
26821 # Support unset when possible.
26822 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26829 # Work around bugs in pre-3.0 UWIN ksh.
26830 $as_unset ENV MAIL MAILPATH
26837 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26838 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26839 LC_TELEPHONE LC_TIME
26841 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26842 eval $as_var=C; export $as_var
26848 # Required to use basename.
26849 if expr a : '\(a\)' >/dev/null 2>&1; then
26855 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26856 as_basename=basename
26862 # Name of the executable.
26863 as_me=`$as_basename "$0" ||
26864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26865 X"$0" : 'X\(//\)$' \| \
26866 X"$0" : 'X\(/\)$' \| \
26867 . : '\(.\)' 2>/dev/null ||
26869 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26870 /^X\/\(\/\/\)$/{ s//\1/; q; }
26871 /^X\/\(\/\).*/{ s//\1/; q; }
26875 # PATH needs CR, and LINENO needs CR and PATH.
26876 # Avoid depending upon Character Ranges.
26877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26880 as_cr_digits='0123456789'
26881 as_cr_alnum=$as_cr_Letters$as_cr_digits
26883 # The user is always right.
26884 if test "${PATH_SEPARATOR+set}" != set; then
26885 echo "#! /bin/sh" >conf$$.sh
26886 echo "exit 0" >>conf$$.sh
26888 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26897 as_lineno_1=$LINENO
26898 as_lineno_2=$LINENO
26899 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26900 test "x$as_lineno_1" != "x$as_lineno_2" &&
26901 test "x$as_lineno_3" = "x$as_lineno_2" || {
26902 # Find who we are. Look in the path if we contain no path at all
26905 *[\\/]* ) as_myself=$0 ;;
26906 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26907 for as_dir in $PATH
26910 test -z "$as_dir" && as_dir=.
26911 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26916 # We did not find ourselves, most probably we were run as `sh COMMAND'
26917 # in which case we are not to be found in the path.
26918 if test "x$as_myself" = x; then
26921 if test ! -f "$as_myself"; then
26922 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26923 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26924 { (exit 1); exit 1; }; }
26926 case $CONFIG_SHELL in
26928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26929 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26932 test -z "$as_dir" && as_dir=.
26933 for as_base in sh bash ksh sh5; do
26936 if ("$as_dir/$as_base" -c '
26937 as_lineno_1=$LINENO
26938 as_lineno_2=$LINENO
26939 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26940 test "x$as_lineno_1" != "x$as_lineno_2" &&
26941 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26942 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26943 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26944 CONFIG_SHELL=$as_dir/$as_base
26945 export CONFIG_SHELL
26946 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26954 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26955 # uniformly replaced by the line number. The first 'sed' inserts a
26956 # line-number line before each line; the second 'sed' does the real
26957 # work. The second script uses 'N' to pair each line-number line
26958 # with the numbered line, and appends trailing '-' during
26959 # substitution so that $LINENO is not a special case at line end.
26960 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26961 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26962 sed '=' <$as_myself |
26967 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26970 s,^['$as_cr_digits']*\n,,
26971 ' >$as_me.lineno &&
26972 chmod +x $as_me.lineno ||
26973 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26974 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26975 { (exit 1); exit 1; }; }
26977 # Don't try to exec as it changes $[0], causing all sort of problems
26978 # (the dirname of $[0] is not the place where we might find the
26979 # original and so on. Autoconf is especially sensible to this).
26981 # Exit status is that of the last command.
26986 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26987 *c*,-n*) ECHO_N= ECHO_C='
26989 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26990 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26993 if expr a : '\(a\)' >/dev/null 2>&1; then
26999 rm -f conf$$ conf$$.exe conf$$.file
27001 if ln -s conf$$.file conf$$ 2>/dev/null; then
27002 # We could just check for DJGPP; but this test a) works b) is more generic
27003 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27004 if test -f conf$$.exe; then
27005 # Don't use ln at all; we don't have any links
27010 elif ln conf$$.file conf$$ 2>/dev/null; then
27015 rm -f conf$$ conf$$.exe conf$$.file
27017 if mkdir -p . 2>/dev/null; then
27020 test -d ./-p && rmdir ./-p
27024 as_executable_p="test -f"
27026 # Sed expression to map a string onto a valid CPP name.
27027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27029 # Sed expression to map a string onto a valid variable name.
27030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27034 # We need space, tab and new line, in precisely that order.
27044 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27045 # report actual input values of CONFIG_FILES etc. instead of their
27046 # values after options handling. Logging --version etc. is OK.
27050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27051 ## Running $as_me. ##
27056 This file was extended by LLVM $as_me 1.4, which was
27057 generated by GNU Autoconf 2.59. Invocation command line was
27059 CONFIG_FILES = $CONFIG_FILES
27060 CONFIG_HEADERS = $CONFIG_HEADERS
27061 CONFIG_LINKS = $CONFIG_LINKS
27062 CONFIG_COMMANDS = $CONFIG_COMMANDS
27066 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27070 # Files that config.status was made for.
27071 if test -n "$ac_config_files"; then
27072 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27075 if test -n "$ac_config_headers"; then
27076 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27079 if test -n "$ac_config_links"; then
27080 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27083 if test -n "$ac_config_commands"; then
27084 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27087 cat >>$CONFIG_STATUS <<\_ACEOF
27090 \`$as_me' instantiates files from templates according to the
27091 current configuration.
27093 Usage: $0 [OPTIONS] [FILE]...
27095 -h, --help print this help, then exit
27096 -V, --version print version number, then exit
27097 -q, --quiet do not print progress messages
27098 -d, --debug don't remove temporary files
27099 --recheck update $as_me by reconfiguring in the same conditions
27100 --file=FILE[:TEMPLATE]
27101 instantiate the configuration file FILE
27102 --header=FILE[:TEMPLATE]
27103 instantiate the configuration header FILE
27105 Configuration files:
27108 Configuration headers:
27111 Configuration links:
27114 Configuration commands:
27117 Report bugs to <bug-autoconf@gnu.org>."
27120 cat >>$CONFIG_STATUS <<_ACEOF
27122 LLVM config.status 1.4
27123 configured by $0, generated by GNU Autoconf 2.59,
27124 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27126 Copyright (C) 2003 Free Software Foundation, Inc.
27127 This config.status script is free software; the Free Software Foundation
27128 gives unlimited permission to copy, distribute and modify it."
27133 cat >>$CONFIG_STATUS <<\_ACEOF
27134 # If no file are specified by the user, then we need to provide default
27135 # value. By we need to know if files were specified by the user.
27141 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27142 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27150 *) # This is not an option, so the user has probably given explicit
27153 ac_need_defaults=false;;
27157 # Handling of the options.
27159 cat >>$CONFIG_STATUS <<\_ACEOF
27160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27162 --version | --vers* | -V )
27163 echo "$ac_cs_version"; exit 0 ;;
27165 # Conflict between --help and --header
27166 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27167 Try \`$0 --help' for more information." >&5
27168 echo "$as_me: error: ambiguous option: $1
27169 Try \`$0 --help' for more information." >&2;}
27170 { (exit 1); exit 1; }; };;
27171 --help | --hel | -h )
27172 echo "$ac_cs_usage"; exit 0 ;;
27173 --debug | --d* | -d )
27175 --file | --fil | --fi | --f )
27177 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27178 ac_need_defaults=false;;
27179 --header | --heade | --head | --hea )
27181 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27182 ac_need_defaults=false;;
27183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27184 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27187 # This is an error.
27188 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27189 Try \`$0 --help' for more information." >&5
27190 echo "$as_me: error: unrecognized option: $1
27191 Try \`$0 --help' for more information." >&2;}
27192 { (exit 1); exit 1; }; } ;;
27194 *) ac_config_targets="$ac_config_targets $1" ;;
27200 ac_configure_extra_args=
27202 if $ac_cs_silent; then
27204 ac_configure_extra_args="$ac_configure_extra_args --silent"
27208 cat >>$CONFIG_STATUS <<_ACEOF
27209 if \$ac_cs_recheck; then
27210 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27211 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27216 cat >>$CONFIG_STATUS <<_ACEOF
27218 # INIT-COMMANDS section.
27221 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27227 cat >>$CONFIG_STATUS <<\_ACEOF
27228 for ac_config_target in $ac_config_targets
27230 case "$ac_config_target" in
27231 # Handling of arguments.
27232 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27233 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27234 "lib/Analysis/IPA/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/IPA/Makefile" ;;
27235 "lib/Analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/Makefile" ;;
27236 "lib/Analysis/DataStructure/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/DataStructure/Makefile" ;;
27237 "lib/AsmParser/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/AsmParser/Makefile" ;;
27238 "lib/System/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/System/Makefile" ;;
27239 "lib/Bytecode/Reader/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Reader/Makefile" ;;
27240 "lib/Bytecode/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Makefile" ;;
27241 "lib/Bytecode/Writer/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Writer/Makefile" ;;
27242 "lib/Bytecode/Archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Archive/Makefile" ;;
27243 "lib/CodeGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/Makefile" ;;
27244 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/SelectionDAG/Makefile" ;;
27245 "lib/Debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Debugger/Makefile" ;;
27246 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Interpreter/Makefile" ;;
27247 "lib/ExecutionEngine/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Makefile" ;;
27248 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/JIT/Makefile" ;;
27249 "lib/Support/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Support/Makefile" ;;
27250 "lib/Target/CBackend/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/CBackend/Makefile" ;;
27251 "lib/Target/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Makefile" ;;
27252 "lib/Target/Skeleton/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Skeleton/Makefile" ;;
27253 "lib/Target/PowerPC/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/PowerPC/Makefile" ;;
27254 "lib/Target/SparcV9/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/Makefile" ;;
27255 "lib/Target/SparcV9/InstrSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/InstrSched/Makefile" ;;
27256 "lib/Target/SparcV9/LiveVar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/LiveVar/Makefile" ;;
27257 "lib/Target/SparcV9/ModuloScheduling/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/ModuloScheduling/Makefile" ;;
27258 "lib/Target/SparcV9/RegAlloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/RegAlloc/Makefile" ;;
27259 "lib/Target/X86/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/X86/Makefile" ;;
27260 "lib/Transforms/Hello/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Hello/Makefile" ;;
27261 "lib/Transforms/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Makefile" ;;
27262 "lib/Transforms/IPO/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/IPO/Makefile" ;;
27263 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
27264 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/Makefile" ;;
27265 "lib/Transforms/Scalar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Scalar/Makefile" ;;
27266 "lib/Transforms/Utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Utils/Makefile" ;;
27267 "lib/VMCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/VMCore/Makefile" ;;
27268 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27269 "utils/Burg/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Burg/Makefile" ;;
27270 "utils/fpcmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/fpcmp/Makefile" ;;
27271 "utils/TableGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/TableGen/Makefile" ;;
27272 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27273 "tools/analyze/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/analyze/Makefile" ;;
27274 "tools/llvmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/Makefile" ;;
27275 "tools/bugpoint/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/bugpoint/Makefile" ;;
27276 "tools/extract/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extract/Makefile" ;;
27277 "tools/gccas/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccas/Makefile" ;;
27278 "tools/gccld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccld/Makefile" ;;
27279 "tools/llvm-bcanalyzer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-bcanalyzer/Makefile" ;;
27280 "tools/llc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llc/Makefile" ;;
27281 "tools/llee/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llee/Makefile" ;;
27282 "tools/lli/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/lli/Makefile" ;;
27283 "tools/llvm-ar/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ar/Makefile" ;;
27284 "tools/llvm-as/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-as/Makefile" ;;
27285 "tools/llvm-db/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-db/Makefile" ;;
27286 "tools/llvm-dis/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-dis/Makefile" ;;
27287 "tools/llvm-link/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-link/Makefile" ;;
27288 "tools/llvm-nm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-nm/Makefile" ;;
27289 "tools/llvm-prof/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-prof/Makefile" ;;
27290 "tools/opt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/opt/Makefile" ;;
27291 "tools/llvm-ld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ld/Makefile" ;;
27292 "tools/llvm-stub/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-stub/Makefile" ;;
27293 "runtime/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/Makefile" ;;
27294 "runtime/GC/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GC/Makefile" ;;
27295 "runtime/GC/SemiSpace/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GC/SemiSpace/Makefile" ;;
27296 "runtime/GCCLibraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/Makefile" ;;
27297 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/crtend/Makefile" ;;
27298 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libc/Makefile" ;;
27299 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libcurses/Makefile" ;;
27300 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libg/Makefile" ;;
27301 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libgcc/Makefile" ;;
27302 "runtime/GCCLibraries/libgdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libgdbm/Makefile" ;;
27303 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libm/Makefile" ;;
27304 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libmalloc/Makefile" ;;
27305 "runtime/GCCLibraries/libpthread/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libpthread/Makefile" ;;
27306 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libtermcap/Makefile" ;;
27307 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libucb/Makefile" ;;
27308 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libutempter/Makefile" ;;
27309 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/GCCLibraries/libutil/Makefile" ;;
27310 "runtime/libdummy/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/libdummy/Makefile" ;;
27311 "runtime/libpng/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/libpng/Makefile" ;;
27312 "runtime/libprofile/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/libprofile/Makefile" ;;
27313 "runtime/libtrace/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/libtrace/Makefile" ;;
27314 "runtime/zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES runtime/zlib/Makefile" ;;
27315 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_platform_type" ;;
27316 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27317 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
27318 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
27319 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
27320 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
27321 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
27322 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
27323 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27324 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27325 { (exit 1); exit 1; }; };;
27329 # If the user did not use the arguments to specify the items to instantiate,
27330 # then the envvar interface is used. Set only those that are not.
27331 # We use the long form for the default assignment because of an extremely
27332 # bizarre bug on SunOS 4.1.3.
27333 if $ac_need_defaults; then
27334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27336 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27337 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27340 # Have a temporary directory for convenience. Make it in the build tree
27341 # simply because there is no reason to put it here, and in addition,
27342 # creating and moving files from /tmp can sometimes cause problems.
27343 # Create a temporary directory, and hook for its removal unless debugging.
27346 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27347 trap '{ (exit 1); exit 1; }' 1 2 13 15
27350 # Create a (secure) tmp directory for tmp files.
27353 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27354 test -n "$tmp" && test -d "$tmp"
27357 tmp=./confstat$$-$RANDOM
27358 (umask 077 && mkdir $tmp)
27361 echo "$me: cannot create a temporary directory in ." >&2
27362 { (exit 1); exit 1; }
27367 cat >>$CONFIG_STATUS <<_ACEOF
27370 # CONFIG_FILES section.
27373 # No need to generate the scripts if there are no CONFIG_FILES.
27374 # This happens for instance when ./config.status config.h
27375 if test -n "\$CONFIG_FILES"; then
27376 # Protect against being on the right side of a sed subst in config.status.
27377 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27378 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27379 s,@SHELL@,$SHELL,;t t
27380 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27381 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27382 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27383 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27384 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27385 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27386 s,@exec_prefix@,$exec_prefix,;t t
27387 s,@prefix@,$prefix,;t t
27388 s,@program_transform_name@,$program_transform_name,;t t
27389 s,@bindir@,$bindir,;t t
27390 s,@sbindir@,$sbindir,;t t
27391 s,@libexecdir@,$libexecdir,;t t
27392 s,@datadir@,$datadir,;t t
27393 s,@sysconfdir@,$sysconfdir,;t t
27394 s,@sharedstatedir@,$sharedstatedir,;t t
27395 s,@localstatedir@,$localstatedir,;t t
27396 s,@libdir@,$libdir,;t t
27397 s,@includedir@,$includedir,;t t
27398 s,@oldincludedir@,$oldincludedir,;t t
27399 s,@infodir@,$infodir,;t t
27400 s,@mandir@,$mandir,;t t
27401 s,@build_alias@,$build_alias,;t t
27402 s,@host_alias@,$host_alias,;t t
27403 s,@target_alias@,$target_alias,;t t
27404 s,@DEFS@,$DEFS,;t t
27405 s,@ECHO_C@,$ECHO_C,;t t
27406 s,@ECHO_N@,$ECHO_N,;t t
27407 s,@ECHO_T@,$ECHO_T,;t t
27408 s,@LIBS@,$LIBS,;t t
27409 s,@build@,$build,;t t
27410 s,@build_cpu@,$build_cpu,;t t
27411 s,@build_vendor@,$build_vendor,;t t
27412 s,@build_os@,$build_os,;t t
27413 s,@host@,$host,;t t
27414 s,@host_cpu@,$host_cpu,;t t
27415 s,@host_vendor@,$host_vendor,;t t
27416 s,@host_os@,$host_os,;t t
27417 s,@target@,$target,;t t
27418 s,@target_cpu@,$target_cpu,;t t
27419 s,@target_vendor@,$target_vendor,;t t
27420 s,@target_os@,$target_os,;t t
27421 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27422 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27423 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27424 s,@CYGPATH_W@,$CYGPATH_W,;t t
27425 s,@PACKAGE@,$PACKAGE,;t t
27426 s,@VERSION@,$VERSION,;t t
27427 s,@ACLOCAL@,$ACLOCAL,;t t
27428 s,@AUTOCONF@,$AUTOCONF,;t t
27429 s,@AUTOMAKE@,$AUTOMAKE,;t t
27430 s,@AUTOHEADER@,$AUTOHEADER,;t t
27431 s,@MAKEINFO@,$MAKEINFO,;t t
27432 s,@install_sh@,$install_sh,;t t
27433 s,@STRIP@,$STRIP,;t t
27434 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27435 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27436 s,@mkdir_p@,$mkdir_p,;t t
27438 s,@SET_MAKE@,$SET_MAKE,;t t
27439 s,@am__leading_dot@,$am__leading_dot,;t t
27440 s,@AMTAR@,$AMTAR,;t t
27441 s,@am__tar@,$am__tar,;t t
27442 s,@am__untar@,$am__untar,;t t
27443 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
27444 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
27445 s,@ENABLE_PROFILED@,$ENABLE_PROFILED,;t t
27446 s,@BUILDMODE@,$BUILDMODE,;t t
27449 s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
27450 s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
27451 s,@ARCH_SPARC_TRUE@,$ARCH_SPARC_TRUE,;t t
27452 s,@ARCH_SPARC_FALSE@,$ARCH_SPARC_FALSE,;t t
27453 s,@ARCH_PPC_TRUE@,$ARCH_PPC_TRUE,;t t
27454 s,@ARCH_PPC_FALSE@,$ARCH_PPC_FALSE,;t t
27455 s,@ARCH_UNKNOWN_TRUE@,$ARCH_UNKNOWN_TRUE,;t t
27456 s,@ARCH_UNKNOWN_FALSE@,$ARCH_UNKNOWN_FALSE,;t t
27457 s,@ARCH@,$ARCH,;t t
27458 s,@ENDIAN@,$ENDIAN,;t t
27460 s,@CFLAGS@,$CFLAGS,;t t
27461 s,@LDFLAGS@,$LDFLAGS,;t t
27462 s,@CPPFLAGS@,$CPPFLAGS,;t t
27463 s,@ac_ct_CC@,$ac_ct_CC,;t t
27464 s,@EXEEXT@,$EXEEXT,;t t
27465 s,@OBJEXT@,$OBJEXT,;t t
27466 s,@DEPDIR@,$DEPDIR,;t t
27467 s,@am__include@,$am__include,;t t
27468 s,@am__quote@,$am__quote,;t t
27469 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27470 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27471 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27472 s,@CCDEPMODE@,$CCDEPMODE,;t t
27473 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27474 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27476 s,@CXXFLAGS@,$CXXFLAGS,;t t
27477 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27478 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27479 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27480 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27483 s,@LEXLIB@,$LEXLIB,;t t
27484 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27485 s,@FLEX@,$FLEX,;t t
27486 s,@YACC@,$YACC,;t t
27487 s,@BISON@,$BISON,;t t
27488 s,@EGREP@,$EGREP,;t t
27489 s,@LN_S@,$LN_S,;t t
27490 s,@ECHO@,$ECHO,;t t
27492 s,@ac_ct_AR@,$ac_ct_AR,;t t
27493 s,@RANLIB@,$RANLIB,;t t
27494 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27495 s,@CXXCPP@,$CXXCPP,;t t
27497 s,@FFLAGS@,$FFLAGS,;t t
27498 s,@ac_ct_F77@,$ac_ct_F77,;t t
27499 s,@LIBTOOL@,$LIBTOOL,;t t
27501 s,@ETAGS@,$ETAGS,;t t
27502 s,@PYTHON@,$PYTHON,;t t
27503 s,@QMTEST@,$QMTEST,;t t
27504 s,@ifGNUmake@,$ifGNUmake,;t t
27505 s,@LLVMCC1@,$LLVMCC1,;t t
27506 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
27507 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
27508 s,@ALLOCA@,$ALLOCA,;t t
27509 s,@MMAP_FILE@,$MMAP_FILE,;t t
27510 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
27511 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
27512 s,@SHLIBEXT@,$SHLIBEXT,;t t
27513 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
27514 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
27515 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
27516 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
27517 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
27518 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
27519 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
27520 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
27521 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
27522 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
27523 s,@subdirs@,$subdirs,;t t
27524 s,@LIBOBJS@,$LIBOBJS,;t t
27525 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27530 cat >>$CONFIG_STATUS <<\_ACEOF
27531 # Split the substitutions into bite-sized pieces for seds with
27532 # small command number limits, like on Digital OSF/1 and HP-UX.
27533 ac_max_sed_lines=48
27534 ac_sed_frag=1 # Number of current file.
27535 ac_beg=1 # First line for current file.
27536 ac_end=$ac_max_sed_lines # Line after last line for current file.
27539 while $ac_more_lines; do
27540 if test $ac_beg -gt 1; then
27541 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27543 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27545 if test ! -s $tmp/subs.frag; then
27546 ac_more_lines=false
27548 # The purpose of the label and of the branching condition is to
27549 # speed up the sed processing (if there are no `@' at all, there
27550 # is no need to browse any of the substitutions).
27551 # These are the two extra sed commands mentioned above.
27553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27554 if test -z "$ac_sed_cmds"; then
27555 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27557 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27559 ac_sed_frag=`expr $ac_sed_frag + 1`
27561 ac_end=`expr $ac_end + $ac_max_sed_lines`
27564 if test -z "$ac_sed_cmds"; then
27567 fi # test -n "$CONFIG_FILES"
27570 cat >>$CONFIG_STATUS <<\_ACEOF
27571 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27574 - | *:- | *:-:* ) # input from stdin
27576 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27577 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27578 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27579 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27580 * ) ac_file_in=$ac_file.in ;;
27583 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27584 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27586 X"$ac_file" : 'X\(//\)[^/]' \| \
27587 X"$ac_file" : 'X\(//\)$' \| \
27588 X"$ac_file" : 'X\(/\)' \| \
27589 . : '\(.\)' 2>/dev/null ||
27591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27593 /^X\(\/\/\)$/{ s//\1/; q; }
27594 /^X\(\/\).*/{ s//\1/; q; }
27596 { if $as_mkdir_p; then
27601 while test ! -d "$as_dir"; do
27602 as_dirs="$as_dir $as_dirs"
27603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27605 X"$as_dir" : 'X\(//\)[^/]' \| \
27606 X"$as_dir" : 'X\(//\)$' \| \
27607 X"$as_dir" : 'X\(/\)' \| \
27608 . : '\(.\)' 2>/dev/null ||
27610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27612 /^X\(\/\/\)$/{ s//\1/; q; }
27613 /^X\(\/\).*/{ s//\1/; q; }
27616 test ! -n "$as_dirs" || mkdir $as_dirs
27617 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27619 { (exit 1); exit 1; }; }; }
27623 if test "$ac_dir" != .; then
27624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27625 # A "../" for each directory in $ac_dir_suffix.
27626 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27628 ac_dir_suffix= ac_top_builddir=
27632 .) # No --srcdir option. We are building in place.
27634 if test -z "$ac_top_builddir"; then
27637 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27639 [\\/]* | ?:[\\/]* ) # Absolute path.
27640 ac_srcdir=$srcdir$ac_dir_suffix;
27641 ac_top_srcdir=$srcdir ;;
27642 *) # Relative path.
27643 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27644 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27647 # Do not use `cd foo && pwd` to compute absolute paths, because
27648 # the directories may not exist.
27650 .) ac_abs_builddir="$ac_dir";;
27653 .) ac_abs_builddir=`pwd`;;
27654 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27655 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27658 case $ac_abs_builddir in
27659 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27661 case ${ac_top_builddir}. in
27662 .) ac_abs_top_builddir=$ac_abs_builddir;;
27663 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27664 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27667 case $ac_abs_builddir in
27668 .) ac_abs_srcdir=$ac_srcdir;;
27671 .) ac_abs_srcdir=$ac_abs_builddir;;
27672 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27673 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27676 case $ac_abs_builddir in
27677 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27679 case $ac_top_srcdir in
27680 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27681 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27682 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27689 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27692 if test x"$ac_file" != x-; then
27693 { echo "$as_me:$LINENO: creating $ac_file" >&5
27694 echo "$as_me: creating $ac_file" >&6;}
27697 # Let's still pretend it is `configure' which instantiates (i.e., don't
27698 # use $as_me), people would be surprised to read:
27699 # /* config.h. Generated by config.status. */
27700 if test x"$ac_file" = x-; then
27703 configure_input="$ac_file. "
27705 configure_input=$configure_input"Generated from `echo $ac_file_in |
27706 sed 's,.*/,,'` by configure."
27708 # First look for the input files in the build tree, otherwise in the
27710 ac_file_inputs=`IFS=:
27711 for f in $ac_file_in; do
27713 -) echo $tmp/stdin ;;
27715 # Absolute (can't be DOS-style, as IFS=:)
27716 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27717 echo "$as_me: error: cannot find input file: $f" >&2;}
27718 { (exit 1); exit 1; }; }
27721 if test -f "$f"; then
27724 elif test -f "$srcdir/$f"; then
27729 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27730 echo "$as_me: error: cannot find input file: $f" >&2;}
27731 { (exit 1); exit 1; }; }
27734 done` || { (exit 1); exit 1; }
27736 cat >>$CONFIG_STATUS <<_ACEOF
27740 cat >>$CONFIG_STATUS <<\_ACEOF
27742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27743 s,@configure_input@,$configure_input,;t t
27744 s,@srcdir@,$ac_srcdir,;t t
27745 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27746 s,@top_srcdir@,$ac_top_srcdir,;t t
27747 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27748 s,@builddir@,$ac_builddir,;t t
27749 s,@abs_builddir@,$ac_abs_builddir,;t t
27750 s,@top_builddir@,$ac_top_builddir,;t t
27751 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27752 s,@INSTALL@,$ac_INSTALL,;t t
27753 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27755 if test x"$ac_file" != x-; then
27756 mv $tmp/out $ac_file
27764 cat >>$CONFIG_STATUS <<\_ACEOF
27767 # CONFIG_HEADER section.
27770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27773 # ac_d sets the value in "#define NAME VALUE" lines.
27774 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27775 ac_dB='[ ].*$,\1#\2'
27778 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27779 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27780 ac_uB='$,\1#\2define\3'
27784 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27787 - | *:- | *:-:* ) # input from stdin
27789 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27791 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27793 * ) ac_file_in=$ac_file.in ;;
27796 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27797 echo "$as_me: creating $ac_file" >&6;}
27799 # First look for the input files in the build tree, otherwise in the
27801 ac_file_inputs=`IFS=:
27802 for f in $ac_file_in; do
27804 -) echo $tmp/stdin ;;
27806 # Absolute (can't be DOS-style, as IFS=:)
27807 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27808 echo "$as_me: error: cannot find input file: $f" >&2;}
27809 { (exit 1); exit 1; }; }
27810 # Do quote $f, to prevent DOS paths from being IFS'd.
27813 if test -f "$f"; then
27816 elif test -f "$srcdir/$f"; then
27821 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27822 echo "$as_me: error: cannot find input file: $f" >&2;}
27823 { (exit 1); exit 1; }; }
27826 done` || { (exit 1); exit 1; }
27827 # Remove the trailing spaces.
27828 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27832 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27833 # `conftest.undefs', that substitutes the proper values into
27834 # config.h.in to produce config.h. The first handles `#define'
27835 # templates, and the second `#undef' templates.
27836 # And first: Protect against being on the right side of a sed subst in
27837 # config.status. Protect against being in an unquoted here document
27838 # in config.status.
27839 rm -f conftest.defines conftest.undefs
27840 # Using a here document instead of a string reduces the quoting nightmare.
27841 # Putting comments in sed scripts is not portable.
27843 # `end' is used to avoid that the second main sed command (meant for
27844 # 0-ary CPP macros) applies to n-ary macro definitions.
27845 # See the Autoconf documentation for `clear'.
27846 cat >confdef2sed.sed <<\_ACEOF
27851 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27853 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27856 # If some macros were called several times there might be several times
27857 # the same #defines, which is useless. Nevertheless, we may not want to
27858 # sort them, since we want the *last* AC-DEFINE to be honored.
27859 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27860 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27861 rm -f confdef2sed.sed
27863 # This sed command replaces #undef with comments. This is necessary, for
27864 # example, in the case of _POSIX_SOURCE, which is predefined and required
27865 # on some systems where configure will not decide to define it.
27866 cat >>conftest.undefs <<\_ACEOF
27867 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27870 # Break up conftest.defines because some shells have a limit on the size
27871 # of here documents, and old seds have small limits too (100 cmds).
27872 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27873 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27874 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27875 echo ' :' >>$CONFIG_STATUS
27876 rm -f conftest.tail
27877 while grep . conftest.defines >/dev/null
27879 # Write a limited-size here document to $tmp/defines.sed.
27880 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27881 # Speed up: don't consider the non `#define' lines.
27882 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27883 # Work around the forget-to-reset-the-flag bug.
27884 echo 't clr' >>$CONFIG_STATUS
27885 echo ': clr' >>$CONFIG_STATUS
27886 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27888 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27890 mv $tmp/out $tmp/in
27892 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27893 rm -f conftest.defines
27894 mv conftest.tail conftest.defines
27896 rm -f conftest.defines
27897 echo ' fi # grep' >>$CONFIG_STATUS
27898 echo >>$CONFIG_STATUS
27900 # Break up conftest.undefs because some shells have a limit on the size
27901 # of here documents, and old seds have small limits too (100 cmds).
27902 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27903 rm -f conftest.tail
27904 while grep . conftest.undefs >/dev/null
27906 # Write a limited-size here document to $tmp/undefs.sed.
27907 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27908 # Speed up: don't consider the non `#undef'
27909 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27910 # Work around the forget-to-reset-the-flag bug.
27911 echo 't clr' >>$CONFIG_STATUS
27912 echo ': clr' >>$CONFIG_STATUS
27913 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27915 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27917 mv $tmp/out $tmp/in
27919 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27920 rm -f conftest.undefs
27921 mv conftest.tail conftest.undefs
27923 rm -f conftest.undefs
27925 cat >>$CONFIG_STATUS <<\_ACEOF
27926 # Let's still pretend it is `configure' which instantiates (i.e., don't
27927 # use $as_me), people would be surprised to read:
27928 # /* config.h. Generated by config.status. */
27929 if test x"$ac_file" = x-; then
27930 echo "/* Generated by configure. */" >$tmp/config.h
27932 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27934 cat $tmp/in >>$tmp/config.h
27936 if test x"$ac_file" != x-; then
27937 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27938 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27939 echo "$as_me: $ac_file is unchanged" >&6;}
27941 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27943 X"$ac_file" : 'X\(//\)[^/]' \| \
27944 X"$ac_file" : 'X\(//\)$' \| \
27945 X"$ac_file" : 'X\(/\)' \| \
27946 . : '\(.\)' 2>/dev/null ||
27948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27950 /^X\(\/\/\)$/{ s//\1/; q; }
27951 /^X\(\/\).*/{ s//\1/; q; }
27953 { if $as_mkdir_p; then
27958 while test ! -d "$as_dir"; do
27959 as_dirs="$as_dir $as_dirs"
27960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27962 X"$as_dir" : 'X\(//\)[^/]' \| \
27963 X"$as_dir" : 'X\(//\)$' \| \
27964 X"$as_dir" : 'X\(/\)' \| \
27965 . : '\(.\)' 2>/dev/null ||
27967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27969 /^X\(\/\/\)$/{ s//\1/; q; }
27970 /^X\(\/\).*/{ s//\1/; q; }
27973 test ! -n "$as_dirs" || mkdir $as_dirs
27974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27976 { (exit 1); exit 1; }; }; }
27979 mv $tmp/config.h $ac_file
27983 rm -f $tmp/config.h
27985 # Compute $ac_file's index in $config_headers.
27987 for _am_header in $config_headers :; do
27988 case $_am_header in
27989 $ac_file | $ac_file:* )
27992 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27995 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27996 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27997 X$ac_file : 'X\(//\)[^/]' \| \
27998 X$ac_file : 'X\(//\)$' \| \
27999 X$ac_file : 'X\(/\)' \| \
28000 . : '\(.\)' 2>/dev/null ||
28002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28004 /^X\(\/\/\)$/{ s//\1/; q; }
28005 /^X\(\/\).*/{ s//\1/; q; }
28006 s/.*/./; q'`/stamp-h$_am_stamp_count
28009 cat >>$CONFIG_STATUS <<\_ACEOF
28012 # CONFIG_LINKS section.
28015 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
28016 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28017 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28019 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
28020 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
28022 if test ! -r $srcdir/$ac_source; then
28023 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28024 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28025 { (exit 1); exit 1; }; }
28029 # Make relative symlinks.
28030 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
28031 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28032 X"$ac_dest" : 'X\(//\)[^/]' \| \
28033 X"$ac_dest" : 'X\(//\)$' \| \
28034 X"$ac_dest" : 'X\(/\)' \| \
28035 . : '\(.\)' 2>/dev/null ||
28037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28039 /^X\(\/\/\)$/{ s//\1/; q; }
28040 /^X\(\/\).*/{ s//\1/; q; }
28042 { if $as_mkdir_p; then
28043 mkdir -p "$ac_dest_dir"
28045 as_dir="$ac_dest_dir"
28047 while test ! -d "$as_dir"; do
28048 as_dirs="$as_dir $as_dirs"
28049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28051 X"$as_dir" : 'X\(//\)[^/]' \| \
28052 X"$as_dir" : 'X\(//\)$' \| \
28053 X"$as_dir" : 'X\(/\)' \| \
28054 . : '\(.\)' 2>/dev/null ||
28056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28058 /^X\(\/\/\)$/{ s//\1/; q; }
28059 /^X\(\/\).*/{ s//\1/; q; }
28062 test ! -n "$as_dirs" || mkdir $as_dirs
28063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
28064 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
28065 { (exit 1); exit 1; }; }; }
28069 if test "$ac_dest_dir" != .; then
28070 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
28071 # A "../" for each directory in $ac_dir_suffix.
28072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28074 ac_dir_suffix= ac_top_builddir=
28078 .) # No --srcdir option. We are building in place.
28080 if test -z "$ac_top_builddir"; then
28083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28085 [\\/]* | ?:[\\/]* ) # Absolute path.
28086 ac_srcdir=$srcdir$ac_dir_suffix;
28087 ac_top_srcdir=$srcdir ;;
28088 *) # Relative path.
28089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28093 # Do not use `cd foo && pwd` to compute absolute paths, because
28094 # the directories may not exist.
28096 .) ac_abs_builddir="$ac_dest_dir";;
28098 case "$ac_dest_dir" in
28099 .) ac_abs_builddir=`pwd`;;
28100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
28101 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
28104 case $ac_abs_builddir in
28105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28107 case ${ac_top_builddir}. in
28108 .) ac_abs_top_builddir=$ac_abs_builddir;;
28109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28113 case $ac_abs_builddir in
28114 .) ac_abs_srcdir=$ac_srcdir;;
28117 .) ac_abs_srcdir=$ac_abs_builddir;;
28118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28122 case $ac_abs_builddir in
28123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28125 case $ac_top_srcdir in
28126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28134 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28135 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
28138 # Try a symlink, then a hard link, then a copy.
28139 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
28140 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
28141 cp -p $srcdir/$ac_source $ac_dest ||
28142 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
28143 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
28144 { (exit 1); exit 1; }; }
28147 cat >>$CONFIG_STATUS <<\_ACEOF
28150 # CONFIG_COMMANDS section.
28152 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28153 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28154 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28155 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28156 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28157 X"$ac_dest" : 'X\(//\)[^/]' \| \
28158 X"$ac_dest" : 'X\(//\)$' \| \
28159 X"$ac_dest" : 'X\(/\)' \| \
28160 . : '\(.\)' 2>/dev/null ||
28162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28164 /^X\(\/\/\)$/{ s//\1/; q; }
28165 /^X\(\/\).*/{ s//\1/; q; }
28167 { if $as_mkdir_p; then
28172 while test ! -d "$as_dir"; do
28173 as_dirs="$as_dir $as_dirs"
28174 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28176 X"$as_dir" : 'X\(//\)[^/]' \| \
28177 X"$as_dir" : 'X\(//\)$' \| \
28178 X"$as_dir" : 'X\(/\)' \| \
28179 . : '\(.\)' 2>/dev/null ||
28181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28183 /^X\(\/\/\)$/{ s//\1/; q; }
28184 /^X\(\/\).*/{ s//\1/; q; }
28187 test ! -n "$as_dirs" || mkdir $as_dirs
28188 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28189 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28190 { (exit 1); exit 1; }; }; }
28194 if test "$ac_dir" != .; then
28195 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28196 # A "../" for each directory in $ac_dir_suffix.
28197 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28199 ac_dir_suffix= ac_top_builddir=
28203 .) # No --srcdir option. We are building in place.
28205 if test -z "$ac_top_builddir"; then
28208 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28210 [\\/]* | ?:[\\/]* ) # Absolute path.
28211 ac_srcdir=$srcdir$ac_dir_suffix;
28212 ac_top_srcdir=$srcdir ;;
28213 *) # Relative path.
28214 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28215 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28218 # Do not use `cd foo && pwd` to compute absolute paths, because
28219 # the directories may not exist.
28221 .) ac_abs_builddir="$ac_dir";;
28224 .) ac_abs_builddir=`pwd`;;
28225 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28226 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28229 case $ac_abs_builddir in
28230 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28232 case ${ac_top_builddir}. in
28233 .) ac_abs_top_builddir=$ac_abs_builddir;;
28234 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28235 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28238 case $ac_abs_builddir in
28239 .) ac_abs_srcdir=$ac_srcdir;;
28242 .) ac_abs_srcdir=$ac_abs_builddir;;
28243 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28244 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28247 case $ac_abs_builddir in
28248 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28250 case $ac_top_srcdir in
28251 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28252 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28253 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28258 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28259 echo "$as_me: executing $ac_dest commands" >&6;}
28261 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28262 # Strip MF so we end up with the name of the file.
28263 mf=`echo "$mf" | sed -e 's/:.*$//'`
28264 # Check whether this is an Automake generated Makefile or not.
28265 # We used to match only the files named `Makefile.in', but
28266 # some people rename them; so instead we look at the file content.
28267 # Grep'ing the first line is not enough: some people post-process
28268 # each Makefile.in and add a new line on top of each file to say so.
28269 # So let's grep whole file.
28270 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28271 dirpart=`(dirname "$mf") 2>/dev/null ||
28272 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28273 X"$mf" : 'X\(//\)[^/]' \| \
28274 X"$mf" : 'X\(//\)$' \| \
28275 X"$mf" : 'X\(/\)' \| \
28276 . : '\(.\)' 2>/dev/null ||
28278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28280 /^X\(\/\/\)$/{ s//\1/; q; }
28281 /^X\(\/\).*/{ s//\1/; q; }
28286 # Extract the definition of DEPDIR, am__include, and am__quote
28287 # from the Makefile without running `make'.
28288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28289 test -z "$DEPDIR" && continue
28290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28291 test -z "am__include" && continue
28292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28293 # When using ansi2knr, U may be empty or an underscore; expand it
28294 U=`sed -n 's/^U = //p' < "$mf"`
28295 # Find all dependency output files, they are included files with
28296 # $(DEPDIR) in their names. We invoke sed twice because it is the
28297 # simplest approach to changing $(DEPDIR) to its actual value in the
28299 for file in `sed -n "
28300 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28301 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28302 # Make sure the directory exists.
28303 test -f "$dirpart/$file" && continue
28304 fdir=`(dirname "$file") 2>/dev/null ||
28305 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28306 X"$file" : 'X\(//\)[^/]' \| \
28307 X"$file" : 'X\(//\)$' \| \
28308 X"$file" : 'X\(/\)' \| \
28309 . : '\(.\)' 2>/dev/null ||
28311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28313 /^X\(\/\/\)$/{ s//\1/; q; }
28314 /^X\(\/\).*/{ s//\1/; q; }
28316 { if $as_mkdir_p; then
28317 mkdir -p $dirpart/$fdir
28319 as_dir=$dirpart/$fdir
28321 while test ! -d "$as_dir"; do
28322 as_dirs="$as_dir $as_dirs"
28323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28325 X"$as_dir" : 'X\(//\)[^/]' \| \
28326 X"$as_dir" : 'X\(//\)$' \| \
28327 X"$as_dir" : 'X\(/\)' \| \
28328 . : '\(.\)' 2>/dev/null ||
28330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28332 /^X\(\/\/\)$/{ s//\1/; q; }
28333 /^X\(\/\).*/{ s//\1/; q; }
28336 test ! -n "$as_dirs" || mkdir $as_dirs
28337 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28338 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28339 { (exit 1); exit 1; }; }; }
28341 # echo "creating $dirpart/$file"
28342 echo '# dummy' > "$dirpart/$file"
28350 cat >>$CONFIG_STATUS <<\_ACEOF
28352 { (exit 0); exit 0; }
28354 chmod +x $CONFIG_STATUS
28355 ac_clean_files=$ac_clean_files_save
28358 # configure is writing to config.log, and then calls config.status.
28359 # config.status does its own redirection, appending to config.log.
28360 # Unfortunately, on DOS this fails, as config.log is still kept open
28361 # by configure, so config.status won't be able to write to it; its
28362 # output is simply discarded. So we exec the FD to /dev/null,
28363 # effectively closing config.log, so it can be properly (re)opened and
28364 # appended to by config.status. When coming back to configure, we
28365 # need to make the FD available again.
28366 if test "$no_create" != yes; then
28368 ac_config_status_args=
28369 test "$silent" = yes &&
28370 ac_config_status_args="$ac_config_status_args --quiet"
28372 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28374 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28375 # would make configure fail if this is the last instruction.
28376 $ac_cs_success || { (exit 1); exit 1; }
28380 # CONFIG_SUBDIRS section.
28382 if test "$no_recursion" != yes; then
28384 # Remove --cache-file and --srcdir arguments so they do not pile up.
28385 ac_sub_configure_args=
28387 for ac_arg in $ac_configure_args; do
28388 if test -n "$ac_prev"; then
28393 -cache-file | --cache-file | --cache-fil | --cache-fi \
28394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28395 ac_prev=cache_file ;;
28396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28400 --config-cache | -C)
28402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28406 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28408 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28410 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
28414 # Always prepend --prefix to ensure using the same prefix
28415 # in subdir configurations.
28416 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
28419 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28421 # Do not complain, so a configure script can configure whichever
28422 # parts of a large source tree are present.
28423 test -d $srcdir/$ac_dir || continue
28425 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
28426 echo "$as_me: configuring in $ac_dir" >&6;}
28427 { if $as_mkdir_p; then
28432 while test ! -d "$as_dir"; do
28433 as_dirs="$as_dir $as_dirs"
28434 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28436 X"$as_dir" : 'X\(//\)[^/]' \| \
28437 X"$as_dir" : 'X\(//\)$' \| \
28438 X"$as_dir" : 'X\(/\)' \| \
28439 . : '\(.\)' 2>/dev/null ||
28441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28443 /^X\(\/\/\)$/{ s//\1/; q; }
28444 /^X\(\/\).*/{ s//\1/; q; }
28447 test ! -n "$as_dirs" || mkdir $as_dirs
28448 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28449 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28450 { (exit 1); exit 1; }; }; }
28454 if test "$ac_dir" != .; then
28455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28456 # A "../" for each directory in $ac_dir_suffix.
28457 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28459 ac_dir_suffix= ac_top_builddir=
28463 .) # No --srcdir option. We are building in place.
28465 if test -z "$ac_top_builddir"; then
28468 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28470 [\\/]* | ?:[\\/]* ) # Absolute path.
28471 ac_srcdir=$srcdir$ac_dir_suffix;
28472 ac_top_srcdir=$srcdir ;;
28473 *) # Relative path.
28474 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28475 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28478 # Do not use `cd foo && pwd` to compute absolute paths, because
28479 # the directories may not exist.
28481 .) ac_abs_builddir="$ac_dir";;
28484 .) ac_abs_builddir=`pwd`;;
28485 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28486 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28489 case $ac_abs_builddir in
28490 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28492 case ${ac_top_builddir}. in
28493 .) ac_abs_top_builddir=$ac_abs_builddir;;
28494 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28495 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28498 case $ac_abs_builddir in
28499 .) ac_abs_srcdir=$ac_srcdir;;
28502 .) ac_abs_srcdir=$ac_abs_builddir;;
28503 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28504 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28507 case $ac_abs_builddir in
28508 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28510 case $ac_top_srcdir in
28511 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28512 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28513 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28520 # Check for guested configure; otherwise get Cygnus style configure.
28521 if test -f $ac_srcdir/configure.gnu; then
28522 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
28523 elif test -f $ac_srcdir/configure; then
28524 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
28525 elif test -f $ac_srcdir/configure.in; then
28526 ac_sub_configure=$ac_configure
28528 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28533 # The recursion is here.
28534 if test -n "$ac_sub_configure"; then
28535 # Make the cache file name correct relative to the subdirectory.
28536 case $cache_file in
28537 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28538 *) # Relative path.
28539 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
28542 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28543 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28544 # The eval makes quoting arguments work.
28545 eval $ac_sub_configure $ac_sub_configure_args \
28546 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
28547 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28548 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28549 { (exit 1); exit 1; }; }
28558 if test $bzip2_found -ne 1 ; then
28559 if test $zlib_found -ne 1 ; then
28560 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
28561 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
28562 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
28563 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
28564 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and re-run configure." >&5
28565 echo "$as_me: WARNING: *** To correct, install the libraries and re-run configure." >&2;}
28569 if test $llvmgccwarn = yes
28571 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
28572 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
28573 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
28574 echo "$as_me: WARNING: ***** appear to be working." >&2;}
28575 { echo "$as_me:$LINENO: WARNING: ***** " >&5
28576 echo "$as_me: WARNING: ***** " >&2;}
28577 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
28578 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
28579 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
28580 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
28581 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
28582 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}