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
4115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_CC+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test -n "$CC"; then
4123 ac_cv_prog_CC="$CC" # Let the user override the test.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 if test -n "$CC"; then
4143 echo "$as_me:$LINENO: result: $CC" >&5
4144 echo "${ECHO_T}$CC" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4150 test -n "$CC" && break
4153 if test -z "$CC"; then
4157 # Extract the first word of "$ac_prog", so it can be a program name with args.
4158 set dummy $ac_prog; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 if test -n "$ac_ct_CC"; then
4165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_CC="$ac_prog"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4184 if test -n "$ac_ct_CC"; then
4185 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4186 echo "${ECHO_T}$ac_ct_CC" >&6
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4192 test -n "$ac_ct_CC" && break
4199 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4200 See \`config.log' for more details." >&5
4201 echo "$as_me: error: no acceptable C compiler found in \$PATH
4202 See \`config.log' for more details." >&2;}
4203 { (exit 1); exit 1; }; }
4205 # Provide some information about the compiler.
4206 echo "$as_me:$LINENO:" \
4207 "checking for C compiler version" >&5
4208 ac_compiler=`set X $ac_compile; echo $2`
4209 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4210 (eval $ac_compiler --version </dev/null >&5) 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }
4214 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4215 (eval $ac_compiler -v </dev/null >&5) 2>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }
4219 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4220 (eval $ac_compiler -V </dev/null >&5) 2>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }
4225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4283 GCC=`test $ac_compiler_gnu = yes && echo yes`
4284 ac_test_CFLAGS=${CFLAGS+set}
4285 ac_save_CFLAGS=$CFLAGS
4287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4289 if test "${ac_cv_prog_cc_g+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>conftest.er1
4311 grep -v '^ *+' conftest.er1 >conftest.err
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } &&
4316 { ac_try='test -z "$ac_c_werror_flag"
4317 || test ! -s conftest.err'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4340 if test "$ac_test_CFLAGS" = set; then
4341 CFLAGS=$ac_save_CFLAGS
4342 elif test $ac_cv_prog_cc_g = yes; then
4343 if test "$GCC" = yes; then
4349 if test "$GCC" = yes; then
4355 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4356 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4357 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 ac_cv_prog_cc_stdc=no
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4370 #include <sys/types.h>
4371 #include <sys/stat.h>
4372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4373 struct buf { int x; };
4374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4375 static char *e (p, i)
4381 static char *f (char * (*g) (char **, int), char **p, ...)
4386 s = g (p, va_arg (v,int));
4391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4392 function prototypes and stuff, but not '\xHH' hex character constants.
4393 These don't provoke an error unfortunately, instead are silently treated
4394 as 'x'. The following induces an error, until -std1 is added to get
4395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4396 array size at least. It's necessary to write '\x00'==0 to get something
4397 that's true only with -std1. */
4398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4400 int test (int i, double x);
4401 struct s1 {int (*f) (int a);};
4402 struct s2 {int (*f) (double a);};
4403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4414 # Don't try gcc -ansi; that turns off useful extensions and
4415 # breaks some systems' header files.
4416 # AIX -qlanglvl=ansi
4417 # Ultrix and OSF/1 -std1
4418 # HP-UX 10.20 and later -Ae
4419 # HP-UX older versions -Aa -D_HPUX_SOURCE
4420 # SVR4 -Xc -D__EXTENSIONS__
4421 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4423 CC="$ac_save_CC $ac_arg"
4424 rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426 (eval $ac_compile) 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -z "$ac_c_werror_flag"
4434 || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_prog_cc_stdc=$ac_arg
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4453 rm -f conftest.err conftest.$ac_objext
4455 rm -f conftest.$ac_ext conftest.$ac_objext
4460 case "x$ac_cv_prog_cc_stdc" in
4462 echo "$as_me:$LINENO: result: none needed" >&5
4463 echo "${ECHO_T}none needed" >&6 ;;
4465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4466 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4467 CC="$CC $ac_cv_prog_cc_stdc" ;;
4470 # Some people use a C++ compiler to compile C. Since we use `exit',
4471 # in C++ we need to declare it. In case someone uses the same compiler
4472 # for both compiling C and C++ we need to have the C++ compiler decide
4473 # the declaration of exit, since it's the most demanding environment.
4474 cat >conftest.$ac_ext <<_ACEOF
4479 rm -f conftest.$ac_objext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -z "$ac_c_werror_flag"
4489 || test ! -s conftest.err'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; } &&
4495 { ac_try='test -s conftest.$ac_objext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 for ac_declaration in \
4503 'extern "C" void std::exit (int) throw (); using std::exit;' \
4504 'extern "C" void std::exit (int); using std::exit;' \
4505 'extern "C" void exit (int) throw ();' \
4506 'extern "C" void exit (int);' \
4509 cat >conftest.$ac_ext <<_ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag"
4535 || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555 cat >conftest.$ac_ext <<_ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>conftest.er1
4574 grep -v '^ *+' conftest.er1 >conftest.err
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -z "$ac_c_werror_flag"
4580 || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601 if test -n "$ac_declaration"; then
4602 echo '#ifdef __cplusplus' >>confdefs.h
4603 echo $ac_declaration >>confdefs.h
4604 echo '#endif' >>confdefs.h
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 depcc="$CC" am_compiler_list=
4621 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4623 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627 # We make a subdir and do the tests there. Otherwise we can end up
4628 # making bogus files that we don't know about and never remove. For
4629 # instance it was reported that on HP-UX the gcc test will end up
4630 # making a dummy file named `D' -- because `-MD' means `put the output
4633 # Copy depcomp to subdir because otherwise we won't find it if we're
4634 # using a relative directory.
4635 cp "$am_depcomp" conftest.dir
4637 # We will build objects and dependencies in a subdirectory because
4638 # it helps to detect inapplicable dependency modes. For instance
4639 # both Tru64's cc and ICC support -MD to output dependencies as a
4640 # side effect of compilation, but ICC will put the dependencies in
4641 # the current directory while Tru64 will put them in the object
4645 am_cv_CC_dependencies_compiler_type=none
4646 if test "$am_compiler_list" = ""; then
4647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4649 for depmode in $am_compiler_list; do
4650 # Setup a source with many dependencies, because some compilers
4651 # like to wrap large dependency lists on column 80 (with \), and
4652 # we should not choose a depcomp mode which is confused by this.
4654 # We need to recreate these files for each test, as the compiler may
4655 # overwrite some of them when testing with obscure command lines.
4656 # This happens at least with the AIX C compiler.
4658 for i in 1 2 3 4 5 6; do
4659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4661 # Solaris 8's {/usr,}/bin/sh.
4662 touch sub/conftst$i.h
4664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4668 # after this tag, mechanisms are not by side-effect, so they'll
4669 # only be used when explicitly requested
4670 if test "x$enable_dependency_tracking" = xyes; then
4678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4679 # mode. It turns out that the SunPro C++ compiler does not properly
4680 # handle `-M -o', and we need to detect this.
4681 if depmode=$depmode \
4682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4685 >/dev/null 2>conftest.err &&
4686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4689 # icc doesn't choke on unknown options, it will just issue warnings
4690 # or remarks (even with -Werror). So we grep stderr for any message
4691 # that says an option was ignored or not supported.
4692 # When given -MP, icc 7.0 and 7.1 complain thusly:
4693 # icc: Command line warning: ignoring option '-M'; no argument required
4694 # The diagnosis changed in icc 8.0:
4695 # icc: Command line remark: option '-MP' not supported
4696 if (grep 'ignoring option' conftest.err ||
4697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4698 am_cv_CC_dependencies_compiler_type=$depmode
4707 am_cv_CC_dependencies_compiler_type=none
4711 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4712 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4713 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4718 test "x$enable_dependency_tracking" != xno \
4719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4721 am__fastdepCC_FALSE='#'
4723 am__fastdepCC_TRUE='#'
4724 am__fastdepCC_FALSE=
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4735 # On Suns, sometimes $CPP names a directory.
4736 if test -n "$CPP" && test -d "$CPP"; then
4739 if test -z "$CPP"; then
4740 if test "${ac_cv_prog_CPP+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 # Double quotes because CPP needs to be expanded
4744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4747 for ac_c_preproc_warn_flag in '' yes
4749 # Use a header file that comes with gcc, so configuring glibc
4750 # with a fresh cross-compiler works.
4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4762 # include <limits.h>
4764 # include <assert.h>
4768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null; then
4776 if test -s conftest.err; then
4777 ac_cpp_err=$ac_c_preproc_warn_flag
4778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4785 if test -z "$ac_cpp_err"; then
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 # Broken: fails on valid input.
4794 rm -f conftest.err conftest.$ac_ext
4796 # OK, works on sane cases. Now check whether non-existent headers
4797 # can be detected and how.
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 #include <ac_nonexistent.h>
4806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4809 grep -v '^ *+' conftest.er1 >conftest.err
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } >/dev/null; then
4814 if test -s conftest.err; then
4815 ac_cpp_err=$ac_c_preproc_warn_flag
4816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4823 if test -z "$ac_cpp_err"; then
4824 # Broken: success on invalid input.
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 # Passes both tests.
4834 rm -f conftest.err conftest.$ac_ext
4837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838 rm -f conftest.err conftest.$ac_ext
4839 if $ac_preproc_ok; then
4851 echo "$as_me:$LINENO: result: $CPP" >&5
4852 echo "${ECHO_T}$CPP" >&6
4854 for ac_c_preproc_warn_flag in '' yes
4856 # Use a header file that comes with gcc, so configuring glibc
4857 # with a fresh cross-compiler works.
4858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 # <limits.h> exists even on freestanding compilers.
4860 # On the NeXT, cc -E runs the code through the compiler's parser,
4861 # not just through cpp. "Syntax error" is here to catch this case.
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4869 # include <limits.h>
4871 # include <assert.h>
4875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null; then
4883 if test -s conftest.err; then
4884 ac_cpp_err=$ac_c_preproc_warn_flag
4885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4892 if test -z "$ac_cpp_err"; then
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 # Broken: fails on valid input.
4901 rm -f conftest.err conftest.$ac_ext
4903 # OK, works on sane cases. Now check whether non-existent headers
4904 # can be detected and how.
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <ac_nonexistent.h>
4913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4916 grep -v '^ *+' conftest.er1 >conftest.err
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } >/dev/null; then
4921 if test -s conftest.err; then
4922 ac_cpp_err=$ac_c_preproc_warn_flag
4923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4930 if test -z "$ac_cpp_err"; then
4931 # Broken: success on invalid input.
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 # Passes both tests.
4941 rm -f conftest.err conftest.$ac_ext
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then
4949 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4950 See \`config.log' for more details." >&5
4951 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4952 See \`config.log' for more details." >&2;}
4953 { (exit 1); exit 1; }; }
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4963 echo "$as_me:$LINENO: checking " >&5
4964 echo $ECHO_N "checking ... $ECHO_C" >&6
4965 if test "${ac_cv_has_flex+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 for ac_prog in flex lex
4970 # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4974 if test "${ac_cv_prog_LEX+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 if test -n "$LEX"; then
4978 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_LEX="$ac_prog"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 if test -n "$LEX"; then
4998 echo "$as_me:$LINENO: result: $LEX" >&5
4999 echo "${ECHO_T}$LEX" >&6
5001 echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5005 test -n "$LEX" && break
5007 test -n "$LEX" || LEX=":"
5009 if test -z "$LEXLIB"
5011 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5012 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5013 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 ac_check_lib_save_LIBS=$LIBS
5018 cat >conftest.$ac_ext <<_ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5025 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5040 rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5042 (eval $ac_link) 2>conftest.er1
5044 grep -v '^ *+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -z "$ac_c_werror_flag"
5050 || test ! -s conftest.err'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; } &&
5056 { ac_try='test -s conftest$ac_exeext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_lib_fl_yywrap=yes
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 ac_cv_lib_fl_yywrap=no
5069 rm -f conftest.err conftest.$ac_objext \
5070 conftest$ac_exeext conftest.$ac_ext
5071 LIBS=$ac_check_lib_save_LIBS
5073 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5074 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5075 if test $ac_cv_lib_fl_yywrap = yes; then
5078 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5079 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5080 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 ac_check_lib_save_LIBS=$LIBS
5085 cat >conftest.$ac_ext <<_ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5092 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>conftest.er1
5111 grep -v '^ *+' conftest.er1 >conftest.err
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try='test -z "$ac_c_werror_flag"
5117 || test ! -s conftest.err'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; } &&
5123 { ac_try='test -s conftest$ac_exeext'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_lib_l_yywrap=yes
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ac_cv_lib_l_yywrap=no
5136 rm -f conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 LIBS=$ac_check_lib_save_LIBS
5140 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5141 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5142 if test $ac_cv_lib_l_yywrap = yes; then
5150 if test "x$LEX" != "x:"; then
5151 echo "$as_me:$LINENO: checking lex output file root" >&5
5152 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5153 if test "${ac_cv_prog_lex_root+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 # The minimal lex program is just a single line: %%. But some broken lexes
5157 # (Solaris, I think it was) want two %% lines, so accommodate them.
5158 cat >conftest.l <<_ACEOF
5162 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5163 (eval $LEX conftest.l) 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }
5167 if test -f lex.yy.c; then
5168 ac_cv_prog_lex_root=lex.yy
5169 elif test -f lexyy.c; then
5170 ac_cv_prog_lex_root=lexyy
5172 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5173 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5174 { (exit 1); exit 1; }; }
5177 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5178 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5180 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5182 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5183 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5184 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 # POSIX says lex can declare yytext either as a pointer or an array; the
5188 # default is implementation-dependent. Figure out which it is, since
5189 # not all implementations provide the %pointer and %array declarations.
5190 ac_cv_prog_lex_yytext_pointer=no
5191 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5193 LIBS="$LIBS $LEXLIB"
5194 cat >conftest.$ac_ext <<_ACEOF
5195 `cat $LEX_OUTPUT_ROOT.c`
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -z "$ac_c_werror_flag"
5207 || test ! -s conftest.err'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; } &&
5213 { ac_try='test -s conftest$ac_exeext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5219 ac_cv_prog_lex_yytext_pointer=yes
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5225 rm -f conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5228 rm -f "${LEX_OUTPUT_ROOT}.c"
5231 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5232 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5233 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5235 cat >>confdefs.h <<\_ACEOF
5236 #define YYTEXT_POINTER 1
5244 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
5245 echo "${ECHO_T}$ac_cv_has_flex" >&6
5246 if test "$LEX" != "flex"; then
5247 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
5248 echo "$as_me: error: flex not found but required" >&2;}
5249 { (exit 1); exit 1; }; }
5255 echo "$as_me:$LINENO: checking " >&5
5256 echo $ECHO_N "checking ... $ECHO_C" >&6
5257 if test "${ac_cv_has_bison+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 for ac_prog in 'bison -y' byacc
5262 # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266 if test "${ac_cv_prog_YACC+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 if test -n "$YACC"; then
5270 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_YACC="$ac_prog"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 YACC=$ac_cv_prog_YACC
5289 if test -n "$YACC"; then
5290 echo "$as_me:$LINENO: result: $YACC" >&5
5291 echo "${ECHO_T}$YACC" >&6
5293 echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5297 test -n "$YACC" && break
5299 test -n "$YACC" || YACC="yacc"
5303 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
5304 echo "${ECHO_T}$ac_cv_has_bison" >&6
5305 if test "$YACC" != "bison -y"; then
5306 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
5307 echo "$as_me: error: bison not found but required" >&2;}
5308 { (exit 1); exit 1; }; }
5314 # Check whether --enable-shared or --disable-shared was given.
5315 if test "${enable_shared+set}" = set; then
5316 enableval="$enable_shared"
5317 p=${PACKAGE-default}
5319 yes) enable_shared=yes ;;
5320 no) enable_shared=no ;;
5323 # Look at the argument we got. We use all the common list separators.
5324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5325 for pkg in $enableval; do
5327 if test "X$pkg" = "X$p"; then
5338 # Check whether --enable-static or --disable-static was given.
5339 if test "${enable_static+set}" = set; then
5340 enableval="$enable_static"
5341 p=${PACKAGE-default}
5343 yes) enable_static=yes ;;
5344 no) enable_static=no ;;
5347 # Look at the argument we got. We use all the common list separators.
5348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5349 for pkg in $enableval; do
5351 if test "X$pkg" = "X$p"; then
5362 # Check whether --enable-fast-install or --disable-fast-install was given.
5363 if test "${enable_fast_install+set}" = set; then
5364 enableval="$enable_fast_install"
5365 p=${PACKAGE-default}
5367 yes) enable_fast_install=yes ;;
5368 no) enable_fast_install=no ;;
5370 enable_fast_install=no
5371 # Look at the argument we got. We use all the common list separators.
5372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5373 for pkg in $enableval; do
5375 if test "X$pkg" = "X$p"; then
5376 enable_fast_install=yes
5383 enable_fast_install=yes
5386 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5387 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5388 if test "${lt_cv_path_SED+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 # Loop through the user's path and test for sed and gsed.
5392 # Then use that list of sed's as ones to test for truncation.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 for lt_ac_prog in sed gsed; do
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5401 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5408 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5409 # along with /bin/sed that truncates output.
5410 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5411 test ! -f $lt_ac_sed && break
5412 cat /dev/null > conftest.in
5414 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5415 # Check for GNU sed and select it if it is found.
5416 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5417 lt_cv_path_SED=$lt_ac_sed
5421 cat conftest.in conftest.in >conftest.tmp
5422 mv conftest.tmp conftest.in
5423 cp conftest.in conftest.nl
5425 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5426 cmp -s conftest.out conftest.nl || break
5427 # 10000 chars as input seems more than enough
5428 test $lt_ac_count -gt 10 && break
5429 lt_ac_count=`expr $lt_ac_count + 1`
5430 if test $lt_ac_count -gt $lt_ac_max; then
5431 lt_ac_max=$lt_ac_count
5432 lt_cv_path_SED=$lt_ac_sed
5440 echo "$as_me:$LINENO: result: $SED" >&5
5441 echo "${ECHO_T}$SED" >&6
5443 echo "$as_me:$LINENO: checking for egrep" >&5
5444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5445 if test "${ac_cv_prog_egrep+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5449 then ac_cv_prog_egrep='grep -E'
5450 else ac_cv_prog_egrep='egrep'
5453 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5454 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5455 EGREP=$ac_cv_prog_egrep
5459 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5460 if test "${with_gnu_ld+set}" = set; then
5461 withval="$with_gnu_ld"
5462 test "$withval" = no || with_gnu_ld=yes
5467 if test "$GCC" = yes; then
5468 # Check if gcc -print-prog-name=ld gives a path.
5469 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5470 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5473 # gcc leaves a trailing carriage return which upsets mingw
5474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5479 # Accept absolute paths.
5481 re_direlt='/[^/][^/]*/\.\./'
5482 # Canonicalize the pathname of ld
5483 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5484 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5485 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5487 test -z "$LD" && LD="$ac_prog"
5490 # If it fails, then pretend we aren't using GCC.
5494 # If it is relative, then search for the first ld in PATH.
5498 elif test "$with_gnu_ld" = yes; then
5499 echo "$as_me:$LINENO: checking for GNU ld" >&5
5500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5502 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5505 if test "${lt_cv_path_LD+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 if test -z "$LD"; then
5509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5510 for ac_dir in $PATH; do
5512 test -z "$ac_dir" && ac_dir=.
5513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5514 lt_cv_path_LD="$ac_dir/$ac_prog"
5515 # Check to see if the program is GNU ld. I'd rather use --version,
5516 # but apparently some GNU ld's only accept -v.
5517 # Break only if it was the GNU/non-GNU ld that we prefer.
5518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5519 *GNU* | *'with BFD'*)
5520 test "$with_gnu_ld" != no && break
5523 test "$with_gnu_ld" != yes && break
5530 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5535 if test -n "$LD"; then
5536 echo "$as_me:$LINENO: result: $LD" >&5
5537 echo "${ECHO_T}$LD" >&6
5539 echo "$as_me:$LINENO: result: no" >&5
5540 echo "${ECHO_T}no" >&6
5542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5544 { (exit 1); exit 1; }; }
5545 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5547 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5551 case `$LD -v 2>&1 </dev/null` in
5552 *GNU* | *'with BFD'*)
5553 lt_cv_prog_gnu_ld=yes
5556 lt_cv_prog_gnu_ld=no
5560 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5562 with_gnu_ld=$lt_cv_prog_gnu_ld
5565 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5566 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5567 if test "${lt_cv_ld_reload_flag+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 lt_cv_ld_reload_flag='-r'
5572 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5573 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5574 reload_flag=$lt_cv_ld_reload_flag
5575 case $reload_flag in
5577 *) reload_flag=" $reload_flag" ;;
5579 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5582 if test "$GCC" = yes; then
5583 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5590 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5591 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5592 if test "${lt_cv_path_NM+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 if test -n "$NM"; then
5596 # Let the user override the test.
5599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5600 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5602 test -z "$ac_dir" && ac_dir=.
5603 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5604 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5605 # Check to see if the nm accepts a BSD-compat flag.
5606 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5607 # nm: unknown option "B" ignored
5608 # Tru64's nm complains that /dev/null is an invalid object file
5609 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5610 */dev/null* | *'Invalid file or object type'*)
5611 lt_cv_path_NM="$tmp_nm -B"
5615 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5617 lt_cv_path_NM="$tmp_nm -p"
5621 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5622 continue # so that we can try to find one that supports BSD flags
5629 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5632 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5633 echo "${ECHO_T}$lt_cv_path_NM" >&6
5636 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5637 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5639 if test "$LN_S" = "ln -s"; then
5640 echo "$as_me:$LINENO: result: yes" >&5
5641 echo "${ECHO_T}yes" >&6
5643 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5644 echo "${ECHO_T}no, using $LN_S" >&6
5647 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5648 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5649 if test "${lt_cv_deplibs_check_method+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 lt_cv_file_magic_cmd='$MAGIC_CMD'
5653 lt_cv_file_magic_test_file=
5654 lt_cv_deplibs_check_method='unknown'
5655 # Need to set the preceding variable on all platforms that support
5656 # interlibrary dependencies.
5657 # 'none' -- dependencies not supported.
5658 # `unknown' -- same as none, but documents that we really don't know.
5659 # 'pass_all' -- all dependencies passed with no checks.
5660 # 'test_compile' -- check by making test program.
5661 # 'file_magic [[regex]]' -- check by looking for files in library path
5662 # which responds to the $file_magic_cmd with a given extended regex.
5663 # If you have `file' or equivalent on your system and you're not sure
5664 # whether `pass_all' will *always* work, you probably want this one.
5668 lt_cv_deplibs_check_method=pass_all
5672 lt_cv_deplibs_check_method=pass_all
5676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5677 lt_cv_file_magic_cmd='/usr/bin/file -L'
5678 lt_cv_file_magic_test_file=/shlib/libc.so
5682 # func_win32_libid is a shell function defined in ltmain.sh
5683 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5684 lt_cv_file_magic_cmd='func_win32_libid'
5688 # Base MSYS/MinGW do not provide the 'file' command needed by
5689 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5691 lt_cv_file_magic_cmd='$OBJDUMP -f'
5694 darwin* | rhapsody*)
5695 lt_cv_deplibs_check_method=pass_all
5698 freebsd* | kfreebsd*-gnu)
5699 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5702 # Not sure whether the presence of OpenBSD here was a mistake.
5703 # Let's accept both of them until this is cleared up.
5704 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5705 lt_cv_file_magic_cmd=/usr/bin/file
5706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5710 lt_cv_deplibs_check_method=pass_all
5715 lt_cv_deplibs_check_method=pass_all
5718 hpux10.20* | hpux11*)
5719 lt_cv_file_magic_cmd=/usr/bin/file
5722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5723 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5726 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]'
5727 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5731 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5736 irix5* | irix6* | nonstopux*)
5738 *-32|*"-32 ") libmagic=32-bit;;
5739 *-n32|*"-n32 ") libmagic=N32;;
5740 *-64|*"-64 ") libmagic=64-bit;;
5741 *) libmagic=never-match;;
5743 lt_cv_deplibs_check_method=pass_all
5746 # This must be Linux ELF.
5748 lt_cv_deplibs_check_method=pass_all
5752 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5766 lt_cv_deplibs_check_method=unknown
5770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5777 osf3* | osf4* | osf5*)
5778 lt_cv_deplibs_check_method=pass_all
5782 lt_cv_deplibs_check_method=pass_all
5786 lt_cv_deplibs_check_method=pass_all
5789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5790 case $host_vendor in
5792 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]'
5793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5796 lt_cv_deplibs_check_method=pass_all
5799 lt_cv_file_magic_cmd='/bin/file'
5800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5803 lt_cv_file_magic_cmd='/bin/file'
5804 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5805 lt_cv_file_magic_test_file=/lib/libc.so
5808 lt_cv_deplibs_check_method=pass_all
5813 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5814 lt_cv_deplibs_check_method=pass_all
5819 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5820 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5821 file_magic_cmd=$lt_cv_file_magic_cmd
5822 deplibs_check_method=$lt_cv_deplibs_check_method
5823 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5828 # If no C compiler was specified, use CC.
5831 # Allow CC to be a program name with arguments.
5834 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5835 if test "${enable_libtool_lock+set}" = set; then
5836 enableval="$enable_libtool_lock"
5839 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5841 # Some flags need to be propagated to the compiler or linker for good
5845 # Find out which ABI we are using.
5846 echo 'int i;' > conftest.$ac_ext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848 (eval $ac_compile) 2>&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; then
5852 case `/usr/bin/file conftest.$ac_objext` in
5864 # Find out which ABI we are using.
5865 echo '#line 5865 "configure"' > conftest.$ac_ext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; then
5871 if test "$lt_cv_prog_gnu_ld" = yes; then
5872 case `/usr/bin/file conftest.$ac_objext` in
5874 LD="${LD-ld} -melf32bsmip"
5877 LD="${LD-ld} -melf32bmipn32"
5880 LD="${LD-ld} -melf64bmip"
5884 case `/usr/bin/file conftest.$ac_objext` in
5900 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5901 # Find out which ABI we are using.
5902 echo 'int i;' > conftest.$ac_ext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904 (eval $ac_compile) 2>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; then
5908 case "`/usr/bin/file conftest.o`" in
5912 LD="${LD-ld} -m elf_i386"
5914 ppc64-*linux*|powerpc64-*linux*)
5915 LD="${LD-ld} -m elf32ppclinux"
5918 LD="${LD-ld} -m elf_s390"
5921 LD="${LD-ld} -m elf32_sparc"
5928 LD="${LD-ld} -m elf_x86_64"
5930 ppc*-*linux*|powerpc*-*linux*)
5931 LD="${LD-ld} -m elf64ppc"
5934 LD="${LD-ld} -m elf64_s390"
5937 LD="${LD-ld} -m elf64_sparc"
5947 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5948 SAVE_CFLAGS="$CFLAGS"
5949 CFLAGS="$CFLAGS -belf"
5950 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5951 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5952 if test "${lt_cv_cc_needs_belf+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 ac_cpp='$CPP $CPPFLAGS'
5957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5969 rm -f conftest.$ac_objext conftest$ac_exeext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971 (eval $ac_link) 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_c_werror_flag"
5979 || test ! -s conftest.err'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; } &&
5985 { ac_try='test -s conftest$ac_exeext'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 lt_cv_cc_needs_belf=yes
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 lt_cv_cc_needs_belf=no
5998 rm -f conftest.err conftest.$ac_objext \
5999 conftest$ac_exeext conftest.$ac_ext
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6008 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6011 CFLAGS="$SAVE_CFLAGS"
6017 need_locks="$enable_libtool_lock"
6021 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6023 if test "${ac_cv_header_stdc+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6045 rm -f conftest.$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_c_werror_flag"
6055 || test ! -s conftest.err'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; } &&
6061 { ac_try='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_header_stdc=yes
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 ac_cv_header_stdc=no
6074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076 if test $ac_cv_header_stdc = yes; then
6077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "memchr" >/dev/null 2>&1; then
6091 ac_cv_header_stdc=no
6097 if test $ac_cv_header_stdc = yes; then
6098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "free" >/dev/null 2>&1; then
6112 ac_cv_header_stdc=no
6118 if test $ac_cv_header_stdc = yes; then
6119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6120 if test "$cross_compiling" = yes; then
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 #if ((' ' & 0x0FF) == 0x020)
6131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6134 # define ISLOWER(c) \
6135 (('a' <= (c) && (c) <= 'i') \
6136 || ('j' <= (c) && (c) <= 'r') \
6137 || ('s' <= (c) && (c) <= 'z'))
6138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6146 for (i = 0; i < 256; i++)
6147 if (XOR (islower (i), ISLOWER (i))
6148 || toupper (i) != TOUPPER (i))
6153 rm -f conftest$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6166 echo "$as_me: program exited with status $ac_status" >&5
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6171 ac_cv_header_stdc=no
6173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6177 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6178 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6179 if test $ac_cv_header_stdc = yes; then
6181 cat >>confdefs.h <<\_ACEOF
6182 #define STDC_HEADERS 1
6187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6198 inttypes.h stdint.h unistd.h
6200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6201 echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 $ac_includes_default
6214 #include <$ac_header>
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6220 grep -v '^ *+' conftest.er1 >conftest.err
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 eval "$as_ac_Header=yes"
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 eval "$as_ac_Header=no"
6245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6250 cat >>confdefs.h <<_ACEOF
6251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6260 for ac_header in dlfcn.h
6262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6264 echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6272 # Is the header compilable?
6273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 $ac_includes_default
6282 #include <$ac_header>
6284 rm -f conftest.$ac_objext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6286 (eval $ac_compile) 2>conftest.er1
6288 grep -v '^ *+' conftest.er1 >conftest.err
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -z "$ac_c_werror_flag"
6294 || test ! -s conftest.err'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest.$ac_objext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_header_compiler=yes
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_header_compiler=no
6313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6315 echo "${ECHO_T}$ac_header_compiler" >&6
6317 # Is the header present?
6318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6320 cat >conftest.$ac_ext <<_ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <$ac_header>
6328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } >/dev/null; then
6336 if test -s conftest.err; then
6337 ac_cpp_err=$ac_c_preproc_warn_flag
6338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6345 if test -z "$ac_cpp_err"; then
6346 ac_header_preproc=yes
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 ac_header_preproc=no
6353 rm -f conftest.err conftest.$ac_ext
6354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6355 echo "${ECHO_T}$ac_header_preproc" >&6
6357 # So? What about this header?
6358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6364 ac_header_preproc=yes
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6381 ## ----------------------------------- ##
6382 ## Report this to llvmbugs@cs.uiuc.edu ##
6383 ## ----------------------------------- ##
6386 sed "s/^/$as_me: WARNING: /" >&2
6389 echo "$as_me:$LINENO: checking for $ac_header" >&5
6390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 eval "$as_ac_Header=\$ac_header_preproc"
6396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6401 cat >>confdefs.h <<_ACEOF
6402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6411 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6412 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6413 (test "X$CXX" != "Xg++"))) ; then
6415 ac_cpp='$CXXCPP $CPPFLAGS'
6416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6419 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6420 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6421 if test -z "$CXXCPP"; then
6422 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 # Double quotes because CXXCPP needs to be expanded
6426 for CXXCPP in "$CXX -E" "/lib/cpp"
6429 for ac_cxx_preproc_warn_flag in '' yes
6431 # Use a header file that comes with gcc, so configuring glibc
6432 # with a fresh cross-compiler works.
6433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6434 # <limits.h> exists even on freestanding compilers.
6435 # On the NeXT, cc -E runs the code through the compiler's parser,
6436 # not just through cpp. "Syntax error" is here to catch this case.
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 # include <limits.h>
6446 # include <assert.h>
6450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } >/dev/null; then
6458 if test -s conftest.err; then
6459 ac_cpp_err=$ac_cxx_preproc_warn_flag
6460 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6467 if test -z "$ac_cpp_err"; then
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 # Broken: fails on valid input.
6476 rm -f conftest.err conftest.$ac_ext
6478 # OK, works on sane cases. Now check whether non-existent headers
6479 # can be detected and how.
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 #include <ac_nonexistent.h>
6488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6491 grep -v '^ *+' conftest.er1 >conftest.err
6493 cat conftest.err >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } >/dev/null; then
6496 if test -s conftest.err; then
6497 ac_cpp_err=$ac_cxx_preproc_warn_flag
6498 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6505 if test -z "$ac_cpp_err"; then
6506 # Broken: success on invalid input.
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6512 # Passes both tests.
6516 rm -f conftest.err conftest.$ac_ext
6519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6520 rm -f conftest.err conftest.$ac_ext
6521 if $ac_preproc_ok; then
6526 ac_cv_prog_CXXCPP=$CXXCPP
6529 CXXCPP=$ac_cv_prog_CXXCPP
6531 ac_cv_prog_CXXCPP=$CXXCPP
6533 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6534 echo "${ECHO_T}$CXXCPP" >&6
6536 for ac_cxx_preproc_warn_flag in '' yes
6538 # Use a header file that comes with gcc, so configuring glibc
6539 # with a fresh cross-compiler works.
6540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6541 # <limits.h> exists even on freestanding compilers.
6542 # On the NeXT, cc -E runs the code through the compiler's parser,
6543 # not just through cpp. "Syntax error" is here to catch this case.
6544 cat >conftest.$ac_ext <<_ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6551 # include <limits.h>
6553 # include <assert.h>
6557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } >/dev/null; then
6565 if test -s conftest.err; then
6566 ac_cpp_err=$ac_cxx_preproc_warn_flag
6567 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6574 if test -z "$ac_cpp_err"; then
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 # Broken: fails on valid input.
6583 rm -f conftest.err conftest.$ac_ext
6585 # OK, works on sane cases. Now check whether non-existent headers
6586 # can be detected and how.
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <ac_nonexistent.h>
6595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6598 grep -v '^ *+' conftest.er1 >conftest.err
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } >/dev/null; then
6603 if test -s conftest.err; then
6604 ac_cpp_err=$ac_cxx_preproc_warn_flag
6605 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6612 if test -z "$ac_cpp_err"; then
6613 # Broken: success on invalid input.
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 # Passes both tests.
6623 rm -f conftest.err conftest.$ac_ext
6626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6627 rm -f conftest.err conftest.$ac_ext
6628 if $ac_preproc_ok; then
6631 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6632 See \`config.log' for more details." >&5
6633 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6634 See \`config.log' for more details." >&2;}
6635 { (exit 1); exit 1; }; }
6639 ac_cpp='$CXXCPP $CPPFLAGS'
6640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6648 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6649 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6651 if test -n "$ac_tool_prefix"; then
6652 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6656 echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6658 if test "${ac_cv_prog_F77+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 if test -n "$F77"; then
6662 ac_cv_prog_F77="$F77" # Let the user override the test.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 if test -n "$F77"; then
6682 echo "$as_me:$LINENO: result: $F77" >&5
6683 echo "${ECHO_T}$F77" >&6
6685 echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6
6689 test -n "$F77" && break
6692 if test -z "$F77"; then
6694 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6696 # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6700 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 if test -n "$ac_ct_F77"; then
6704 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_ac_ct_F77="$ac_prog"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6723 if test -n "$ac_ct_F77"; then
6724 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6725 echo "${ECHO_T}$ac_ct_F77" >&6
6727 echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6
6731 test -n "$ac_ct_F77" && break
6738 # Provide some information about the compiler.
6739 echo "$as_me:6739:" \
6740 "checking for Fortran 77 compiler version" >&5
6741 ac_compiler=`set X $ac_compile; echo $2`
6742 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6743 (eval $ac_compiler --version </dev/null >&5) 2>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }
6747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6748 (eval $ac_compiler -v </dev/null >&5) 2>&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }
6752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6753 (eval $ac_compiler -V </dev/null >&5) 2>&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }
6759 # If we don't use `.F' as extension, the preprocessor is not run on the
6760 # input file. (Note that this only needs to work for GNU compilers.)
6763 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6764 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6765 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.$ac_ext <<_ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6778 (eval $ac_compile) 2>conftest.er1
6780 grep -v '^ *+' conftest.er1 >conftest.err
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } &&
6785 { ac_try='test -z "$ac_f77_werror_flag"
6786 || test ! -s conftest.err'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; } &&
6792 { ac_try='test -s conftest.$ac_objext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6806 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6809 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6810 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6812 ac_test_FFLAGS=${FFLAGS+set}
6813 ac_save_FFLAGS=$FFLAGS
6815 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6816 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6817 if test "${ac_cv_prog_f77_g+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 cat >conftest.$ac_ext <<_ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>conftest.er1
6830 grep -v '^ *+' conftest.er1 >conftest.err
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_f77_werror_flag"
6836 || test ! -s conftest.err'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; } &&
6842 { ac_try='test -s conftest.$ac_objext'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 ac_cv_prog_f77_g=yes
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6858 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6859 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6860 if test "$ac_test_FFLAGS" = set; then
6861 FFLAGS=$ac_save_FFLAGS
6862 elif test $ac_cv_prog_f77_g = yes; then
6863 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6869 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6876 G77=`test $ac_compiler_gnu = yes && echo yes`
6878 ac_cpp='$CPP $CPPFLAGS'
6879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6885 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6887 # find the maximum length of command line arguments
6888 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6889 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6890 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 # On DJGPP, this test can blow up pretty badly due to problems in libc
6899 # (any single argument exceeding 2000 bytes causes a buffer overrun
6900 # during glob expansion). Even if it were fixed, the result of this
6901 # check would be larger than it should be.
6902 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6906 # Under GNU Hurd, this test is not required because there is
6907 # no limit to the length of command line arguments.
6908 # Libtool will interpret -1 as no limit whatsoever
6909 lt_cv_sys_max_cmd_len=-1;
6913 # On Win9x/ME, this test blows up -- it succeeds, but takes
6914 # about 5 minutes as the teststring grows exponentially.
6915 # Worse, since 9x/ME are not pre-emptively multitasking,
6916 # you end up with a "frozen" computer, even though with patience
6917 # the test eventually succeeds (with a max line length of 256k).
6918 # Instead, let's just punt: use the minimum linelength reported by
6919 # all of the supported platforms: 8192 (on NT/2K/XP).
6920 lt_cv_sys_max_cmd_len=8192;
6924 # On AmigaOS with pdksh, this test takes hours, literally.
6925 # So we just punt and use a minimum line length of 8192.
6926 lt_cv_sys_max_cmd_len=8192;
6929 netbsd* | freebsd* | openbsd* | darwin* )
6930 # This has been around since 386BSD, at least. Likely further.
6931 if test -x /sbin/sysctl; then
6932 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6933 elif test -x /usr/sbin/sysctl; then
6934 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6936 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6938 # And add a safety zone
6939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6943 # If test is not a shell built-in, we'll probably end up computing a
6944 # maximum length that is only half of the actual maximum length, but
6946 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6947 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6948 = "XX$teststring") >/dev/null 2>&1 &&
6949 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6950 lt_cv_sys_max_cmd_len=$new_result &&
6951 test $i != 17 # 1/2 MB should be enough
6954 teststring=$teststring$teststring
6957 # Add a significant safety factor because C++ compilers can tack on massive
6958 # amounts of additional arguments before passing them to the linker.
6959 # It appears as though 1/2 is a usable value.
6960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6966 if test -n $lt_cv_sys_max_cmd_len ; then
6967 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6968 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6970 echo "$as_me:$LINENO: result: none" >&5
6971 echo "${ECHO_T}none" >&6
6977 # Check for command to grab the raw symbol name followed by C symbol from nm.
6978 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6979 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6980 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 # These are sane defaults that work on at least a few old systems.
6985 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6987 # Character class describing NM global symbol codes.
6988 symcode='[BCDEGRST]'
6990 # Regexp to match symbols that can be accessed directly from C.
6991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6993 # Transform the above into a raw symbol and a C symbol.
6994 symxfrm='\1 \2\3 \3'
6996 # Transform an extracted symbol line into a proper C declaration
6997 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6999 # Transform an extracted symbol line into symbol name and symbol address
7000 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'"
7002 # Define system-specific variables.
7007 cygwin* | mingw* | pw32*)
7008 symcode='[ABCDGISTW]'
7010 hpux*) # Its linker distinguishes data from code symbols
7011 if test "$host_cpu" = ia64; then
7012 symcode='[ABCDEGRST]'
7014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7015 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'"
7018 if test "$host_cpu" = ia64; then
7019 symcode='[ABCDGIRSTW]'
7020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7021 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'"
7025 symcode='[BCDEGRST]'
7028 symcode='[BCDEGQRST]'
7038 # Handle CRLF in mingw tool chain
7042 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7046 # If we're using GNU nm, then use its standard symbol codes.
7047 case `$NM -V 2>&1` in
7048 *GNU* | *'with BFD'*)
7049 symcode='[ABCDGIRSTW]' ;;
7052 # Try without a prefix undercore, then with it.
7053 for ac_symprfx in "" "_"; do
7055 # Write the raw and C identifiers.
7056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7058 # Check to see that the pipe works correctly.
7062 cat > conftest.$ac_ext <<EOF
7067 void nm_test_func(){}
7071 int main(){nm_test_var='a';nm_test_func();return(0);}
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; then
7079 # Now try to grab the symbols.
7081 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7082 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && test -s "$nlist"; then
7086 # Try sorting and uniquifying the output.
7087 if sort "$nlist" | uniq > "$nlist"T; then
7088 mv -f "$nlist"T "$nlist"
7093 # Make sure that we snagged all the symbols we need.
7094 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7095 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7096 cat <<EOF > conftest.$ac_ext
7102 # Now generate the symbol file.
7103 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7105 cat <<EOF >> conftest.$ac_ext
7106 #if defined (__STDC__) && __STDC__
7107 # define lt_ptr_t void *
7109 # define lt_ptr_t char *
7113 /* The mapping between symbol names and symbols. */
7118 lt_preloaded_symbols[] =
7121 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7122 cat <<\EOF >> conftest.$ac_ext
7130 # Now try linking the two files.
7131 mv conftest.$ac_objext conftstm.$ac_objext
7132 lt_save_LIBS="$LIBS"
7133 lt_save_CFLAGS="$CFLAGS"
7134 LIBS="conftstm.$ac_objext"
7135 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7143 LIBS="$lt_save_LIBS"
7144 CFLAGS="$lt_save_CFLAGS"
7146 echo "cannot find nm_test_func in $nlist" >&5
7149 echo "cannot find nm_test_var in $nlist" >&5
7152 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7155 echo "$progname: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7158 rm -f conftest* conftst*
7160 # Do not use the global_symbol_pipe unless it works.
7161 if test "$pipe_works" = yes; then
7164 lt_cv_sys_global_symbol_pipe=
7170 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7171 lt_cv_sys_global_symbol_to_cdecl=
7173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7174 echo "$as_me:$LINENO: result: failed" >&5
7175 echo "${ECHO_T}failed" >&6
7177 echo "$as_me:$LINENO: result: ok" >&5
7178 echo "${ECHO_T}ok" >&6
7181 echo "$as_me:$LINENO: checking for objdir" >&5
7182 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7183 if test "${lt_cv_objdir+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 rm -f .libs 2>/dev/null
7187 mkdir .libs 2>/dev/null
7188 if test -d .libs; then
7191 # MS-DOS does not allow filenames that begin with a dot.
7194 rmdir .libs 2>/dev/null
7196 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7197 echo "${ECHO_T}$lt_cv_objdir" >&6
7198 objdir=$lt_cv_objdir
7206 # AIX sometimes has problems with the GCC collect2 program. For some
7207 # reason, if we set the COLLECT_NAMES environment variable, the problems
7208 # vanish in a puff of smoke.
7209 if test "X${COLLECT_NAMES+set}" != Xset; then
7211 export COLLECT_NAMES
7216 # Sed substitution that helps us do robust quoting. It backslashifies
7217 # metacharacters that are still active within double-quoted strings.
7218 Xsed='sed -e s/^X//'
7219 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7221 # Same as above, but do not quote variable references.
7222 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7224 # Sed substitution to delay expansion of an escaped shell variable in a
7225 # double_quote_subst'ed string.
7226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7228 # Sed substitution to avoid accidental globbing in evaled expressions
7229 no_glob_subst='s/\*/\\\*/g'
7236 can_build_shared=yes
7238 # All known linkers require a `.a' archive for static linking (except M$VC,
7239 # which needs '.lib').
7241 ltmain="$ac_aux_dir/ltmain.sh"
7242 ofile="$default_ofile"
7243 with_gnu_ld="$lt_cv_prog_gnu_ld"
7245 if test -n "$ac_tool_prefix"; then
7246 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7247 set dummy ${ac_tool_prefix}ar; ac_word=$2
7248 echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7250 if test "${ac_cv_prog_AR+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 if test -n "$AR"; then
7254 ac_cv_prog_AR="$AR" # Let the user override the test.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_AR="${ac_tool_prefix}ar"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 if test -n "$AR"; then
7274 echo "$as_me:$LINENO: result: $AR" >&5
7275 echo "${ECHO_T}$AR" >&6
7277 echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6
7282 if test -z "$ac_cv_prog_AR"; then
7284 # Extract the first word of "ar", so it can be a program name with args.
7285 set dummy ar; ac_word=$2
7286 echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7288 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 if test -n "$ac_ct_AR"; then
7292 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301 ac_cv_prog_ac_ct_AR="ar"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7311 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7312 if test -n "$ac_ct_AR"; then
7313 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7314 echo "${ECHO_T}$ac_ct_AR" >&6
7316 echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7325 if test -n "$ac_tool_prefix"; then
7326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7328 echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330 if test "${ac_cv_prog_RANLIB+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 if test -n "$RANLIB"; then
7334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 RANLIB=$ac_cv_prog_RANLIB
7353 if test -n "$RANLIB"; then
7354 echo "$as_me:$LINENO: result: $RANLIB" >&5
7355 echo "${ECHO_T}$RANLIB" >&6
7357 echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6
7362 if test -z "$ac_cv_prog_RANLIB"; then
7363 ac_ct_RANLIB=$RANLIB
7364 # Extract the first word of "ranlib", so it can be a program name with args.
7365 set dummy ranlib; ac_word=$2
7366 echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7368 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 if test -n "$ac_ct_RANLIB"; then
7372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_ac_ct_RANLIB="ranlib"
7382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7392 if test -n "$ac_ct_RANLIB"; then
7393 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7394 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7396 echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7400 RANLIB=$ac_ct_RANLIB
7402 RANLIB="$ac_cv_prog_RANLIB"
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}strip; ac_word=$2
7408 echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410 if test "${ac_cv_prog_STRIP+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 if test -n "$STRIP"; then
7414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 STRIP=$ac_cv_prog_STRIP
7433 if test -n "$STRIP"; then
7434 echo "$as_me:$LINENO: result: $STRIP" >&5
7435 echo "${ECHO_T}$STRIP" >&6
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7442 if test -z "$ac_cv_prog_STRIP"; then
7444 # Extract the first word of "strip", so it can be a program name with args.
7445 set dummy strip; ac_word=$2
7446 echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7448 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 if test -n "$ac_ct_STRIP"; then
7452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_STRIP="strip"
7462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7472 if test -n "$ac_ct_STRIP"; then
7473 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7474 echo "${ECHO_T}$ac_ct_STRIP" >&6
7476 echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7482 STRIP="$ac_cv_prog_STRIP"
7487 old_CFLAGS="$CFLAGS"
7489 # Set sane defaults for various variables
7490 test -z "$AR" && AR=ar
7491 test -z "$AR_FLAGS" && AR_FLAGS=cru
7492 test -z "$AS" && AS=as
7493 test -z "$CC" && CC=cc
7494 test -z "$LTCC" && LTCC=$CC
7495 test -z "$DLLTOOL" && DLLTOOL=dlltool
7496 test -z "$LD" && LD=ld
7497 test -z "$LN_S" && LN_S="ln -s"
7498 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7499 test -z "$NM" && NM=nm
7500 test -z "$SED" && SED=sed
7501 test -z "$OBJDUMP" && OBJDUMP=objdump
7502 test -z "$RANLIB" && RANLIB=:
7503 test -z "$STRIP" && STRIP=:
7504 test -z "$ac_objext" && ac_objext=o
7506 # Determine commands to create old-style static archives.
7507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7508 old_postinstall_cmds='chmod 644 $oldlib'
7509 old_postuninstall_cmds=
7511 if test -n "$RANLIB"; then
7514 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7517 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7523 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7525 # Only perform the check for file, if the check method requires it
7526 case $deplibs_check_method in
7528 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7529 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7530 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7539 lt_save_MAGIC_CMD="$MAGIC_CMD"
7540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7542 for ac_dir in $ac_dummy; do
7544 test -z "$ac_dir" && ac_dir=.
7545 if test -f $ac_dir/${ac_tool_prefix}file; then
7546 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7547 if test -n "$file_magic_test_file"; then
7548 case $deplibs_check_method in
7550 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7553 $EGREP "$file_magic_regex" > /dev/null; then
7558 *** Warning: the command libtool uses to detect shared libraries,
7559 *** $file_magic_cmd, produces output that libtool cannot recognize.
7560 *** The result is that libtool may fail to recognize shared libraries
7561 *** as such. This will affect the creation of libtool libraries that
7562 *** depend on shared libraries, but programs linked with such libtool
7563 *** libraries will work regardless of this problem. Nevertheless, you
7564 *** may want to report the problem to your system manager and/or to
7565 *** bug-libtool@gnu.org
7575 MAGIC_CMD="$lt_save_MAGIC_CMD"
7580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7581 if test -n "$MAGIC_CMD"; then
7582 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7583 echo "${ECHO_T}$MAGIC_CMD" >&6
7585 echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7589 if test -z "$lt_cv_path_MAGIC_CMD"; then
7590 if test -n "$ac_tool_prefix"; then
7591 echo "$as_me:$LINENO: checking for file" >&5
7592 echo $ECHO_N "checking for file... $ECHO_C" >&6
7593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7601 lt_save_MAGIC_CMD="$MAGIC_CMD"
7602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7603 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7604 for ac_dir in $ac_dummy; do
7606 test -z "$ac_dir" && ac_dir=.
7607 if test -f $ac_dir/file; then
7608 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7609 if test -n "$file_magic_test_file"; then
7610 case $deplibs_check_method in
7612 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7614 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7615 $EGREP "$file_magic_regex" > /dev/null; then
7620 *** Warning: the command libtool uses to detect shared libraries,
7621 *** $file_magic_cmd, produces output that libtool cannot recognize.
7622 *** The result is that libtool may fail to recognize shared libraries
7623 *** as such. This will affect the creation of libtool libraries that
7624 *** depend on shared libraries, but programs linked with such libtool
7625 *** libraries will work regardless of this problem. Nevertheless, you
7626 *** may want to report the problem to your system manager and/or to
7627 *** bug-libtool@gnu.org
7637 MAGIC_CMD="$lt_save_MAGIC_CMD"
7642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7643 if test -n "$MAGIC_CMD"; then
7644 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7645 echo "${ECHO_T}$MAGIC_CMD" >&6
7647 echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6
7663 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7664 if test "${enable_libtool_lock+set}" = set; then
7665 enableval="$enable_libtool_lock"
7668 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7671 # Check whether --with-pic or --without-pic was given.
7672 if test "${with_pic+set}" = set; then
7678 test -z "$pic_mode" && pic_mode=default
7680 # Use C for the default configuration in the libtool script
7684 ac_cpp='$CPP $CPPFLAGS'
7685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690 # Source file extension for C test sources.
7693 # Object file extension for compiled C test sources.
7697 # Code to be used in simple compile tests
7698 lt_simple_compile_test_code="int some_variable = 0;\n"
7700 # Code to be used in simple link tests
7701 lt_simple_link_test_code='int main(){return(0);}\n'
7704 # If no C compiler was specified, use CC.
7707 # Allow CC to be a program name with arguments.
7712 # Check for any special shared library compilation flags.
7715 if test "$GCC" = no; then
7718 lt_prog_cc_shlib='-belf'
7722 if test -n "$lt_prog_cc_shlib"; then
7723 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7724 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7725 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7727 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7728 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7729 lt_cv_prog_cc_can_build_shared=no
7735 # Check to make sure the static flag actually works.
7737 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7738 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7739 if test "${lt_prog_compiler_static_works+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 lt_prog_compiler_static_works=no
7743 save_LDFLAGS="$LDFLAGS"
7744 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7745 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7747 # The compiler can only warn and ignore the option if not recognized
7748 # So say no if there are warnings
7749 if test -s conftest.err; then
7750 # Append any errors to the config.log.
7751 cat conftest.err 1>&5
7753 lt_prog_compiler_static_works=yes
7757 LDFLAGS="$save_LDFLAGS"
7760 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7761 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7763 if test x"$lt_prog_compiler_static_works" = xyes; then
7766 lt_prog_compiler_static=
7772 lt_prog_compiler_no_builtin_flag=
7774 if test "$GCC" = yes; then
7775 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7778 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7779 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7780 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 lt_cv_prog_compiler_rtti_exceptions=no
7784 ac_outfile=conftest.$ac_objext
7785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7786 lt_compiler_flag="-fno-rtti -fno-exceptions"
7787 # Insert the option either (1) after the last *FLAGS variable, or
7788 # (2) before a word containing "conftest.", or (3) at the end.
7789 # Note that $ac_compile itself does not contain backslashes and begins
7790 # with a dollar sign (not a hyphen), so the echo should work correctly.
7791 # The option is referenced via a variable to avoid confusing sed.
7792 lt_compile=`echo "$ac_compile" | $SED \
7793 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7795 -e 's:$: $lt_compiler_flag:'`
7796 (eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
7797 (eval "$lt_compile" 2>conftest.err)
7799 cat conftest.err >&5
7800 echo "$as_me:7800: \$? = $ac_status" >&5
7801 if (exit $ac_status) && test -s "$ac_outfile"; then
7802 # The compiler can only warn and ignore the option if not recognized
7803 # So say no if there are warnings
7804 if test ! -s conftest.err; then
7805 lt_cv_prog_compiler_rtti_exceptions=yes
7811 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7812 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7814 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7815 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7822 lt_prog_compiler_wl=
7823 lt_prog_compiler_pic=
7824 lt_prog_compiler_static=
7826 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7827 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7829 if test "$GCC" = yes; then
7830 lt_prog_compiler_wl='-Wl,'
7831 lt_prog_compiler_static='-static'
7835 # All AIX code is PIC.
7836 if test "$host_cpu" = ia64; then
7837 # AIX 5 now supports IA64 processor
7838 lt_prog_compiler_static='-Bstatic'
7843 # FIXME: we need at least 68020 code to build shared libraries, but
7844 # adding the `-m68020' flag to GCC prevents building anything better,
7846 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7849 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7850 # PIC is the default for these OSes.
7853 mingw* | pw32* | os2*)
7854 # This hack is so that the source file can tell whether it is being
7855 # built for inclusion in a dll (and should export symbols for example).
7856 lt_prog_compiler_pic='-DDLL_EXPORT'
7859 darwin* | rhapsody*)
7860 # PIC is the default on this platform
7861 # Common symbols not allowed in MH_DYLIB files
7862 lt_prog_compiler_pic='-fno-common'
7866 # Just because we use GCC doesn't mean we suddenly get shared libraries
7867 # on systems that don't support them.
7868 lt_prog_compiler_can_build_shared=no
7873 if test -d /usr/nec; then
7874 lt_prog_compiler_pic=-Kconform_pic
7879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7886 lt_prog_compiler_pic='-fPIC'
7892 lt_prog_compiler_pic='-fPIC'
7896 # PORTME Check for flag to pass linker flags through the system compiler.
7899 lt_prog_compiler_wl='-Wl,'
7900 if test "$host_cpu" = ia64; then
7901 # AIX 5 now supports IA64 processor
7902 lt_prog_compiler_static='-Bstatic'
7904 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7908 # PIC is the default on this platform
7909 # Common symbols not allowed in MH_DYLIB files
7910 case "$cc_basename" in
7912 lt_prog_compiler_pic='-qnocommon'
7913 lt_prog_compiler_wl='-Wl,'
7918 mingw* | pw32* | os2*)
7919 # This hack is so that the source file can tell whether it is being
7920 # built for inclusion in a dll (and should export symbols for example).
7921 lt_prog_compiler_pic='-DDLL_EXPORT'
7924 hpux9* | hpux10* | hpux11*)
7925 lt_prog_compiler_wl='-Wl,'
7926 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7933 lt_prog_compiler_pic='+Z'
7936 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7937 lt_prog_compiler_static='${wl}-a ${wl}archive'
7940 irix5* | irix6* | nonstopux*)
7941 lt_prog_compiler_wl='-Wl,'
7942 # PIC (with -KPIC) is the default.
7943 lt_prog_compiler_static='-non_shared'
7947 lt_prog_compiler_pic='-KPIC'
7948 lt_prog_compiler_static='-Bstatic'
7954 lt_prog_compiler_wl='-Wl,'
7955 lt_prog_compiler_pic='-KPIC'
7956 lt_prog_compiler_static='-static'
7959 lt_prog_compiler_wl='-Wl,'
7960 # All Alpha code is PIC.
7961 lt_prog_compiler_static='-non_shared'
7966 osf3* | osf4* | osf5*)
7967 lt_prog_compiler_wl='-Wl,'
7968 # All OSF/1 code is PIC.
7969 lt_prog_compiler_static='-non_shared'
7973 lt_prog_compiler_pic='-Kpic'
7974 lt_prog_compiler_static='-dn'
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-KPIC'
7980 lt_prog_compiler_static='-Bstatic'
7984 lt_prog_compiler_wl='-Qoption ld '
7985 lt_prog_compiler_pic='-PIC'
7986 lt_prog_compiler_static='-Bstatic'
7989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7990 lt_prog_compiler_wl='-Wl,'
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7996 if test -d /usr/nec ;then
7997 lt_prog_compiler_pic='-Kconform_pic'
7998 lt_prog_compiler_static='-Bstatic'
8003 lt_prog_compiler_pic='-pic'
8004 lt_prog_compiler_static='-Bstatic'
8008 lt_prog_compiler_can_build_shared=no
8013 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8014 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8017 # Check to make sure the PIC flag actually works.
8019 if test -n "$lt_prog_compiler_pic"; then
8021 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8022 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8023 if test "${lt_prog_compiler_pic_works+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 lt_prog_compiler_pic_works=no
8027 ac_outfile=conftest.$ac_objext
8028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8029 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8030 # Insert the option either (1) after the last *FLAGS variable, or
8031 # (2) before a word containing "conftest.", or (3) at the end.
8032 # Note that $ac_compile itself does not contain backslashes and begins
8033 # with a dollar sign (not a hyphen), so the echo should work correctly.
8034 # The option is referenced via a variable to avoid confusing sed.
8035 lt_compile=`echo "$ac_compile" | $SED \
8036 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8038 -e 's:$: $lt_compiler_flag:'`
8039 (eval echo "\"\$as_me:8039: $lt_compile\"" >&5)
8040 (eval "$lt_compile" 2>conftest.err)
8042 cat conftest.err >&5
8043 echo "$as_me:8043: \$? = $ac_status" >&5
8044 if (exit $ac_status) && test -s "$ac_outfile"; then
8045 # The compiler can only warn and ignore the option if not recognized
8046 # So say no if there are warnings
8047 if test ! -s conftest.err; then
8048 lt_prog_compiler_pic_works=yes
8054 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8055 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8057 if test x"$lt_prog_compiler_pic_works" = xyes; then
8058 case $lt_prog_compiler_pic in
8060 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8063 lt_prog_compiler_pic=
8064 lt_prog_compiler_can_build_shared=no
8069 # For platforms which do not support PIC, -DPIC is meaningless:
8071 lt_prog_compiler_pic=
8074 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8078 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8080 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 lt_cv_prog_compiler_c_o=no
8084 $rm -r conftest 2>/dev/null
8088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8090 lt_compiler_flag="-o out/conftest2.$ac_objext"
8091 # Insert the option either (1) after the last *FLAGS variable, or
8092 # (2) before a word containing "conftest.", or (3) at the end.
8093 # Note that $ac_compile itself does not contain backslashes and begins
8094 # with a dollar sign (not a hyphen), so the echo should work correctly.
8095 lt_compile=`echo "$ac_compile" | $SED \
8096 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098 -e 's:$: $lt_compiler_flag:'`
8099 (eval echo "\"\$as_me:8099: $lt_compile\"" >&5)
8100 (eval "$lt_compile" 2>out/conftest.err)
8102 cat out/conftest.err >&5
8103 echo "$as_me:8103: \$? = $ac_status" >&5
8104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8106 # The compiler can only warn and ignore the option if not recognized
8107 # So say no if there are warnings
8108 if test ! -s out/conftest.err; then
8109 lt_cv_prog_compiler_c_o=yes
8114 # SGI C++ compiler will create directory out/ii_files/ for
8115 # template instantiation
8116 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8117 $rm out/* && rmdir out
8123 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8124 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8127 hard_links="nottested"
8128 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8129 # do not overwrite the value of need_locks provided by the user
8130 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8131 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8136 ln conftest.a conftest.b 2>&5 || hard_links=no
8137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8138 echo "$as_me:$LINENO: result: $hard_links" >&5
8139 echo "${ECHO_T}$hard_links" >&6
8140 if test "$hard_links" = no; then
8141 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8142 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8149 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8150 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8153 allow_undefined_flag=
8154 enable_shared_with_static_runtimes=no
8156 archive_expsym_cmds=
8157 old_archive_From_new_cmds=
8158 old_archive_from_expsyms_cmds=
8159 export_dynamic_flag_spec=
8160 whole_archive_flag_spec=
8161 thread_safe_flag_spec=
8162 hardcode_libdir_flag_spec=
8163 hardcode_libdir_flag_spec_ld=
8164 hardcode_libdir_separator=
8167 hardcode_shlibpath_var=unsupported
8168 link_all_deplibs=unknown
8169 hardcode_automatic=no
8172 always_export_symbols=no
8173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8174 # include_expsyms should be a list of space-separated symbols to be *always*
8175 # included in the symbol list
8177 # exclude_expsyms can be an extended regexp of symbols to exclude
8178 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8179 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8180 # as well as any symbol that contains `d'.
8181 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8183 # platforms (ab)use it in PIC code, but their linkers get confused if
8184 # the symbol is explicitly referenced. Since portable code cannot
8185 # rely on this symbol name, it's probably fine to never include it in
8186 # preloaded symbol tables.
8187 extract_expsyms_cmds=
8190 cygwin* | mingw* | pw32*)
8191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8192 # When not using gcc, we currently assume that we are using
8193 # Microsoft Visual C++.
8194 if test "$GCC" != yes; then
8204 if test "$with_gnu_ld" = yes; then
8205 # If archive_cmds runs LD, not CC, wlarc should be empty
8208 # See if GNU ld supports shared libraries.
8210 aix3* | aix4* | aix5*)
8211 # On AIX/PPC, the GNU linker is very broken
8212 if test "$host_cpu" != ia64; then
8216 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8217 *** to be unable to reliably create shared libraries on AIX.
8218 *** Therefore, libtool is disabling shared libraries support. If you
8219 *** really care for shared libraries, you may want to modify your PATH
8220 *** so that a non-GNU linker is found, and then restart.
8227 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)'
8228 hardcode_libdir_flag_spec='-L$libdir'
8229 hardcode_minus_L=yes
8231 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8232 # that the semantics of dynamic libraries on AmigaOS, at least up
8233 # to version 4, is to share data among multiple programs linked
8234 # with the same dynamic library. Since this doesn't match the
8235 # behavior of shared libraries on other platforms, we can't use
8241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8242 allow_undefined_flag=unsupported
8243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8244 # support --undefined. This deserves some investigation. FIXME
8245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251 cygwin* | mingw* | pw32*)
8252 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8253 # as there is no search path for DLLs.
8254 hardcode_libdir_flag_spec='-L$libdir'
8255 allow_undefined_flag=unsupported
8256 always_export_symbols=no
8257 enable_shared_with_static_runtimes=yes
8258 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8260 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8262 # If the export-symbols file already is a .def file (1st line
8263 # is EXPORTS), use it as is; otherwise, prepend...
8264 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8265 cp $export_symbols $output_objdir/$soname.def;
8267 echo EXPORTS > $output_objdir/$soname.def;
8268 cat $export_symbols >> $output_objdir/$soname.def;
8270 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8278 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8291 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8292 *** create shared libraries on Solaris systems. Therefore, libtool
8293 *** is disabling shared libraries support. We urge you to upgrade GNU
8294 *** binutils to release 2.9.1 or newer. Another option is to modify
8295 *** your PATH or compiler configuration so that the native linker is
8296 *** used, and then restart.
8299 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8308 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8311 hardcode_shlibpath_var=no
8315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8316 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317 archive_cmds="$tmp_archive_cmds"
8318 supports_anon_versioning=no
8319 case `$LD -v 2>/dev/null` in
8320 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8323 *\ 2.11.*) ;; # other 2.11 versions
8324 *) supports_anon_versioning=yes ;;
8326 if test $supports_anon_versioning = yes; then
8327 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8329 $echo "local: *; };" >> $output_objdir/$libname.ver~
8330 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8332 archive_expsym_cmds="$tmp_archive_cmds"
8340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8349 if test "$ld_shlibs" = yes; then
8350 runpath_var=LD_RUN_PATH
8351 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8352 export_dynamic_flag_spec='${wl}--export-dynamic'
8353 # ancient GNU ld didn't support --whole-archive et. al.
8354 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8355 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8357 whole_archive_flag_spec=
8361 # PORTME fill in a description of your system's linker (not GNU ld)
8364 allow_undefined_flag=unsupported
8365 always_export_symbols=yes
8366 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'
8367 # Note: this linker hardcodes the directories in LIBPATH if there
8368 # are no directories specified by -L.
8369 hardcode_minus_L=yes
8370 if test "$GCC" = yes && test -z "$link_static_flag"; then
8371 # Neither direct hardcoding nor static linking is supported with a
8373 hardcode_direct=unsupported
8378 if test "$host_cpu" = ia64; then
8379 # On IA64, the linker does run time linking by default, so we don't
8380 # have to do anything special.
8381 aix_use_runtimelinking=no
8382 exp_sym_flag='-Bexport'
8385 # If we're using GNU nm, then we don't want the "-C" option.
8386 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8387 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8388 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'
8390 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'
8392 aix_use_runtimelinking=no
8394 # Test if we are trying to use run time linking or normal
8395 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8396 # need to do runtime linking.
8397 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8398 for ld_flag in $LDFLAGS; do
8399 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8400 aix_use_runtimelinking=yes
8406 exp_sym_flag='-bexport'
8407 no_entry_flag='-bnoentry'
8410 # When large executables or shared objects are built, AIX ld can
8411 # have problems creating the table of contents. If linking a library
8412 # or program results in "error TOC overflow" add -mminimal-toc to
8413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8418 hardcode_libdir_separator=':'
8419 link_all_deplibs=yes
8421 if test "$GCC" = yes; then
8422 case $host_os in aix4.012|aix4.012.*)
8423 # We only want to do this on AIX 4.2 and lower, the check
8424 # below for broken collect2 doesn't work under 4.3+
8425 collect2name=`${CC} -print-prog-name=collect2`
8426 if test -f "$collect2name" && \
8427 strings "$collect2name" | grep resolve_lib_name >/dev/null
8429 # We have reworked collect2
8432 # We have old collect2
8433 hardcode_direct=unsupported
8434 # It fails to find uninstalled libraries when the uninstalled
8435 # path is not listed in the libpath. Setting hardcode_minus_L
8436 # to unsupported forces relinking
8437 hardcode_minus_L=yes
8438 hardcode_libdir_flag_spec='-L$libdir'
8439 hardcode_libdir_separator=
8442 shared_flag='-shared'
8445 if test "$host_cpu" = ia64; then
8446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8447 # chokes on -Wl,-G. The following line is correct:
8450 if test "$aix_use_runtimelinking" = yes; then
8451 shared_flag='${wl}-G'
8453 shared_flag='${wl}-bM:SRE'
8458 # It seems that -bexpall does not export symbols beginning with
8459 # underscore (_), so it is better to generate a list of symbols to export.
8460 always_export_symbols=yes
8461 if test "$aix_use_runtimelinking" = yes; then
8462 # Warning - without using the other runtime loading flags (-brtl),
8463 # -berok will link without error, but may produce a broken library.
8464 allow_undefined_flag='-berok'
8465 # Determine the default libpath from the value encoded in an empty executable.
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>conftest.er1
8485 grep -v '^ *+' conftest.er1 >conftest.err
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag"
8491 || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8506 # Check for a 64-bit object if we didn't find anything.
8507 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; }
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8514 rm -f conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8518 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8519 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"
8521 if test "$host_cpu" = ia64; then
8522 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8523 allow_undefined_flag="-z nodefs"
8524 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"
8526 # Determine the default libpath from the value encoded in an empty executable.
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544 (eval $ac_link) 2>conftest.er1
8546 grep -v '^ *+' conftest.er1 >conftest.err
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag"
8552 || test ! -s conftest.err'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8567 # Check for a 64-bit object if we didn't find anything.
8568 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; }
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8575 rm -f conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8579 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8580 # Warning - without using the other run time loading flags,
8581 # -berok will link without error, but may produce a broken library.
8582 no_undefined_flag=' ${wl}-bernotok'
8583 allow_undefined_flag=' ${wl}-berok'
8584 # -bexpall does not export symbols beginning with underscore (_)
8585 always_export_symbols=yes
8586 # Exported symbols can be pulled into shared objects from archives
8587 whole_archive_flag_spec=' '
8588 archive_cmds_need_lc=yes
8589 # This is similar to how AIX traditionally builds it's shared libraries.
8590 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'
8596 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)'
8597 hardcode_libdir_flag_spec='-L$libdir'
8598 hardcode_minus_L=yes
8599 # see comment about different semantics on the GNU ld section
8604 export_dynamic_flag_spec=-rdynamic
8607 cygwin* | mingw* | pw32*)
8608 # When not using gcc, we currently assume that we are using
8609 # Microsoft Visual C++.
8610 # hardcode_libdir_flag_spec is actually meaningless, as there is
8611 # no search path for DLLs.
8612 hardcode_libdir_flag_spec=' '
8613 allow_undefined_flag=unsupported
8614 # Tell ltmain to make .lib files, not .a files.
8616 # Tell ltmain to make .dll files, not .so files.
8618 # FIXME: Setting linknames here is a bad hack.
8619 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8620 # The linker will automatically build a .lib file if we build a DLL.
8621 old_archive_From_new_cmds='true'
8622 # FIXME: Should let the user specify the lib program.
8623 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8624 fix_srcfile_path='`cygpath -w "$srcfile"`'
8625 enable_shared_with_static_runtimes=yes
8628 darwin* | rhapsody*)
8630 rhapsody* | darwin1.[012])
8631 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8634 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8635 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8637 case ${MACOSX_DEPLOYMENT_TARGET} in
8639 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8642 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8648 archive_cmds_need_lc=no
8650 hardcode_automatic=yes
8651 hardcode_shlibpath_var=unsupported
8652 whole_archive_flag_spec=''
8653 link_all_deplibs=yes
8654 if test "$GCC" = yes ; then
8655 output_verbose_link_cmd='echo'
8656 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8657 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8658 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8659 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}'
8660 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}'
8662 case "$cc_basename" in
8664 output_verbose_link_cmd='echo'
8665 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8666 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8667 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8668 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}'
8669 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}'
8679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680 hardcode_libdir_flag_spec='-L$libdir'
8681 hardcode_shlibpath_var=no
8688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8689 # support. Future versions do this automatically, but an explicit c++rt0.o
8690 # does not break anything, and helps significantly (at the cost of a little
8693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8694 hardcode_libdir_flag_spec='-R$libdir'
8696 hardcode_shlibpath_var=no
8699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8703 hardcode_minus_L=yes
8704 hardcode_shlibpath_var=no
8707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8708 freebsd* | kfreebsd*-gnu)
8709 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8710 hardcode_libdir_flag_spec='-R$libdir'
8712 hardcode_shlibpath_var=no
8716 if test "$GCC" = yes; then
8717 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'
8719 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'
8721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722 hardcode_libdir_separator=:
8725 # hardcode_minus_L: Not really in the search PATH,
8726 # but as the default location of the library.
8727 hardcode_minus_L=yes
8728 export_dynamic_flag_spec='${wl}-E'
8732 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8735 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8744 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8747 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8751 if test "$with_gnu_ld" = no; then
8754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8755 hardcode_libdir_flag_spec_ld='+b $libdir'
8756 hardcode_libdir_separator=:
8758 hardcode_shlibpath_var=no
8761 hardcode_libdir_flag_spec='-L$libdir'
8763 hardcode_shlibpath_var=no
8765 # hardcode_minus_L: Not really in the search PATH,
8766 # but as the default location of the library.
8767 hardcode_minus_L=yes
8770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8771 hardcode_libdir_separator=:
8773 export_dynamic_flag_spec='${wl}-E'
8775 # hardcode_minus_L: Not really in the search PATH,
8776 # but as the default location of the library.
8777 hardcode_minus_L=yes
8783 irix5* | irix6* | nonstopux*)
8784 if test "$GCC" = yes; then
8785 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'
8787 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'
8788 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791 hardcode_libdir_separator=:
8792 link_all_deplibs=yes
8796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8801 hardcode_libdir_flag_spec='-R$libdir'
8803 hardcode_shlibpath_var=no
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810 hardcode_libdir_separator=:
8811 hardcode_shlibpath_var=no
8816 hardcode_shlibpath_var=no
8817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8821 export_dynamic_flag_spec='${wl}-E'
8824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8826 hardcode_libdir_flag_spec='-R$libdir'
8829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8837 hardcode_libdir_flag_spec='-L$libdir'
8838 hardcode_minus_L=yes
8839 allow_undefined_flag=unsupported
8840 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'
8841 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8845 if test "$GCC" = yes; then
8846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8847 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'
8849 allow_undefined_flag=' -expect_unresolved \*'
8850 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'
8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853 hardcode_libdir_separator=:
8856 osf4* | osf5*) # as osf3* with the addition of -msym flag
8857 if test "$GCC" = yes; then
8858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8859 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'
8860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8862 allow_undefined_flag=' -expect_unresolved \*'
8863 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'
8864 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8865 $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'
8867 # Both c and cxx compiler support -rpath directly
8868 hardcode_libdir_flag_spec='-rpath $libdir'
8870 hardcode_libdir_separator=:
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_shlibpath_var=no
8876 export_dynamic_flag_spec='${wl}-Bexport'
8877 runpath_var=LD_RUN_PATH
8878 hardcode_runpath_var=yes
8882 no_undefined_flag=' -z text'
8883 if test "$GCC" = yes; then
8884 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8886 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8888 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8890 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8892 hardcode_libdir_flag_spec='-R$libdir'
8893 hardcode_shlibpath_var=no
8895 solaris2.[0-5] | solaris2.[0-5].*) ;;
8896 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8899 link_all_deplibs=yes
8903 if test "x$host_vendor" = xsequent; then
8904 # Use $CC to link under sequent, because it throws in some extra .o
8905 # files that make .init and .fini sections work.
8906 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8908 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8910 hardcode_libdir_flag_spec='-L$libdir'
8912 hardcode_minus_L=yes
8913 hardcode_shlibpath_var=no
8917 case $host_vendor in
8919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920 hardcode_direct=yes # is this really true???
8923 ## LD is ld it makes a PLAMLIB
8924 ## CC just makes a GrossModule.
8925 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8926 reload_cmds='$CC -r -o $output$reload_objs'
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8934 runpath_var='LD_RUN_PATH'
8935 hardcode_shlibpath_var=no
8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_shlibpath_var=no
8941 export_dynamic_flag_spec='-Bexport'
8945 if test -d /usr/nec; then
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_shlibpath_var=no
8948 runpath_var=LD_RUN_PATH
8949 hardcode_runpath_var=yes
8955 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_shlibpath_var=no
8959 hardcode_runpath_var=yes
8960 runpath_var=LD_RUN_PATH
8963 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8964 no_undefined_flag='${wl}-z ${wl}text'
8965 if test "$GCC" = yes; then
8966 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8968 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 runpath_var='LD_RUN_PATH'
8971 hardcode_shlibpath_var=no
8975 no_undefined_flag=' -z text'
8976 # $CC -shared without GNU ld will not create a library from C++
8977 # object files and a static libstdc++, better avoid it by now
8978 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8979 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8981 hardcode_libdir_flag_spec=
8982 hardcode_shlibpath_var=no
8983 runpath_var='LD_RUN_PATH'
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
8998 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8999 echo "${ECHO_T}$ld_shlibs" >&6
9000 test "$ld_shlibs" = no && can_build_shared=no
9002 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9003 if test "$GCC" = yes; then
9004 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9008 # Do we need to explicitly link libc?
9010 case "x$archive_cmds_need_lc" in
9012 # Assume -lc should be added
9013 archive_cmds_need_lc=yes
9015 if test "$enable_shared" = yes && test "$GCC" = yes; then
9016 case $archive_cmds in
9018 # FIXME: we may have to deal with multi-command sequences.
9021 # Test whether the compiler implicitly links with -lc since on some
9022 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9023 # to ld, don't add -lc before -lgcc.
9024 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9025 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9030 (eval $ac_compile) 2>&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } 2>conftest.err; then
9036 libobjs=conftest.$ac_objext
9038 wl=$lt_prog_compiler_wl
9044 lt_save_allow_undefined_flag=$allow_undefined_flag
9045 allow_undefined_flag=
9046 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9047 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }
9052 archive_cmds_need_lc=no
9054 archive_cmds_need_lc=yes
9056 allow_undefined_flag=$lt_save_allow_undefined_flag
9058 cat conftest.err 1>&5
9061 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9062 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9069 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9070 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9072 libname_spec='lib$name'
9080 shlibpath_overrides_runpath=unknown
9082 dynamic_linker="$host_os ld.so"
9083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9084 if test "$GCC" = yes; then
9085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9086 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9087 # if the path contains ";" then we assume it to be the separator
9088 # otherwise default to the standard path separator (i.e. ":") - it is
9089 # assumed that no part of a normal pathname contains ";" but that should
9090 # okay in the real world where ";" in dirpaths is itself problematic.
9091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9098 need_lib_prefix=unknown
9099 hardcode_into_libs=no
9101 # when you set need_version to no, make sure it does not cause -set_version
9102 # flags to be left without arguments
9103 need_version=unknown
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9109 shlibpath_var=LIBPATH
9111 # AIX 3 has no versioning support, so we append a major version to the name.
9112 soname_spec='${libname}${release}${shared_ext}$major'
9119 hardcode_into_libs=yes
9120 if test "$host_cpu" = ia64; then
9121 # AIX 5 supports IA64
9122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9123 shlibpath_var=LD_LIBRARY_PATH
9125 # With GCC up to 2.95.x, collect2 would create an import file
9126 # for dependence libraries. The import file would start with
9127 # the line `#! .'. This would cause the generated library to
9128 # depend on `.', always an invalid library. This was fixed in
9129 # development snapshots of GCC prior to 3.0.
9131 aix4 | aix4.[01] | aix4.[01].*)
9132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9134 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9142 # soname into executable. Probably we can add versioning support to
9143 # collect2, so additional links can be useful in future.
9144 if test "$aix_use_runtimelinking" = yes; then
9145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9146 # instead of lib<name>.a to let people know that these are not
9147 # typical AIX shared libraries.
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 # We preserve .a as extension for shared libraries through AIX4.2
9151 # and later when we are not doing run time linking.
9152 library_names_spec='${libname}${release}.a $libname.a'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LIBPATH
9160 library_names_spec='$libname.ixlibrary $libname.a'
9161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9162 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'
9166 library_names_spec='${libname}${shared_ext}'
9167 dynamic_linker="$host_os ld.so"
9168 shlibpath_var=LIBRARY_PATH
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9180 # the default ld.so.conf also contains /usr/contrib/lib and
9181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9182 # libtool to hard-code these into programs
9185 cygwin* | mingw* | pw32*)
9186 version_type=windows
9191 case $GCC,$host_os in
9192 yes,cygwin* | yes,mingw* | yes,pw32*)
9193 library_names_spec='$libname.dll.a'
9194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9195 postinstall_cmds='base_file=`basename \${file}`~
9196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9197 dldir=$destdir/`dirname \$dlpath`~
9198 test -d \$dldir || mkdir -p \$dldir~
9199 $install_prog $dir/$dlname \$dldir/$dlname'
9200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9201 dlpath=$dir/\$dldll~
9203 shlibpath_overrides_runpath=yes
9207 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9208 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9209 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9212 # MinGW DLLs use traditional 'lib' prefix
9213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9214 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9215 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9216 # It is most probably a Windows format PATH printed by
9217 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9218 # path with ; separators, and with drive letters. We can handle the
9219 # drive letters (cygwin fileutils understands them), so leave them,
9220 # especially as we might pass files found there to a mingw objdump,
9221 # which wouldn't understand a cygwinified path. Ahh.
9222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9228 # pw32 DLLs use 'pw' prefix rather than 'lib'
9229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9238 dynamic_linker='Win32 ld.exe'
9239 # FIXME: first we should search . and the directory the executable is in
9243 darwin* | rhapsody*)
9244 dynamic_linker="$host_os dyld"
9248 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9249 soname_spec='${libname}${release}${major}$shared_ext'
9250 shlibpath_overrides_runpath=yes
9251 shlibpath_var=DYLD_LIBRARY_PATH
9252 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9253 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9254 if test "$GCC" = yes; then
9255 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"`
9257 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 shlibpath_overrides_runpath=no
9283 hardcode_into_libs=yes
9284 dynamic_linker='GNU ld.so'
9288 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9289 version_type=freebsd-$objformat
9290 case $version_type in
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9301 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9306 freebsd3.01* | freebsdelf3.01*)
9307 shlibpath_overrides_runpath=yes
9308 hardcode_into_libs=yes
9311 shlibpath_overrides_runpath=no
9312 hardcode_into_libs=yes
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9324 hardcode_into_libs=yes
9327 hpux9* | hpux10* | hpux11*)
9328 # Give a soname corresponding to the major version so that dld.sl refuses to
9329 # link against other versions.
9336 hardcode_into_libs=yes
9337 dynamic_linker="$host_os dld.so"
9338 shlibpath_var=LD_LIBRARY_PATH
9339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 if test "X$HPUX_IA64_MODE" = X32; then
9343 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9345 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351 hardcode_into_libs=yes
9352 dynamic_linker="$host_os dld.sl"
9353 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362 dynamic_linker="$host_os dld.sl"
9363 shlibpath_var=SHLIB_PATH
9364 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9369 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9370 postinstall_cmds='chmod 555 $lib'
9373 irix5* | irix6* | nonstopux*)
9375 nonstopux*) version_type=nonstopux ;;
9377 if test "$lt_cv_prog_gnu_ld" = yes; then
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9388 irix5* | nonstopux*)
9392 case $LD in # libtool.m4 will add one of these switches to LD
9393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9394 libsuff= shlibsuff= libmagic=32-bit;;
9395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9396 libsuff=32 shlibsuff=N32 libmagic=N32;;
9397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9399 *) libsuff= shlibsuff= libmagic=never-match;;
9403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9404 shlibpath_overrides_runpath=no
9405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9407 hardcode_into_libs=yes
9410 # No shared lib support for Linux oldld, aout, or coff.
9411 linux*oldld* | linux*aout* | linux*coff*)
9415 # This must be Linux ELF.
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=no
9425 # This implies no fast_install, which is unacceptable.
9426 # Some rework will be needed to allow for fast_install
9427 # before this can be enabled.
9428 hardcode_into_libs=yes
9430 # Append ld.so.conf contents to the search path
9431 if test -f /etc/ld.so.conf; then
9432 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9433 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9436 # We used to test for /lib/ld.so.1 and disable shared libraries on
9437 # powerpc, because MkLinux only supported shared libraries with the
9438 # GNU dynamic linker. Since this was broken with cross compilers,
9439 # most powerpc-linux boxes support dynamic linking these days and
9440 # people can always --disable-shared, the test was removed, and we
9441 # assume the GNU/Linux dynamic linker is in use.
9442 dynamic_linker='GNU/Linux ld.so'
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 shlibpath_overrides_runpath=no
9453 hardcode_into_libs=yes
9454 dynamic_linker='GNU ld.so'
9461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9464 dynamic_linker='NetBSD (a.out) ld.so'
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 dynamic_linker='NetBSD ld.elf_so'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 shlibpath_overrides_runpath=yes
9472 hardcode_into_libs=yes
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 shlibpath_overrides_runpath=yes
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=yes
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9501 openbsd2.[89] | openbsd2.[89].*)
9502 shlibpath_overrides_runpath=no
9505 shlibpath_overrides_runpath=yes
9509 shlibpath_overrides_runpath=yes
9514 libname_spec='$name'
9517 library_names_spec='$libname${shared_ext} $libname.a'
9518 dynamic_linker='OS/2 ld.exe'
9519 shlibpath_var=LIBPATH
9522 osf3* | osf4* | osf5*)
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9530 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537 shlibpath_var=LD_LIBRARY_PATH
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 shlibpath_overrides_runpath=yes
9548 hardcode_into_libs=yes
9549 # ldd complains unless libraries are executable
9550 postinstall_cmds='chmod +x $lib'
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 shlibpath_overrides_runpath=yes
9559 if test "$with_gnu_ld" = yes; then
9565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 shlibpath_var=LD_LIBRARY_PATH
9570 case $host_vendor in
9572 shlibpath_overrides_runpath=no
9574 export_dynamic_flag_spec='${wl}-Blargedynsym'
9575 runpath_var=LD_RUN_PATH
9583 shlibpath_overrides_runpath=no
9584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9590 if test -d /usr/nec ;then
9592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9593 soname_spec='$libname${shared_ext}.$major'
9594 shlibpath_var=LD_LIBRARY_PATH
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9609 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9610 echo "${ECHO_T}$dynamic_linker" >&6
9611 test "$dynamic_linker" = no && can_build_shared=no
9613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9616 if test -n "$hardcode_libdir_flag_spec" || \
9617 test -n "$runpath_var" || \
9618 test "X$hardcode_automatic" = "Xyes" ; then
9620 # We can hardcode non-existant directories.
9621 if test "$hardcode_direct" != no &&
9622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9623 # have to relink, otherwise we might link with an installed library
9624 # when we should be linking with a yet-to-be-installed one
9625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9626 test "$hardcode_minus_L" != no; then
9627 # Linking always hardcodes the temporary library directory.
9628 hardcode_action=relink
9630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9631 hardcode_action=immediate
9634 # We cannot hardcode anything, or else we can only hardcode existing
9636 hardcode_action=unsupported
9638 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9639 echo "${ECHO_T}$hardcode_action" >&6
9641 if test "$hardcode_action" = relink; then
9642 # Fast installation is not supported
9643 enable_fast_install=no
9644 elif test "$shlibpath_overrides_runpath" = yes ||
9645 test "$enable_shared" = no; then
9646 # Fast installation is not necessary
9647 enable_fast_install=needless
9652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9657 echo "$as_me:$LINENO: result: yes" >&5
9658 echo "${ECHO_T}yes" >&6
9660 # FIXME - insert some real tests, host_os isn't really good enough
9663 if test -n "$STRIP" ; then
9664 striplib="$STRIP -x"
9665 echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9668 echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9673 echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6
9679 if test "x$enable_dlopen" != xyes; then
9680 enable_dlopen=unknown
9681 enable_dlopen_self=unknown
9682 enable_dlopen_self_static=unknown
9689 lt_cv_dlopen="load_add_on"
9691 lt_cv_dlopen_self=yes
9695 lt_cv_dlopen="LoadLibrary"
9700 lt_cv_dlopen="dlopen"
9705 # if libdl is installed we need to link against it
9706 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 ac_check_lib_save_LIBS=$LIBS
9713 cat >conftest.$ac_ext <<_ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9720 /* Override any gcc2 internal prototype to avoid an error. */
9724 /* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>conftest.er1
9739 grep -v '^ *+' conftest.er1 >conftest.err
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_c_werror_flag"
9745 || test ! -s conftest.err'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_lib_dl_dlopen=yes
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_cv_lib_dl_dlopen=no
9764 rm -f conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9770 if test $ac_cv_lib_dl_dlopen = yes; then
9771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9776 lt_cv_dlopen_self=yes
9783 echo "$as_me:$LINENO: checking for shl_load" >&5
9784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9785 if test "${ac_cv_func_shl_load+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define shl_load innocuous_shl_load
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char shl_load (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9804 # include <limits.h>
9806 # include <assert.h>
9811 /* Override any gcc2 internal prototype to avoid an error. */
9816 /* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9819 /* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9825 char (*f) () = shl_load;
9834 return f != shl_load;
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_func_shl_load=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_cv_func_shl_load=no
9868 rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9873 if test $ac_cv_func_shl_load = yes; then
9874 lt_cv_dlopen="shl_load"
9876 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9877 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 ac_check_lib_save_LIBS=$LIBS
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9890 /* Override any gcc2 internal prototype to avoid an error. */
9894 /* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_lib_dld_shl_load=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_lib_dld_shl_load=no
9934 rm -f conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9940 if test $ac_cv_lib_dld_shl_load = yes; then
9941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9943 echo "$as_me:$LINENO: checking for dlopen" >&5
9944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9945 if test "${ac_cv_func_dlopen+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9956 #define dlopen innocuous_dlopen
9958 /* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char dlopen (); below.
9960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961 <limits.h> exists even on freestanding compilers. */
9964 # include <limits.h>
9966 # include <assert.h>
9971 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9979 /* The GNU C library defines this for functions which it implements
9980 to always fail with ENOSYS. Some functions are actually named
9981 something starting with __ and the normal name is an alias. */
9982 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9985 char (*f) () = dlopen;
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>conftest.er1
10003 grep -v '^ *+' conftest.er1 >conftest.err
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -z "$ac_c_werror_flag"
10009 || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_func_dlopen=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_func_dlopen=no
10028 rm -f conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10031 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10033 if test $ac_cv_func_dlopen = yes; then
10034 lt_cv_dlopen="dlopen"
10036 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 ac_check_lib_save_LIBS=$LIBS
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 /* Override any gcc2 internal prototype to avoid an error. */
10054 /* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag"
10075 || test ! -s conftest.err'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_lib_dl_dlopen=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_lib_dl_dlopen=no
10094 rm -f conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10100 if test $ac_cv_lib_dl_dlopen = yes; then
10101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10103 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10104 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-lsvld $LIBS"
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10117 /* Override any gcc2 internal prototype to avoid an error. */
10121 /* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_lib_svld_dlopen=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_lib_svld_dlopen=no
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10167 if test $ac_cv_lib_svld_dlopen = yes; then
10168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10170 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10171 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10172 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 ac_check_lib_save_LIBS=$LIBS
10177 cat >conftest.$ac_ext <<_ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10184 /* Override any gcc2 internal prototype to avoid an error. */
10188 /* We use char because int might match the return type of a gcc2
10189 builtin and then its argument prototype would still apply. */
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_cv_lib_dld_dld_link=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_cv_lib_dld_dld_link=no
10228 rm -f conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10232 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10233 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10234 if test $ac_cv_lib_dld_dld_link = yes; then
10235 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10256 if test "x$lt_cv_dlopen" != xno; then
10262 case $lt_cv_dlopen in
10264 save_CPPFLAGS="$CPPFLAGS"
10265 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10267 save_LDFLAGS="$LDFLAGS"
10268 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10271 LIBS="$lt_cv_dlopen_libs $LIBS"
10273 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10274 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10275 if test "${lt_cv_dlopen_self+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 if test "$cross_compiling" = yes; then :
10279 lt_cv_dlopen_self=cross
10281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282 lt_status=$lt_dlunknown
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10294 # define LT_DLGLOBAL RTLD_GLOBAL
10297 # define LT_DLGLOBAL DL_GLOBAL
10299 # define LT_DLGLOBAL 0
10303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304 find out it does not work in some platform. */
10305 #ifndef LT_DLLAZY_OR_NOW
10307 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10310 # define LT_DLLAZY_OR_NOW DL_LAZY
10313 # define LT_DLLAZY_OR_NOW RTLD_NOW
10316 # define LT_DLLAZY_OR_NOW DL_NOW
10318 # define LT_DLLAZY_OR_NOW 0
10326 extern "C" void exit (int);
10329 void fnord() { int i=42;}
10332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333 int status = $lt_dlunknown;
10337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339 /* dlclose (self); */
10345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346 (eval $ac_link) 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10350 (./conftest; exit; ) 2>/dev/null
10352 case x$lt_status in
10353 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10354 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10355 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10358 # compilation failed
10359 lt_cv_dlopen_self=no
10366 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10367 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10369 if test "x$lt_cv_dlopen_self" = xyes; then
10370 LDFLAGS="$LDFLAGS $link_static_flag"
10371 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10372 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10373 if test "${lt_cv_dlopen_self_static+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 if test "$cross_compiling" = yes; then :
10377 lt_cv_dlopen_self_static=cross
10379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380 lt_status=$lt_dlunknown
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10382 "configure"
10383 #include "confdefs.h"
10392 # define LT_DLGLOBAL RTLD_GLOBAL
10395 # define LT_DLGLOBAL DL_GLOBAL
10397 # define LT_DLGLOBAL 0
10401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402 find out it does not work in some platform. */
10403 #ifndef LT_DLLAZY_OR_NOW
10405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10408 # define LT_DLLAZY_OR_NOW DL_LAZY
10411 # define LT_DLLAZY_OR_NOW RTLD_NOW
10414 # define LT_DLLAZY_OR_NOW DL_NOW
10416 # define LT_DLLAZY_OR_NOW 0
10424 extern "C" void exit (int);
10427 void fnord() { int i=42;}
10430 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431 int status = $lt_dlunknown;
10435 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10436 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437 /* dlclose (self); */
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10448 (./conftest; exit; ) 2>/dev/null
10450 case x$lt_status in
10451 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10452 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10453 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10456 # compilation failed
10457 lt_cv_dlopen_self_static=no
10464 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10465 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10468 CPPFLAGS="$save_CPPFLAGS"
10469 LDFLAGS="$save_LDFLAGS"
10474 case $lt_cv_dlopen_self in
10475 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10476 *) enable_dlopen_self=unknown ;;
10479 case $lt_cv_dlopen_self_static in
10480 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10481 *) enable_dlopen_self_static=unknown ;;
10486 # Report which librarie types wil actually be built
10487 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10488 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10489 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10490 echo "${ECHO_T}$can_build_shared" >&6
10492 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10493 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10494 test "$can_build_shared" = "no" && enable_shared=no
10496 # On AIX, shared libraries and static libraries use the same namespace, and
10497 # are all built from PIC.
10500 test "$enable_shared" = yes && enable_static=no
10501 if test -n "$RANLIB"; then
10502 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10503 postinstall_cmds='$RANLIB $lib'
10508 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10509 test "$enable_shared" = yes && enable_static=no
10513 echo "$as_me:$LINENO: result: $enable_shared" >&5
10514 echo "${ECHO_T}$enable_shared" >&6
10516 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10517 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10518 # Make sure either enable_shared or enable_static is yes.
10519 test "$enable_shared" = yes || enable_static=yes
10520 echo "$as_me:$LINENO: result: $enable_static" >&5
10521 echo "${ECHO_T}$enable_static" >&6
10523 # The else clause should only fire when bootstrapping the
10524 # libtool distribution, otherwise you forgot to ship ltmain.sh
10525 # with your package, and you will get complaints that there are
10526 # no rules to generate ltmain.sh.
10527 if test -f "$ltmain"; then
10528 # See if we are running on zsh, and set the options which allow our commands through
10529 # without removal of \ escapes.
10530 if test -n "${ZSH_VERSION+set}" ; then
10531 setopt NO_GLOB_SUBST
10533 # Now quote all the things that may contain metacharacters while being
10534 # careful not to overquote the AC_SUBSTed values. We take copies of the
10535 # variables and quote the copies for generation of the libtool script.
10536 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10538 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10539 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10540 deplibs_check_method reload_flag reload_cmds need_locks \
10541 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10542 lt_cv_sys_global_symbol_to_c_name_address \
10543 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10544 old_postinstall_cmds old_postuninstall_cmds \
10548 lt_prog_compiler_wl \
10549 lt_prog_compiler_pic \
10550 lt_prog_compiler_static \
10551 lt_prog_compiler_no_builtin_flag \
10552 export_dynamic_flag_spec \
10553 thread_safe_flag_spec \
10554 whole_archive_flag_spec \
10555 enable_shared_with_static_runtimes \
10557 old_archive_from_new_cmds \
10562 compiler_lib_search_path \
10564 archive_expsym_cmds \
10566 postuninstall_cmds \
10567 old_archive_from_expsyms_cmds \
10568 allow_undefined_flag \
10569 no_undefined_flag \
10570 export_symbols_cmds \
10571 hardcode_libdir_flag_spec \
10572 hardcode_libdir_flag_spec_ld \
10573 hardcode_libdir_separator \
10574 hardcode_automatic \
10576 module_expsym_cmds \
10577 lt_cv_prog_compiler_c_o \
10579 include_expsyms; do
10582 old_archive_cmds | \
10583 old_archive_from_new_cmds | \
10585 archive_expsym_cmds | \
10587 module_expsym_cmds | \
10588 old_archive_from_expsyms_cmds | \
10589 export_symbols_cmds | \
10590 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10591 postinstall_cmds | postuninstall_cmds | \
10592 old_postinstall_cmds | old_postuninstall_cmds | \
10593 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10594 # Double-quote double-evaled strings.
10595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10604 *'\$0 --fallback-echo"')
10605 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10609 cfgfile="${ofile}T"
10610 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10612 { echo "$as_me:$LINENO: creating $ofile" >&5
10613 echo "$as_me: creating $ofile" >&6;}
10615 cat <<__EOF__ >> "$cfgfile"
10618 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10619 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10623 # Free Software Foundation, Inc.
10625 # This file is part of GNU Libtool:
10626 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10628 # This program is free software; you can redistribute it and/or modify
10629 # it under the terms of the GNU General Public License as published by
10630 # the Free Software Foundation; either version 2 of the License, or
10631 # (at your option) any later version.
10633 # This program is distributed in the hope that it will be useful, but
10634 # WITHOUT ANY WARRANTY; without even the implied warranty of
10635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10636 # General Public License for more details.
10638 # You should have received a copy of the GNU General Public License
10639 # along with this program; if not, write to the Free Software
10640 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10642 # As a special exception to the GNU General Public License, if you
10643 # distribute this file as part of a program that contains a
10644 # configuration script generated by Autoconf, you may include it under
10645 # the same distribution terms that you use for the rest of that program.
10647 # A sed program that does not truncate output.
10650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10651 Xsed="$SED -e s/^X//"
10653 # The HP-UX ksh and POSIX shell print the target directory to stdout
10654 # if CDPATH is set.
10655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10657 # The names of the tagged configurations supported by this script.
10660 # ### BEGIN LIBTOOL CONFIG
10662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10664 # Shell to use when invoking shell scripts.
10667 # Whether or not to build shared libraries.
10668 build_libtool_libs=$enable_shared
10670 # Whether or not to build static libraries.
10671 build_old_libs=$enable_static
10673 # Whether or not to add -lc for building shared libraries.
10674 build_libtool_need_lc=$archive_cmds_need_lc
10676 # Whether or not to disallow shared libs when runtime libs are static
10677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10679 # Whether or not to optimize for fast installation.
10680 fast_install=$enable_fast_install
10683 host_alias=$host_alias
10686 # An echo program that does not interpret backslashes.
10691 AR_FLAGS=$lt_AR_FLAGS
10696 # A language-specific compiler.
10699 # Is the compiler the GNU C compiler?
10705 # The linker used to build libraries.
10708 # Whether we need hard or soft links.
10711 # A BSD-compatible nm program.
10714 # A symbol stripping program
10717 # Used to examine libraries when file_magic_cmd begins "file"
10718 MAGIC_CMD=$MAGIC_CMD
10720 # Used on cygwin: DLL creation program.
10723 # Used on cygwin: object dumper.
10726 # Used on cygwin: assembler.
10729 # The name of the directory that contains temporary libtool files.
10732 # How to create reloadable object files.
10733 reload_flag=$lt_reload_flag
10734 reload_cmds=$lt_reload_cmds
10736 # How to pass a linker flag through the compiler.
10737 wl=$lt_lt_prog_compiler_wl
10739 # Object file suffix (normally "o").
10740 objext="$ac_objext"
10742 # Old archive suffix (normally "a").
10745 # Shared library suffix (normally ".so").
10746 shrext_cmds='$shrext_cmds'
10748 # Executable file suffix (normally "").
10751 # Additional compiler flags for building library objects.
10752 pic_flag=$lt_lt_prog_compiler_pic
10755 # What is the maximum length of a command?
10756 max_cmd_len=$lt_cv_sys_max_cmd_len
10758 # Does compiler simultaneously support -c and -o options?
10759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10761 # Must we lock files when doing compilation ?
10762 need_locks=$lt_need_locks
10764 # Do we need the lib prefix for modules?
10765 need_lib_prefix=$need_lib_prefix
10767 # Do we need a version for libraries?
10768 need_version=$need_version
10770 # Whether dlopen is supported.
10771 dlopen_support=$enable_dlopen
10773 # Whether dlopen of programs is supported.
10774 dlopen_self=$enable_dlopen_self
10776 # Whether dlopen of statically linked programs is supported.
10777 dlopen_self_static=$enable_dlopen_self_static
10779 # Compiler flag to prevent dynamic linking.
10780 link_static_flag=$lt_lt_prog_compiler_static
10782 # Compiler flag to turn off builtin functions.
10783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10785 # Compiler flag to allow reflexive dlopens.
10786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10788 # Compiler flag to generate shared objects directly from archives.
10789 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10791 # Compiler flag to generate thread-safe objects.
10792 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10794 # Library versioning type.
10795 version_type=$version_type
10797 # Format of library name prefix.
10798 libname_spec=$lt_libname_spec
10800 # List of archive names. First name is the real one, the rest are links.
10801 # The last name is the one that the linker finds with -lNAME.
10802 library_names_spec=$lt_library_names_spec
10804 # The coded name of the library, if different from the real name.
10805 soname_spec=$lt_soname_spec
10807 # Commands used to build and install an old-style archive.
10809 old_archive_cmds=$lt_old_archive_cmds
10810 old_postinstall_cmds=$lt_old_postinstall_cmds
10811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10813 # Create an old-style archive from a shared archive.
10814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10816 # Create a temporary old-style archive to link instead of a shared archive.
10817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10819 # Commands used to build and install a shared archive.
10820 archive_cmds=$lt_archive_cmds
10821 archive_expsym_cmds=$lt_archive_expsym_cmds
10822 postinstall_cmds=$lt_postinstall_cmds
10823 postuninstall_cmds=$lt_postuninstall_cmds
10825 # Commands used to build a loadable module (assumed same as above if empty)
10826 module_cmds=$lt_module_cmds
10827 module_expsym_cmds=$lt_module_expsym_cmds
10829 # Commands to strip libraries.
10830 old_striplib=$lt_old_striplib
10831 striplib=$lt_striplib
10833 # Dependencies to place before the objects being linked to create a
10835 predep_objects=$lt_predep_objects
10837 # Dependencies to place after the objects being linked to create a
10839 postdep_objects=$lt_postdep_objects
10841 # Dependencies to place before the objects being linked to create a
10843 predeps=$lt_predeps
10845 # Dependencies to place after the objects being linked to create a
10847 postdeps=$lt_postdeps
10849 # The library search path used internally by the compiler when linking
10850 # a shared library.
10851 compiler_lib_search_path=$lt_compiler_lib_search_path
10853 # Method to check whether dependent libraries are shared objects.
10854 deplibs_check_method=$lt_deplibs_check_method
10856 # Command to use when deplibs_check_method == file_magic.
10857 file_magic_cmd=$lt_file_magic_cmd
10859 # Flag that allows shared libraries with undefined symbols to be built.
10860 allow_undefined_flag=$lt_allow_undefined_flag
10862 # Flag that forces no undefined symbols.
10863 no_undefined_flag=$lt_no_undefined_flag
10865 # Commands used to finish a libtool library installation in a directory.
10866 finish_cmds=$lt_finish_cmds
10868 # Same as above, but a single script fragment to be evaled but not shown.
10869 finish_eval=$lt_finish_eval
10871 # Take the output of nm and produce a listing of raw symbols and C names.
10872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10874 # Transform the output of nm in a proper C declaration
10875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10877 # Transform the output of nm in a C name address pair
10878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10880 # This is the shared library runtime path variable.
10881 runpath_var=$runpath_var
10883 # This is the shared library path variable.
10884 shlibpath_var=$shlibpath_var
10886 # Is shlibpath searched before the hard-coded library search path?
10887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10889 # How to hardcode a shared library path into an executable.
10890 hardcode_action=$hardcode_action
10892 # Whether we should hardcode library paths into libraries.
10893 hardcode_into_libs=$hardcode_into_libs
10895 # Flag to hardcode \$libdir into a binary during linking.
10896 # This must work even if \$libdir does not exist.
10897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10899 # If ld is used when linking, flag to hardcode \$libdir into
10900 # a binary during linking. This must work even if \$libdir does
10902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10904 # Whether we need a single -rpath flag with a separated argument.
10905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10908 # resulting binary.
10909 hardcode_direct=$hardcode_direct
10911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10912 # resulting binary.
10913 hardcode_minus_L=$hardcode_minus_L
10915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10916 # the resulting binary.
10917 hardcode_shlibpath_var=$hardcode_shlibpath_var
10919 # Set to yes if building a shared library automatically hardcodes DIR into the library
10920 # and all subsequent libraries and executables linked against it.
10921 hardcode_automatic=$hardcode_automatic
10923 # Variables whose values should be saved in libtool wrapper scripts and
10924 # restored at relink time.
10925 variables_saved_for_relink="$variables_saved_for_relink"
10927 # Whether libtool must link a program against all its dependency libraries.
10928 link_all_deplibs=$link_all_deplibs
10930 # Compile-time system search path for libraries
10931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10933 # Run-time system search path for libraries
10934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10936 # Fix the shell variable \$srcfile for the compiler.
10937 fix_srcfile_path="$fix_srcfile_path"
10939 # Set to yes if exported symbols are required.
10940 always_export_symbols=$always_export_symbols
10942 # The commands to list exported symbols.
10943 export_symbols_cmds=$lt_export_symbols_cmds
10945 # The commands to extract the exported symbol list from a shared archive.
10946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10948 # Symbols that should not be listed in the preloaded symbols.
10949 exclude_expsyms=$lt_exclude_expsyms
10951 # Symbols that must always be exported.
10952 include_expsyms=$lt_include_expsyms
10954 # ### END LIBTOOL CONFIG
10961 cat <<\EOF >> "$cfgfile"
10963 # AIX sometimes has problems with the GCC collect2 program. For some
10964 # reason, if we set the COLLECT_NAMES environment variable, the problems
10965 # vanish in a puff of smoke.
10966 if test "X${COLLECT_NAMES+set}" != Xset; then
10968 export COLLECT_NAMES
10974 # We use sed instead of cat because bash on DJGPP gets confused if
10975 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10976 # text mode, it properly converts lines to CR/LF. This bash problem
10977 # is reportedly fixed, but why not run on old versions too?
10978 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10980 mv -f "$cfgfile" "$ofile" || \
10981 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10985 # If there is no Makefile yet, we rely on a make rule to execute
10986 # `config.status --recheck' to rerun these tests and create the
10987 # libtool script then.
10988 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10989 if test -f "$ltmain_in"; then
10990 test -f Makefile && make "$ltmain"
10996 ac_cpp='$CPP $CPPFLAGS'
10997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11004 # Check whether --with-tags or --without-tags was given.
11005 if test "${with_tags+set}" = set; then
11006 withval="$with_tags"
11007 tagnames="$withval"
11010 if test -f "$ltmain" && test -n "$tagnames"; then
11011 if test ! -f "${ofile}"; then
11012 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11013 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11016 if test -z "$LTCC"; then
11017 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11018 if test -z "$LTCC"; then
11019 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11020 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11023 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11027 # Extract list of available tagged configurations in $ofile.
11028 # Note that this assumes the entire list is on one line.
11029 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11032 for tagname in $tagnames; do
11034 # Check whether tagname contains only valid characters
11035 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11037 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11038 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11039 { (exit 1); exit 1; }; }
11043 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11045 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11046 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11047 { (exit 1); exit 1; }; }
11050 # Update the list of available tags.
11051 if test -n "$tagname"; then
11052 echo appending configuration tag "$tagname" to $ofile
11056 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11057 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11058 (test "X$CXX" != "Xg++"))) ; then
11060 ac_cpp='$CXXCPP $CPPFLAGS'
11061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11068 archive_cmds_need_lc_CXX=no
11069 allow_undefined_flag_CXX=
11070 always_export_symbols_CXX=no
11071 archive_expsym_cmds_CXX=
11072 export_dynamic_flag_spec_CXX=
11073 hardcode_direct_CXX=no
11074 hardcode_libdir_flag_spec_CXX=
11075 hardcode_libdir_flag_spec_ld_CXX=
11076 hardcode_libdir_separator_CXX=
11077 hardcode_minus_L_CXX=no
11078 hardcode_automatic_CXX=no
11080 module_expsym_cmds_CXX=
11081 link_all_deplibs_CXX=unknown
11082 old_archive_cmds_CXX=$old_archive_cmds
11083 no_undefined_flag_CXX=
11084 whole_archive_flag_spec_CXX=
11085 enable_shared_with_static_runtimes_CXX=no
11087 # Dependencies to place before and after the object being linked:
11088 predep_objects_CXX=
11089 postdep_objects_CXX=
11092 compiler_lib_search_path_CXX=
11094 # Source file extension for C++ test sources.
11097 # Object file extension for compiled C++ test sources.
11101 # Code to be used in simple compile tests
11102 lt_simple_compile_test_code="int some_variable = 0;\n"
11104 # Code to be used in simple link tests
11105 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11107 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11109 # If no C compiler was specified, use CC.
11112 # Allow CC to be a program name with arguments.
11116 # Allow CC to be a program name with arguments.
11121 lt_save_with_gnu_ld=$with_gnu_ld
11122 lt_save_path_LD=$lt_cv_path_LD
11123 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11124 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11126 unset lt_cv_prog_gnu_ld
11128 if test -n "${lt_cv_path_LDCXX+set}"; then
11129 lt_cv_path_LD=$lt_cv_path_LDCXX
11131 unset lt_cv_path_LD
11133 test -z "${LDCXX+set}" || LD=$LDCXX
11137 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11139 # We don't want -fno-exception wen compiling C++ code, so set the
11140 # no_builtin_flag separately
11141 if test "$GXX" = yes; then
11142 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11144 lt_prog_compiler_no_builtin_flag_CXX=
11147 if test "$GXX" = yes; then
11148 # Set up default GNU C++ configuration
11151 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11152 if test "${with_gnu_ld+set}" = set; then
11153 withval="$with_gnu_ld"
11154 test "$withval" = no || with_gnu_ld=yes
11159 if test "$GCC" = yes; then
11160 # Check if gcc -print-prog-name=ld gives a path.
11161 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11162 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11165 # gcc leaves a trailing carriage return which upsets mingw
11166 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11168 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11171 # Accept absolute paths.
11173 re_direlt='/[^/][^/]*/\.\./'
11174 # Canonicalize the pathname of ld
11175 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11176 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11177 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11179 test -z "$LD" && LD="$ac_prog"
11182 # If it fails, then pretend we aren't using GCC.
11186 # If it is relative, then search for the first ld in PATH.
11187 with_gnu_ld=unknown
11190 elif test "$with_gnu_ld" = yes; then
11191 echo "$as_me:$LINENO: checking for GNU ld" >&5
11192 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11194 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11195 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11197 if test "${lt_cv_path_LD+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 if test -z "$LD"; then
11201 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11202 for ac_dir in $PATH; do
11204 test -z "$ac_dir" && ac_dir=.
11205 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11206 lt_cv_path_LD="$ac_dir/$ac_prog"
11207 # Check to see if the program is GNU ld. I'd rather use --version,
11208 # but apparently some GNU ld's only accept -v.
11209 # Break only if it was the GNU/non-GNU ld that we prefer.
11210 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11211 *GNU* | *'with BFD'*)
11212 test "$with_gnu_ld" != no && break
11215 test "$with_gnu_ld" != yes && break
11222 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11226 LD="$lt_cv_path_LD"
11227 if test -n "$LD"; then
11228 echo "$as_me:$LINENO: result: $LD" >&5
11229 echo "${ECHO_T}$LD" >&6
11231 echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6
11234 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11235 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11236 { (exit 1); exit 1; }; }
11237 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11238 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11239 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11243 case `$LD -v 2>&1 </dev/null` in
11244 *GNU* | *'with BFD'*)
11245 lt_cv_prog_gnu_ld=yes
11248 lt_cv_prog_gnu_ld=no
11252 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11253 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11254 with_gnu_ld=$lt_cv_prog_gnu_ld
11258 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11259 # archiving commands below assume that GNU ld is being used.
11260 if test "$with_gnu_ld" = yes; then
11261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11262 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'
11264 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11265 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11267 # If archive_cmds runs LD, not CC, wlarc should be empty
11268 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11269 # investigate it a little bit more. (MM)
11272 # ancient GNU ld didn't support --whole-archive et. al.
11273 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11274 grep 'no-whole-archive' > /dev/null; then
11275 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11277 whole_archive_flag_spec_CXX=
11283 # A generic and very simple default shared library creation
11284 # command for GNU C++ for the case where it uses the native
11285 # linker, instead of GNU ld. If possible, this setting should
11286 # overridden to take advantage of the native linker features on
11287 # the platform it is being used on.
11288 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11291 # Commands to make compiler produce verbose output that lists
11292 # what "hidden" libraries, object files and flags are used when
11293 # linking a shared library.
11294 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11302 # PORTME: fill in a description of your system's C++ link characteristics
11303 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11304 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11308 # FIXME: insert proper C++ library support
11312 if test "$host_cpu" = ia64; then
11313 # On IA64, the linker does run time linking by default, so we don't
11314 # have to do anything special.
11315 aix_use_runtimelinking=no
11316 exp_sym_flag='-Bexport'
11319 aix_use_runtimelinking=no
11321 # Test if we are trying to use run time linking or normal
11322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11323 # need to do runtime linking.
11324 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11325 for ld_flag in $LDFLAGS; do
11328 aix_use_runtimelinking=yes
11335 exp_sym_flag='-bexport'
11336 no_entry_flag='-bnoentry'
11339 # When large executables or shared objects are built, AIX ld can
11340 # have problems creating the table of contents. If linking a library
11341 # or program results in "error TOC overflow" add -mminimal-toc to
11342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11345 archive_cmds_CXX=''
11346 hardcode_direct_CXX=yes
11347 hardcode_libdir_separator_CXX=':'
11348 link_all_deplibs_CXX=yes
11350 if test "$GXX" = yes; then
11351 case $host_os in aix4.012|aix4.012.*)
11352 # We only want to do this on AIX 4.2 and lower, the check
11353 # below for broken collect2 doesn't work under 4.3+
11354 collect2name=`${CC} -print-prog-name=collect2`
11355 if test -f "$collect2name" && \
11356 strings "$collect2name" | grep resolve_lib_name >/dev/null
11358 # We have reworked collect2
11359 hardcode_direct_CXX=yes
11361 # We have old collect2
11362 hardcode_direct_CXX=unsupported
11363 # It fails to find uninstalled libraries when the uninstalled
11364 # path is not listed in the libpath. Setting hardcode_minus_L
11365 # to unsupported forces relinking
11366 hardcode_minus_L_CXX=yes
11367 hardcode_libdir_flag_spec_CXX='-L$libdir'
11368 hardcode_libdir_separator_CXX=
11371 shared_flag='-shared'
11374 if test "$host_cpu" = ia64; then
11375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11376 # chokes on -Wl,-G. The following line is correct:
11379 if test "$aix_use_runtimelinking" = yes; then
11380 shared_flag='${wl}-G'
11382 shared_flag='${wl}-bM:SRE'
11387 # It seems that -bexpall does not export symbols beginning with
11388 # underscore (_), so it is better to generate a list of symbols to export.
11389 always_export_symbols_CXX=yes
11390 if test "$aix_use_runtimelinking" = yes; then
11391 # Warning - without using the other runtime loading flags (-brtl),
11392 # -berok will link without error, but may produce a broken library.
11393 allow_undefined_flag_CXX='-berok'
11394 # Determine the default libpath from the value encoded in an empty executable.
11395 cat >conftest.$ac_ext <<_ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>conftest.er1
11414 grep -v '^ *+' conftest.er1 >conftest.err
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } &&
11419 { ac_try='test -z "$ac_cxx_werror_flag"
11420 || test ! -s conftest.err'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; } &&
11426 { ac_try='test -s conftest$ac_exeext'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11435 # Check for a 64-bit object if we didn't find anything.
11436 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; }
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11443 rm -f conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11447 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11449 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"
11451 if test "$host_cpu" = ia64; then
11452 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11453 allow_undefined_flag_CXX="-z nodefs"
11454 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"
11456 # Determine the default libpath from the value encoded in an empty executable.
11457 cat >conftest.$ac_ext <<_ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474 (eval $ac_link) 2>conftest.er1
11476 grep -v '^ *+' conftest.er1 >conftest.err
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -z "$ac_cxx_werror_flag"
11482 || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest$ac_exeext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11497 # Check for a 64-bit object if we didn't find anything.
11498 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; }
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11505 rm -f conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext conftest.$ac_ext
11507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11509 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11510 # Warning - without using the other run time loading flags,
11511 # -berok will link without error, but may produce a broken library.
11512 no_undefined_flag_CXX=' ${wl}-bernotok'
11513 allow_undefined_flag_CXX=' ${wl}-berok'
11514 # -bexpall does not export symbols beginning with underscore (_)
11515 always_export_symbols_CXX=yes
11516 # Exported symbols can be pulled into shared objects from archives
11517 whole_archive_flag_spec_CXX=' '
11518 archive_cmds_need_lc_CXX=yes
11519 # This is similar to how AIX traditionally builds it's shared libraries.
11520 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'
11525 case $cc_basename in
11527 # FIXME: insert proper C++ library support
11534 cygwin* | mingw* | pw32*)
11535 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11536 # as there is no search path for DLLs.
11537 hardcode_libdir_flag_spec_CXX='-L$libdir'
11538 allow_undefined_flag_CXX=unsupported
11539 always_export_symbols_CXX=no
11540 enable_shared_with_static_runtimes_CXX=yes
11542 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11543 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'
11544 # If the export-symbols file already is a .def file (1st line
11545 # is EXPORTS), use it as is; otherwise, prepend...
11546 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11547 cp $export_symbols $output_objdir/$soname.def;
11549 echo EXPORTS > $output_objdir/$soname.def;
11550 cat $export_symbols >> $output_objdir/$soname.def;
11552 $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'
11557 darwin* | rhapsody*)
11559 rhapsody* | darwin1.[012])
11560 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11563 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11564 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11566 case ${MACOSX_DEPLOYMENT_TARGET} in
11568 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11571 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11577 archive_cmds_need_lc_CXX=no
11578 hardcode_direct_CXX=no
11579 hardcode_automatic_CXX=yes
11580 hardcode_shlibpath_var_CXX=unsupported
11581 whole_archive_flag_spec_CXX=''
11582 link_all_deplibs_CXX=yes
11584 if test "$GXX" = yes ; then
11585 lt_int_apple_cc_single_mod=no
11586 output_verbose_link_cmd='echo'
11587 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11588 lt_int_apple_cc_single_mod=yes
11590 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11591 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11593 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'
11595 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11596 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11597 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11598 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}'
11600 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}'
11602 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}'
11604 case "$cc_basename" in
11606 output_verbose_link_cmd='echo'
11607 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'
11608 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11609 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11610 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}'
11611 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}'
11621 case $cc_basename in
11623 # FIXME: insert proper C++ library support
11627 # Green Hills C++ Compiler
11628 # FIXME: insert proper C++ library support
11632 # FIXME: insert proper C++ library support
11638 # C++ shared libraries reported to be fairly broken before switch to ELF
11642 archive_cmds_need_lc_CXX=no
11644 freebsd* | kfreebsd*-gnu)
11645 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11652 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11653 hardcode_libdir_separator_CXX=:
11654 export_dynamic_flag_spec_CXX='${wl}-E'
11655 hardcode_direct_CXX=yes
11656 hardcode_minus_L_CXX=yes # Not in the search PATH,
11657 # but as the default
11658 # location of the library.
11660 case $cc_basename in
11662 # FIXME: insert proper C++ library support
11666 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'
11667 # Commands to make compiler produce verbose output that lists
11668 # what "hidden" libraries, object files and flags are used when
11669 # linking a shared library.
11671 # There doesn't appear to be a way to prevent this compiler from
11672 # explicitly linking system object files so we need to strip them
11673 # from the output so that they don't get included in the library
11675 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'
11678 if test "$GXX" = yes; then
11679 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'
11681 # FIXME: insert proper C++ library support
11688 if test $with_gnu_ld = no; then
11689 case "$host_cpu" in
11691 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11692 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11693 hardcode_libdir_separator_CXX=:
11696 hardcode_libdir_flag_spec_CXX='-L$libdir'
11699 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11700 hardcode_libdir_separator_CXX=:
11701 export_dynamic_flag_spec_CXX='${wl}-E'
11705 case "$host_cpu" in
11707 hardcode_direct_CXX=no
11708 hardcode_shlibpath_var_CXX=no
11711 hardcode_direct_CXX=no
11712 hardcode_shlibpath_var_CXX=no
11713 hardcode_minus_L_CXX=yes # Not in the search PATH,
11714 # but as the default
11715 # location of the library.
11718 hardcode_direct_CXX=yes
11719 hardcode_minus_L_CXX=yes # Not in the search PATH,
11720 # but as the default
11721 # location of the library.
11725 case $cc_basename in
11727 # FIXME: insert proper C++ library support
11731 case "$host_cpu" in
11733 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11736 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11739 # Commands to make compiler produce verbose output that lists
11740 # what "hidden" libraries, object files and flags are used when
11741 # linking a shared library.
11743 # There doesn't appear to be a way to prevent this compiler from
11744 # explicitly linking system object files so we need to strip them
11745 # from the output so that they don't get included in the library
11747 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'
11750 if test "$GXX" = yes; then
11751 if test $with_gnu_ld = no; then
11752 case "$host_cpu" in
11754 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11757 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'
11762 # FIXME: insert proper C++ library support
11769 case $cc_basename in
11772 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'
11774 # Archives containing C++ object files must be created using
11775 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11776 # necessary to make sure instantiated templates are included
11778 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11781 if test "$GXX" = yes; then
11782 if test "$with_gnu_ld" = no; then
11783 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'
11785 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'
11788 link_all_deplibs_CXX=yes
11791 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11792 hardcode_libdir_separator_CXX=:
11795 case $cc_basename in
11797 # Kuck and Associates, Inc. (KAI) C++ Compiler
11799 # KCC will only create a shared library if the output file
11800 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11801 # to its proper name (with version) after linking.
11802 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'
11803 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'
11804 # Commands to make compiler produce verbose output that lists
11805 # what "hidden" libraries, object files and flags are used when
11806 # linking a shared library.
11808 # There doesn't appear to be a way to prevent this compiler from
11809 # explicitly linking system object files so we need to strip them
11810 # from the output so that they don't get included in the library
11812 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'
11814 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11817 # Archives containing C++ object files must be created using
11818 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11819 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11824 # version 8.0 and above of icpc choke on multiply defined symbols
11825 # if we add $predep_objects and $postdep_objects, however 7.1 and
11826 # earlier do not add the objects themselves.
11827 case `$CC -V 2>&1` in
11829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830 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'
11832 *) # Version 8.0 or newer
11833 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11834 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11837 archive_cmds_need_lc_CXX=no
11838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11840 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11845 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'
11847 runpath_var=LD_RUN_PATH
11848 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11849 hardcode_libdir_separator_CXX=:
11851 # Commands to make compiler produce verbose output that lists
11852 # what "hidden" libraries, object files and flags are used when
11853 # linking a shared library.
11855 # There doesn't appear to be a way to prevent this compiler from
11856 # explicitly linking system object files so we need to strip them
11857 # from the output so that they don't get included in the library
11859 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'
11864 # FIXME: insert proper C++ library support
11868 # FIXME: insert proper C++ library support
11872 case $cc_basename in
11874 # FIXME: insert proper C++ library support
11878 # FIXME: insert proper C++ library support
11884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11885 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11887 hardcode_libdir_flag_spec_CXX='-R$libdir'
11888 hardcode_direct_CXX=yes
11889 hardcode_shlibpath_var_CXX=no
11891 # Workaround some broken pre-1.5 toolchains
11892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11895 # C++ shared libraries are fairly broken
11899 hardcode_direct_CXX=yes
11900 hardcode_shlibpath_var_CXX=no
11901 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11904 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11905 export_dynamic_flag_spec_CXX='${wl}-E'
11906 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11908 output_verbose_link_cmd='echo'
11911 case $cc_basename in
11913 # Kuck and Associates, Inc. (KAI) C++ Compiler
11915 # KCC will only create a shared library if the output file
11916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11917 # to its proper name (with version) after linking.
11918 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'
11920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11921 hardcode_libdir_separator_CXX=:
11923 # Archives containing C++ object files must be created using
11924 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11925 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11929 # Rational C++ 2.4.1
11930 # FIXME: insert proper C++ library support
11934 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11935 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'
11937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11938 hardcode_libdir_separator_CXX=:
11940 # Commands to make compiler produce verbose output that lists
11941 # what "hidden" libraries, object files and flags are used when
11942 # linking a shared library.
11944 # There doesn't appear to be a way to prevent this compiler from
11945 # explicitly linking system object files so we need to strip them
11946 # from the output so that they don't get included in the library
11948 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'
11951 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11952 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11953 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'
11955 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11956 hardcode_libdir_separator_CXX=:
11958 # Commands to make compiler produce verbose output that lists
11959 # what "hidden" libraries, object files and flags are used when
11960 # linking a shared library.
11961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11964 # FIXME: insert proper C++ library support
11971 case $cc_basename in
11973 # Kuck and Associates, Inc. (KAI) C++ Compiler
11975 # KCC will only create a shared library if the output file
11976 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11977 # to its proper name (with version) after linking.
11978 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'
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981 hardcode_libdir_separator_CXX=:
11983 # Archives containing C++ object files must be created using
11984 # the KAI C++ compiler.
11985 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11988 # Rational C++ 2.4.1
11989 # FIXME: insert proper C++ library support
11993 allow_undefined_flag_CXX=' -expect_unresolved \*'
11994 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'
11995 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11996 echo "-hidden">> $lib.exp~
11997 $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~
12000 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12001 hardcode_libdir_separator_CXX=:
12003 # Commands to make compiler produce verbose output that lists
12004 # what "hidden" libraries, object files and flags are used when
12005 # linking a shared library.
12007 # There doesn't appear to be a way to prevent this compiler from
12008 # explicitly linking system object files so we need to strip them
12009 # from the output so that they don't get included in the library
12011 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'
12014 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12016 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'
12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12019 hardcode_libdir_separator_CXX=:
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.
12024 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12027 # FIXME: insert proper C++ library support
12034 # FIXME: insert proper C++ library support
12038 archive_cmds_need_lc_CXX=no
12039 case $cc_basename in
12041 # FIXME: insert proper C++ library support
12045 # FIXME: insert proper C++ library support
12051 case $cc_basename in
12054 # FIXME: insert proper C++ library support
12059 # FIXME: insert proper C++ library support
12063 # FIXME: insert proper C++ library support
12069 case $cc_basename in
12071 # Sun C++ 4.2, 5.x and Centerline C++
12072 no_undefined_flag_CXX=' -zdefs'
12073 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075 $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'
12077 hardcode_libdir_flag_spec_CXX='-R$libdir'
12078 hardcode_shlibpath_var_CXX=no
12080 solaris2.0-5 | solaris2.0-5.*) ;;
12082 # The C++ compiler is used as linker so we must use $wl
12083 # flag to pass the commands to the underlying system
12085 # Supported since Solaris 2.6 (maybe 2.5.1?)
12086 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12089 link_all_deplibs_CXX=yes
12091 # Commands to make compiler produce verbose output that lists
12092 # what "hidden" libraries, object files and flags are used when
12093 # linking a shared library.
12095 # There doesn't appear to be a way to prevent this compiler from
12096 # explicitly linking system object files so we need to strip them
12097 # from the output so that they don't get included in the library
12099 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'
12101 # Archives containing C++ object files must be created using
12102 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12103 # necessary to make sure instantiated templates are included
12105 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12108 # Green Hills C++ Compiler
12109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111 # The C++ compiler must be used to create the archive.
12112 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12115 # GNU C++ compiler with Solaris linker
12116 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12117 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12118 if $CC --version | grep -v '^2\.7' > /dev/null; then
12119 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12120 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12121 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12123 # Commands to make compiler produce verbose output that lists
12124 # what "hidden" libraries, object files and flags are used when
12125 # linking a shared library.
12126 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12128 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12130 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12131 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12132 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12134 # Commands to make compiler produce verbose output that lists
12135 # what "hidden" libraries, object files and flags are used when
12136 # linking a shared library.
12137 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12140 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12145 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12146 archive_cmds_need_lc_CXX=no
12149 case $cc_basename in
12151 # NonStop-UX NCC 3.20
12152 # FIXME: insert proper C++ library support
12156 # FIXME: insert proper C++ library support
12162 # FIXME: insert proper C++ library support
12166 # FIXME: insert proper C++ library support
12170 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12171 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12172 test "$ld_shlibs_CXX" = no && can_build_shared=no
12178 cat > conftest.$ac_ext <<EOF
12182 Foo (void) { a = 0; }
12188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; then
12193 # Parse the compiler output and extract the necessary
12194 # objects, libraries and library flags.
12196 # Sentinel used to keep track of whether or not we are before
12197 # the conftest object file.
12198 pre_test_object_deps_done=no
12200 # The `*' in the case matches for architectures that use `case' in
12201 # $output_verbose_cmd can trigger glob expansion during the loop
12202 # eval without this substitution.
12203 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12205 for p in `eval $output_verbose_link_cmd`; do
12209 # Some compilers place space between "-{L,R}" and the path.
12210 # Remove the space.
12211 if test $p = "-L" \
12212 || test $p = "-R"; then
12219 if test "$pre_test_object_deps_done" = no; then
12222 # Internal compiler library paths should come after those
12223 # provided the user. The postdeps already come after the
12224 # user supplied libs so there is no need to process them.
12225 if test -z "$compiler_lib_search_path_CXX"; then
12226 compiler_lib_search_path_CXX="${prev}${p}"
12228 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12231 # The "-l" case would never come before the object being
12232 # linked, so don't bother handling this case.
12235 if test -z "$postdeps_CXX"; then
12236 postdeps_CXX="${prev}${p}"
12238 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12244 # This assumes that the test object file only shows up
12245 # once in the compiler output.
12246 if test "$p" = "conftest.$objext"; then
12247 pre_test_object_deps_done=yes
12251 if test "$pre_test_object_deps_done" = no; then
12252 if test -z "$predep_objects_CXX"; then
12253 predep_objects_CXX="$p"
12255 predep_objects_CXX="$predep_objects_CXX $p"
12258 if test -z "$postdep_objects_CXX"; then
12259 postdep_objects_CXX="$p"
12261 postdep_objects_CXX="$postdep_objects_CXX $p"
12266 *) ;; # Ignore the rest.
12274 echo "libtool.m4: error: problem compiling CXX test program"
12277 $rm -f confest.$objext
12279 case " $postdeps_CXX " in
12280 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12283 lt_prog_compiler_wl_CXX=
12284 lt_prog_compiler_pic_CXX=
12285 lt_prog_compiler_static_CXX=
12287 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12288 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12290 # C++ specific cases for pic, static, wl, etc.
12291 if test "$GXX" = yes; then
12292 lt_prog_compiler_wl_CXX='-Wl,'
12293 lt_prog_compiler_static_CXX='-static'
12297 # All AIX code is PIC.
12298 if test "$host_cpu" = ia64; then
12299 # AIX 5 now supports IA64 processor
12300 lt_prog_compiler_static_CXX='-Bstatic'
12304 # FIXME: we need at least 68020 code to build shared libraries, but
12305 # adding the `-m68020' flag to GCC prevents building anything better,
12307 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12309 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12310 # PIC is the default for these OSes.
12312 mingw* | os2* | pw32*)
12313 # This hack is so that the source file can tell whether it is being
12314 # built for inclusion in a dll (and should export symbols for example).
12315 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12317 darwin* | rhapsody*)
12318 # PIC is the default on this platform
12319 # Common symbols not allowed in MH_DYLIB files
12320 lt_prog_compiler_pic_CXX='-fno-common'
12323 # DJGPP does not support shared libraries at all
12324 lt_prog_compiler_pic_CXX=
12327 if test -d /usr/nec; then
12328 lt_prog_compiler_pic_CXX=-Kconform_pic
12332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12333 # not for PA HP-UX.
12334 case "$host_cpu" in
12338 lt_prog_compiler_pic_CXX='-fPIC'
12343 lt_prog_compiler_pic_CXX='-fPIC'
12349 # All AIX code is PIC.
12350 if test "$host_cpu" = ia64; then
12351 # AIX 5 now supports IA64 processor
12352 lt_prog_compiler_static_CXX='-Bstatic'
12354 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12358 case $cc_basename in
12360 # Green Hills C++ Compiler
12361 # _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"
12366 # PIC is the default on this platform
12367 # Common symbols not allowed in MH_DYLIB files
12368 case "$cc_basename" in
12370 lt_prog_compiler_pic_CXX='-qnocommon'
12371 lt_prog_compiler_wl_CXX='-Wl,'
12376 case $cc_basename in
12378 lt_prog_compiler_pic_CXX='-KPIC'
12381 # Green Hills C++ Compiler
12382 lt_prog_compiler_pic_CXX='-pic'
12388 freebsd* | kfreebsd*-gnu)
12389 # FreeBSD uses GNU C++
12391 hpux9* | hpux10* | hpux11*)
12392 case $cc_basename in
12394 lt_prog_compiler_wl_CXX='-Wl,'
12395 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12396 if test "$host_cpu" != ia64; then
12397 lt_prog_compiler_pic_CXX='+Z'
12401 lt_prog_compiler_wl_CXX='-Wl,'
12402 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12403 case "$host_cpu" in
12408 lt_prog_compiler_pic_CXX='+Z'
12416 irix5* | irix6* | nonstopux*)
12417 case $cc_basename in
12419 lt_prog_compiler_wl_CXX='-Wl,'
12420 lt_prog_compiler_static_CXX='-non_shared'
12421 # CC pic flag -KPIC is the default.
12428 case $cc_basename in
12431 lt_prog_compiler_wl_CXX='--backend -Wl,'
12432 lt_prog_compiler_pic_CXX='-fPIC'
12436 lt_prog_compiler_wl_CXX='-Wl,'
12437 lt_prog_compiler_pic_CXX='-KPIC'
12438 lt_prog_compiler_static_CXX='-static'
12442 # Make sure the PIC flag is empty. It appears that all Alpha
12443 # Linux and Compaq Tru64 Unix objects are PIC.
12444 lt_prog_compiler_pic_CXX=
12445 lt_prog_compiler_static_CXX='-non_shared'
12456 case $cc_basename in
12458 lt_prog_compiler_pic_CXX='-W c,exportall'
12466 osf3* | osf4* | osf5*)
12467 case $cc_basename in
12469 lt_prog_compiler_wl_CXX='--backend -Wl,'
12472 # Rational C++ 2.4.1
12473 lt_prog_compiler_pic_CXX='-pic'
12476 # Digital/Compaq C++
12477 lt_prog_compiler_wl_CXX='-Wl,'
12478 # Make sure the PIC flag is empty. It appears that all Alpha
12479 # Linux and Compaq Tru64 Unix objects are PIC.
12480 lt_prog_compiler_pic_CXX=
12481 lt_prog_compiler_static_CXX='-non_shared'
12490 case $cc_basename in
12492 lt_prog_compiler_pic_CXX='-fPIC'
12499 case $cc_basename in
12501 # Sun C++ 4.2, 5.x and Centerline C++
12502 lt_prog_compiler_pic_CXX='-KPIC'
12503 lt_prog_compiler_static_CXX='-Bstatic'
12504 lt_prog_compiler_wl_CXX='-Qoption ld '
12507 # Green Hills C++ Compiler
12508 lt_prog_compiler_pic_CXX='-PIC'
12515 case $cc_basename in
12518 lt_prog_compiler_pic_CXX='-pic'
12519 lt_prog_compiler_static_CXX='-Bstatic'
12523 lt_prog_compiler_pic_CXX='-pic'
12530 case $cc_basename in
12532 # NonStop-UX NCC 3.20
12533 lt_prog_compiler_pic_CXX='-KPIC'
12544 lt_prog_compiler_can_build_shared_CXX=no
12549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12550 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12553 # Check to make sure the PIC flag actually works.
12555 if test -n "$lt_prog_compiler_pic_CXX"; then
12557 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12559 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 lt_prog_compiler_pic_works_CXX=no
12563 ac_outfile=conftest.$ac_objext
12564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12565 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12566 # Insert the option either (1) after the last *FLAGS variable, or
12567 # (2) before a word containing "conftest.", or (3) at the end.
12568 # Note that $ac_compile itself does not contain backslashes and begins
12569 # with a dollar sign (not a hyphen), so the echo should work correctly.
12570 # The option is referenced via a variable to avoid confusing sed.
12571 lt_compile=`echo "$ac_compile" | $SED \
12572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12574 -e 's:$: $lt_compiler_flag:'`
12575 (eval echo "\"\$as_me:12575: $lt_compile\"" >&5)
12576 (eval "$lt_compile" 2>conftest.err)
12578 cat conftest.err >&5
12579 echo "$as_me:12579: \$? = $ac_status" >&5
12580 if (exit $ac_status) && test -s "$ac_outfile"; then
12581 # The compiler can only warn and ignore the option if not recognized
12582 # So say no if there are warnings
12583 if test ! -s conftest.err; then
12584 lt_prog_compiler_pic_works_CXX=yes
12590 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12591 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12593 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12594 case $lt_prog_compiler_pic_CXX in
12596 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12599 lt_prog_compiler_pic_CXX=
12600 lt_prog_compiler_can_build_shared_CXX=no
12605 # For platforms which do not support PIC, -DPIC is meaningless:
12607 lt_prog_compiler_pic_CXX=
12610 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12614 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12616 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 lt_cv_prog_compiler_c_o_CXX=no
12620 $rm -r conftest 2>/dev/null
12624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12626 lt_compiler_flag="-o out/conftest2.$ac_objext"
12627 # Insert the option either (1) after the last *FLAGS variable, or
12628 # (2) before a word containing "conftest.", or (3) at the end.
12629 # Note that $ac_compile itself does not contain backslashes and begins
12630 # with a dollar sign (not a hyphen), so the echo should work correctly.
12631 lt_compile=`echo "$ac_compile" | $SED \
12632 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12634 -e 's:$: $lt_compiler_flag:'`
12635 (eval echo "\"\$as_me:12635: $lt_compile\"" >&5)
12636 (eval "$lt_compile" 2>out/conftest.err)
12638 cat out/conftest.err >&5
12639 echo "$as_me:12639: \$? = $ac_status" >&5
12640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12642 # The compiler can only warn and ignore the option if not recognized
12643 # So say no if there are warnings
12644 if test ! -s out/conftest.err; then
12645 lt_cv_prog_compiler_c_o_CXX=yes
12650 # SGI C++ compiler will create directory out/ii_files/ for
12651 # template instantiation
12652 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12653 $rm out/* && rmdir out
12659 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12660 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12663 hard_links="nottested"
12664 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12665 # do not overwrite the value of need_locks provided by the user
12666 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12667 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12672 ln conftest.a conftest.b 2>&5 || hard_links=no
12673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12674 echo "$as_me:$LINENO: result: $hard_links" >&5
12675 echo "${ECHO_T}$hard_links" >&6
12676 if test "$hard_links" = no; then
12677 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12678 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12685 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12686 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12691 # If we're using GNU nm, then we don't want the "-C" option.
12692 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12693 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12694 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'
12696 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'
12700 export_symbols_cmds_CXX="$ltdll_cmds"
12703 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12706 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12710 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12711 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12712 test "$ld_shlibs_CXX" = no && can_build_shared=no
12714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12715 if test "$GCC" = yes; then
12716 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12720 # Do we need to explicitly link libc?
12722 case "x$archive_cmds_need_lc_CXX" in
12724 # Assume -lc should be added
12725 archive_cmds_need_lc_CXX=yes
12727 if test "$enable_shared" = yes && test "$GCC" = yes; then
12728 case $archive_cmds_CXX in
12730 # FIXME: we may have to deal with multi-command sequences.
12733 # Test whether the compiler implicitly links with -lc since on some
12734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12735 # to ld, don't add -lc before -lgcc.
12736 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12737 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742 (eval $ac_compile) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } 2>conftest.err; then
12748 libobjs=conftest.$ac_objext
12750 wl=$lt_prog_compiler_wl_CXX
12756 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12757 allow_undefined_flag_CXX=
12758 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12759 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }
12764 archive_cmds_need_lc_CXX=no
12766 archive_cmds_need_lc_CXX=yes
12768 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12770 cat conftest.err 1>&5
12773 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12774 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12781 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12783 library_names_spec=
12784 libname_spec='lib$name'
12788 postuninstall_cmds=
12792 shlibpath_overrides_runpath=unknown
12794 dynamic_linker="$host_os ld.so"
12795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12796 if test "$GCC" = yes; then
12797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12798 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12799 # if the path contains ";" then we assume it to be the separator
12800 # otherwise default to the standard path separator (i.e. ":") - it is
12801 # assumed that no part of a normal pathname contains ";" but that should
12802 # okay in the real world where ";" in dirpaths is itself problematic.
12803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12810 need_lib_prefix=unknown
12811 hardcode_into_libs=no
12813 # when you set need_version to no, make sure it does not cause -set_version
12814 # flags to be left without arguments
12815 need_version=unknown
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12821 shlibpath_var=LIBPATH
12823 # AIX 3 has no versioning support, so we append a major version to the name.
12824 soname_spec='${libname}${release}${shared_ext}$major'
12831 hardcode_into_libs=yes
12832 if test "$host_cpu" = ia64; then
12833 # AIX 5 supports IA64
12834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12835 shlibpath_var=LD_LIBRARY_PATH
12837 # With GCC up to 2.95.x, collect2 would create an import file
12838 # for dependence libraries. The import file would start with
12839 # the line `#! .'. This would cause the generated library to
12840 # depend on `.', always an invalid library. This was fixed in
12841 # development snapshots of GCC prior to 3.0.
12843 aix4 | aix4.[01] | aix4.[01].*)
12844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12846 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12849 can_build_shared=no
12853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12854 # soname into executable. Probably we can add versioning support to
12855 # collect2, so additional links can be useful in future.
12856 if test "$aix_use_runtimelinking" = yes; then
12857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12858 # instead of lib<name>.a to let people know that these are not
12859 # typical AIX shared libraries.
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862 # We preserve .a as extension for shared libraries through AIX4.2
12863 # and later when we are not doing run time linking.
12864 library_names_spec='${libname}${release}.a $libname.a'
12865 soname_spec='${libname}${release}${shared_ext}$major'
12867 shlibpath_var=LIBPATH
12872 library_names_spec='$libname.ixlibrary $libname.a'
12873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12874 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'
12878 library_names_spec='${libname}${shared_ext}'
12879 dynamic_linker="$host_os ld.so"
12880 shlibpath_var=LIBRARY_PATH
12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12887 soname_spec='${libname}${release}${shared_ext}$major'
12888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12892 # the default ld.so.conf also contains /usr/contrib/lib and
12893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12894 # libtool to hard-code these into programs
12897 cygwin* | mingw* | pw32*)
12898 version_type=windows
12903 case $GCC,$host_os in
12904 yes,cygwin* | yes,mingw* | yes,pw32*)
12905 library_names_spec='$libname.dll.a'
12906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12907 postinstall_cmds='base_file=`basename \${file}`~
12908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12909 dldir=$destdir/`dirname \$dlpath`~
12910 test -d \$dldir || mkdir -p \$dldir~
12911 $install_prog $dir/$dlname \$dldir/$dlname'
12912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12913 dlpath=$dir/\$dldll~
12915 shlibpath_overrides_runpath=yes
12919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12921 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12924 # MinGW DLLs use traditional 'lib' prefix
12925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12927 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12928 # It is most probably a Windows format PATH printed by
12929 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12930 # path with ; separators, and with drive letters. We can handle the
12931 # drive letters (cygwin fileutils understands them), so leave them,
12932 # especially as we might pass files found there to a mingw objdump,
12933 # which wouldn't understand a cygwinified path. Ahh.
12934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12940 # pw32 DLLs use 'pw' prefix rather than 'lib'
12941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12947 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12950 dynamic_linker='Win32 ld.exe'
12951 # FIXME: first we should search . and the directory the executable is in
12955 darwin* | rhapsody*)
12956 dynamic_linker="$host_os dyld"
12957 version_type=darwin
12960 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12961 soname_spec='${libname}${release}${major}$shared_ext'
12962 shlibpath_overrides_runpath=yes
12963 shlibpath_var=DYLD_LIBRARY_PATH
12964 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12965 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12966 if test "$GCC" = yes; then
12967 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"`
12969 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12971 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 shlibpath_var=LD_LIBRARY_PATH
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12992 soname_spec='${libname}${release}${shared_ext}$major'
12993 shlibpath_var=LD_LIBRARY_PATH
12994 shlibpath_overrides_runpath=no
12995 hardcode_into_libs=yes
12996 dynamic_linker='GNU ld.so'
13000 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13001 version_type=freebsd-$objformat
13002 case $version_type in
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13013 shlibpath_var=LD_LIBRARY_PATH
13016 shlibpath_overrides_runpath=yes
13018 freebsd3.01* | freebsdelf3.01*)
13019 shlibpath_overrides_runpath=yes
13020 hardcode_into_libs=yes
13023 shlibpath_overrides_runpath=no
13024 hardcode_into_libs=yes
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13034 soname_spec='${libname}${release}${shared_ext}$major'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 hardcode_into_libs=yes
13039 hpux9* | hpux10* | hpux11*)
13040 # Give a soname corresponding to the major version so that dld.sl refuses to
13041 # link against other versions.
13045 case "$host_cpu" in
13048 hardcode_into_libs=yes
13049 dynamic_linker="$host_os dld.so"
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13053 soname_spec='${libname}${release}${shared_ext}$major'
13054 if test "X$HPUX_IA64_MODE" = X32; then
13055 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13057 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13063 hardcode_into_libs=yes
13064 dynamic_linker="$host_os dld.sl"
13065 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068 soname_spec='${libname}${release}${shared_ext}$major'
13069 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13074 dynamic_linker="$host_os dld.sl"
13075 shlibpath_var=SHLIB_PATH
13076 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078 soname_spec='${libname}${release}${shared_ext}$major'
13081 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13082 postinstall_cmds='chmod 555 $lib'
13085 irix5* | irix6* | nonstopux*)
13087 nonstopux*) version_type=nonstopux ;;
13089 if test "$lt_cv_prog_gnu_ld" = yes; then
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13100 irix5* | nonstopux*)
13101 libsuff= shlibsuff=
13104 case $LD in # libtool.m4 will add one of these switches to LD
13105 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13106 libsuff= shlibsuff= libmagic=32-bit;;
13107 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13108 libsuff=32 shlibsuff=N32 libmagic=N32;;
13109 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13110 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13111 *) libsuff= shlibsuff= libmagic=never-match;;
13115 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13116 shlibpath_overrides_runpath=no
13117 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13118 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13119 hardcode_into_libs=yes
13122 # No shared lib support for Linux oldld, aout, or coff.
13123 linux*oldld* | linux*aout* | linux*coff*)
13127 # This must be Linux ELF.
13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13133 soname_spec='${libname}${release}${shared_ext}$major'
13134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13135 shlibpath_var=LD_LIBRARY_PATH
13136 shlibpath_overrides_runpath=no
13137 # This implies no fast_install, which is unacceptable.
13138 # Some rework will be needed to allow for fast_install
13139 # before this can be enabled.
13140 hardcode_into_libs=yes
13142 # Append ld.so.conf contents to the search path
13143 if test -f /etc/ld.so.conf; then
13144 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13145 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13148 # We used to test for /lib/ld.so.1 and disable shared libraries on
13149 # powerpc, because MkLinux only supported shared libraries with the
13150 # GNU dynamic linker. Since this was broken with cross compilers,
13151 # most powerpc-linux boxes support dynamic linking these days and
13152 # people can always --disable-shared, the test was removed, and we
13153 # assume the GNU/Linux dynamic linker is in use.
13154 dynamic_linker='GNU/Linux ld.so'
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 shlibpath_var=LD_LIBRARY_PATH
13164 shlibpath_overrides_runpath=no
13165 hardcode_into_libs=yes
13166 dynamic_linker='GNU ld.so'
13173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13176 dynamic_linker='NetBSD (a.out) ld.so'
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13179 soname_spec='${libname}${release}${shared_ext}$major'
13180 dynamic_linker='NetBSD ld.elf_so'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 shlibpath_overrides_runpath=yes
13184 hardcode_into_libs=yes
13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13190 shlibpath_var=LD_LIBRARY_PATH
13191 shlibpath_overrides_runpath=yes
13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13199 soname_spec='${libname}${release}${shared_ext}$major'
13200 shlibpath_var=LD_LIBRARY_PATH
13201 shlibpath_overrides_runpath=yes
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13213 openbsd2.[89] | openbsd2.[89].*)
13214 shlibpath_overrides_runpath=no
13217 shlibpath_overrides_runpath=yes
13221 shlibpath_overrides_runpath=yes
13226 libname_spec='$name'
13229 library_names_spec='$libname${shared_ext} $libname.a'
13230 dynamic_linker='OS/2 ld.exe'
13231 shlibpath_var=LIBPATH
13234 osf3* | osf4* | osf5*)
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13240 shlibpath_var=LD_LIBRARY_PATH
13241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13247 soname_spec='${libname}${release}${shared_ext}$major'
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13249 shlibpath_var=LD_LIBRARY_PATH
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 shlibpath_var=LD_LIBRARY_PATH
13259 shlibpath_overrides_runpath=yes
13260 hardcode_into_libs=yes
13261 # ldd complains unless libraries are executable
13262 postinstall_cmds='chmod +x $lib'
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13269 shlibpath_var=LD_LIBRARY_PATH
13270 shlibpath_overrides_runpath=yes
13271 if test "$with_gnu_ld" = yes; then
13277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13280 soname_spec='${libname}${release}${shared_ext}$major'
13281 shlibpath_var=LD_LIBRARY_PATH
13282 case $host_vendor in
13284 shlibpath_overrides_runpath=no
13286 export_dynamic_flag_spec='${wl}-Blargedynsym'
13287 runpath_var=LD_RUN_PATH
13295 shlibpath_overrides_runpath=no
13296 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13302 if test -d /usr/nec ;then
13304 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13305 soname_spec='$libname${shared_ext}.$major'
13306 shlibpath_var=LD_LIBRARY_PATH
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 shlibpath_var=LD_LIBRARY_PATH
13321 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13322 echo "${ECHO_T}$dynamic_linker" >&6
13323 test "$dynamic_linker" = no && can_build_shared=no
13325 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13327 hardcode_action_CXX=
13328 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13329 test -n "$runpath_var_CXX" || \
13330 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13332 # We can hardcode non-existant directories.
13333 if test "$hardcode_direct_CXX" != no &&
13334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13335 # have to relink, otherwise we might link with an installed library
13336 # when we should be linking with a yet-to-be-installed one
13337 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13338 test "$hardcode_minus_L_CXX" != no; then
13339 # Linking always hardcodes the temporary library directory.
13340 hardcode_action_CXX=relink
13342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13343 hardcode_action_CXX=immediate
13346 # We cannot hardcode anything, or else we can only hardcode existing
13348 hardcode_action_CXX=unsupported
13350 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13351 echo "${ECHO_T}$hardcode_action_CXX" >&6
13353 if test "$hardcode_action_CXX" = relink; then
13354 # Fast installation is not supported
13355 enable_fast_install=no
13356 elif test "$shlibpath_overrides_runpath" = yes ||
13357 test "$enable_shared" = no; then
13358 # Fast installation is not necessary
13359 enable_fast_install=needless
13364 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13365 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13366 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13368 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13369 echo "$as_me:$LINENO: result: yes" >&5
13370 echo "${ECHO_T}yes" >&6
13372 # FIXME - insert some real tests, host_os isn't really good enough
13375 if test -n "$STRIP" ; then
13376 striplib="$STRIP -x"
13377 echo "$as_me:$LINENO: result: yes" >&5
13378 echo "${ECHO_T}yes" >&6
13380 echo "$as_me:$LINENO: result: no" >&5
13381 echo "${ECHO_T}no" >&6
13385 echo "$as_me:$LINENO: result: no" >&5
13386 echo "${ECHO_T}no" >&6
13391 if test "x$enable_dlopen" != xyes; then
13392 enable_dlopen=unknown
13393 enable_dlopen_self=unknown
13394 enable_dlopen_self_static=unknown
13401 lt_cv_dlopen="load_add_on"
13403 lt_cv_dlopen_self=yes
13407 lt_cv_dlopen="LoadLibrary"
13412 lt_cv_dlopen="dlopen"
13417 # if libdl is installed we need to link against it
13418 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13419 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13420 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 ac_check_lib_save_LIBS=$LIBS
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13432 /* Override any gcc2 internal prototype to avoid an error. */
13436 /* We use char because int might match the return type of a gcc2
13437 builtin and then its argument prototype would still apply. */
13447 rm -f conftest.$ac_objext conftest$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449 (eval $ac_link) 2>conftest.er1
13451 grep -v '^ *+' conftest.er1 >conftest.err
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -z "$ac_cxx_werror_flag"
13457 || test ! -s conftest.err'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try='test -s conftest$ac_exeext'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13469 ac_cv_lib_dl_dlopen=yes
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 ac_cv_lib_dl_dlopen=no
13476 rm -f conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13480 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13481 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13482 if test $ac_cv_lib_dl_dlopen = yes; then
13483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13486 lt_cv_dlopen="dyld"
13488 lt_cv_dlopen_self=yes
13495 echo "$as_me:$LINENO: checking for shl_load" >&5
13496 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13497 if test "${ac_cv_func_shl_load+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13508 #define shl_load innocuous_shl_load
13510 /* System header to define __stub macros and hopefully few prototypes,
13511 which can conflict with char shl_load (); below.
13512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13513 <limits.h> exists even on freestanding compilers. */
13516 # include <limits.h>
13518 # include <assert.h>
13523 /* Override any gcc2 internal prototype to avoid an error. */
13528 /* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */
13531 /* The GNU C library defines this for functions which it implements
13532 to always fail with ENOSYS. Some functions are actually named
13533 something starting with __ and the normal name is an alias. */
13534 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13537 char (*f) () = shl_load;
13546 return f != shl_load;
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_cxx_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_func_shl_load=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_cv_func_shl_load=no
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13583 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13584 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13585 if test $ac_cv_func_shl_load = yes; then
13586 lt_cv_dlopen="shl_load"
13588 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13589 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13590 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 ac_check_lib_save_LIBS=$LIBS
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13602 /* Override any gcc2 internal prototype to avoid an error. */
13606 /* We use char because int might match the return type of a gcc2
13607 builtin and then its argument prototype would still apply. */
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>conftest.er1
13621 grep -v '^ *+' conftest.er1 >conftest.err
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_cxx_werror_flag"
13627 || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest$ac_exeext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_cv_lib_dld_shl_load=yes
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 ac_cv_lib_dld_shl_load=no
13646 rm -f conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
13648 LIBS=$ac_check_lib_save_LIBS
13650 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13651 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13652 if test $ac_cv_lib_dld_shl_load = yes; then
13653 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13655 echo "$as_me:$LINENO: checking for dlopen" >&5
13656 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13657 if test "${ac_cv_func_dlopen+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13668 #define dlopen innocuous_dlopen
13670 /* System header to define __stub macros and hopefully few prototypes,
13671 which can conflict with char dlopen (); below.
13672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13673 <limits.h> exists even on freestanding compilers. */
13676 # include <limits.h>
13678 # include <assert.h>
13683 /* Override any gcc2 internal prototype to avoid an error. */
13688 /* We use char because int might match the return type of a gcc2
13689 builtin and then its argument prototype would still apply. */
13691 /* The GNU C library defines this for functions which it implements
13692 to always fail with ENOSYS. Some functions are actually named
13693 something starting with __ and the normal name is an alias. */
13694 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13697 char (*f) () = dlopen;
13706 return f != dlopen;
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713 (eval $ac_link) 2>conftest.er1
13715 grep -v '^ *+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -z "$ac_cxx_werror_flag"
13721 || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 ac_cv_func_dlopen=yes
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ac_cv_func_dlopen=no
13740 rm -f conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13743 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13744 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13745 if test $ac_cv_func_dlopen = yes; then
13746 lt_cv_dlopen="dlopen"
13748 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 ac_check_lib_save_LIBS=$LIBS
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13762 /* Override any gcc2 internal prototype to avoid an error. */
13766 /* We use char because int might match the return type of a gcc2
13767 builtin and then its argument prototype would still apply. */
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779 (eval $ac_link) 2>conftest.er1
13781 grep -v '^ *+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_cxx_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest$ac_exeext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_lib_dl_dlopen=yes
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_lib_dl_dlopen=no
13806 rm -f conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13810 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13812 if test $ac_cv_lib_dl_dlopen = yes; then
13813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13815 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13816 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13817 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 ac_check_lib_save_LIBS=$LIBS
13821 LIBS="-lsvld $LIBS"
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13829 /* Override any gcc2 internal prototype to avoid an error. */
13833 /* We use char because int might match the return type of a gcc2
13834 builtin and then its argument prototype would still apply. */
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_cxx_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_cv_lib_svld_dlopen=yes
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 ac_cv_lib_svld_dlopen=no
13873 rm -f conftest.err conftest.$ac_objext \
13874 conftest$ac_exeext conftest.$ac_ext
13875 LIBS=$ac_check_lib_save_LIBS
13877 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13878 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13879 if test $ac_cv_lib_svld_dlopen = yes; then
13880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13882 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13883 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13884 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 ac_check_lib_save_LIBS=$LIBS
13889 cat >conftest.$ac_ext <<_ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13896 /* Override any gcc2 internal prototype to avoid an error. */
13900 /* We use char because int might match the return type of a gcc2
13901 builtin and then its argument prototype would still apply. */
13911 rm -f conftest.$ac_objext conftest$ac_exeext
13912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13913 (eval $ac_link) 2>conftest.er1
13915 grep -v '^ *+' conftest.er1 >conftest.err
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -z "$ac_cxx_werror_flag"
13921 || test ! -s conftest.err'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_lib_dld_dld_link=yes
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13938 ac_cv_lib_dld_dld_link=no
13940 rm -f conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13942 LIBS=$ac_check_lib_save_LIBS
13944 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13945 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13946 if test $ac_cv_lib_dld_dld_link = yes; then
13947 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13968 if test "x$lt_cv_dlopen" != xno; then
13974 case $lt_cv_dlopen in
13976 save_CPPFLAGS="$CPPFLAGS"
13977 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13979 save_LDFLAGS="$LDFLAGS"
13980 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13983 LIBS="$lt_cv_dlopen_libs $LIBS"
13985 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13986 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13987 if test "${lt_cv_dlopen_self+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 if test "$cross_compiling" = yes; then :
13991 lt_cv_dlopen_self=cross
13993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13994 lt_status=$lt_dlunknown
13995 cat > conftest.$ac_ext <<EOF
13996 #line 13996 "configure"
13997 #include "confdefs.h"
14006 # define LT_DLGLOBAL RTLD_GLOBAL
14009 # define LT_DLGLOBAL DL_GLOBAL
14011 # define LT_DLGLOBAL 0
14015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14016 find out it does not work in some platform. */
14017 #ifndef LT_DLLAZY_OR_NOW
14019 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14022 # define LT_DLLAZY_OR_NOW DL_LAZY
14025 # define LT_DLLAZY_OR_NOW RTLD_NOW
14028 # define LT_DLLAZY_OR_NOW DL_NOW
14030 # define LT_DLLAZY_OR_NOW 0
14038 extern "C" void exit (int);
14041 void fnord() { int i=42;}
14044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14045 int status = $lt_dlunknown;
14049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14050 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14051 /* dlclose (self); */
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14062 (./conftest; exit; ) 2>/dev/null
14064 case x$lt_status in
14065 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14066 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14067 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14070 # compilation failed
14071 lt_cv_dlopen_self=no
14078 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14079 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14081 if test "x$lt_cv_dlopen_self" = xyes; then
14082 LDFLAGS="$LDFLAGS $link_static_flag"
14083 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14084 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14085 if test "${lt_cv_dlopen_self_static+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 if test "$cross_compiling" = yes; then :
14089 lt_cv_dlopen_self_static=cross
14091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14092 lt_status=$lt_dlunknown
14093 cat > conftest.$ac_ext <<EOF
14094 #line 14094 "configure"
14095 #include "confdefs.h"
14104 # define LT_DLGLOBAL RTLD_GLOBAL
14107 # define LT_DLGLOBAL DL_GLOBAL
14109 # define LT_DLGLOBAL 0
14113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14114 find out it does not work in some platform. */
14115 #ifndef LT_DLLAZY_OR_NOW
14117 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14120 # define LT_DLLAZY_OR_NOW DL_LAZY
14123 # define LT_DLLAZY_OR_NOW RTLD_NOW
14126 # define LT_DLLAZY_OR_NOW DL_NOW
14128 # define LT_DLLAZY_OR_NOW 0
14136 extern "C" void exit (int);
14139 void fnord() { int i=42;}
14142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14143 int status = $lt_dlunknown;
14147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14148 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14149 /* dlclose (self); */
14155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14156 (eval $ac_link) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14160 (./conftest; exit; ) 2>/dev/null
14162 case x$lt_status in
14163 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14164 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14165 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14168 # compilation failed
14169 lt_cv_dlopen_self_static=no
14176 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14177 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14180 CPPFLAGS="$save_CPPFLAGS"
14181 LDFLAGS="$save_LDFLAGS"
14186 case $lt_cv_dlopen_self in
14187 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14188 *) enable_dlopen_self=unknown ;;
14191 case $lt_cv_dlopen_self_static in
14192 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14193 *) enable_dlopen_self_static=unknown ;;
14198 # The else clause should only fire when bootstrapping the
14199 # libtool distribution, otherwise you forgot to ship ltmain.sh
14200 # with your package, and you will get complaints that there are
14201 # no rules to generate ltmain.sh.
14202 if test -f "$ltmain"; then
14203 # See if we are running on zsh, and set the options which allow our commands through
14204 # without removal of \ escapes.
14205 if test -n "${ZSH_VERSION+set}" ; then
14206 setopt NO_GLOB_SUBST
14208 # Now quote all the things that may contain metacharacters while being
14209 # careful not to overquote the AC_SUBSTed values. We take copies of the
14210 # variables and quote the copies for generation of the libtool script.
14211 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14215 deplibs_check_method reload_flag reload_cmds need_locks \
14216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14217 lt_cv_sys_global_symbol_to_c_name_address \
14218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14219 old_postinstall_cmds old_postuninstall_cmds \
14223 lt_prog_compiler_wl_CXX \
14224 lt_prog_compiler_pic_CXX \
14225 lt_prog_compiler_static_CXX \
14226 lt_prog_compiler_no_builtin_flag_CXX \
14227 export_dynamic_flag_spec_CXX \
14228 thread_safe_flag_spec_CXX \
14229 whole_archive_flag_spec_CXX \
14230 enable_shared_with_static_runtimes_CXX \
14231 old_archive_cmds_CXX \
14232 old_archive_from_new_cmds_CXX \
14233 predep_objects_CXX \
14234 postdep_objects_CXX \
14237 compiler_lib_search_path_CXX \
14239 archive_expsym_cmds_CXX \
14240 postinstall_cmds_CXX \
14241 postuninstall_cmds_CXX \
14242 old_archive_from_expsyms_cmds_CXX \
14243 allow_undefined_flag_CXX \
14244 no_undefined_flag_CXX \
14245 export_symbols_cmds_CXX \
14246 hardcode_libdir_flag_spec_CXX \
14247 hardcode_libdir_flag_spec_ld_CXX \
14248 hardcode_libdir_separator_CXX \
14249 hardcode_automatic_CXX \
14251 module_expsym_cmds_CXX \
14252 lt_cv_prog_compiler_c_o_CXX \
14253 exclude_expsyms_CXX \
14254 include_expsyms_CXX; do
14257 old_archive_cmds_CXX | \
14258 old_archive_from_new_cmds_CXX | \
14259 archive_cmds_CXX | \
14260 archive_expsym_cmds_CXX | \
14261 module_cmds_CXX | \
14262 module_expsym_cmds_CXX | \
14263 old_archive_from_expsyms_cmds_CXX | \
14264 export_symbols_cmds_CXX | \
14265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14266 postinstall_cmds | postuninstall_cmds | \
14267 old_postinstall_cmds | old_postuninstall_cmds | \
14268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14269 # Double-quote double-evaled strings.
14270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14279 *'\$0 --fallback-echo"')
14280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14286 cat <<__EOF__ >> "$cfgfile"
14287 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14291 # Shell to use when invoking shell scripts.
14294 # Whether or not to build shared libraries.
14295 build_libtool_libs=$enable_shared
14297 # Whether or not to build static libraries.
14298 build_old_libs=$enable_static
14300 # Whether or not to add -lc for building shared libraries.
14301 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14303 # Whether or not to disallow shared libs when runtime libs are static
14304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14306 # Whether or not to optimize for fast installation.
14307 fast_install=$enable_fast_install
14310 host_alias=$host_alias
14313 # An echo program that does not interpret backslashes.
14318 AR_FLAGS=$lt_AR_FLAGS
14323 # A language-specific compiler.
14324 CC=$lt_compiler_CXX
14326 # Is the compiler the GNU C compiler?
14332 # The linker used to build libraries.
14335 # Whether we need hard or soft links.
14338 # A BSD-compatible nm program.
14341 # A symbol stripping program
14344 # Used to examine libraries when file_magic_cmd begins "file"
14345 MAGIC_CMD=$MAGIC_CMD
14347 # Used on cygwin: DLL creation program.
14350 # Used on cygwin: object dumper.
14353 # Used on cygwin: assembler.
14356 # The name of the directory that contains temporary libtool files.
14359 # How to create reloadable object files.
14360 reload_flag=$lt_reload_flag
14361 reload_cmds=$lt_reload_cmds
14363 # How to pass a linker flag through the compiler.
14364 wl=$lt_lt_prog_compiler_wl_CXX
14366 # Object file suffix (normally "o").
14367 objext="$ac_objext"
14369 # Old archive suffix (normally "a").
14372 # Shared library suffix (normally ".so").
14373 shrext_cmds='$shrext_cmds'
14375 # Executable file suffix (normally "").
14378 # Additional compiler flags for building library objects.
14379 pic_flag=$lt_lt_prog_compiler_pic_CXX
14382 # What is the maximum length of a command?
14383 max_cmd_len=$lt_cv_sys_max_cmd_len
14385 # Does compiler simultaneously support -c and -o options?
14386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14388 # Must we lock files when doing compilation ?
14389 need_locks=$lt_need_locks
14391 # Do we need the lib prefix for modules?
14392 need_lib_prefix=$need_lib_prefix
14394 # Do we need a version for libraries?
14395 need_version=$need_version
14397 # Whether dlopen is supported.
14398 dlopen_support=$enable_dlopen
14400 # Whether dlopen of programs is supported.
14401 dlopen_self=$enable_dlopen_self
14403 # Whether dlopen of statically linked programs is supported.
14404 dlopen_self_static=$enable_dlopen_self_static
14406 # Compiler flag to prevent dynamic linking.
14407 link_static_flag=$lt_lt_prog_compiler_static_CXX
14409 # Compiler flag to turn off builtin functions.
14410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14412 # Compiler flag to allow reflexive dlopens.
14413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14415 # Compiler flag to generate shared objects directly from archives.
14416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14418 # Compiler flag to generate thread-safe objects.
14419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14421 # Library versioning type.
14422 version_type=$version_type
14424 # Format of library name prefix.
14425 libname_spec=$lt_libname_spec
14427 # List of archive names. First name is the real one, the rest are links.
14428 # The last name is the one that the linker finds with -lNAME.
14429 library_names_spec=$lt_library_names_spec
14431 # The coded name of the library, if different from the real name.
14432 soname_spec=$lt_soname_spec
14434 # Commands used to build and install an old-style archive.
14436 old_archive_cmds=$lt_old_archive_cmds_CXX
14437 old_postinstall_cmds=$lt_old_postinstall_cmds
14438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14440 # Create an old-style archive from a shared archive.
14441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14443 # Create a temporary old-style archive to link instead of a shared archive.
14444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14446 # Commands used to build and install a shared archive.
14447 archive_cmds=$lt_archive_cmds_CXX
14448 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14449 postinstall_cmds=$lt_postinstall_cmds
14450 postuninstall_cmds=$lt_postuninstall_cmds
14452 # Commands used to build a loadable module (assumed same as above if empty)
14453 module_cmds=$lt_module_cmds_CXX
14454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14456 # Commands to strip libraries.
14457 old_striplib=$lt_old_striplib
14458 striplib=$lt_striplib
14460 # Dependencies to place before the objects being linked to create a
14462 predep_objects=$lt_predep_objects_CXX
14464 # Dependencies to place after the objects being linked to create a
14466 postdep_objects=$lt_postdep_objects_CXX
14468 # Dependencies to place before the objects being linked to create a
14470 predeps=$lt_predeps_CXX
14472 # Dependencies to place after the objects being linked to create a
14474 postdeps=$lt_postdeps_CXX
14476 # The library search path used internally by the compiler when linking
14477 # a shared library.
14478 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14480 # Method to check whether dependent libraries are shared objects.
14481 deplibs_check_method=$lt_deplibs_check_method
14483 # Command to use when deplibs_check_method == file_magic.
14484 file_magic_cmd=$lt_file_magic_cmd
14486 # Flag that allows shared libraries with undefined symbols to be built.
14487 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14489 # Flag that forces no undefined symbols.
14490 no_undefined_flag=$lt_no_undefined_flag_CXX
14492 # Commands used to finish a libtool library installation in a directory.
14493 finish_cmds=$lt_finish_cmds
14495 # Same as above, but a single script fragment to be evaled but not shown.
14496 finish_eval=$lt_finish_eval
14498 # Take the output of nm and produce a listing of raw symbols and C names.
14499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14501 # Transform the output of nm in a proper C declaration
14502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14504 # Transform the output of nm in a C name address pair
14505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14507 # This is the shared library runtime path variable.
14508 runpath_var=$runpath_var
14510 # This is the shared library path variable.
14511 shlibpath_var=$shlibpath_var
14513 # Is shlibpath searched before the hard-coded library search path?
14514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14516 # How to hardcode a shared library path into an executable.
14517 hardcode_action=$hardcode_action_CXX
14519 # Whether we should hardcode library paths into libraries.
14520 hardcode_into_libs=$hardcode_into_libs
14522 # Flag to hardcode \$libdir into a binary during linking.
14523 # This must work even if \$libdir does not exist.
14524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14526 # If ld is used when linking, flag to hardcode \$libdir into
14527 # a binary during linking. This must work even if \$libdir does
14529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14531 # Whether we need a single -rpath flag with a separated argument.
14532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14535 # resulting binary.
14536 hardcode_direct=$hardcode_direct_CXX
14538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14539 # resulting binary.
14540 hardcode_minus_L=$hardcode_minus_L_CXX
14542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14543 # the resulting binary.
14544 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14546 # Set to yes if building a shared library automatically hardcodes DIR into the library
14547 # and all subsequent libraries and executables linked against it.
14548 hardcode_automatic=$hardcode_automatic_CXX
14550 # Variables whose values should be saved in libtool wrapper scripts and
14551 # restored at relink time.
14552 variables_saved_for_relink="$variables_saved_for_relink"
14554 # Whether libtool must link a program against all its dependency libraries.
14555 link_all_deplibs=$link_all_deplibs_CXX
14557 # Compile-time system search path for libraries
14558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14560 # Run-time system search path for libraries
14561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14563 # Fix the shell variable \$srcfile for the compiler.
14564 fix_srcfile_path="$fix_srcfile_path_CXX"
14566 # Set to yes if exported symbols are required.
14567 always_export_symbols=$always_export_symbols_CXX
14569 # The commands to list exported symbols.
14570 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14572 # The commands to extract the exported symbol list from a shared archive.
14573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14575 # Symbols that should not be listed in the preloaded symbols.
14576 exclude_expsyms=$lt_exclude_expsyms_CXX
14578 # Symbols that must always be exported.
14579 include_expsyms=$lt_include_expsyms_CXX
14581 # ### END LIBTOOL TAG CONFIG: $tagname
14587 # If there is no Makefile yet, we rely on a make rule to execute
14588 # `config.status --recheck' to rerun these tests and create the
14589 # libtool script then.
14590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14591 if test -f "$ltmain_in"; then
14592 test -f Makefile && make "$ltmain"
14598 ac_cpp='$CPP $CPPFLAGS'
14599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14607 with_gnu_ldcxx=$with_gnu_ld
14608 with_gnu_ld=$lt_save_with_gnu_ld
14609 lt_cv_path_LDCXX=$lt_cv_path_LD
14610 lt_cv_path_LD=$lt_save_path_LD
14611 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14612 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14620 if test -n "$F77" && test "X$F77" != "Xno"; then
14623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14628 archive_cmds_need_lc_F77=no
14629 allow_undefined_flag_F77=
14630 always_export_symbols_F77=no
14631 archive_expsym_cmds_F77=
14632 export_dynamic_flag_spec_F77=
14633 hardcode_direct_F77=no
14634 hardcode_libdir_flag_spec_F77=
14635 hardcode_libdir_flag_spec_ld_F77=
14636 hardcode_libdir_separator_F77=
14637 hardcode_minus_L_F77=no
14638 hardcode_automatic_F77=no
14640 module_expsym_cmds_F77=
14641 link_all_deplibs_F77=unknown
14642 old_archive_cmds_F77=$old_archive_cmds
14643 no_undefined_flag_F77=
14644 whole_archive_flag_spec_F77=
14645 enable_shared_with_static_runtimes_F77=no
14647 # Source file extension for f77 test sources.
14650 # Object file extension for compiled f77 test sources.
14654 # Code to be used in simple compile tests
14655 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14657 # Code to be used in simple link tests
14658 lt_simple_link_test_code=" program t\n end\n"
14660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14662 # If no C compiler was specified, use CC.
14665 # Allow CC to be a program name with arguments.
14669 # Allow CC to be a program name with arguments.
14674 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14676 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14677 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14678 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14679 echo "${ECHO_T}$can_build_shared" >&6
14681 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14682 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14683 test "$can_build_shared" = "no" && enable_shared=no
14685 # On AIX, shared libraries and static libraries use the same namespace, and
14686 # are all built from PIC.
14689 test "$enable_shared" = yes && enable_static=no
14690 if test -n "$RANLIB"; then
14691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14692 postinstall_cmds='$RANLIB $lib'
14696 test "$enable_shared" = yes && enable_static=no
14699 echo "$as_me:$LINENO: result: $enable_shared" >&5
14700 echo "${ECHO_T}$enable_shared" >&6
14702 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14703 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14704 # Make sure either enable_shared or enable_static is yes.
14705 test "$enable_shared" = yes || enable_static=yes
14706 echo "$as_me:$LINENO: result: $enable_static" >&5
14707 echo "${ECHO_T}$enable_static" >&6
14709 test "$ld_shlibs_F77" = no && can_build_shared=no
14714 lt_prog_compiler_wl_F77=
14715 lt_prog_compiler_pic_F77=
14716 lt_prog_compiler_static_F77=
14718 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14721 if test "$GCC" = yes; then
14722 lt_prog_compiler_wl_F77='-Wl,'
14723 lt_prog_compiler_static_F77='-static'
14727 # All AIX code is PIC.
14728 if test "$host_cpu" = ia64; then
14729 # AIX 5 now supports IA64 processor
14730 lt_prog_compiler_static_F77='-Bstatic'
14735 # FIXME: we need at least 68020 code to build shared libraries, but
14736 # adding the `-m68020' flag to GCC prevents building anything better,
14738 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14741 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14742 # PIC is the default for these OSes.
14745 mingw* | pw32* | os2*)
14746 # This hack is so that the source file can tell whether it is being
14747 # built for inclusion in a dll (and should export symbols for example).
14748 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14751 darwin* | rhapsody*)
14752 # PIC is the default on this platform
14753 # Common symbols not allowed in MH_DYLIB files
14754 lt_prog_compiler_pic_F77='-fno-common'
14758 # Just because we use GCC doesn't mean we suddenly get shared libraries
14759 # on systems that don't support them.
14760 lt_prog_compiler_can_build_shared_F77=no
14765 if test -d /usr/nec; then
14766 lt_prog_compiler_pic_F77=-Kconform_pic
14771 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14772 # not for PA HP-UX.
14773 case "$host_cpu" in
14778 lt_prog_compiler_pic_F77='-fPIC'
14784 lt_prog_compiler_pic_F77='-fPIC'
14788 # PORTME Check for flag to pass linker flags through the system compiler.
14791 lt_prog_compiler_wl_F77='-Wl,'
14792 if test "$host_cpu" = ia64; then
14793 # AIX 5 now supports IA64 processor
14794 lt_prog_compiler_static_F77='-Bstatic'
14796 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14800 # PIC is the default on this platform
14801 # Common symbols not allowed in MH_DYLIB files
14802 case "$cc_basename" in
14804 lt_prog_compiler_pic_F77='-qnocommon'
14805 lt_prog_compiler_wl_F77='-Wl,'
14810 mingw* | pw32* | os2*)
14811 # This hack is so that the source file can tell whether it is being
14812 # built for inclusion in a dll (and should export symbols for example).
14813 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14816 hpux9* | hpux10* | hpux11*)
14817 lt_prog_compiler_wl_F77='-Wl,'
14818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14819 # not for PA HP-UX.
14820 case "$host_cpu" in
14825 lt_prog_compiler_pic_F77='+Z'
14828 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14829 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14832 irix5* | irix6* | nonstopux*)
14833 lt_prog_compiler_wl_F77='-Wl,'
14834 # PIC (with -KPIC) is the default.
14835 lt_prog_compiler_static_F77='-non_shared'
14839 lt_prog_compiler_pic_F77='-KPIC'
14840 lt_prog_compiler_static_F77='-Bstatic'
14846 lt_prog_compiler_wl_F77='-Wl,'
14847 lt_prog_compiler_pic_F77='-KPIC'
14848 lt_prog_compiler_static_F77='-static'
14851 lt_prog_compiler_wl_F77='-Wl,'
14852 # All Alpha code is PIC.
14853 lt_prog_compiler_static_F77='-non_shared'
14858 osf3* | osf4* | osf5*)
14859 lt_prog_compiler_wl_F77='-Wl,'
14860 # All OSF/1 code is PIC.
14861 lt_prog_compiler_static_F77='-non_shared'
14865 lt_prog_compiler_pic_F77='-Kpic'
14866 lt_prog_compiler_static_F77='-dn'
14870 lt_prog_compiler_wl_F77='-Wl,'
14871 lt_prog_compiler_pic_F77='-KPIC'
14872 lt_prog_compiler_static_F77='-Bstatic'
14876 lt_prog_compiler_wl_F77='-Qoption ld '
14877 lt_prog_compiler_pic_F77='-PIC'
14878 lt_prog_compiler_static_F77='-Bstatic'
14881 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14882 lt_prog_compiler_wl_F77='-Wl,'
14883 lt_prog_compiler_pic_F77='-KPIC'
14884 lt_prog_compiler_static_F77='-Bstatic'
14888 if test -d /usr/nec ;then
14889 lt_prog_compiler_pic_F77='-Kconform_pic'
14890 lt_prog_compiler_static_F77='-Bstatic'
14895 lt_prog_compiler_pic_F77='-pic'
14896 lt_prog_compiler_static_F77='-Bstatic'
14900 lt_prog_compiler_can_build_shared_F77=no
14905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14906 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14909 # Check to make sure the PIC flag actually works.
14911 if test -n "$lt_prog_compiler_pic_F77"; then
14913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14915 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 lt_prog_compiler_pic_works_F77=no
14919 ac_outfile=conftest.$ac_objext
14920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14921 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14922 # Insert the option either (1) after the last *FLAGS variable, or
14923 # (2) before a word containing "conftest.", or (3) at the end.
14924 # Note that $ac_compile itself does not contain backslashes and begins
14925 # with a dollar sign (not a hyphen), so the echo should work correctly.
14926 # The option is referenced via a variable to avoid confusing sed.
14927 lt_compile=`echo "$ac_compile" | $SED \
14928 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14930 -e 's:$: $lt_compiler_flag:'`
14931 (eval echo "\"\$as_me:14931: $lt_compile\"" >&5)
14932 (eval "$lt_compile" 2>conftest.err)
14934 cat conftest.err >&5
14935 echo "$as_me:14935: \$? = $ac_status" >&5
14936 if (exit $ac_status) && test -s "$ac_outfile"; then
14937 # The compiler can only warn and ignore the option if not recognized
14938 # So say no if there are warnings
14939 if test ! -s conftest.err; then
14940 lt_prog_compiler_pic_works_F77=yes
14946 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14947 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14949 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14950 case $lt_prog_compiler_pic_F77 in
14952 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14955 lt_prog_compiler_pic_F77=
14956 lt_prog_compiler_can_build_shared_F77=no
14961 # For platforms which do not support PIC, -DPIC is meaningless:
14963 lt_prog_compiler_pic_F77=
14966 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14970 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14971 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14972 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 lt_cv_prog_compiler_c_o_F77=no
14976 $rm -r conftest 2>/dev/null
14980 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14982 lt_compiler_flag="-o out/conftest2.$ac_objext"
14983 # Insert the option either (1) after the last *FLAGS variable, or
14984 # (2) before a word containing "conftest.", or (3) at the end.
14985 # Note that $ac_compile itself does not contain backslashes and begins
14986 # with a dollar sign (not a hyphen), so the echo should work correctly.
14987 lt_compile=`echo "$ac_compile" | $SED \
14988 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14990 -e 's:$: $lt_compiler_flag:'`
14991 (eval echo "\"\$as_me:14991: $lt_compile\"" >&5)
14992 (eval "$lt_compile" 2>out/conftest.err)
14994 cat out/conftest.err >&5
14995 echo "$as_me:14995: \$? = $ac_status" >&5
14996 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14998 # The compiler can only warn and ignore the option if not recognized
14999 # So say no if there are warnings
15000 if test ! -s out/conftest.err; then
15001 lt_cv_prog_compiler_c_o_F77=yes
15006 # SGI C++ compiler will create directory out/ii_files/ for
15007 # template instantiation
15008 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15009 $rm out/* && rmdir out
15015 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15016 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15019 hard_links="nottested"
15020 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15021 # do not overwrite the value of need_locks provided by the user
15022 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15023 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15028 ln conftest.a conftest.b 2>&5 || hard_links=no
15029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15030 echo "$as_me:$LINENO: result: $hard_links" >&5
15031 echo "${ECHO_T}$hard_links" >&6
15032 if test "$hard_links" = no; then
15033 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15034 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15041 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15042 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15045 allow_undefined_flag_F77=
15046 enable_shared_with_static_runtimes_F77=no
15048 archive_expsym_cmds_F77=
15049 old_archive_From_new_cmds_F77=
15050 old_archive_from_expsyms_cmds_F77=
15051 export_dynamic_flag_spec_F77=
15052 whole_archive_flag_spec_F77=
15053 thread_safe_flag_spec_F77=
15054 hardcode_libdir_flag_spec_F77=
15055 hardcode_libdir_flag_spec_ld_F77=
15056 hardcode_libdir_separator_F77=
15057 hardcode_direct_F77=no
15058 hardcode_minus_L_F77=no
15059 hardcode_shlibpath_var_F77=unsupported
15060 link_all_deplibs_F77=unknown
15061 hardcode_automatic_F77=no
15063 module_expsym_cmds_F77=
15064 always_export_symbols_F77=no
15065 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15066 # include_expsyms should be a list of space-separated symbols to be *always*
15067 # included in the symbol list
15068 include_expsyms_F77=
15069 # exclude_expsyms can be an extended regexp of symbols to exclude
15070 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15071 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15072 # as well as any symbol that contains `d'.
15073 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15075 # platforms (ab)use it in PIC code, but their linkers get confused if
15076 # the symbol is explicitly referenced. Since portable code cannot
15077 # rely on this symbol name, it's probably fine to never include it in
15078 # preloaded symbol tables.
15079 extract_expsyms_cmds=
15082 cygwin* | mingw* | pw32*)
15083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15084 # When not using gcc, we currently assume that we are using
15085 # Microsoft Visual C++.
15086 if test "$GCC" != yes; then
15096 if test "$with_gnu_ld" = yes; then
15097 # If archive_cmds runs LD, not CC, wlarc should be empty
15100 # See if GNU ld supports shared libraries.
15102 aix3* | aix4* | aix5*)
15103 # On AIX/PPC, the GNU linker is very broken
15104 if test "$host_cpu" != ia64; then
15108 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15109 *** to be unable to reliably create shared libraries on AIX.
15110 *** Therefore, libtool is disabling shared libraries support. If you
15111 *** really care for shared libraries, you may want to modify your PATH
15112 *** so that a non-GNU linker is found, and then restart.
15119 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)'
15120 hardcode_libdir_flag_spec_F77='-L$libdir'
15121 hardcode_minus_L_F77=yes
15123 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15124 # that the semantics of dynamic libraries on AmigaOS, at least up
15125 # to version 4, is to share data among multiple programs linked
15126 # with the same dynamic library. Since this doesn't match the
15127 # behavior of shared libraries on other platforms, we can't use
15133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15134 allow_undefined_flag_F77=unsupported
15135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15136 # support --undefined. This deserves some investigation. FIXME
15137 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143 cygwin* | mingw* | pw32*)
15144 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15145 # as there is no search path for DLLs.
15146 hardcode_libdir_flag_spec_F77='-L$libdir'
15147 allow_undefined_flag_F77=unsupported
15148 always_export_symbols_F77=no
15149 enable_shared_with_static_runtimes_F77=yes
15150 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15152 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15153 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15154 # If the export-symbols file already is a .def file (1st line
15155 # is EXPORTS), use it as is; otherwise, prepend...
15156 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15157 cp $export_symbols $output_objdir/$soname.def;
15159 echo EXPORTS > $output_objdir/$soname.def;
15160 cat $export_symbols >> $output_objdir/$soname.def;
15162 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15170 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15173 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15179 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15183 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15184 *** create shared libraries on Solaris systems. Therefore, libtool
15185 *** is disabling shared libraries support. We urge you to upgrade GNU
15186 *** binutils to release 2.9.1 or newer. Another option is to modify
15187 *** your PATH or compiler configuration so that the native linker is
15188 *** used, and then restart.
15191 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15200 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15202 hardcode_direct_F77=yes
15203 hardcode_shlibpath_var_F77=no
15207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15208 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15209 archive_cmds_F77="$tmp_archive_cmds"
15210 supports_anon_versioning=no
15211 case `$LD -v 2>/dev/null` in
15212 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15215 *\ 2.11.*) ;; # other 2.11 versions
15216 *) supports_anon_versioning=yes ;;
15218 if test $supports_anon_versioning = yes; then
15219 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15220 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15221 $echo "local: *; };" >> $output_objdir/$libname.ver~
15222 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15224 archive_expsym_cmds_F77="$tmp_archive_cmds"
15232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15233 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15234 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15241 if test "$ld_shlibs_F77" = yes; then
15242 runpath_var=LD_RUN_PATH
15243 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15244 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15245 # ancient GNU ld didn't support --whole-archive et. al.
15246 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15247 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15249 whole_archive_flag_spec_F77=
15253 # PORTME fill in a description of your system's linker (not GNU ld)
15256 allow_undefined_flag_F77=unsupported
15257 always_export_symbols_F77=yes
15258 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'
15259 # Note: this linker hardcodes the directories in LIBPATH if there
15260 # are no directories specified by -L.
15261 hardcode_minus_L_F77=yes
15262 if test "$GCC" = yes && test -z "$link_static_flag"; then
15263 # Neither direct hardcoding nor static linking is supported with a
15265 hardcode_direct_F77=unsupported
15270 if test "$host_cpu" = ia64; then
15271 # On IA64, the linker does run time linking by default, so we don't
15272 # have to do anything special.
15273 aix_use_runtimelinking=no
15274 exp_sym_flag='-Bexport'
15277 # If we're using GNU nm, then we don't want the "-C" option.
15278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15279 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15280 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'
15282 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'
15284 aix_use_runtimelinking=no
15286 # Test if we are trying to use run time linking or normal
15287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15288 # need to do runtime linking.
15289 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15290 for ld_flag in $LDFLAGS; do
15291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15292 aix_use_runtimelinking=yes
15298 exp_sym_flag='-bexport'
15299 no_entry_flag='-bnoentry'
15302 # When large executables or shared objects are built, AIX ld can
15303 # have problems creating the table of contents. If linking a library
15304 # or program results in "error TOC overflow" add -mminimal-toc to
15305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15308 archive_cmds_F77=''
15309 hardcode_direct_F77=yes
15310 hardcode_libdir_separator_F77=':'
15311 link_all_deplibs_F77=yes
15313 if test "$GCC" = yes; then
15314 case $host_os in aix4.012|aix4.012.*)
15315 # We only want to do this on AIX 4.2 and lower, the check
15316 # below for broken collect2 doesn't work under 4.3+
15317 collect2name=`${CC} -print-prog-name=collect2`
15318 if test -f "$collect2name" && \
15319 strings "$collect2name" | grep resolve_lib_name >/dev/null
15321 # We have reworked collect2
15322 hardcode_direct_F77=yes
15324 # We have old collect2
15325 hardcode_direct_F77=unsupported
15326 # It fails to find uninstalled libraries when the uninstalled
15327 # path is not listed in the libpath. Setting hardcode_minus_L
15328 # to unsupported forces relinking
15329 hardcode_minus_L_F77=yes
15330 hardcode_libdir_flag_spec_F77='-L$libdir'
15331 hardcode_libdir_separator_F77=
15334 shared_flag='-shared'
15337 if test "$host_cpu" = ia64; then
15338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15339 # chokes on -Wl,-G. The following line is correct:
15342 if test "$aix_use_runtimelinking" = yes; then
15343 shared_flag='${wl}-G'
15345 shared_flag='${wl}-bM:SRE'
15350 # It seems that -bexpall does not export symbols beginning with
15351 # underscore (_), so it is better to generate a list of symbols to export.
15352 always_export_symbols_F77=yes
15353 if test "$aix_use_runtimelinking" = yes; then
15354 # Warning - without using the other runtime loading flags (-brtl),
15355 # -berok will link without error, but may produce a broken library.
15356 allow_undefined_flag_F77='-berok'
15357 # Determine the default libpath from the value encoded in an empty executable.
15358 cat >conftest.$ac_ext <<_ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365 (eval $ac_link) 2>conftest.er1
15367 grep -v '^ *+' conftest.er1 >conftest.err
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_f77_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15388 # Check for a 64-bit object if we didn't find anything.
15389 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; }
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15396 rm -f conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15400 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15401 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"
15403 if test "$host_cpu" = ia64; then
15404 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15405 allow_undefined_flag_F77="-z nodefs"
15406 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"
15408 # Determine the default libpath from the value encoded in an empty executable.
15409 cat >conftest.$ac_ext <<_ACEOF
15414 rm -f conftest.$ac_objext conftest$ac_exeext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15416 (eval $ac_link) 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_f77_werror_flag"
15424 || test ! -s conftest.err'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest$ac_exeext'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15439 # Check for a 64-bit object if we didn't find anything.
15440 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; }
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15447 rm -f conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
15449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15451 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15452 # Warning - without using the other run time loading flags,
15453 # -berok will link without error, but may produce a broken library.
15454 no_undefined_flag_F77=' ${wl}-bernotok'
15455 allow_undefined_flag_F77=' ${wl}-berok'
15456 # -bexpall does not export symbols beginning with underscore (_)
15457 always_export_symbols_F77=yes
15458 # Exported symbols can be pulled into shared objects from archives
15459 whole_archive_flag_spec_F77=' '
15460 archive_cmds_need_lc_F77=yes
15461 # This is similar to how AIX traditionally builds it's shared libraries.
15462 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'
15468 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)'
15469 hardcode_libdir_flag_spec_F77='-L$libdir'
15470 hardcode_minus_L_F77=yes
15471 # see comment about different semantics on the GNU ld section
15476 export_dynamic_flag_spec_F77=-rdynamic
15479 cygwin* | mingw* | pw32*)
15480 # When not using gcc, we currently assume that we are using
15481 # Microsoft Visual C++.
15482 # hardcode_libdir_flag_spec is actually meaningless, as there is
15483 # no search path for DLLs.
15484 hardcode_libdir_flag_spec_F77=' '
15485 allow_undefined_flag_F77=unsupported
15486 # Tell ltmain to make .lib files, not .a files.
15488 # Tell ltmain to make .dll files, not .so files.
15490 # FIXME: Setting linknames here is a bad hack.
15491 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15492 # The linker will automatically build a .lib file if we build a DLL.
15493 old_archive_From_new_cmds_F77='true'
15494 # FIXME: Should let the user specify the lib program.
15495 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15496 fix_srcfile_path='`cygpath -w "$srcfile"`'
15497 enable_shared_with_static_runtimes_F77=yes
15500 darwin* | rhapsody*)
15502 rhapsody* | darwin1.[012])
15503 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15506 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15507 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15509 case ${MACOSX_DEPLOYMENT_TARGET} in
15511 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15514 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15520 archive_cmds_need_lc_F77=no
15521 hardcode_direct_F77=no
15522 hardcode_automatic_F77=yes
15523 hardcode_shlibpath_var_F77=unsupported
15524 whole_archive_flag_spec_F77=''
15525 link_all_deplibs_F77=yes
15526 if test "$GCC" = yes ; then
15527 output_verbose_link_cmd='echo'
15528 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15529 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15530 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15531 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}'
15532 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}'
15534 case "$cc_basename" in
15536 output_verbose_link_cmd='echo'
15537 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15538 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15539 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15540 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}'
15541 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}'
15551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_libdir_flag_spec_F77='-L$libdir'
15553 hardcode_shlibpath_var_F77=no
15560 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15561 # support. Future versions do this automatically, but an explicit c++rt0.o
15562 # does not break anything, and helps significantly (at the cost of a little
15565 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15566 hardcode_libdir_flag_spec_F77='-R$libdir'
15567 hardcode_direct_F77=yes
15568 hardcode_shlibpath_var_F77=no
15571 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15573 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574 hardcode_direct_F77=yes
15575 hardcode_minus_L_F77=yes
15576 hardcode_shlibpath_var_F77=no
15579 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15580 freebsd* | kfreebsd*-gnu)
15581 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15582 hardcode_libdir_flag_spec_F77='-R$libdir'
15583 hardcode_direct_F77=yes
15584 hardcode_shlibpath_var_F77=no
15588 if test "$GCC" = yes; then
15589 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'
15591 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'
15593 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15594 hardcode_libdir_separator_F77=:
15595 hardcode_direct_F77=yes
15597 # hardcode_minus_L: Not really in the search PATH,
15598 # but as the default location of the library.
15599 hardcode_minus_L_F77=yes
15600 export_dynamic_flag_spec_F77='${wl}-E'
15604 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15605 case "$host_cpu" in
15607 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15614 case "$host_cpu" in
15616 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15619 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15623 if test "$with_gnu_ld" = no; then
15624 case "$host_cpu" in
15626 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15627 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15628 hardcode_libdir_separator_F77=:
15629 hardcode_direct_F77=no
15630 hardcode_shlibpath_var_F77=no
15633 hardcode_libdir_flag_spec_F77='-L$libdir'
15634 hardcode_direct_F77=no
15635 hardcode_shlibpath_var_F77=no
15637 # hardcode_minus_L: Not really in the search PATH,
15638 # but as the default location of the library.
15639 hardcode_minus_L_F77=yes
15642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15643 hardcode_libdir_separator_F77=:
15644 hardcode_direct_F77=yes
15645 export_dynamic_flag_spec_F77='${wl}-E'
15647 # hardcode_minus_L: Not really in the search PATH,
15648 # but as the default location of the library.
15649 hardcode_minus_L_F77=yes
15655 irix5* | irix6* | nonstopux*)
15656 if test "$GCC" = yes; then
15657 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'
15659 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'
15660 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15662 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15663 hardcode_libdir_separator_F77=:
15664 link_all_deplibs_F77=yes
15668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15671 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15673 hardcode_libdir_flag_spec_F77='-R$libdir'
15674 hardcode_direct_F77=yes
15675 hardcode_shlibpath_var_F77=no
15679 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_direct_F77=yes
15681 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15682 hardcode_libdir_separator_F77=:
15683 hardcode_shlibpath_var_F77=no
15687 hardcode_direct_F77=yes
15688 hardcode_shlibpath_var_F77=no
15689 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15690 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15691 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15692 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15693 export_dynamic_flag_spec_F77='${wl}-E'
15696 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_libdir_flag_spec_F77='-R$libdir'
15701 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15702 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15709 hardcode_libdir_flag_spec_F77='-L$libdir'
15710 hardcode_minus_L_F77=yes
15711 allow_undefined_flag_F77=unsupported
15712 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'
15713 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15717 if test "$GCC" = yes; then
15718 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15719 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'
15721 allow_undefined_flag_F77=' -expect_unresolved \*'
15722 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'
15724 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15725 hardcode_libdir_separator_F77=:
15728 osf4* | osf5*) # as osf3* with the addition of -msym flag
15729 if test "$GCC" = yes; then
15730 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15731 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'
15732 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15734 allow_undefined_flag_F77=' -expect_unresolved \*'
15735 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'
15736 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~
15737 $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'
15739 # Both c and cxx compiler support -rpath directly
15740 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15742 hardcode_libdir_separator_F77=:
15746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15747 hardcode_shlibpath_var_F77=no
15748 export_dynamic_flag_spec_F77='${wl}-Bexport'
15749 runpath_var=LD_RUN_PATH
15750 hardcode_runpath_var=yes
15754 no_undefined_flag_F77=' -z text'
15755 if test "$GCC" = yes; then
15756 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15758 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15760 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15764 hardcode_libdir_flag_spec_F77='-R$libdir'
15765 hardcode_shlibpath_var_F77=no
15767 solaris2.[0-5] | solaris2.[0-5].*) ;;
15768 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15769 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15771 link_all_deplibs_F77=yes
15775 if test "x$host_vendor" = xsequent; then
15776 # Use $CC to link under sequent, because it throws in some extra .o
15777 # files that make .init and .fini sections work.
15778 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15780 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15782 hardcode_libdir_flag_spec_F77='-L$libdir'
15783 hardcode_direct_F77=yes
15784 hardcode_minus_L_F77=yes
15785 hardcode_shlibpath_var_F77=no
15789 case $host_vendor in
15791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792 hardcode_direct_F77=yes # is this really true???
15795 ## LD is ld it makes a PLAMLIB
15796 ## CC just makes a GrossModule.
15797 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15798 reload_cmds_F77='$CC -r -o $output$reload_objs'
15799 hardcode_direct_F77=no
15802 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15803 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15806 runpath_var='LD_RUN_PATH'
15807 hardcode_shlibpath_var_F77=no
15811 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15812 hardcode_shlibpath_var_F77=no
15813 export_dynamic_flag_spec_F77='-Bexport'
15817 if test -d /usr/nec; then
15818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819 hardcode_shlibpath_var_F77=no
15820 runpath_var=LD_RUN_PATH
15821 hardcode_runpath_var=yes
15827 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15828 hardcode_direct_F77=yes
15829 hardcode_minus_L_F77=no
15830 hardcode_shlibpath_var_F77=no
15831 hardcode_runpath_var=yes
15832 runpath_var=LD_RUN_PATH
15835 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15836 no_undefined_flag_F77='${wl}-z ${wl}text'
15837 if test "$GCC" = yes; then
15838 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15842 runpath_var='LD_RUN_PATH'
15843 hardcode_shlibpath_var_F77=no
15847 no_undefined_flag_F77=' -z text'
15848 # $CC -shared without GNU ld will not create a library from C++
15849 # object files and a static libstdc++, better avoid it by now
15850 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15852 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15853 hardcode_libdir_flag_spec_F77=
15854 hardcode_shlibpath_var_F77=no
15855 runpath_var='LD_RUN_PATH'
15859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15860 hardcode_libdir_flag_spec_F77='-L$libdir'
15861 hardcode_shlibpath_var_F77=no
15870 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15871 echo "${ECHO_T}$ld_shlibs_F77" >&6
15872 test "$ld_shlibs_F77" = no && can_build_shared=no
15874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15875 if test "$GCC" = yes; then
15876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15880 # Do we need to explicitly link libc?
15882 case "x$archive_cmds_need_lc_F77" in
15884 # Assume -lc should be added
15885 archive_cmds_need_lc_F77=yes
15887 if test "$enable_shared" = yes && test "$GCC" = yes; then
15888 case $archive_cmds_F77 in
15890 # FIXME: we may have to deal with multi-command sequences.
15893 # Test whether the compiler implicitly links with -lc since on some
15894 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15895 # to ld, don't add -lc before -lgcc.
15896 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15897 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15899 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15902 (eval $ac_compile) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } 2>conftest.err; then
15908 libobjs=conftest.$ac_objext
15910 wl=$lt_prog_compiler_wl_F77
15916 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15917 allow_undefined_flag_F77=
15918 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15919 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }
15924 archive_cmds_need_lc_F77=no
15926 archive_cmds_need_lc_F77=yes
15928 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15930 cat conftest.err 1>&5
15933 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15934 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15941 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15942 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15943 library_names_spec=
15944 libname_spec='lib$name'
15948 postuninstall_cmds=
15952 shlibpath_overrides_runpath=unknown
15954 dynamic_linker="$host_os ld.so"
15955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15956 if test "$GCC" = yes; then
15957 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15958 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15959 # if the path contains ";" then we assume it to be the separator
15960 # otherwise default to the standard path separator (i.e. ":") - it is
15961 # assumed that no part of a normal pathname contains ";" but that should
15962 # okay in the real world where ";" in dirpaths is itself problematic.
15963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15970 need_lib_prefix=unknown
15971 hardcode_into_libs=no
15973 # when you set need_version to no, make sure it does not cause -set_version
15974 # flags to be left without arguments
15975 need_version=unknown
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15981 shlibpath_var=LIBPATH
15983 # AIX 3 has no versioning support, so we append a major version to the name.
15984 soname_spec='${libname}${release}${shared_ext}$major'
15991 hardcode_into_libs=yes
15992 if test "$host_cpu" = ia64; then
15993 # AIX 5 supports IA64
15994 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15995 shlibpath_var=LD_LIBRARY_PATH
15997 # With GCC up to 2.95.x, collect2 would create an import file
15998 # for dependence libraries. The import file would start with
15999 # the line `#! .'. This would cause the generated library to
16000 # depend on `.', always an invalid library. This was fixed in
16001 # development snapshots of GCC prior to 3.0.
16003 aix4 | aix4.[01] | aix4.[01].*)
16004 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16006 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16009 can_build_shared=no
16013 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16014 # soname into executable. Probably we can add versioning support to
16015 # collect2, so additional links can be useful in future.
16016 if test "$aix_use_runtimelinking" = yes; then
16017 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16018 # instead of lib<name>.a to let people know that these are not
16019 # typical AIX shared libraries.
16020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022 # We preserve .a as extension for shared libraries through AIX4.2
16023 # and later when we are not doing run time linking.
16024 library_names_spec='${libname}${release}.a $libname.a'
16025 soname_spec='${libname}${release}${shared_ext}$major'
16027 shlibpath_var=LIBPATH
16032 library_names_spec='$libname.ixlibrary $libname.a'
16033 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16034 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'
16038 library_names_spec='${libname}${shared_ext}'
16039 dynamic_linker="$host_os ld.so"
16040 shlibpath_var=LIBRARY_PATH
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 soname_spec='${libname}${release}${shared_ext}$major'
16048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16052 # the default ld.so.conf also contains /usr/contrib/lib and
16053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16054 # libtool to hard-code these into programs
16057 cygwin* | mingw* | pw32*)
16058 version_type=windows
16063 case $GCC,$host_os in
16064 yes,cygwin* | yes,mingw* | yes,pw32*)
16065 library_names_spec='$libname.dll.a'
16066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16067 postinstall_cmds='base_file=`basename \${file}`~
16068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16069 dldir=$destdir/`dirname \$dlpath`~
16070 test -d \$dldir || mkdir -p \$dldir~
16071 $install_prog $dir/$dlname \$dldir/$dlname'
16072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16073 dlpath=$dir/\$dldll~
16075 shlibpath_overrides_runpath=yes
16079 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16080 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16081 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16084 # MinGW DLLs use traditional 'lib' prefix
16085 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16087 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16088 # It is most probably a Windows format PATH printed by
16089 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16090 # path with ; separators, and with drive letters. We can handle the
16091 # drive letters (cygwin fileutils understands them), so leave them,
16092 # especially as we might pass files found there to a mingw objdump,
16093 # which wouldn't understand a cygwinified path. Ahh.
16094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16100 # pw32 DLLs use 'pw' prefix rather than 'lib'
16101 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16107 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16110 dynamic_linker='Win32 ld.exe'
16111 # FIXME: first we should search . and the directory the executable is in
16115 darwin* | rhapsody*)
16116 dynamic_linker="$host_os dyld"
16117 version_type=darwin
16120 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16121 soname_spec='${libname}${release}${major}$shared_ext'
16122 shlibpath_overrides_runpath=yes
16123 shlibpath_var=DYLD_LIBRARY_PATH
16124 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16125 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16126 if test "$GCC" = yes; then
16127 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"`
16129 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 shlibpath_var=LD_LIBRARY_PATH
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 shlibpath_overrides_runpath=no
16155 hardcode_into_libs=yes
16156 dynamic_linker='GNU ld.so'
16160 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16161 version_type=freebsd-$objformat
16162 case $version_type in
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16173 shlibpath_var=LD_LIBRARY_PATH
16176 shlibpath_overrides_runpath=yes
16178 freebsd3.01* | freebsdelf3.01*)
16179 shlibpath_overrides_runpath=yes
16180 hardcode_into_libs=yes
16183 shlibpath_overrides_runpath=no
16184 hardcode_into_libs=yes
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 hardcode_into_libs=yes
16199 hpux9* | hpux10* | hpux11*)
16200 # Give a soname corresponding to the major version so that dld.sl refuses to
16201 # link against other versions.
16205 case "$host_cpu" in
16208 hardcode_into_libs=yes
16209 dynamic_linker="$host_os dld.so"
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 if test "X$HPUX_IA64_MODE" = X32; then
16215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16223 hardcode_into_libs=yes
16224 dynamic_linker="$host_os dld.sl"
16225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16234 dynamic_linker="$host_os dld.sl"
16235 shlibpath_var=SHLIB_PATH
16236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242 postinstall_cmds='chmod 555 $lib'
16245 irix5* | irix6* | nonstopux*)
16247 nonstopux*) version_type=nonstopux ;;
16249 if test "$lt_cv_prog_gnu_ld" = yes; then
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16260 irix5* | nonstopux*)
16261 libsuff= shlibsuff=
16264 case $LD in # libtool.m4 will add one of these switches to LD
16265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16266 libsuff= shlibsuff= libmagic=32-bit;;
16267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16268 libsuff=32 shlibsuff=N32 libmagic=N32;;
16269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16271 *) libsuff= shlibsuff= libmagic=never-match;;
16275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16276 shlibpath_overrides_runpath=no
16277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16279 hardcode_into_libs=yes
16282 # No shared lib support for Linux oldld, aout, or coff.
16283 linux*oldld* | linux*aout* | linux*coff*)
16287 # This must be Linux ELF.
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=no
16297 # This implies no fast_install, which is unacceptable.
16298 # Some rework will be needed to allow for fast_install
16299 # before this can be enabled.
16300 hardcode_into_libs=yes
16302 # Append ld.so.conf contents to the search path
16303 if test -f /etc/ld.so.conf; then
16304 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16308 # We used to test for /lib/ld.so.1 and disable shared libraries on
16309 # powerpc, because MkLinux only supported shared libraries with the
16310 # GNU dynamic linker. Since this was broken with cross compilers,
16311 # most powerpc-linux boxes support dynamic linking these days and
16312 # people can always --disable-shared, the test was removed, and we
16313 # assume the GNU/Linux dynamic linker is in use.
16314 dynamic_linker='GNU/Linux ld.so'
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=no
16325 hardcode_into_libs=yes
16326 dynamic_linker='GNU ld.so'
16333 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16336 dynamic_linker='NetBSD (a.out) ld.so'
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16339 soname_spec='${libname}${release}${shared_ext}$major'
16340 dynamic_linker='NetBSD ld.elf_so'
16342 shlibpath_var=LD_LIBRARY_PATH
16343 shlibpath_overrides_runpath=yes
16344 hardcode_into_libs=yes
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 shlibpath_var=LD_LIBRARY_PATH
16351 shlibpath_overrides_runpath=yes
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=yes
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16373 openbsd2.[89] | openbsd2.[89].*)
16374 shlibpath_overrides_runpath=no
16377 shlibpath_overrides_runpath=yes
16381 shlibpath_overrides_runpath=yes
16386 libname_spec='$name'
16389 library_names_spec='$libname${shared_ext} $libname.a'
16390 dynamic_linker='OS/2 ld.exe'
16391 shlibpath_var=LIBPATH
16394 osf3* | osf4* | osf5*)
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16402 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 shlibpath_var=LD_LIBRARY_PATH
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=yes
16420 hardcode_into_libs=yes
16421 # ldd complains unless libraries are executable
16422 postinstall_cmds='chmod +x $lib'
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=yes
16431 if test "$with_gnu_ld" = yes; then
16437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 case $host_vendor in
16444 shlibpath_overrides_runpath=no
16446 export_dynamic_flag_spec='${wl}-Blargedynsym'
16447 runpath_var=LD_RUN_PATH
16455 shlibpath_overrides_runpath=no
16456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16462 if test -d /usr/nec ;then
16464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16465 soname_spec='$libname${shared_ext}.$major'
16466 shlibpath_var=LD_LIBRARY_PATH
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473 soname_spec='${libname}${release}${shared_ext}$major'
16474 shlibpath_var=LD_LIBRARY_PATH
16481 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16482 echo "${ECHO_T}$dynamic_linker" >&6
16483 test "$dynamic_linker" = no && can_build_shared=no
16485 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16486 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16487 hardcode_action_F77=
16488 if test -n "$hardcode_libdir_flag_spec_F77" || \
16489 test -n "$runpath_var_F77" || \
16490 test "X$hardcode_automatic_F77" = "Xyes" ; then
16492 # We can hardcode non-existant directories.
16493 if test "$hardcode_direct_F77" != no &&
16494 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16495 # have to relink, otherwise we might link with an installed library
16496 # when we should be linking with a yet-to-be-installed one
16497 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16498 test "$hardcode_minus_L_F77" != no; then
16499 # Linking always hardcodes the temporary library directory.
16500 hardcode_action_F77=relink
16502 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16503 hardcode_action_F77=immediate
16506 # We cannot hardcode anything, or else we can only hardcode existing
16508 hardcode_action_F77=unsupported
16510 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16511 echo "${ECHO_T}$hardcode_action_F77" >&6
16513 if test "$hardcode_action_F77" = relink; then
16514 # Fast installation is not supported
16515 enable_fast_install=no
16516 elif test "$shlibpath_overrides_runpath" = yes ||
16517 test "$enable_shared" = no; then
16518 # Fast installation is not necessary
16519 enable_fast_install=needless
16524 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16525 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16526 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16527 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16528 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16529 echo "$as_me:$LINENO: result: yes" >&5
16530 echo "${ECHO_T}yes" >&6
16532 # FIXME - insert some real tests, host_os isn't really good enough
16535 if test -n "$STRIP" ; then
16536 striplib="$STRIP -x"
16537 echo "$as_me:$LINENO: result: yes" >&5
16538 echo "${ECHO_T}yes" >&6
16540 echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6
16545 echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6
16553 # The else clause should only fire when bootstrapping the
16554 # libtool distribution, otherwise you forgot to ship ltmain.sh
16555 # with your package, and you will get complaints that there are
16556 # no rules to generate ltmain.sh.
16557 if test -f "$ltmain"; then
16558 # See if we are running on zsh, and set the options which allow our commands through
16559 # without removal of \ escapes.
16560 if test -n "${ZSH_VERSION+set}" ; then
16561 setopt NO_GLOB_SUBST
16563 # Now quote all the things that may contain metacharacters while being
16564 # careful not to overquote the AC_SUBSTed values. We take copies of the
16565 # variables and quote the copies for generation of the libtool script.
16566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16570 deplibs_check_method reload_flag reload_cmds need_locks \
16571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16572 lt_cv_sys_global_symbol_to_c_name_address \
16573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16574 old_postinstall_cmds old_postuninstall_cmds \
16578 lt_prog_compiler_wl_F77 \
16579 lt_prog_compiler_pic_F77 \
16580 lt_prog_compiler_static_F77 \
16581 lt_prog_compiler_no_builtin_flag_F77 \
16582 export_dynamic_flag_spec_F77 \
16583 thread_safe_flag_spec_F77 \
16584 whole_archive_flag_spec_F77 \
16585 enable_shared_with_static_runtimes_F77 \
16586 old_archive_cmds_F77 \
16587 old_archive_from_new_cmds_F77 \
16588 predep_objects_F77 \
16589 postdep_objects_F77 \
16592 compiler_lib_search_path_F77 \
16594 archive_expsym_cmds_F77 \
16595 postinstall_cmds_F77 \
16596 postuninstall_cmds_F77 \
16597 old_archive_from_expsyms_cmds_F77 \
16598 allow_undefined_flag_F77 \
16599 no_undefined_flag_F77 \
16600 export_symbols_cmds_F77 \
16601 hardcode_libdir_flag_spec_F77 \
16602 hardcode_libdir_flag_spec_ld_F77 \
16603 hardcode_libdir_separator_F77 \
16604 hardcode_automatic_F77 \
16606 module_expsym_cmds_F77 \
16607 lt_cv_prog_compiler_c_o_F77 \
16608 exclude_expsyms_F77 \
16609 include_expsyms_F77; do
16612 old_archive_cmds_F77 | \
16613 old_archive_from_new_cmds_F77 | \
16614 archive_cmds_F77 | \
16615 archive_expsym_cmds_F77 | \
16616 module_cmds_F77 | \
16617 module_expsym_cmds_F77 | \
16618 old_archive_from_expsyms_cmds_F77 | \
16619 export_symbols_cmds_F77 | \
16620 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16621 postinstall_cmds | postuninstall_cmds | \
16622 old_postinstall_cmds | old_postuninstall_cmds | \
16623 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16624 # Double-quote double-evaled strings.
16625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16634 *'\$0 --fallback-echo"')
16635 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16641 cat <<__EOF__ >> "$cfgfile"
16642 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16644 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16646 # Shell to use when invoking shell scripts.
16649 # Whether or not to build shared libraries.
16650 build_libtool_libs=$enable_shared
16652 # Whether or not to build static libraries.
16653 build_old_libs=$enable_static
16655 # Whether or not to add -lc for building shared libraries.
16656 build_libtool_need_lc=$archive_cmds_need_lc_F77
16658 # Whether or not to disallow shared libs when runtime libs are static
16659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16661 # Whether or not to optimize for fast installation.
16662 fast_install=$enable_fast_install
16665 host_alias=$host_alias
16668 # An echo program that does not interpret backslashes.
16673 AR_FLAGS=$lt_AR_FLAGS
16678 # A language-specific compiler.
16679 CC=$lt_compiler_F77
16681 # Is the compiler the GNU C compiler?
16687 # The linker used to build libraries.
16690 # Whether we need hard or soft links.
16693 # A BSD-compatible nm program.
16696 # A symbol stripping program
16699 # Used to examine libraries when file_magic_cmd begins "file"
16700 MAGIC_CMD=$MAGIC_CMD
16702 # Used on cygwin: DLL creation program.
16705 # Used on cygwin: object dumper.
16708 # Used on cygwin: assembler.
16711 # The name of the directory that contains temporary libtool files.
16714 # How to create reloadable object files.
16715 reload_flag=$lt_reload_flag
16716 reload_cmds=$lt_reload_cmds
16718 # How to pass a linker flag through the compiler.
16719 wl=$lt_lt_prog_compiler_wl_F77
16721 # Object file suffix (normally "o").
16722 objext="$ac_objext"
16724 # Old archive suffix (normally "a").
16727 # Shared library suffix (normally ".so").
16728 shrext_cmds='$shrext_cmds'
16730 # Executable file suffix (normally "").
16733 # Additional compiler flags for building library objects.
16734 pic_flag=$lt_lt_prog_compiler_pic_F77
16737 # What is the maximum length of a command?
16738 max_cmd_len=$lt_cv_sys_max_cmd_len
16740 # Does compiler simultaneously support -c and -o options?
16741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16743 # Must we lock files when doing compilation ?
16744 need_locks=$lt_need_locks
16746 # Do we need the lib prefix for modules?
16747 need_lib_prefix=$need_lib_prefix
16749 # Do we need a version for libraries?
16750 need_version=$need_version
16752 # Whether dlopen is supported.
16753 dlopen_support=$enable_dlopen
16755 # Whether dlopen of programs is supported.
16756 dlopen_self=$enable_dlopen_self
16758 # Whether dlopen of statically linked programs is supported.
16759 dlopen_self_static=$enable_dlopen_self_static
16761 # Compiler flag to prevent dynamic linking.
16762 link_static_flag=$lt_lt_prog_compiler_static_F77
16764 # Compiler flag to turn off builtin functions.
16765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16767 # Compiler flag to allow reflexive dlopens.
16768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16770 # Compiler flag to generate shared objects directly from archives.
16771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16773 # Compiler flag to generate thread-safe objects.
16774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16776 # Library versioning type.
16777 version_type=$version_type
16779 # Format of library name prefix.
16780 libname_spec=$lt_libname_spec
16782 # List of archive names. First name is the real one, the rest are links.
16783 # The last name is the one that the linker finds with -lNAME.
16784 library_names_spec=$lt_library_names_spec
16786 # The coded name of the library, if different from the real name.
16787 soname_spec=$lt_soname_spec
16789 # Commands used to build and install an old-style archive.
16791 old_archive_cmds=$lt_old_archive_cmds_F77
16792 old_postinstall_cmds=$lt_old_postinstall_cmds
16793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16795 # Create an old-style archive from a shared archive.
16796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16798 # Create a temporary old-style archive to link instead of a shared archive.
16799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16801 # Commands used to build and install a shared archive.
16802 archive_cmds=$lt_archive_cmds_F77
16803 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16804 postinstall_cmds=$lt_postinstall_cmds
16805 postuninstall_cmds=$lt_postuninstall_cmds
16807 # Commands used to build a loadable module (assumed same as above if empty)
16808 module_cmds=$lt_module_cmds_F77
16809 module_expsym_cmds=$lt_module_expsym_cmds_F77
16811 # Commands to strip libraries.
16812 old_striplib=$lt_old_striplib
16813 striplib=$lt_striplib
16815 # Dependencies to place before the objects being linked to create a
16817 predep_objects=$lt_predep_objects_F77
16819 # Dependencies to place after the objects being linked to create a
16821 postdep_objects=$lt_postdep_objects_F77
16823 # Dependencies to place before the objects being linked to create a
16825 predeps=$lt_predeps_F77
16827 # Dependencies to place after the objects being linked to create a
16829 postdeps=$lt_postdeps_F77
16831 # The library search path used internally by the compiler when linking
16832 # a shared library.
16833 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16835 # Method to check whether dependent libraries are shared objects.
16836 deplibs_check_method=$lt_deplibs_check_method
16838 # Command to use when deplibs_check_method == file_magic.
16839 file_magic_cmd=$lt_file_magic_cmd
16841 # Flag that allows shared libraries with undefined symbols to be built.
16842 allow_undefined_flag=$lt_allow_undefined_flag_F77
16844 # Flag that forces no undefined symbols.
16845 no_undefined_flag=$lt_no_undefined_flag_F77
16847 # Commands used to finish a libtool library installation in a directory.
16848 finish_cmds=$lt_finish_cmds
16850 # Same as above, but a single script fragment to be evaled but not shown.
16851 finish_eval=$lt_finish_eval
16853 # Take the output of nm and produce a listing of raw symbols and C names.
16854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16856 # Transform the output of nm in a proper C declaration
16857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16859 # Transform the output of nm in a C name address pair
16860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16862 # This is the shared library runtime path variable.
16863 runpath_var=$runpath_var
16865 # This is the shared library path variable.
16866 shlibpath_var=$shlibpath_var
16868 # Is shlibpath searched before the hard-coded library search path?
16869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16871 # How to hardcode a shared library path into an executable.
16872 hardcode_action=$hardcode_action_F77
16874 # Whether we should hardcode library paths into libraries.
16875 hardcode_into_libs=$hardcode_into_libs
16877 # Flag to hardcode \$libdir into a binary during linking.
16878 # This must work even if \$libdir does not exist.
16879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16881 # If ld is used when linking, flag to hardcode \$libdir into
16882 # a binary during linking. This must work even if \$libdir does
16884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16886 # Whether we need a single -rpath flag with a separated argument.
16887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16890 # resulting binary.
16891 hardcode_direct=$hardcode_direct_F77
16893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16894 # resulting binary.
16895 hardcode_minus_L=$hardcode_minus_L_F77
16897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16898 # the resulting binary.
16899 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16901 # Set to yes if building a shared library automatically hardcodes DIR into the library
16902 # and all subsequent libraries and executables linked against it.
16903 hardcode_automatic=$hardcode_automatic_F77
16905 # Variables whose values should be saved in libtool wrapper scripts and
16906 # restored at relink time.
16907 variables_saved_for_relink="$variables_saved_for_relink"
16909 # Whether libtool must link a program against all its dependency libraries.
16910 link_all_deplibs=$link_all_deplibs_F77
16912 # Compile-time system search path for libraries
16913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16915 # Run-time system search path for libraries
16916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16918 # Fix the shell variable \$srcfile for the compiler.
16919 fix_srcfile_path="$fix_srcfile_path_F77"
16921 # Set to yes if exported symbols are required.
16922 always_export_symbols=$always_export_symbols_F77
16924 # The commands to list exported symbols.
16925 export_symbols_cmds=$lt_export_symbols_cmds_F77
16927 # The commands to extract the exported symbol list from a shared archive.
16928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16930 # Symbols that should not be listed in the preloaded symbols.
16931 exclude_expsyms=$lt_exclude_expsyms_F77
16933 # Symbols that must always be exported.
16934 include_expsyms=$lt_include_expsyms_F77
16936 # ### END LIBTOOL TAG CONFIG: $tagname
16942 # If there is no Makefile yet, we rely on a make rule to execute
16943 # `config.status --recheck' to rerun these tests and create the
16944 # libtool script then.
16945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16946 if test -f "$ltmain_in"; then
16947 test -f Makefile && make "$ltmain"
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16966 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16968 ac_cpp='$CPP $CPPFLAGS'
16969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16974 # Source file extension for Java test sources.
16977 # Object file extension for compiled Java test sources.
16981 # Code to be used in simple compile tests
16982 lt_simple_compile_test_code="class foo {}\n"
16984 # Code to be used in simple link tests
16985 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16987 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16989 # If no C compiler was specified, use CC.
16992 # Allow CC to be a program name with arguments.
16996 # Allow CC to be a program name with arguments.
17002 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17003 archive_cmds_need_lc_GCJ=no
17006 lt_prog_compiler_no_builtin_flag_GCJ=
17008 if test "$GCC" = yes; then
17009 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17012 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17013 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17014 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 lt_cv_prog_compiler_rtti_exceptions=no
17018 ac_outfile=conftest.$ac_objext
17019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17020 lt_compiler_flag="-fno-rtti -fno-exceptions"
17021 # Insert the option either (1) after the last *FLAGS variable, or
17022 # (2) before a word containing "conftest.", or (3) at the end.
17023 # Note that $ac_compile itself does not contain backslashes and begins
17024 # with a dollar sign (not a hyphen), so the echo should work correctly.
17025 # The option is referenced via a variable to avoid confusing sed.
17026 lt_compile=`echo "$ac_compile" | $SED \
17027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17029 -e 's:$: $lt_compiler_flag:'`
17030 (eval echo "\"\$as_me:17030: $lt_compile\"" >&5)
17031 (eval "$lt_compile" 2>conftest.err)
17033 cat conftest.err >&5
17034 echo "$as_me:17034: \$? = $ac_status" >&5
17035 if (exit $ac_status) && test -s "$ac_outfile"; then
17036 # The compiler can only warn and ignore the option if not recognized
17037 # So say no if there are warnings
17038 if test ! -s conftest.err; then
17039 lt_cv_prog_compiler_rtti_exceptions=yes
17045 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17046 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17048 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17049 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17056 lt_prog_compiler_wl_GCJ=
17057 lt_prog_compiler_pic_GCJ=
17058 lt_prog_compiler_static_GCJ=
17060 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17061 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17063 if test "$GCC" = yes; then
17064 lt_prog_compiler_wl_GCJ='-Wl,'
17065 lt_prog_compiler_static_GCJ='-static'
17069 # All AIX code is PIC.
17070 if test "$host_cpu" = ia64; then
17071 # AIX 5 now supports IA64 processor
17072 lt_prog_compiler_static_GCJ='-Bstatic'
17077 # FIXME: we need at least 68020 code to build shared libraries, but
17078 # adding the `-m68020' flag to GCC prevents building anything better,
17080 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17083 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17084 # PIC is the default for these OSes.
17087 mingw* | pw32* | os2*)
17088 # This hack is so that the source file can tell whether it is being
17089 # built for inclusion in a dll (and should export symbols for example).
17090 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17093 darwin* | rhapsody*)
17094 # PIC is the default on this platform
17095 # Common symbols not allowed in MH_DYLIB files
17096 lt_prog_compiler_pic_GCJ='-fno-common'
17100 # Just because we use GCC doesn't mean we suddenly get shared libraries
17101 # on systems that don't support them.
17102 lt_prog_compiler_can_build_shared_GCJ=no
17107 if test -d /usr/nec; then
17108 lt_prog_compiler_pic_GCJ=-Kconform_pic
17113 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17114 # not for PA HP-UX.
17115 case "$host_cpu" in
17120 lt_prog_compiler_pic_GCJ='-fPIC'
17126 lt_prog_compiler_pic_GCJ='-fPIC'
17130 # PORTME Check for flag to pass linker flags through the system compiler.
17133 lt_prog_compiler_wl_GCJ='-Wl,'
17134 if test "$host_cpu" = ia64; then
17135 # AIX 5 now supports IA64 processor
17136 lt_prog_compiler_static_GCJ='-Bstatic'
17138 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17142 # PIC is the default on this platform
17143 # Common symbols not allowed in MH_DYLIB files
17144 case "$cc_basename" in
17146 lt_prog_compiler_pic_GCJ='-qnocommon'
17147 lt_prog_compiler_wl_GCJ='-Wl,'
17152 mingw* | pw32* | os2*)
17153 # This hack is so that the source file can tell whether it is being
17154 # built for inclusion in a dll (and should export symbols for example).
17155 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17158 hpux9* | hpux10* | hpux11*)
17159 lt_prog_compiler_wl_GCJ='-Wl,'
17160 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17161 # not for PA HP-UX.
17162 case "$host_cpu" in
17167 lt_prog_compiler_pic_GCJ='+Z'
17170 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17171 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17174 irix5* | irix6* | nonstopux*)
17175 lt_prog_compiler_wl_GCJ='-Wl,'
17176 # PIC (with -KPIC) is the default.
17177 lt_prog_compiler_static_GCJ='-non_shared'
17181 lt_prog_compiler_pic_GCJ='-KPIC'
17182 lt_prog_compiler_static_GCJ='-Bstatic'
17188 lt_prog_compiler_wl_GCJ='-Wl,'
17189 lt_prog_compiler_pic_GCJ='-KPIC'
17190 lt_prog_compiler_static_GCJ='-static'
17193 lt_prog_compiler_wl_GCJ='-Wl,'
17194 # All Alpha code is PIC.
17195 lt_prog_compiler_static_GCJ='-non_shared'
17200 osf3* | osf4* | osf5*)
17201 lt_prog_compiler_wl_GCJ='-Wl,'
17202 # All OSF/1 code is PIC.
17203 lt_prog_compiler_static_GCJ='-non_shared'
17207 lt_prog_compiler_pic_GCJ='-Kpic'
17208 lt_prog_compiler_static_GCJ='-dn'
17212 lt_prog_compiler_wl_GCJ='-Wl,'
17213 lt_prog_compiler_pic_GCJ='-KPIC'
17214 lt_prog_compiler_static_GCJ='-Bstatic'
17218 lt_prog_compiler_wl_GCJ='-Qoption ld '
17219 lt_prog_compiler_pic_GCJ='-PIC'
17220 lt_prog_compiler_static_GCJ='-Bstatic'
17223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17224 lt_prog_compiler_wl_GCJ='-Wl,'
17225 lt_prog_compiler_pic_GCJ='-KPIC'
17226 lt_prog_compiler_static_GCJ='-Bstatic'
17230 if test -d /usr/nec ;then
17231 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17232 lt_prog_compiler_static_GCJ='-Bstatic'
17237 lt_prog_compiler_pic_GCJ='-pic'
17238 lt_prog_compiler_static_GCJ='-Bstatic'
17242 lt_prog_compiler_can_build_shared_GCJ=no
17247 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17248 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17251 # Check to make sure the PIC flag actually works.
17253 if test -n "$lt_prog_compiler_pic_GCJ"; then
17255 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17256 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17257 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 lt_prog_compiler_pic_works_GCJ=no
17261 ac_outfile=conftest.$ac_objext
17262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17263 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17264 # Insert the option either (1) after the last *FLAGS variable, or
17265 # (2) before a word containing "conftest.", or (3) at the end.
17266 # Note that $ac_compile itself does not contain backslashes and begins
17267 # with a dollar sign (not a hyphen), so the echo should work correctly.
17268 # The option is referenced via a variable to avoid confusing sed.
17269 lt_compile=`echo "$ac_compile" | $SED \
17270 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17272 -e 's:$: $lt_compiler_flag:'`
17273 (eval echo "\"\$as_me:17273: $lt_compile\"" >&5)
17274 (eval "$lt_compile" 2>conftest.err)
17276 cat conftest.err >&5
17277 echo "$as_me:17277: \$? = $ac_status" >&5
17278 if (exit $ac_status) && test -s "$ac_outfile"; then
17279 # The compiler can only warn and ignore the option if not recognized
17280 # So say no if there are warnings
17281 if test ! -s conftest.err; then
17282 lt_prog_compiler_pic_works_GCJ=yes
17288 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17289 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17291 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17292 case $lt_prog_compiler_pic_GCJ in
17294 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17297 lt_prog_compiler_pic_GCJ=
17298 lt_prog_compiler_can_build_shared_GCJ=no
17303 # For platforms which do not support PIC, -DPIC is meaningless:
17305 lt_prog_compiler_pic_GCJ=
17308 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17312 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17313 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17314 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 lt_cv_prog_compiler_c_o_GCJ=no
17318 $rm -r conftest 2>/dev/null
17322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17324 lt_compiler_flag="-o out/conftest2.$ac_objext"
17325 # Insert the option either (1) after the last *FLAGS variable, or
17326 # (2) before a word containing "conftest.", or (3) at the end.
17327 # Note that $ac_compile itself does not contain backslashes and begins
17328 # with a dollar sign (not a hyphen), so the echo should work correctly.
17329 lt_compile=`echo "$ac_compile" | $SED \
17330 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17332 -e 's:$: $lt_compiler_flag:'`
17333 (eval echo "\"\$as_me:17333: $lt_compile\"" >&5)
17334 (eval "$lt_compile" 2>out/conftest.err)
17336 cat out/conftest.err >&5
17337 echo "$as_me:17337: \$? = $ac_status" >&5
17338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17340 # The compiler can only warn and ignore the option if not recognized
17341 # So say no if there are warnings
17342 if test ! -s out/conftest.err; then
17343 lt_cv_prog_compiler_c_o_GCJ=yes
17348 # SGI C++ compiler will create directory out/ii_files/ for
17349 # template instantiation
17350 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17351 $rm out/* && rmdir out
17357 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17358 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17361 hard_links="nottested"
17362 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17363 # do not overwrite the value of need_locks provided by the user
17364 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17365 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17370 ln conftest.a conftest.b 2>&5 || hard_links=no
17371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17372 echo "$as_me:$LINENO: result: $hard_links" >&5
17373 echo "${ECHO_T}$hard_links" >&6
17374 if test "$hard_links" = no; then
17375 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17376 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17383 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17384 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17387 allow_undefined_flag_GCJ=
17388 enable_shared_with_static_runtimes_GCJ=no
17390 archive_expsym_cmds_GCJ=
17391 old_archive_From_new_cmds_GCJ=
17392 old_archive_from_expsyms_cmds_GCJ=
17393 export_dynamic_flag_spec_GCJ=
17394 whole_archive_flag_spec_GCJ=
17395 thread_safe_flag_spec_GCJ=
17396 hardcode_libdir_flag_spec_GCJ=
17397 hardcode_libdir_flag_spec_ld_GCJ=
17398 hardcode_libdir_separator_GCJ=
17399 hardcode_direct_GCJ=no
17400 hardcode_minus_L_GCJ=no
17401 hardcode_shlibpath_var_GCJ=unsupported
17402 link_all_deplibs_GCJ=unknown
17403 hardcode_automatic_GCJ=no
17405 module_expsym_cmds_GCJ=
17406 always_export_symbols_GCJ=no
17407 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17408 # include_expsyms should be a list of space-separated symbols to be *always*
17409 # included in the symbol list
17410 include_expsyms_GCJ=
17411 # exclude_expsyms can be an extended regexp of symbols to exclude
17412 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17413 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17414 # as well as any symbol that contains `d'.
17415 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17416 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17417 # platforms (ab)use it in PIC code, but their linkers get confused if
17418 # the symbol is explicitly referenced. Since portable code cannot
17419 # rely on this symbol name, it's probably fine to never include it in
17420 # preloaded symbol tables.
17421 extract_expsyms_cmds=
17424 cygwin* | mingw* | pw32*)
17425 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17426 # When not using gcc, we currently assume that we are using
17427 # Microsoft Visual C++.
17428 if test "$GCC" != yes; then
17438 if test "$with_gnu_ld" = yes; then
17439 # If archive_cmds runs LD, not CC, wlarc should be empty
17442 # See if GNU ld supports shared libraries.
17444 aix3* | aix4* | aix5*)
17445 # On AIX/PPC, the GNU linker is very broken
17446 if test "$host_cpu" != ia64; then
17450 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17451 *** to be unable to reliably create shared libraries on AIX.
17452 *** Therefore, libtool is disabling shared libraries support. If you
17453 *** really care for shared libraries, you may want to modify your PATH
17454 *** so that a non-GNU linker is found, and then restart.
17461 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)'
17462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17463 hardcode_minus_L_GCJ=yes
17465 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17466 # that the semantics of dynamic libraries on AmigaOS, at least up
17467 # to version 4, is to share data among multiple programs linked
17468 # with the same dynamic library. Since this doesn't match the
17469 # behavior of shared libraries on other platforms, we can't use
17475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17476 allow_undefined_flag_GCJ=unsupported
17477 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17478 # support --undefined. This deserves some investigation. FIXME
17479 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17485 cygwin* | mingw* | pw32*)
17486 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17487 # as there is no search path for DLLs.
17488 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17489 allow_undefined_flag_GCJ=unsupported
17490 always_export_symbols_GCJ=no
17491 enable_shared_with_static_runtimes_GCJ=yes
17492 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17494 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17495 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17496 # If the export-symbols file already is a .def file (1st line
17497 # is EXPORTS), use it as is; otherwise, prepend...
17498 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17499 cp $export_symbols $output_objdir/$soname.def;
17501 echo EXPORTS > $output_objdir/$soname.def;
17502 cat $export_symbols >> $output_objdir/$soname.def;
17504 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17512 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17515 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17516 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17521 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17526 *** create shared libraries on Solaris systems. Therefore, libtool
17527 *** is disabling shared libraries support. We urge you to upgrade GNU
17528 *** binutils to release 2.9.1 or newer. Another option is to modify
17529 *** your PATH or compiler configuration so that the native linker is
17530 *** used, and then restart.
17533 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17534 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17535 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17542 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17544 hardcode_direct_GCJ=yes
17545 hardcode_shlibpath_var_GCJ=no
17549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17550 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17551 archive_cmds_GCJ="$tmp_archive_cmds"
17552 supports_anon_versioning=no
17553 case `$LD -v 2>/dev/null` in
17554 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17555 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17556 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17557 *\ 2.11.*) ;; # other 2.11 versions
17558 *) supports_anon_versioning=yes ;;
17560 if test $supports_anon_versioning = yes; then
17561 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17563 $echo "local: *; };" >> $output_objdir/$libname.ver~
17564 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17566 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17576 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17583 if test "$ld_shlibs_GCJ" = yes; then
17584 runpath_var=LD_RUN_PATH
17585 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17586 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17587 # ancient GNU ld didn't support --whole-archive et. al.
17588 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17589 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17591 whole_archive_flag_spec_GCJ=
17595 # PORTME fill in a description of your system's linker (not GNU ld)
17598 allow_undefined_flag_GCJ=unsupported
17599 always_export_symbols_GCJ=yes
17600 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'
17601 # Note: this linker hardcodes the directories in LIBPATH if there
17602 # are no directories specified by -L.
17603 hardcode_minus_L_GCJ=yes
17604 if test "$GCC" = yes && test -z "$link_static_flag"; then
17605 # Neither direct hardcoding nor static linking is supported with a
17607 hardcode_direct_GCJ=unsupported
17612 if test "$host_cpu" = ia64; then
17613 # On IA64, the linker does run time linking by default, so we don't
17614 # have to do anything special.
17615 aix_use_runtimelinking=no
17616 exp_sym_flag='-Bexport'
17619 # If we're using GNU nm, then we don't want the "-C" option.
17620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17621 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17622 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'
17624 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'
17626 aix_use_runtimelinking=no
17628 # Test if we are trying to use run time linking or normal
17629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17630 # need to do runtime linking.
17631 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17632 for ld_flag in $LDFLAGS; do
17633 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17634 aix_use_runtimelinking=yes
17640 exp_sym_flag='-bexport'
17641 no_entry_flag='-bnoentry'
17644 # When large executables or shared objects are built, AIX ld can
17645 # have problems creating the table of contents. If linking a library
17646 # or program results in "error TOC overflow" add -mminimal-toc to
17647 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17648 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17650 archive_cmds_GCJ=''
17651 hardcode_direct_GCJ=yes
17652 hardcode_libdir_separator_GCJ=':'
17653 link_all_deplibs_GCJ=yes
17655 if test "$GCC" = yes; then
17656 case $host_os in aix4.012|aix4.012.*)
17657 # We only want to do this on AIX 4.2 and lower, the check
17658 # below for broken collect2 doesn't work under 4.3+
17659 collect2name=`${CC} -print-prog-name=collect2`
17660 if test -f "$collect2name" && \
17661 strings "$collect2name" | grep resolve_lib_name >/dev/null
17663 # We have reworked collect2
17664 hardcode_direct_GCJ=yes
17666 # We have old collect2
17667 hardcode_direct_GCJ=unsupported
17668 # It fails to find uninstalled libraries when the uninstalled
17669 # path is not listed in the libpath. Setting hardcode_minus_L
17670 # to unsupported forces relinking
17671 hardcode_minus_L_GCJ=yes
17672 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17673 hardcode_libdir_separator_GCJ=
17676 shared_flag='-shared'
17679 if test "$host_cpu" = ia64; then
17680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17681 # chokes on -Wl,-G. The following line is correct:
17684 if test "$aix_use_runtimelinking" = yes; then
17685 shared_flag='${wl}-G'
17687 shared_flag='${wl}-bM:SRE'
17692 # It seems that -bexpall does not export symbols beginning with
17693 # underscore (_), so it is better to generate a list of symbols to export.
17694 always_export_symbols_GCJ=yes
17695 if test "$aix_use_runtimelinking" = yes; then
17696 # Warning - without using the other runtime loading flags (-brtl),
17697 # -berok will link without error, but may produce a broken library.
17698 allow_undefined_flag_GCJ='-berok'
17699 # Determine the default libpath from the value encoded in an empty executable.
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>conftest.er1
17719 grep -v '^ *+' conftest.er1 >conftest.err
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -z "$ac_c_werror_flag"
17725 || test ! -s conftest.err'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17740 # Check for a 64-bit object if we didn't find anything.
17741 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; }
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17748 rm -f conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext conftest.$ac_ext
17750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17752 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17753 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"
17755 if test "$host_cpu" = ia64; then
17756 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17757 allow_undefined_flag_GCJ="-z nodefs"
17758 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"
17760 # Determine the default libpath from the value encoded in an empty executable.
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17778 (eval $ac_link) 2>conftest.er1
17780 grep -v '^ *+' conftest.er1 >conftest.err
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -z "$ac_c_werror_flag"
17786 || test ! -s conftest.err'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try='test -s conftest$ac_exeext'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17801 # Check for a 64-bit object if we didn't find anything.
17802 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; }
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17809 rm -f conftest.err conftest.$ac_objext \
17810 conftest$ac_exeext conftest.$ac_ext
17811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17813 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17814 # Warning - without using the other run time loading flags,
17815 # -berok will link without error, but may produce a broken library.
17816 no_undefined_flag_GCJ=' ${wl}-bernotok'
17817 allow_undefined_flag_GCJ=' ${wl}-berok'
17818 # -bexpall does not export symbols beginning with underscore (_)
17819 always_export_symbols_GCJ=yes
17820 # Exported symbols can be pulled into shared objects from archives
17821 whole_archive_flag_spec_GCJ=' '
17822 archive_cmds_need_lc_GCJ=yes
17823 # This is similar to how AIX traditionally builds it's shared libraries.
17824 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'
17830 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)'
17831 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17832 hardcode_minus_L_GCJ=yes
17833 # see comment about different semantics on the GNU ld section
17838 export_dynamic_flag_spec_GCJ=-rdynamic
17841 cygwin* | mingw* | pw32*)
17842 # When not using gcc, we currently assume that we are using
17843 # Microsoft Visual C++.
17844 # hardcode_libdir_flag_spec is actually meaningless, as there is
17845 # no search path for DLLs.
17846 hardcode_libdir_flag_spec_GCJ=' '
17847 allow_undefined_flag_GCJ=unsupported
17848 # Tell ltmain to make .lib files, not .a files.
17850 # Tell ltmain to make .dll files, not .so files.
17852 # FIXME: Setting linknames here is a bad hack.
17853 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17854 # The linker will automatically build a .lib file if we build a DLL.
17855 old_archive_From_new_cmds_GCJ='true'
17856 # FIXME: Should let the user specify the lib program.
17857 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17858 fix_srcfile_path='`cygpath -w "$srcfile"`'
17859 enable_shared_with_static_runtimes_GCJ=yes
17862 darwin* | rhapsody*)
17864 rhapsody* | darwin1.[012])
17865 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17868 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17869 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17871 case ${MACOSX_DEPLOYMENT_TARGET} in
17873 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17876 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17882 archive_cmds_need_lc_GCJ=no
17883 hardcode_direct_GCJ=no
17884 hardcode_automatic_GCJ=yes
17885 hardcode_shlibpath_var_GCJ=unsupported
17886 whole_archive_flag_spec_GCJ=''
17887 link_all_deplibs_GCJ=yes
17888 if test "$GCC" = yes ; then
17889 output_verbose_link_cmd='echo'
17890 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17891 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17893 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}'
17894 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}'
17896 case "$cc_basename" in
17898 output_verbose_link_cmd='echo'
17899 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17900 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17902 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}'
17903 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}'
17913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17915 hardcode_shlibpath_var_GCJ=no
17922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17923 # support. Future versions do this automatically, but an explicit c++rt0.o
17924 # does not break anything, and helps significantly (at the cost of a little
17927 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17928 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17929 hardcode_direct_GCJ=yes
17930 hardcode_shlibpath_var_GCJ=no
17933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17935 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17936 hardcode_direct_GCJ=yes
17937 hardcode_minus_L_GCJ=yes
17938 hardcode_shlibpath_var_GCJ=no
17941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17942 freebsd* | kfreebsd*-gnu)
17943 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945 hardcode_direct_GCJ=yes
17946 hardcode_shlibpath_var_GCJ=no
17950 if test "$GCC" = yes; then
17951 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'
17953 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'
17955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17956 hardcode_libdir_separator_GCJ=:
17957 hardcode_direct_GCJ=yes
17959 # hardcode_minus_L: Not really in the search PATH,
17960 # but as the default location of the library.
17961 hardcode_minus_L_GCJ=yes
17962 export_dynamic_flag_spec_GCJ='${wl}-E'
17966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17967 case "$host_cpu" in
17969 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17972 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17976 case "$host_cpu" in
17978 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17981 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17985 if test "$with_gnu_ld" = no; then
17986 case "$host_cpu" in
17988 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17989 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17990 hardcode_libdir_separator_GCJ=:
17991 hardcode_direct_GCJ=no
17992 hardcode_shlibpath_var_GCJ=no
17995 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996 hardcode_direct_GCJ=no
17997 hardcode_shlibpath_var_GCJ=no
17999 # hardcode_minus_L: Not really in the search PATH,
18000 # but as the default location of the library.
18001 hardcode_minus_L_GCJ=yes
18004 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18005 hardcode_libdir_separator_GCJ=:
18006 hardcode_direct_GCJ=yes
18007 export_dynamic_flag_spec_GCJ='${wl}-E'
18009 # hardcode_minus_L: Not really in the search PATH,
18010 # but as the default location of the library.
18011 hardcode_minus_L_GCJ=yes
18017 irix5* | irix6* | nonstopux*)
18018 if test "$GCC" = yes; then
18019 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'
18021 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'
18022 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18025 hardcode_libdir_separator_GCJ=:
18026 link_all_deplibs_GCJ=yes
18030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18033 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18036 hardcode_direct_GCJ=yes
18037 hardcode_shlibpath_var_GCJ=no
18041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18042 hardcode_direct_GCJ=yes
18043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18044 hardcode_libdir_separator_GCJ=:
18045 hardcode_shlibpath_var_GCJ=no
18049 hardcode_direct_GCJ=yes
18050 hardcode_shlibpath_var_GCJ=no
18051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18052 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18053 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18055 export_dynamic_flag_spec_GCJ='${wl}-E'
18058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18059 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18072 hardcode_minus_L_GCJ=yes
18073 allow_undefined_flag_GCJ=unsupported
18074 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'
18075 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18079 if test "$GCC" = yes; then
18080 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18081 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'
18083 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18084 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'
18086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18087 hardcode_libdir_separator_GCJ=:
18090 osf4* | osf5*) # as osf3* with the addition of -msym flag
18091 if test "$GCC" = yes; then
18092 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18093 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'
18094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18096 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18097 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'
18098 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~
18099 $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'
18101 # Both c and cxx compiler support -rpath directly
18102 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18104 hardcode_libdir_separator_GCJ=:
18108 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18109 hardcode_shlibpath_var_GCJ=no
18110 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18111 runpath_var=LD_RUN_PATH
18112 hardcode_runpath_var=yes
18116 no_undefined_flag_GCJ=' -z text'
18117 if test "$GCC" = yes; then
18118 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18119 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18120 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18122 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18123 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18126 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18127 hardcode_shlibpath_var_GCJ=no
18129 solaris2.[0-5] | solaris2.[0-5].*) ;;
18130 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18131 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18133 link_all_deplibs_GCJ=yes
18137 if test "x$host_vendor" = xsequent; then
18138 # Use $CC to link under sequent, because it throws in some extra .o
18139 # files that make .init and .fini sections work.
18140 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18142 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18145 hardcode_direct_GCJ=yes
18146 hardcode_minus_L_GCJ=yes
18147 hardcode_shlibpath_var_GCJ=no
18151 case $host_vendor in
18153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154 hardcode_direct_GCJ=yes # is this really true???
18157 ## LD is ld it makes a PLAMLIB
18158 ## CC just makes a GrossModule.
18159 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18160 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18161 hardcode_direct_GCJ=no
18164 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18168 runpath_var='LD_RUN_PATH'
18169 hardcode_shlibpath_var_GCJ=no
18173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18174 hardcode_shlibpath_var_GCJ=no
18175 export_dynamic_flag_spec_GCJ='-Bexport'
18179 if test -d /usr/nec; then
18180 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18181 hardcode_shlibpath_var_GCJ=no
18182 runpath_var=LD_RUN_PATH
18183 hardcode_runpath_var=yes
18189 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18190 hardcode_direct_GCJ=yes
18191 hardcode_minus_L_GCJ=no
18192 hardcode_shlibpath_var_GCJ=no
18193 hardcode_runpath_var=yes
18194 runpath_var=LD_RUN_PATH
18197 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18198 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18199 if test "$GCC" = yes; then
18200 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18202 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18204 runpath_var='LD_RUN_PATH'
18205 hardcode_shlibpath_var_GCJ=no
18209 no_undefined_flag_GCJ=' -z text'
18210 # $CC -shared without GNU ld will not create a library from C++
18211 # object files and a static libstdc++, better avoid it by now
18212 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18213 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18214 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18215 hardcode_libdir_flag_spec_GCJ=
18216 hardcode_shlibpath_var_GCJ=no
18217 runpath_var='LD_RUN_PATH'
18221 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18222 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18223 hardcode_shlibpath_var_GCJ=no
18232 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18233 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18234 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18237 if test "$GCC" = yes; then
18238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18242 # Do we need to explicitly link libc?
18244 case "x$archive_cmds_need_lc_GCJ" in
18246 # Assume -lc should be added
18247 archive_cmds_need_lc_GCJ=yes
18249 if test "$enable_shared" = yes && test "$GCC" = yes; then
18250 case $archive_cmds_GCJ in
18252 # FIXME: we may have to deal with multi-command sequences.
18255 # Test whether the compiler implicitly links with -lc since on some
18256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18257 # to ld, don't add -lc before -lgcc.
18258 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18259 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18261 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264 (eval $ac_compile) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } 2>conftest.err; then
18270 libobjs=conftest.$ac_objext
18272 wl=$lt_prog_compiler_wl_GCJ
18278 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18279 allow_undefined_flag_GCJ=
18280 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18281 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }
18286 archive_cmds_need_lc_GCJ=no
18288 archive_cmds_need_lc_GCJ=yes
18290 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18292 cat conftest.err 1>&5
18295 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18296 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18303 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18304 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18305 library_names_spec=
18306 libname_spec='lib$name'
18310 postuninstall_cmds=
18314 shlibpath_overrides_runpath=unknown
18316 dynamic_linker="$host_os ld.so"
18317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18318 if test "$GCC" = yes; then
18319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18320 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18321 # if the path contains ";" then we assume it to be the separator
18322 # otherwise default to the standard path separator (i.e. ":") - it is
18323 # assumed that no part of a normal pathname contains ";" but that should
18324 # okay in the real world where ";" in dirpaths is itself problematic.
18325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18330 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18332 need_lib_prefix=unknown
18333 hardcode_into_libs=no
18335 # when you set need_version to no, make sure it does not cause -set_version
18336 # flags to be left without arguments
18337 need_version=unknown
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18343 shlibpath_var=LIBPATH
18345 # AIX 3 has no versioning support, so we append a major version to the name.
18346 soname_spec='${libname}${release}${shared_ext}$major'
18353 hardcode_into_libs=yes
18354 if test "$host_cpu" = ia64; then
18355 # AIX 5 supports IA64
18356 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18357 shlibpath_var=LD_LIBRARY_PATH
18359 # With GCC up to 2.95.x, collect2 would create an import file
18360 # for dependence libraries. The import file would start with
18361 # the line `#! .'. This would cause the generated library to
18362 # depend on `.', always an invalid library. This was fixed in
18363 # development snapshots of GCC prior to 3.0.
18365 aix4 | aix4.[01] | aix4.[01].*)
18366 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18368 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18371 can_build_shared=no
18375 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18376 # soname into executable. Probably we can add versioning support to
18377 # collect2, so additional links can be useful in future.
18378 if test "$aix_use_runtimelinking" = yes; then
18379 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18380 # instead of lib<name>.a to let people know that these are not
18381 # typical AIX shared libraries.
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18384 # We preserve .a as extension for shared libraries through AIX4.2
18385 # and later when we are not doing run time linking.
18386 library_names_spec='${libname}${release}.a $libname.a'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18389 shlibpath_var=LIBPATH
18394 library_names_spec='$libname.ixlibrary $libname.a'
18395 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18396 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'
18400 library_names_spec='${libname}${shared_ext}'
18401 dynamic_linker="$host_os ld.so"
18402 shlibpath_var=LIBRARY_PATH
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18413 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18414 # the default ld.so.conf also contains /usr/contrib/lib and
18415 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18416 # libtool to hard-code these into programs
18419 cygwin* | mingw* | pw32*)
18420 version_type=windows
18425 case $GCC,$host_os in
18426 yes,cygwin* | yes,mingw* | yes,pw32*)
18427 library_names_spec='$libname.dll.a'
18428 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18429 postinstall_cmds='base_file=`basename \${file}`~
18430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18431 dldir=$destdir/`dirname \$dlpath`~
18432 test -d \$dldir || mkdir -p \$dldir~
18433 $install_prog $dir/$dlname \$dldir/$dlname'
18434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18435 dlpath=$dir/\$dldll~
18437 shlibpath_overrides_runpath=yes
18441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18443 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18446 # MinGW DLLs use traditional 'lib' prefix
18447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18449 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18450 # It is most probably a Windows format PATH printed by
18451 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18452 # path with ; separators, and with drive letters. We can handle the
18453 # drive letters (cygwin fileutils understands them), so leave them,
18454 # especially as we might pass files found there to a mingw objdump,
18455 # which wouldn't understand a cygwinified path. Ahh.
18456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18462 # pw32 DLLs use 'pw' prefix rather than 'lib'
18463 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18469 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18472 dynamic_linker='Win32 ld.exe'
18473 # FIXME: first we should search . and the directory the executable is in
18477 darwin* | rhapsody*)
18478 dynamic_linker="$host_os dyld"
18479 version_type=darwin
18482 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18483 soname_spec='${libname}${release}${major}$shared_ext'
18484 shlibpath_overrides_runpath=yes
18485 shlibpath_var=DYLD_LIBRARY_PATH
18486 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18487 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18488 if test "$GCC" = yes; then
18489 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"`
18491 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18493 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 shlibpath_var=LD_LIBRARY_PATH
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18514 soname_spec='${libname}${release}${shared_ext}$major'
18515 shlibpath_var=LD_LIBRARY_PATH
18516 shlibpath_overrides_runpath=no
18517 hardcode_into_libs=yes
18518 dynamic_linker='GNU ld.so'
18522 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18523 version_type=freebsd-$objformat
18524 case $version_type in
18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18535 shlibpath_var=LD_LIBRARY_PATH
18538 shlibpath_overrides_runpath=yes
18540 freebsd3.01* | freebsdelf3.01*)
18541 shlibpath_overrides_runpath=yes
18542 hardcode_into_libs=yes
18545 shlibpath_overrides_runpath=no
18546 hardcode_into_libs=yes
18555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18556 soname_spec='${libname}${release}${shared_ext}$major'
18557 shlibpath_var=LD_LIBRARY_PATH
18558 hardcode_into_libs=yes
18561 hpux9* | hpux10* | hpux11*)
18562 # Give a soname corresponding to the major version so that dld.sl refuses to
18563 # link against other versions.
18567 case "$host_cpu" in
18570 hardcode_into_libs=yes
18571 dynamic_linker="$host_os dld.so"
18572 shlibpath_var=LD_LIBRARY_PATH
18573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18575 soname_spec='${libname}${release}${shared_ext}$major'
18576 if test "X$HPUX_IA64_MODE" = X32; then
18577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18585 hardcode_into_libs=yes
18586 dynamic_linker="$host_os dld.sl"
18587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18596 dynamic_linker="$host_os dld.sl"
18597 shlibpath_var=SHLIB_PATH
18598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600 soname_spec='${libname}${release}${shared_ext}$major'
18603 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18604 postinstall_cmds='chmod 555 $lib'
18607 irix5* | irix6* | nonstopux*)
18609 nonstopux*) version_type=nonstopux ;;
18611 if test "$lt_cv_prog_gnu_ld" = yes; then
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18622 irix5* | nonstopux*)
18623 libsuff= shlibsuff=
18626 case $LD in # libtool.m4 will add one of these switches to LD
18627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18628 libsuff= shlibsuff= libmagic=32-bit;;
18629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18630 libsuff=32 shlibsuff=N32 libmagic=N32;;
18631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18632 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18633 *) libsuff= shlibsuff= libmagic=never-match;;
18637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18638 shlibpath_overrides_runpath=no
18639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18641 hardcode_into_libs=yes
18644 # No shared lib support for Linux oldld, aout, or coff.
18645 linux*oldld* | linux*aout* | linux*coff*)
18649 # This must be Linux ELF.
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655 soname_spec='${libname}${release}${shared_ext}$major'
18656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18657 shlibpath_var=LD_LIBRARY_PATH
18658 shlibpath_overrides_runpath=no
18659 # This implies no fast_install, which is unacceptable.
18660 # Some rework will be needed to allow for fast_install
18661 # before this can be enabled.
18662 hardcode_into_libs=yes
18664 # Append ld.so.conf contents to the search path
18665 if test -f /etc/ld.so.conf; then
18666 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18670 # We used to test for /lib/ld.so.1 and disable shared libraries on
18671 # powerpc, because MkLinux only supported shared libraries with the
18672 # GNU dynamic linker. Since this was broken with cross compilers,
18673 # most powerpc-linux boxes support dynamic linking these days and
18674 # people can always --disable-shared, the test was removed, and we
18675 # assume the GNU/Linux dynamic linker is in use.
18676 dynamic_linker='GNU/Linux ld.so'
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 shlibpath_overrides_runpath=no
18687 hardcode_into_libs=yes
18688 dynamic_linker='GNU ld.so'
18695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18698 dynamic_linker='NetBSD (a.out) ld.so'
18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18701 soname_spec='${libname}${release}${shared_ext}$major'
18702 dynamic_linker='NetBSD ld.elf_so'
18704 shlibpath_var=LD_LIBRARY_PATH
18705 shlibpath_overrides_runpath=yes
18706 hardcode_into_libs=yes
18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712 shlibpath_var=LD_LIBRARY_PATH
18713 shlibpath_overrides_runpath=yes
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721 soname_spec='${libname}${release}${shared_ext}$major'
18722 shlibpath_var=LD_LIBRARY_PATH
18723 shlibpath_overrides_runpath=yes
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18732 shlibpath_var=LD_LIBRARY_PATH
18733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18735 openbsd2.[89] | openbsd2.[89].*)
18736 shlibpath_overrides_runpath=no
18739 shlibpath_overrides_runpath=yes
18743 shlibpath_overrides_runpath=yes
18748 libname_spec='$name'
18751 library_names_spec='$libname${shared_ext} $libname.a'
18752 dynamic_linker='OS/2 ld.exe'
18753 shlibpath_var=LIBPATH
18756 osf3* | osf4* | osf5*)
18760 soname_spec='${libname}${release}${shared_ext}$major'
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762 shlibpath_var=LD_LIBRARY_PATH
18763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18769 soname_spec='${libname}${release}${shared_ext}$major'
18770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18771 shlibpath_var=LD_LIBRARY_PATH
18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779 soname_spec='${libname}${release}${shared_ext}$major'
18780 shlibpath_var=LD_LIBRARY_PATH
18781 shlibpath_overrides_runpath=yes
18782 hardcode_into_libs=yes
18783 # ldd complains unless libraries are executable
18784 postinstall_cmds='chmod +x $lib'
18789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 shlibpath_overrides_runpath=yes
18793 if test "$with_gnu_ld" = yes; then
18799 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802 soname_spec='${libname}${release}${shared_ext}$major'
18803 shlibpath_var=LD_LIBRARY_PATH
18804 case $host_vendor in
18806 shlibpath_overrides_runpath=no
18808 export_dynamic_flag_spec='${wl}-Blargedynsym'
18809 runpath_var=LD_RUN_PATH
18817 shlibpath_overrides_runpath=no
18818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18824 if test -d /usr/nec ;then
18826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18827 soname_spec='$libname${shared_ext}.$major'
18828 shlibpath_var=LD_LIBRARY_PATH
18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835 soname_spec='${libname}${release}${shared_ext}$major'
18836 shlibpath_var=LD_LIBRARY_PATH
18843 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18844 echo "${ECHO_T}$dynamic_linker" >&6
18845 test "$dynamic_linker" = no && can_build_shared=no
18847 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18849 hardcode_action_GCJ=
18850 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18851 test -n "$runpath_var_GCJ" || \
18852 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18854 # We can hardcode non-existant directories.
18855 if test "$hardcode_direct_GCJ" != no &&
18856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18857 # have to relink, otherwise we might link with an installed library
18858 # when we should be linking with a yet-to-be-installed one
18859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18860 test "$hardcode_minus_L_GCJ" != no; then
18861 # Linking always hardcodes the temporary library directory.
18862 hardcode_action_GCJ=relink
18864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18865 hardcode_action_GCJ=immediate
18868 # We cannot hardcode anything, or else we can only hardcode existing
18870 hardcode_action_GCJ=unsupported
18872 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18873 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18875 if test "$hardcode_action_GCJ" = relink; then
18876 # Fast installation is not supported
18877 enable_fast_install=no
18878 elif test "$shlibpath_overrides_runpath" = yes ||
18879 test "$enable_shared" = no; then
18880 # Fast installation is not necessary
18881 enable_fast_install=needless
18886 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18888 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18891 echo "$as_me:$LINENO: result: yes" >&5
18892 echo "${ECHO_T}yes" >&6
18894 # FIXME - insert some real tests, host_os isn't really good enough
18897 if test -n "$STRIP" ; then
18898 striplib="$STRIP -x"
18899 echo "$as_me:$LINENO: result: yes" >&5
18900 echo "${ECHO_T}yes" >&6
18902 echo "$as_me:$LINENO: result: no" >&5
18903 echo "${ECHO_T}no" >&6
18907 echo "$as_me:$LINENO: result: no" >&5
18908 echo "${ECHO_T}no" >&6
18913 if test "x$enable_dlopen" != xyes; then
18914 enable_dlopen=unknown
18915 enable_dlopen_self=unknown
18916 enable_dlopen_self_static=unknown
18923 lt_cv_dlopen="load_add_on"
18925 lt_cv_dlopen_self=yes
18929 lt_cv_dlopen="LoadLibrary"
18934 lt_cv_dlopen="dlopen"
18939 # if libdl is installed we need to link against it
18940 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 ac_check_lib_save_LIBS=$LIBS
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18954 /* Override any gcc2 internal prototype to avoid an error. */
18958 /* We use char because int might match the return type of a gcc2
18959 builtin and then its argument prototype would still apply. */
18969 rm -f conftest.$ac_objext conftest$ac_exeext
18970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18971 (eval $ac_link) 2>conftest.er1
18973 grep -v '^ *+' conftest.er1 >conftest.err
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } &&
18978 { ac_try='test -z "$ac_c_werror_flag"
18979 || test ! -s conftest.err'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try='test -s conftest$ac_exeext'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; }; then
18991 ac_cv_lib_dl_dlopen=yes
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 ac_cv_lib_dl_dlopen=no
18998 rm -f conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19002 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19003 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19004 if test $ac_cv_lib_dl_dlopen = yes; then
19005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19008 lt_cv_dlopen="dyld"
19010 lt_cv_dlopen_self=yes
19017 echo "$as_me:$LINENO: checking for shl_load" >&5
19018 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19019 if test "${ac_cv_func_shl_load+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19028 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19030 #define shl_load innocuous_shl_load
19032 /* System header to define __stub macros and hopefully few prototypes,
19033 which can conflict with char shl_load (); below.
19034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19035 <limits.h> exists even on freestanding compilers. */
19038 # include <limits.h>
19040 # include <assert.h>
19045 /* Override any gcc2 internal prototype to avoid an error. */
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19053 /* The GNU C library defines this for functions which it implements
19054 to always fail with ENOSYS. Some functions are actually named
19055 something starting with __ and the normal name is an alias. */
19056 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19059 char (*f) () = shl_load;
19068 return f != shl_load;
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19075 (eval $ac_link) 2>conftest.er1
19077 grep -v '^ *+' conftest.er1 >conftest.err
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag"
19083 || test ! -s conftest.err'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_func_shl_load=yes
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 ac_cv_func_shl_load=no
19102 rm -f conftest.err conftest.$ac_objext \
19103 conftest$ac_exeext conftest.$ac_ext
19105 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19106 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19107 if test $ac_cv_func_shl_load = yes; then
19108 lt_cv_dlopen="shl_load"
19110 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19111 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19112 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 ac_check_lib_save_LIBS=$LIBS
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19124 /* Override any gcc2 internal prototype to avoid an error. */
19128 /* We use char because int might match the return type of a gcc2
19129 builtin and then its argument prototype would still apply. */
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141 (eval $ac_link) 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_dld_shl_load=yes
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166 ac_cv_lib_dld_shl_load=no
19168 rm -f conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19173 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19174 if test $ac_cv_lib_dld_shl_load = yes; then
19175 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19177 echo "$as_me:$LINENO: checking for dlopen" >&5
19178 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19179 if test "${ac_cv_func_dlopen+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19190 #define dlopen innocuous_dlopen
19192 /* System header to define __stub macros and hopefully few prototypes,
19193 which can conflict with char dlopen (); below.
19194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19195 <limits.h> exists even on freestanding compilers. */
19198 # include <limits.h>
19200 # include <assert.h>
19205 /* Override any gcc2 internal prototype to avoid an error. */
19210 /* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19213 /* The GNU C library defines this for functions which it implements
19214 to always fail with ENOSYS. Some functions are actually named
19215 something starting with __ and the normal name is an alias. */
19216 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19219 char (*f) () = dlopen;
19228 return f != dlopen;
19233 rm -f conftest.$ac_objext conftest$ac_exeext
19234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19235 (eval $ac_link) 2>conftest.er1
19237 grep -v '^ *+' conftest.er1 >conftest.err
19239 cat conftest.err >&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
19242 { ac_try='test -z "$ac_c_werror_flag"
19243 || test ! -s conftest.err'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest$ac_exeext'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19255 ac_cv_func_dlopen=yes
19257 echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19260 ac_cv_func_dlopen=no
19262 rm -f conftest.err conftest.$ac_objext \
19263 conftest$ac_exeext conftest.$ac_ext
19265 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19266 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19267 if test $ac_cv_func_dlopen = yes; then
19268 lt_cv_dlopen="dlopen"
19270 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 ac_check_lib_save_LIBS=$LIBS
19277 cat >conftest.$ac_ext <<_ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19284 /* Override any gcc2 internal prototype to avoid an error. */
19288 /* We use char because int might match the return type of a gcc2
19289 builtin and then its argument prototype would still apply. */
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19301 (eval $ac_link) 2>conftest.er1
19303 grep -v '^ *+' conftest.er1 >conftest.err
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
19308 { ac_try='test -z "$ac_c_werror_flag"
19309 || test ! -s conftest.err'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest$ac_exeext'
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19321 ac_cv_lib_dl_dlopen=yes
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 ac_cv_lib_dl_dlopen=no
19328 rm -f conftest.err conftest.$ac_objext \
19329 conftest$ac_exeext conftest.$ac_ext
19330 LIBS=$ac_check_lib_save_LIBS
19332 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19334 if test $ac_cv_lib_dl_dlopen = yes; then
19335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19337 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19338 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19339 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 ac_check_lib_save_LIBS=$LIBS
19343 LIBS="-lsvld $LIBS"
19344 cat >conftest.$ac_ext <<_ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19351 /* Override any gcc2 internal prototype to avoid an error. */
19355 /* We use char because int might match the return type of a gcc2
19356 builtin and then its argument prototype would still apply. */
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19368 (eval $ac_link) 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_lib_svld_dlopen=yes
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_cv_lib_svld_dlopen=no
19395 rm -f conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext conftest.$ac_ext
19397 LIBS=$ac_check_lib_save_LIBS
19399 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19400 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19401 if test $ac_cv_lib_svld_dlopen = yes; then
19402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19404 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19405 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19406 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 ac_check_lib_save_LIBS=$LIBS
19411 cat >conftest.$ac_ext <<_ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 /* Override any gcc2 internal prototype to avoid an error. */
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19433 rm -f conftest.$ac_objext conftest$ac_exeext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_c_werror_flag"
19443 || test ! -s conftest.err'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest$ac_exeext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 ac_cv_lib_dld_dld_link=yes
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 ac_cv_lib_dld_dld_link=no
19462 rm -f conftest.err conftest.$ac_objext \
19463 conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19466 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19467 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19468 if test $ac_cv_lib_dld_dld_link = yes; then
19469 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19490 if test "x$lt_cv_dlopen" != xno; then
19496 case $lt_cv_dlopen in
19498 save_CPPFLAGS="$CPPFLAGS"
19499 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19501 save_LDFLAGS="$LDFLAGS"
19502 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19505 LIBS="$lt_cv_dlopen_libs $LIBS"
19507 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19508 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19509 if test "${lt_cv_dlopen_self+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 if test "$cross_compiling" = yes; then :
19513 lt_cv_dlopen_self=cross
19515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19516 lt_status=$lt_dlunknown
19517 cat > conftest.$ac_ext <<EOF
19518 #line 19518 "configure"
19519 #include "confdefs.h"
19528 # define LT_DLGLOBAL RTLD_GLOBAL
19531 # define LT_DLGLOBAL DL_GLOBAL
19533 # define LT_DLGLOBAL 0
19537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19538 find out it does not work in some platform. */
19539 #ifndef LT_DLLAZY_OR_NOW
19541 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19544 # define LT_DLLAZY_OR_NOW DL_LAZY
19547 # define LT_DLLAZY_OR_NOW RTLD_NOW
19550 # define LT_DLLAZY_OR_NOW DL_NOW
19552 # define LT_DLLAZY_OR_NOW 0
19560 extern "C" void exit (int);
19563 void fnord() { int i=42;}
19566 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19567 int status = $lt_dlunknown;
19571 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19572 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19573 /* dlclose (self); */
19579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19584 (./conftest; exit; ) 2>/dev/null
19586 case x$lt_status in
19587 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19588 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19589 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19592 # compilation failed
19593 lt_cv_dlopen_self=no
19600 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19601 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19603 if test "x$lt_cv_dlopen_self" = xyes; then
19604 LDFLAGS="$LDFLAGS $link_static_flag"
19605 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19606 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19607 if test "${lt_cv_dlopen_self_static+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 if test "$cross_compiling" = yes; then :
19611 lt_cv_dlopen_self_static=cross
19613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19614 lt_status=$lt_dlunknown
19615 cat > conftest.$ac_ext <<EOF
19616 #line 19616 "configure"
19617 #include "confdefs.h"
19626 # define LT_DLGLOBAL RTLD_GLOBAL
19629 # define LT_DLGLOBAL DL_GLOBAL
19631 # define LT_DLGLOBAL 0
19635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19636 find out it does not work in some platform. */
19637 #ifndef LT_DLLAZY_OR_NOW
19639 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19642 # define LT_DLLAZY_OR_NOW DL_LAZY
19645 # define LT_DLLAZY_OR_NOW RTLD_NOW
19648 # define LT_DLLAZY_OR_NOW DL_NOW
19650 # define LT_DLLAZY_OR_NOW 0
19658 extern "C" void exit (int);
19661 void fnord() { int i=42;}
19664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19665 int status = $lt_dlunknown;
19669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19670 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19671 /* dlclose (self); */
19677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678 (eval $ac_link) 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19682 (./conftest; exit; ) 2>/dev/null
19684 case x$lt_status in
19685 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19686 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19687 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19690 # compilation failed
19691 lt_cv_dlopen_self_static=no
19698 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19699 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19702 CPPFLAGS="$save_CPPFLAGS"
19703 LDFLAGS="$save_LDFLAGS"
19708 case $lt_cv_dlopen_self in
19709 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19710 *) enable_dlopen_self=unknown ;;
19713 case $lt_cv_dlopen_self_static in
19714 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19715 *) enable_dlopen_self_static=unknown ;;
19720 # The else clause should only fire when bootstrapping the
19721 # libtool distribution, otherwise you forgot to ship ltmain.sh
19722 # with your package, and you will get complaints that there are
19723 # no rules to generate ltmain.sh.
19724 if test -f "$ltmain"; then
19725 # See if we are running on zsh, and set the options which allow our commands through
19726 # without removal of \ escapes.
19727 if test -n "${ZSH_VERSION+set}" ; then
19728 setopt NO_GLOB_SUBST
19730 # Now quote all the things that may contain metacharacters while being
19731 # careful not to overquote the AC_SUBSTed values. We take copies of the
19732 # variables and quote the copies for generation of the libtool script.
19733 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19735 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19736 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19737 deplibs_check_method reload_flag reload_cmds need_locks \
19738 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19739 lt_cv_sys_global_symbol_to_c_name_address \
19740 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19741 old_postinstall_cmds old_postuninstall_cmds \
19745 lt_prog_compiler_wl_GCJ \
19746 lt_prog_compiler_pic_GCJ \
19747 lt_prog_compiler_static_GCJ \
19748 lt_prog_compiler_no_builtin_flag_GCJ \
19749 export_dynamic_flag_spec_GCJ \
19750 thread_safe_flag_spec_GCJ \
19751 whole_archive_flag_spec_GCJ \
19752 enable_shared_with_static_runtimes_GCJ \
19753 old_archive_cmds_GCJ \
19754 old_archive_from_new_cmds_GCJ \
19755 predep_objects_GCJ \
19756 postdep_objects_GCJ \
19759 compiler_lib_search_path_GCJ \
19761 archive_expsym_cmds_GCJ \
19762 postinstall_cmds_GCJ \
19763 postuninstall_cmds_GCJ \
19764 old_archive_from_expsyms_cmds_GCJ \
19765 allow_undefined_flag_GCJ \
19766 no_undefined_flag_GCJ \
19767 export_symbols_cmds_GCJ \
19768 hardcode_libdir_flag_spec_GCJ \
19769 hardcode_libdir_flag_spec_ld_GCJ \
19770 hardcode_libdir_separator_GCJ \
19771 hardcode_automatic_GCJ \
19773 module_expsym_cmds_GCJ \
19774 lt_cv_prog_compiler_c_o_GCJ \
19775 exclude_expsyms_GCJ \
19776 include_expsyms_GCJ; do
19779 old_archive_cmds_GCJ | \
19780 old_archive_from_new_cmds_GCJ | \
19781 archive_cmds_GCJ | \
19782 archive_expsym_cmds_GCJ | \
19783 module_cmds_GCJ | \
19784 module_expsym_cmds_GCJ | \
19785 old_archive_from_expsyms_cmds_GCJ | \
19786 export_symbols_cmds_GCJ | \
19787 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19788 postinstall_cmds | postuninstall_cmds | \
19789 old_postinstall_cmds | old_postuninstall_cmds | \
19790 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19791 # Double-quote double-evaled strings.
19792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19801 *'\$0 --fallback-echo"')
19802 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19808 cat <<__EOF__ >> "$cfgfile"
19809 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19811 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19813 # Shell to use when invoking shell scripts.
19816 # Whether or not to build shared libraries.
19817 build_libtool_libs=$enable_shared
19819 # Whether or not to build static libraries.
19820 build_old_libs=$enable_static
19822 # Whether or not to add -lc for building shared libraries.
19823 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19825 # Whether or not to disallow shared libs when runtime libs are static
19826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19828 # Whether or not to optimize for fast installation.
19829 fast_install=$enable_fast_install
19832 host_alias=$host_alias
19835 # An echo program that does not interpret backslashes.
19840 AR_FLAGS=$lt_AR_FLAGS
19845 # A language-specific compiler.
19846 CC=$lt_compiler_GCJ
19848 # Is the compiler the GNU C compiler?
19854 # The linker used to build libraries.
19857 # Whether we need hard or soft links.
19860 # A BSD-compatible nm program.
19863 # A symbol stripping program
19866 # Used to examine libraries when file_magic_cmd begins "file"
19867 MAGIC_CMD=$MAGIC_CMD
19869 # Used on cygwin: DLL creation program.
19872 # Used on cygwin: object dumper.
19875 # Used on cygwin: assembler.
19878 # The name of the directory that contains temporary libtool files.
19881 # How to create reloadable object files.
19882 reload_flag=$lt_reload_flag
19883 reload_cmds=$lt_reload_cmds
19885 # How to pass a linker flag through the compiler.
19886 wl=$lt_lt_prog_compiler_wl_GCJ
19888 # Object file suffix (normally "o").
19889 objext="$ac_objext"
19891 # Old archive suffix (normally "a").
19894 # Shared library suffix (normally ".so").
19895 shrext_cmds='$shrext_cmds'
19897 # Executable file suffix (normally "").
19900 # Additional compiler flags for building library objects.
19901 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19904 # What is the maximum length of a command?
19905 max_cmd_len=$lt_cv_sys_max_cmd_len
19907 # Does compiler simultaneously support -c and -o options?
19908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19910 # Must we lock files when doing compilation ?
19911 need_locks=$lt_need_locks
19913 # Do we need the lib prefix for modules?
19914 need_lib_prefix=$need_lib_prefix
19916 # Do we need a version for libraries?
19917 need_version=$need_version
19919 # Whether dlopen is supported.
19920 dlopen_support=$enable_dlopen
19922 # Whether dlopen of programs is supported.
19923 dlopen_self=$enable_dlopen_self
19925 # Whether dlopen of statically linked programs is supported.
19926 dlopen_self_static=$enable_dlopen_self_static
19928 # Compiler flag to prevent dynamic linking.
19929 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19931 # Compiler flag to turn off builtin functions.
19932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19934 # Compiler flag to allow reflexive dlopens.
19935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19937 # Compiler flag to generate shared objects directly from archives.
19938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19940 # Compiler flag to generate thread-safe objects.
19941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19943 # Library versioning type.
19944 version_type=$version_type
19946 # Format of library name prefix.
19947 libname_spec=$lt_libname_spec
19949 # List of archive names. First name is the real one, the rest are links.
19950 # The last name is the one that the linker finds with -lNAME.
19951 library_names_spec=$lt_library_names_spec
19953 # The coded name of the library, if different from the real name.
19954 soname_spec=$lt_soname_spec
19956 # Commands used to build and install an old-style archive.
19958 old_archive_cmds=$lt_old_archive_cmds_GCJ
19959 old_postinstall_cmds=$lt_old_postinstall_cmds
19960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19962 # Create an old-style archive from a shared archive.
19963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19965 # Create a temporary old-style archive to link instead of a shared archive.
19966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19968 # Commands used to build and install a shared archive.
19969 archive_cmds=$lt_archive_cmds_GCJ
19970 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19971 postinstall_cmds=$lt_postinstall_cmds
19972 postuninstall_cmds=$lt_postuninstall_cmds
19974 # Commands used to build a loadable module (assumed same as above if empty)
19975 module_cmds=$lt_module_cmds_GCJ
19976 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19978 # Commands to strip libraries.
19979 old_striplib=$lt_old_striplib
19980 striplib=$lt_striplib
19982 # Dependencies to place before the objects being linked to create a
19984 predep_objects=$lt_predep_objects_GCJ
19986 # Dependencies to place after the objects being linked to create a
19988 postdep_objects=$lt_postdep_objects_GCJ
19990 # Dependencies to place before the objects being linked to create a
19992 predeps=$lt_predeps_GCJ
19994 # Dependencies to place after the objects being linked to create a
19996 postdeps=$lt_postdeps_GCJ
19998 # The library search path used internally by the compiler when linking
19999 # a shared library.
20000 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20002 # Method to check whether dependent libraries are shared objects.
20003 deplibs_check_method=$lt_deplibs_check_method
20005 # Command to use when deplibs_check_method == file_magic.
20006 file_magic_cmd=$lt_file_magic_cmd
20008 # Flag that allows shared libraries with undefined symbols to be built.
20009 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20011 # Flag that forces no undefined symbols.
20012 no_undefined_flag=$lt_no_undefined_flag_GCJ
20014 # Commands used to finish a libtool library installation in a directory.
20015 finish_cmds=$lt_finish_cmds
20017 # Same as above, but a single script fragment to be evaled but not shown.
20018 finish_eval=$lt_finish_eval
20020 # Take the output of nm and produce a listing of raw symbols and C names.
20021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20023 # Transform the output of nm in a proper C declaration
20024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20026 # Transform the output of nm in a C name address pair
20027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20029 # This is the shared library runtime path variable.
20030 runpath_var=$runpath_var
20032 # This is the shared library path variable.
20033 shlibpath_var=$shlibpath_var
20035 # Is shlibpath searched before the hard-coded library search path?
20036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20038 # How to hardcode a shared library path into an executable.
20039 hardcode_action=$hardcode_action_GCJ
20041 # Whether we should hardcode library paths into libraries.
20042 hardcode_into_libs=$hardcode_into_libs
20044 # Flag to hardcode \$libdir into a binary during linking.
20045 # This must work even if \$libdir does not exist.
20046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20048 # If ld is used when linking, flag to hardcode \$libdir into
20049 # a binary during linking. This must work even if \$libdir does
20051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20053 # Whether we need a single -rpath flag with a separated argument.
20054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20057 # resulting binary.
20058 hardcode_direct=$hardcode_direct_GCJ
20060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20061 # resulting binary.
20062 hardcode_minus_L=$hardcode_minus_L_GCJ
20064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20065 # the resulting binary.
20066 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20068 # Set to yes if building a shared library automatically hardcodes DIR into the library
20069 # and all subsequent libraries and executables linked against it.
20070 hardcode_automatic=$hardcode_automatic_GCJ
20072 # Variables whose values should be saved in libtool wrapper scripts and
20073 # restored at relink time.
20074 variables_saved_for_relink="$variables_saved_for_relink"
20076 # Whether libtool must link a program against all its dependency libraries.
20077 link_all_deplibs=$link_all_deplibs_GCJ
20079 # Compile-time system search path for libraries
20080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20082 # Run-time system search path for libraries
20083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20085 # Fix the shell variable \$srcfile for the compiler.
20086 fix_srcfile_path="$fix_srcfile_path_GCJ"
20088 # Set to yes if exported symbols are required.
20089 always_export_symbols=$always_export_symbols_GCJ
20091 # The commands to list exported symbols.
20092 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20094 # The commands to extract the exported symbol list from a shared archive.
20095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20097 # Symbols that should not be listed in the preloaded symbols.
20098 exclude_expsyms=$lt_exclude_expsyms_GCJ
20100 # Symbols that must always be exported.
20101 include_expsyms=$lt_include_expsyms_GCJ
20103 # ### END LIBTOOL TAG CONFIG: $tagname
20109 # If there is no Makefile yet, we rely on a make rule to execute
20110 # `config.status --recheck' to rerun these tests and create the
20111 # libtool script then.
20112 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20113 if test -f "$ltmain_in"; then
20114 test -f Makefile && make "$ltmain"
20120 ac_cpp='$CPP $CPPFLAGS'
20121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20134 ac_cpp='$CPP $CPPFLAGS'
20135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20140 # Source file extension for RC test sources.
20143 # Object file extension for compiled RC test sources.
20147 # Code to be used in simple compile tests
20148 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20150 # Code to be used in simple link tests
20151 lt_simple_link_test_code="$lt_simple_compile_test_code"
20153 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20155 # If no C compiler was specified, use CC.
20158 # Allow CC to be a program name with arguments.
20162 # Allow CC to be a program name with arguments.
20167 lt_cv_prog_compiler_c_o_RC=yes
20169 # The else clause should only fire when bootstrapping the
20170 # libtool distribution, otherwise you forgot to ship ltmain.sh
20171 # with your package, and you will get complaints that there are
20172 # no rules to generate ltmain.sh.
20173 if test -f "$ltmain"; then
20174 # See if we are running on zsh, and set the options which allow our commands through
20175 # without removal of \ escapes.
20176 if test -n "${ZSH_VERSION+set}" ; then
20177 setopt NO_GLOB_SUBST
20179 # Now quote all the things that may contain metacharacters while being
20180 # careful not to overquote the AC_SUBSTed values. We take copies of the
20181 # variables and quote the copies for generation of the libtool script.
20182 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20184 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20185 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20186 deplibs_check_method reload_flag reload_cmds need_locks \
20187 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20188 lt_cv_sys_global_symbol_to_c_name_address \
20189 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20190 old_postinstall_cmds old_postuninstall_cmds \
20194 lt_prog_compiler_wl_RC \
20195 lt_prog_compiler_pic_RC \
20196 lt_prog_compiler_static_RC \
20197 lt_prog_compiler_no_builtin_flag_RC \
20198 export_dynamic_flag_spec_RC \
20199 thread_safe_flag_spec_RC \
20200 whole_archive_flag_spec_RC \
20201 enable_shared_with_static_runtimes_RC \
20202 old_archive_cmds_RC \
20203 old_archive_from_new_cmds_RC \
20204 predep_objects_RC \
20205 postdep_objects_RC \
20208 compiler_lib_search_path_RC \
20210 archive_expsym_cmds_RC \
20211 postinstall_cmds_RC \
20212 postuninstall_cmds_RC \
20213 old_archive_from_expsyms_cmds_RC \
20214 allow_undefined_flag_RC \
20215 no_undefined_flag_RC \
20216 export_symbols_cmds_RC \
20217 hardcode_libdir_flag_spec_RC \
20218 hardcode_libdir_flag_spec_ld_RC \
20219 hardcode_libdir_separator_RC \
20220 hardcode_automatic_RC \
20222 module_expsym_cmds_RC \
20223 lt_cv_prog_compiler_c_o_RC \
20224 exclude_expsyms_RC \
20225 include_expsyms_RC; do
20228 old_archive_cmds_RC | \
20229 old_archive_from_new_cmds_RC | \
20230 archive_cmds_RC | \
20231 archive_expsym_cmds_RC | \
20233 module_expsym_cmds_RC | \
20234 old_archive_from_expsyms_cmds_RC | \
20235 export_symbols_cmds_RC | \
20236 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20237 postinstall_cmds | postuninstall_cmds | \
20238 old_postinstall_cmds | old_postuninstall_cmds | \
20239 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20240 # Double-quote double-evaled strings.
20241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20250 *'\$0 --fallback-echo"')
20251 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20257 cat <<__EOF__ >> "$cfgfile"
20258 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20260 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20262 # Shell to use when invoking shell scripts.
20265 # Whether or not to build shared libraries.
20266 build_libtool_libs=$enable_shared
20268 # Whether or not to build static libraries.
20269 build_old_libs=$enable_static
20271 # Whether or not to add -lc for building shared libraries.
20272 build_libtool_need_lc=$archive_cmds_need_lc_RC
20274 # Whether or not to disallow shared libs when runtime libs are static
20275 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20277 # Whether or not to optimize for fast installation.
20278 fast_install=$enable_fast_install
20281 host_alias=$host_alias
20284 # An echo program that does not interpret backslashes.
20289 AR_FLAGS=$lt_AR_FLAGS
20294 # A language-specific compiler.
20297 # Is the compiler the GNU C compiler?
20303 # The linker used to build libraries.
20306 # Whether we need hard or soft links.
20309 # A BSD-compatible nm program.
20312 # A symbol stripping program
20315 # Used to examine libraries when file_magic_cmd begins "file"
20316 MAGIC_CMD=$MAGIC_CMD
20318 # Used on cygwin: DLL creation program.
20321 # Used on cygwin: object dumper.
20324 # Used on cygwin: assembler.
20327 # The name of the directory that contains temporary libtool files.
20330 # How to create reloadable object files.
20331 reload_flag=$lt_reload_flag
20332 reload_cmds=$lt_reload_cmds
20334 # How to pass a linker flag through the compiler.
20335 wl=$lt_lt_prog_compiler_wl_RC
20337 # Object file suffix (normally "o").
20338 objext="$ac_objext"
20340 # Old archive suffix (normally "a").
20343 # Shared library suffix (normally ".so").
20344 shrext_cmds='$shrext_cmds'
20346 # Executable file suffix (normally "").
20349 # Additional compiler flags for building library objects.
20350 pic_flag=$lt_lt_prog_compiler_pic_RC
20353 # What is the maximum length of a command?
20354 max_cmd_len=$lt_cv_sys_max_cmd_len
20356 # Does compiler simultaneously support -c and -o options?
20357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20359 # Must we lock files when doing compilation ?
20360 need_locks=$lt_need_locks
20362 # Do we need the lib prefix for modules?
20363 need_lib_prefix=$need_lib_prefix
20365 # Do we need a version for libraries?
20366 need_version=$need_version
20368 # Whether dlopen is supported.
20369 dlopen_support=$enable_dlopen
20371 # Whether dlopen of programs is supported.
20372 dlopen_self=$enable_dlopen_self
20374 # Whether dlopen of statically linked programs is supported.
20375 dlopen_self_static=$enable_dlopen_self_static
20377 # Compiler flag to prevent dynamic linking.
20378 link_static_flag=$lt_lt_prog_compiler_static_RC
20380 # Compiler flag to turn off builtin functions.
20381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20383 # Compiler flag to allow reflexive dlopens.
20384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20386 # Compiler flag to generate shared objects directly from archives.
20387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20389 # Compiler flag to generate thread-safe objects.
20390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20392 # Library versioning type.
20393 version_type=$version_type
20395 # Format of library name prefix.
20396 libname_spec=$lt_libname_spec
20398 # List of archive names. First name is the real one, the rest are links.
20399 # The last name is the one that the linker finds with -lNAME.
20400 library_names_spec=$lt_library_names_spec
20402 # The coded name of the library, if different from the real name.
20403 soname_spec=$lt_soname_spec
20405 # Commands used to build and install an old-style archive.
20407 old_archive_cmds=$lt_old_archive_cmds_RC
20408 old_postinstall_cmds=$lt_old_postinstall_cmds
20409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20411 # Create an old-style archive from a shared archive.
20412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20414 # Create a temporary old-style archive to link instead of a shared archive.
20415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20417 # Commands used to build and install a shared archive.
20418 archive_cmds=$lt_archive_cmds_RC
20419 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20420 postinstall_cmds=$lt_postinstall_cmds
20421 postuninstall_cmds=$lt_postuninstall_cmds
20423 # Commands used to build a loadable module (assumed same as above if empty)
20424 module_cmds=$lt_module_cmds_RC
20425 module_expsym_cmds=$lt_module_expsym_cmds_RC
20427 # Commands to strip libraries.
20428 old_striplib=$lt_old_striplib
20429 striplib=$lt_striplib
20431 # Dependencies to place before the objects being linked to create a
20433 predep_objects=$lt_predep_objects_RC
20435 # Dependencies to place after the objects being linked to create a
20437 postdep_objects=$lt_postdep_objects_RC
20439 # Dependencies to place before the objects being linked to create a
20441 predeps=$lt_predeps_RC
20443 # Dependencies to place after the objects being linked to create a
20445 postdeps=$lt_postdeps_RC
20447 # The library search path used internally by the compiler when linking
20448 # a shared library.
20449 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20451 # Method to check whether dependent libraries are shared objects.
20452 deplibs_check_method=$lt_deplibs_check_method
20454 # Command to use when deplibs_check_method == file_magic.
20455 file_magic_cmd=$lt_file_magic_cmd
20457 # Flag that allows shared libraries with undefined symbols to be built.
20458 allow_undefined_flag=$lt_allow_undefined_flag_RC
20460 # Flag that forces no undefined symbols.
20461 no_undefined_flag=$lt_no_undefined_flag_RC
20463 # Commands used to finish a libtool library installation in a directory.
20464 finish_cmds=$lt_finish_cmds
20466 # Same as above, but a single script fragment to be evaled but not shown.
20467 finish_eval=$lt_finish_eval
20469 # Take the output of nm and produce a listing of raw symbols and C names.
20470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20472 # Transform the output of nm in a proper C declaration
20473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20475 # Transform the output of nm in a C name address pair
20476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20478 # This is the shared library runtime path variable.
20479 runpath_var=$runpath_var
20481 # This is the shared library path variable.
20482 shlibpath_var=$shlibpath_var
20484 # Is shlibpath searched before the hard-coded library search path?
20485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20487 # How to hardcode a shared library path into an executable.
20488 hardcode_action=$hardcode_action_RC
20490 # Whether we should hardcode library paths into libraries.
20491 hardcode_into_libs=$hardcode_into_libs
20493 # Flag to hardcode \$libdir into a binary during linking.
20494 # This must work even if \$libdir does not exist.
20495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20497 # If ld is used when linking, flag to hardcode \$libdir into
20498 # a binary during linking. This must work even if \$libdir does
20500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20502 # Whether we need a single -rpath flag with a separated argument.
20503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20506 # resulting binary.
20507 hardcode_direct=$hardcode_direct_RC
20509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20510 # resulting binary.
20511 hardcode_minus_L=$hardcode_minus_L_RC
20513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20514 # the resulting binary.
20515 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20517 # Set to yes if building a shared library automatically hardcodes DIR into the library
20518 # and all subsequent libraries and executables linked against it.
20519 hardcode_automatic=$hardcode_automatic_RC
20521 # Variables whose values should be saved in libtool wrapper scripts and
20522 # restored at relink time.
20523 variables_saved_for_relink="$variables_saved_for_relink"
20525 # Whether libtool must link a program against all its dependency libraries.
20526 link_all_deplibs=$link_all_deplibs_RC
20528 # Compile-time system search path for libraries
20529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20531 # Run-time system search path for libraries
20532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20534 # Fix the shell variable \$srcfile for the compiler.
20535 fix_srcfile_path="$fix_srcfile_path_RC"
20537 # Set to yes if exported symbols are required.
20538 always_export_symbols=$always_export_symbols_RC
20540 # The commands to list exported symbols.
20541 export_symbols_cmds=$lt_export_symbols_cmds_RC
20543 # The commands to extract the exported symbol list from a shared archive.
20544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20546 # Symbols that should not be listed in the preloaded symbols.
20547 exclude_expsyms=$lt_exclude_expsyms_RC
20549 # Symbols that must always be exported.
20550 include_expsyms=$lt_include_expsyms_RC
20552 # ### END LIBTOOL TAG CONFIG: $tagname
20558 # If there is no Makefile yet, we rely on a make rule to execute
20559 # `config.status --recheck' to rerun these tests and create the
20560 # libtool script then.
20561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20562 if test -f "$ltmain_in"; then
20563 test -f Makefile && make "$ltmain"
20569 ac_cpp='$CPP $CPPFLAGS'
20570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20579 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20580 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20581 { (exit 1); exit 1; }; }
20585 # Append the new tag name to the list of available tags.
20586 if test -n "$tagname" ; then
20587 available_tags="$available_tags $tagname"
20593 # Now substitute the updated list of available tags.
20594 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20595 mv "${ofile}T" "$ofile"
20599 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20600 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20601 { (exit 1); exit 1; }; }
20607 # This can be used to rebuild libtool when needed
20608 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20610 # Always use our own libtool.
20611 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
20613 # Prevent multiple expansion
20635 # Extract the first word of "dot", so it can be a program name with args.
20636 set dummy dot; ac_word=$2
20637 echo "$as_me:$LINENO: checking for $ac_word" >&5
20638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20639 if test "${ac_cv_path_DOT+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20648 for as_dir in $PATH
20651 test -z "$as_dir" && as_dir=.
20652 for ac_exec_ext in '' $ac_executable_extensions; do
20653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20654 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20661 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20665 DOT=$ac_cv_path_DOT
20667 if test -n "$DOT"; then
20668 echo "$as_me:$LINENO: result: $DOT" >&5
20669 echo "${ECHO_T}$DOT" >&6
20671 echo "$as_me:$LINENO: result: no" >&5
20672 echo "${ECHO_T}no" >&6
20675 # Extract the first word of "etags", so it can be a program name with args.
20676 set dummy etags; ac_word=$2
20677 echo "$as_me:$LINENO: checking for $ac_word" >&5
20678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20679 if test "${ac_cv_path_ETAGS+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20684 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20688 for as_dir in $PATH
20691 test -z "$as_dir" && as_dir=.
20692 for ac_exec_ext in '' $ac_executable_extensions; do
20693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20694 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20701 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20705 ETAGS=$ac_cv_path_ETAGS
20707 if test -n "$ETAGS"; then
20708 echo "$as_me:$LINENO: result: $ETAGS" >&5
20709 echo "${ECHO_T}$ETAGS" >&6
20711 echo "$as_me:$LINENO: result: no" >&5
20712 echo "${ECHO_T}no" >&6
20715 # Extract the first word of "python", so it can be a program name with args.
20716 set dummy python; ac_word=$2
20717 echo "$as_me:$LINENO: checking for $ac_word" >&5
20718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20719 if test "${ac_cv_path_PYTHON+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20728 for as_dir in $PATH
20731 test -z "$as_dir" && as_dir=.
20732 for ac_exec_ext in '' $ac_executable_extensions; do
20733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20734 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20741 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20745 PYTHON=$ac_cv_path_PYTHON
20747 if test -n "$PYTHON"; then
20748 echo "$as_me:$LINENO: result: $PYTHON" >&5
20749 echo "${ECHO_T}$PYTHON" >&6
20751 echo "$as_me:$LINENO: result: no" >&5
20752 echo "${ECHO_T}no" >&6
20755 # Extract the first word of "qmtest", so it can be a program name with args.
20756 set dummy qmtest; ac_word=$2
20757 echo "$as_me:$LINENO: checking for $ac_word" >&5
20758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20759 if test "${ac_cv_path_QMTEST+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20768 for as_dir in $PATH
20771 test -z "$as_dir" && as_dir=.
20772 for ac_exec_ext in '' $ac_executable_extensions; do
20773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20774 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20781 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20785 QMTEST=$ac_cv_path_QMTEST
20787 if test -n "$QMTEST"; then
20788 echo "$as_me:$LINENO: result: $QMTEST" >&5
20789 echo "${ECHO_T}$QMTEST" >&6
20791 echo "$as_me:$LINENO: result: no" >&5
20792 echo "${ECHO_T}no" >&6
20797 if test "$GCC" != "yes"
20799 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20800 echo "$as_me: error: gcc required but not found" >&2;}
20801 { (exit 1); exit 1; }; }
20804 if test "$GXX" != "yes"
20806 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20807 echo "$as_me: error: g++ required but not found" >&2;}
20808 { (exit 1); exit 1; }; }
20811 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20812 if test "$gccmajor" -lt "3"
20814 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20815 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20816 { (exit 1); exit 1; }; }
20819 echo "$as_me:$LINENO: checking for GNU make" >&5
20820 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
20821 if test "${_cv_gnu_make_command+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 _cv_gnu_make_command='' ;
20825 for a in "$MAKE" make gmake gnumake ; do
20826 if test -z "$a" ; then continue ; fi ;
20827 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
20828 _cv_gnu_make_command=$a ;
20834 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
20835 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
20836 if test "x$_cv_gnu_make_command" != "x" ; then
20840 echo "$as_me:$LINENO: result: \"Not found\"" >&5
20841 echo "${ECHO_T}\"Not found\"" >&6;
20845 if test -z "$_cv_gnu_make_command"
20847 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20848 echo "$as_me: error: GNU Make required but not found" >&2;}
20849 { (exit 1); exit 1; }; }
20852 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
20853 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
20855 if test -d "$LLVMGCCDIR"
20857 if test -x "$LLVMGCCDIR/bin/gcc"
20859 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
20863 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
20864 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
20865 if test "$LLVM_GCC_CHECK" = "no"
20870 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20871 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
20873 if test -x "$LLVM_GCC_CHECK"
20875 cp /dev/null conftest.c
20876 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
20882 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
20883 LLVMCC1=$llvmcc1path
20885 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
20886 LLVMCC1PLUS=$llvmcc1pluspath
20889 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
20890 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
20891 if test "$LLVM_GCC_SANE" = "no"
20896 etags_version=`$ETAGS --version 2>&1`
20897 case "$etags_version" in
20898 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20899 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20900 *) ETAGSFLAGS="" ;;
20902 ETAGSFLAGS=$ETAGSFLAGS
20905 if test "$PYTHON" = "false"
20907 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20908 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20910 if test "$QMTEST" = "false"
20912 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20913 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20916 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
20917 pymajor=`echo $pyversion | cut -d. -f1`
20918 pyminor=`echo $pyversion | cut -d. -f2`
20920 if test "$pymajor" -ge "2"
20922 if test "$pymajor" -eq "2"
20924 if test "$pyminor" -lt "2"
20926 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20927 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20931 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20932 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20937 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20938 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20939 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 ac_check_lib_save_LIBS=$LIBS
20944 cat >conftest.$ac_ext <<_ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20951 /* Override any gcc2 internal prototype to avoid an error. */
20955 /* We use char because int might match the return type of a gcc2
20956 builtin and then its argument prototype would still apply. */
20966 rm -f conftest.$ac_objext conftest$ac_exeext
20967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20968 (eval $ac_link) 2>conftest.er1
20970 grep -v '^ *+' conftest.er1 >conftest.err
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } &&
20975 { ac_try='test -z "$ac_c_werror_flag"
20976 || test ! -s conftest.err'
20977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978 (eval $ac_try) 2>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; } &&
20982 { ac_try='test -s conftest$ac_exeext'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; }; then
20988 ac_cv_lib_elf_elf_begin=yes
20990 echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20993 ac_cv_lib_elf_elf_begin=no
20995 rm -f conftest.err conftest.$ac_objext \
20996 conftest$ac_exeext conftest.$ac_ext
20997 LIBS=$ac_check_lib_save_LIBS
20999 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21000 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21001 if test $ac_cv_lib_elf_elf_begin = yes; then
21002 cat >>confdefs.h <<_ACEOF
21003 #define HAVE_LIBELF 1
21011 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
21012 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
21013 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 ac_check_lib_save_LIBS=$LIBS
21018 cat >conftest.$ac_ext <<_ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21025 /* Override any gcc2 internal prototype to avoid an error. */
21029 /* We use char because int might match the return type of a gcc2
21030 builtin and then its argument prototype would still apply. */
21031 char BZ2_bzCompressInit ();
21035 BZ2_bzCompressInit ();
21040 rm -f conftest.$ac_objext conftest$ac_exeext
21041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21042 (eval $ac_link) 2>conftest.er1
21044 grep -v '^ *+' conftest.er1 >conftest.err
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } &&
21049 { ac_try='test -z "$ac_c_werror_flag"
21050 || test ! -s conftest.err'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; } &&
21056 { ac_try='test -s conftest$ac_exeext'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ac_cv_lib_bz2_BZ2_bzCompressInit=no
21069 rm -f conftest.err conftest.$ac_objext \
21070 conftest$ac_exeext conftest.$ac_ext
21071 LIBS=$ac_check_lib_save_LIBS
21073 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
21074 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
21075 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
21081 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
21082 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
21083 if test "${ac_cv_lib_z_gzopen+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21086 ac_check_lib_save_LIBS=$LIBS
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21095 /* Override any gcc2 internal prototype to avoid an error. */
21099 /* We use char because int might match the return type of a gcc2
21100 builtin and then its argument prototype would still apply. */
21110 rm -f conftest.$ac_objext conftest$ac_exeext
21111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21112 (eval $ac_link) 2>conftest.er1
21114 grep -v '^ *+' conftest.er1 >conftest.err
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
21119 { ac_try='test -z "$ac_c_werror_flag"
21120 || test ! -s conftest.err'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } &&
21126 { ac_try='test -s conftest$ac_exeext'
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ac_cv_lib_z_gzopen=yes
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21137 ac_cv_lib_z_gzopen=no
21139 rm -f conftest.err conftest.$ac_objext \
21140 conftest$ac_exeext conftest.$ac_ext
21141 LIBS=$ac_check_lib_save_LIBS
21143 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
21144 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
21145 if test $ac_cv_lib_z_gzopen = yes; then
21152 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21153 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21154 if test "${ac_cv_search_dlopen+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 ac_func_search_save_LIBS=$LIBS
21158 ac_cv_search_dlopen=no
21159 cat >conftest.$ac_ext <<_ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21166 /* Override any gcc2 internal prototype to avoid an error. */
21170 /* We use char because int might match the return type of a gcc2
21171 builtin and then its argument prototype would still apply. */
21181 rm -f conftest.$ac_objext conftest$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>conftest.er1
21185 grep -v '^ *+' conftest.er1 >conftest.err
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_search_dlopen="none required"
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21209 rm -f conftest.err conftest.$ac_objext \
21210 conftest$ac_exeext conftest.$ac_ext
21211 if test "$ac_cv_search_dlopen" = no; then
21212 for ac_lib in dl; do
21213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21214 cat >conftest.$ac_ext <<_ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21221 /* Override any gcc2 internal prototype to avoid an error. */
21225 /* We use char because int might match the return type of a gcc2
21226 builtin and then its argument prototype would still apply. */
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21238 (eval $ac_link) 2>conftest.er1
21240 grep -v '^ *+' conftest.er1 >conftest.err
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -z "$ac_c_werror_flag"
21246 || test ! -s conftest.err'
21247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); }; } &&
21252 { ac_try='test -s conftest$ac_exeext'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 ac_cv_search_dlopen="-l$ac_lib"
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21265 rm -f conftest.err conftest.$ac_objext \
21266 conftest$ac_exeext conftest.$ac_ext
21269 LIBS=$ac_func_search_save_LIBS
21271 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21272 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21273 if test "$ac_cv_search_dlopen" != no; then
21274 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21276 cat >>confdefs.h <<\_ACEOF
21277 #define HAVE_DLOPEN 1
21281 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21282 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21286 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21287 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21288 if test "${ac_cv_search_mallinfo+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 ac_func_search_save_LIBS=$LIBS
21292 ac_cv_search_mallinfo=no
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21300 /* Override any gcc2 internal prototype to avoid an error. */
21304 /* We use char because int might match the return type of a gcc2
21305 builtin and then its argument prototype would still apply. */
21315 rm -f conftest.$ac_objext conftest$ac_exeext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21317 (eval $ac_link) 2>conftest.er1
21319 grep -v '^ *+' conftest.er1 >conftest.err
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } &&
21324 { ac_try='test -z "$ac_c_werror_flag"
21325 || test ! -s conftest.err'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; } &&
21331 { ac_try='test -s conftest$ac_exeext'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 ac_cv_search_mallinfo="none required"
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21343 rm -f conftest.err conftest.$ac_objext \
21344 conftest$ac_exeext conftest.$ac_ext
21345 if test "$ac_cv_search_mallinfo" = no; then
21346 for ac_lib in malloc; do
21347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21355 /* Override any gcc2 internal prototype to avoid an error. */
21359 /* We use char because int might match the return type of a gcc2
21360 builtin and then its argument prototype would still apply. */
21370 rm -f conftest.$ac_objext conftest$ac_exeext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21372 (eval $ac_link) 2>conftest.er1
21374 grep -v '^ *+' conftest.er1 >conftest.err
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } &&
21379 { ac_try='test -z "$ac_c_werror_flag"
21380 || test ! -s conftest.err'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; } &&
21386 { ac_try='test -s conftest$ac_exeext'
21387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388 (eval $ac_try) 2>&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); }; }; then
21392 ac_cv_search_mallinfo="-l$ac_lib"
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21399 rm -f conftest.err conftest.$ac_objext \
21400 conftest$ac_exeext conftest.$ac_ext
21403 LIBS=$ac_func_search_save_LIBS
21405 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21406 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21407 if test "$ac_cv_search_mallinfo" != no; then
21408 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_MALLINFO 1
21417 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21418 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21419 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21422 ac_func_search_save_LIBS=$LIBS
21423 ac_cv_search_pthread_mutex_lock=no
21424 cat >conftest.$ac_ext <<_ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21431 /* Override any gcc2 internal prototype to avoid an error. */
21435 /* We use char because int might match the return type of a gcc2
21436 builtin and then its argument prototype would still apply. */
21437 char pthread_mutex_lock ();
21441 pthread_mutex_lock ();
21446 rm -f conftest.$ac_objext conftest$ac_exeext
21447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21448 (eval $ac_link) 2>conftest.er1
21450 grep -v '^ *+' conftest.er1 >conftest.err
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
21455 { ac_try='test -z "$ac_c_werror_flag"
21456 || test ! -s conftest.err'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; } &&
21462 { ac_try='test -s conftest$ac_exeext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
21468 ac_cv_search_pthread_mutex_lock="none required"
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21474 rm -f conftest.err conftest.$ac_objext \
21475 conftest$ac_exeext conftest.$ac_ext
21476 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21477 for ac_lib in pthread; do
21478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21486 /* Override any gcc2 internal prototype to avoid an error. */
21490 /* We use char because int might match the return type of a gcc2
21491 builtin and then its argument prototype would still apply. */
21492 char pthread_mutex_lock ();
21496 pthread_mutex_lock ();
21501 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21503 (eval $ac_link) 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -z "$ac_c_werror_flag"
21511 || test ! -s conftest.err'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest$ac_exeext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21530 rm -f conftest.err conftest.$ac_objext \
21531 conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_func_search_save_LIBS
21536 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21537 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21538 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21539 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21541 cat >>confdefs.h <<\_ACEOF
21542 #define HAVE_PTHREAD_MUTEX_LOCK 1
21550 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21552 if test "${ac_cv_header_stdc+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 #include <stdlib.h>
21562 #include <stdarg.h>
21563 #include <string.h>
21574 rm -f conftest.$ac_objext
21575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21576 (eval $ac_compile) 2>conftest.er1
21578 grep -v '^ *+' conftest.er1 >conftest.err
21580 cat conftest.err >&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -z "$ac_c_werror_flag"
21584 || test ! -s conftest.err'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; } &&
21590 { ac_try='test -s conftest.$ac_objext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_cv_header_stdc=yes
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ac_cv_header_stdc=no
21603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21605 if test $ac_cv_header_stdc = yes; then
21606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 #include <string.h>
21616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21617 $EGREP "memchr" >/dev/null 2>&1; then
21620 ac_cv_header_stdc=no
21626 if test $ac_cv_header_stdc = yes; then
21627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21628 cat >conftest.$ac_ext <<_ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 #include <stdlib.h>
21637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21638 $EGREP "free" >/dev/null 2>&1; then
21641 ac_cv_header_stdc=no
21647 if test $ac_cv_header_stdc = yes; then
21648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21649 if test "$cross_compiling" = yes; then
21652 cat >conftest.$ac_ext <<_ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21659 #if ((' ' & 0x0FF) == 0x020)
21660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21663 # define ISLOWER(c) \
21664 (('a' <= (c) && (c) <= 'i') \
21665 || ('j' <= (c) && (c) <= 'r') \
21666 || ('s' <= (c) && (c) <= 'z'))
21667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21675 for (i = 0; i < 256; i++)
21676 if (XOR (islower (i), ISLOWER (i))
21677 || toupper (i) != TOUPPER (i))
21682 rm -f conftest$ac_exeext
21683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21684 (eval $ac_link) 2>&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21695 echo "$as_me: program exited with status $ac_status" >&5
21696 echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21699 ( exit $ac_status )
21700 ac_cv_header_stdc=no
21702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21706 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21707 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21708 if test $ac_cv_header_stdc = yes; then
21710 cat >>confdefs.h <<\_ACEOF
21711 #define STDC_HEADERS 1
21716 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21717 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21718 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 cat >conftest.$ac_ext <<_ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21727 #include <sys/types.h>
21728 #include <sys/wait.h>
21729 #ifndef WEXITSTATUS
21730 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21733 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21741 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21746 rm -f conftest.$ac_objext
21747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21748 (eval $ac_compile) 2>conftest.er1
21750 grep -v '^ *+' conftest.er1 >conftest.err
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } &&
21755 { ac_try='test -z "$ac_c_werror_flag"
21756 || test ! -s conftest.err'
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; } &&
21762 { ac_try='test -s conftest.$ac_objext'
21763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764 (eval $ac_try) 2>&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; }; then
21768 ac_cv_header_sys_wait_h=yes
21770 echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21773 ac_cv_header_sys_wait_h=no
21775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21777 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21778 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21779 if test $ac_cv_header_sys_wait_h = yes; then
21781 cat >>confdefs.h <<\_ACEOF
21782 #define HAVE_SYS_WAIT_H 1
21787 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21788 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21789 if test "${ac_cv_header_time+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 #include <sys/types.h>
21799 #include <sys/time.h>
21805 if ((struct tm *) 0)
21811 rm -f conftest.$ac_objext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813 (eval $ac_compile) 2>conftest.er1
21815 grep -v '^ *+' conftest.er1 >conftest.err
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_c_werror_flag"
21821 || test ! -s conftest.err'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest.$ac_objext'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 ac_cv_header_time=yes
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21838 ac_cv_header_time=no
21840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21842 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21843 echo "${ECHO_T}$ac_cv_header_time" >&6
21844 if test $ac_cv_header_time = yes; then
21846 cat >>confdefs.h <<\_ACEOF
21847 #define TIME_WITH_SYS_TIME 1
21852 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21853 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21854 if test "${ac_cv_header_mmap_anon+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 ac_cpp='$CPP $CPPFLAGS'
21859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 #include <sys/mman.h>
21870 #include <unistd.h>
21875 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21880 rm -f conftest.$ac_objext
21881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882 (eval $ac_compile) 2>conftest.er1
21884 grep -v '^ *+' conftest.er1 >conftest.err
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
21889 { ac_try='test -z "$ac_c_werror_flag"
21890 || test ! -s conftest.err'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; } &&
21896 { ac_try='test -s conftest.$ac_objext'
21897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898 (eval $ac_try) 2>&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); }; }; then
21902 ac_cv_header_mmap_anon=yes
21904 echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 ac_cv_header_mmap_anon=no
21909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21911 ac_cpp='$CPP $CPPFLAGS'
21912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21918 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21919 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21920 if test "$ac_cv_header_mmap_anon" = yes; then
21922 cat >>confdefs.h <<\_ACEOF
21923 #define HAVE_MMAP_ANONYMOUS
21935 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h
21937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21939 echo "$as_me:$LINENO: checking for $ac_header" >&5
21940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21947 # Is the header compilable?
21948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21950 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21956 $ac_includes_default
21957 #include <$ac_header>
21959 rm -f conftest.$ac_objext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21961 (eval $ac_compile) 2>conftest.er1
21963 grep -v '^ *+' conftest.er1 >conftest.err
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } &&
21968 { ac_try='test -z "$ac_c_werror_flag"
21969 || test ! -s conftest.err'
21970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971 (eval $ac_try) 2>&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; } &&
21975 { ac_try='test -s conftest.$ac_objext'
21976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21977 (eval $ac_try) 2>&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; }; then
21981 ac_header_compiler=yes
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_header_compiler=no
21988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21990 echo "${ECHO_T}$ac_header_compiler" >&6
21992 # Is the header present?
21993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 #include <$ac_header>
22003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22006 grep -v '^ *+' conftest.er1 >conftest.err
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } >/dev/null; then
22011 if test -s conftest.err; then
22012 ac_cpp_err=$ac_c_preproc_warn_flag
22013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22020 if test -z "$ac_cpp_err"; then
22021 ac_header_preproc=yes
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_header_preproc=no
22028 rm -f conftest.err conftest.$ac_ext
22029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22030 echo "${ECHO_T}$ac_header_preproc" >&6
22032 # So? What about this header?
22033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22039 ac_header_preproc=yes
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22056 ## ----------------------------------- ##
22057 ## Report this to llvmbugs@cs.uiuc.edu ##
22058 ## ----------------------------------- ##
22061 sed "s/^/$as_me: WARNING: /" >&2
22064 echo "$as_me:$LINENO: checking for $ac_header" >&5
22065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 eval "$as_ac_Header=\$ac_header_preproc"
22071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22076 cat >>confdefs.h <<_ACEOF
22077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22089 for ac_header in sys/resource.h dlfcn.h link.h execinfo.h windows.h
22091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22093 echo "$as_me:$LINENO: checking for $ac_header" >&5
22094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22101 # Is the header compilable?
22102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 $ac_includes_default
22111 #include <$ac_header>
22113 rm -f conftest.$ac_objext
22114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22115 (eval $ac_compile) 2>conftest.er1
22117 grep -v '^ *+' conftest.er1 >conftest.err
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
22122 { ac_try='test -z "$ac_c_werror_flag"
22123 || test ! -s conftest.err'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; } &&
22129 { ac_try='test -s conftest.$ac_objext'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_header_compiler=yes
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22140 ac_header_compiler=no
22142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22144 echo "${ECHO_T}$ac_header_compiler" >&6
22146 # Is the header present?
22147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22149 cat >conftest.$ac_ext <<_ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h. */
22155 #include <$ac_header>
22157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22160 grep -v '^ *+' conftest.er1 >conftest.err
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } >/dev/null; then
22165 if test -s conftest.err; then
22166 ac_cpp_err=$ac_c_preproc_warn_flag
22167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22174 if test -z "$ac_cpp_err"; then
22175 ac_header_preproc=yes
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 ac_header_preproc=no
22182 rm -f conftest.err conftest.$ac_ext
22183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22184 echo "${ECHO_T}$ac_header_preproc" >&6
22186 # So? What about this header?
22187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22193 ac_header_preproc=yes
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22210 ## ----------------------------------- ##
22211 ## Report this to llvmbugs@cs.uiuc.edu ##
22212 ## ----------------------------------- ##
22215 sed "s/^/$as_me: WARNING: /" >&2
22218 echo "$as_me:$LINENO: checking for $ac_header" >&5
22219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 eval "$as_ac_Header=\$ac_header_preproc"
22225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22230 cat >>confdefs.h <<_ACEOF
22231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22239 if test "${ac_cv_header_sys_types_h+set}" = set; then
22240 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22241 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22242 if test "${ac_cv_header_sys_types_h+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22246 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22248 # Is the header compilable?
22249 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
22250 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 $ac_includes_default
22258 #include <sys/types.h>
22260 rm -f conftest.$ac_objext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22262 (eval $ac_compile) 2>conftest.er1
22264 grep -v '^ *+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } &&
22269 { ac_try='test -z "$ac_c_werror_flag"
22270 || test ! -s conftest.err'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } &&
22276 { ac_try='test -s conftest.$ac_objext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 ac_header_compiler=yes
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 ac_header_compiler=no
22289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22291 echo "${ECHO_T}$ac_header_compiler" >&6
22293 # Is the header present?
22294 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
22295 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
22296 cat >conftest.$ac_ext <<_ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22302 #include <sys/types.h>
22304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22307 grep -v '^ *+' conftest.er1 >conftest.err
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } >/dev/null; then
22312 if test -s conftest.err; then
22313 ac_cpp_err=$ac_c_preproc_warn_flag
22314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22321 if test -z "$ac_cpp_err"; then
22322 ac_header_preproc=yes
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_header_preproc=no
22329 rm -f conftest.err conftest.$ac_ext
22330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22331 echo "${ECHO_T}$ac_header_preproc" >&6
22333 # So? What about this header?
22334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22336 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
22337 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
22339 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
22340 ac_header_preproc=yes
22343 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
22344 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
22345 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
22346 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
22347 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
22348 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
22350 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
22352 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
22354 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
22357 ## ----------------------------------- ##
22358 ## Report this to llvmbugs@cs.uiuc.edu ##
22359 ## ----------------------------------- ##
22362 sed "s/^/$as_me: WARNING: /" >&2
22365 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22366 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22367 if test "${ac_cv_header_sys_types_h+set}" = set; then
22368 echo $ECHO_N "(cached) $ECHO_C" >&6
22370 ac_cv_header_sys_types_h=$ac_header_preproc
22372 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22373 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22378 if test "${ac_cv_header_inttypes_h+set}" = set; then
22379 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22380 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22381 if test "${ac_cv_header_inttypes_h+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22385 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22387 # Is the header compilable?
22388 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
22389 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
22390 cat >conftest.$ac_ext <<_ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22396 $ac_includes_default
22397 #include <inttypes.h>
22399 rm -f conftest.$ac_objext
22400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22401 (eval $ac_compile) 2>conftest.er1
22403 grep -v '^ *+' conftest.er1 >conftest.err
22405 cat conftest.err >&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } &&
22408 { ac_try='test -z "$ac_c_werror_flag"
22409 || test ! -s conftest.err'
22410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411 (eval $ac_try) 2>&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); }; } &&
22415 { ac_try='test -s conftest.$ac_objext'
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; }; then
22421 ac_header_compiler=yes
22423 echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22426 ac_header_compiler=no
22428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22430 echo "${ECHO_T}$ac_header_compiler" >&6
22432 # Is the header present?
22433 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
22434 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
22435 cat >conftest.$ac_ext <<_ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h. */
22441 #include <inttypes.h>
22443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22446 grep -v '^ *+' conftest.er1 >conftest.err
22448 cat conftest.err >&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } >/dev/null; then
22451 if test -s conftest.err; then
22452 ac_cpp_err=$ac_c_preproc_warn_flag
22453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22460 if test -z "$ac_cpp_err"; then
22461 ac_header_preproc=yes
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_header_preproc=no
22468 rm -f conftest.err conftest.$ac_ext
22469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22470 echo "${ECHO_T}$ac_header_preproc" >&6
22472 # So? What about this header?
22473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22475 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
22476 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22477 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
22478 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
22479 ac_header_preproc=yes
22482 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
22483 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
22484 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
22485 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
22486 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
22487 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
22488 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
22489 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
22491 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
22492 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
22493 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
22496 ## ----------------------------------- ##
22497 ## Report this to llvmbugs@cs.uiuc.edu ##
22498 ## ----------------------------------- ##
22501 sed "s/^/$as_me: WARNING: /" >&2
22504 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22505 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22506 if test "${ac_cv_header_inttypes_h+set}" = set; then
22507 echo $ECHO_N "(cached) $ECHO_C" >&6
22509 ac_cv_header_inttypes_h=$ac_header_preproc
22511 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22512 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22517 if test "${ac_cv_header_stdint_h+set}" = set; then
22518 echo "$as_me:$LINENO: checking for stdint.h" >&5
22519 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22520 if test "${ac_cv_header_stdint_h+set}" = set; then
22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22523 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22524 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22526 # Is the header compilable?
22527 echo "$as_me:$LINENO: checking stdint.h usability" >&5
22528 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 $ac_includes_default
22536 #include <stdint.h>
22538 rm -f conftest.$ac_objext
22539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22540 (eval $ac_compile) 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } &&
22547 { ac_try='test -z "$ac_c_werror_flag"
22548 || test ! -s conftest.err'
22549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550 (eval $ac_try) 2>&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; } &&
22554 { ac_try='test -s conftest.$ac_objext'
22555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556 (eval $ac_try) 2>&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; }; then
22560 ac_header_compiler=yes
22562 echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22565 ac_header_compiler=no
22567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22569 echo "${ECHO_T}$ac_header_compiler" >&6
22571 # Is the header present?
22572 echo "$as_me:$LINENO: checking stdint.h presence" >&5
22573 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
22574 cat >conftest.$ac_ext <<_ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22580 #include <stdint.h>
22582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22585 grep -v '^ *+' conftest.er1 >conftest.err
22587 cat conftest.err >&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); } >/dev/null; then
22590 if test -s conftest.err; then
22591 ac_cpp_err=$ac_c_preproc_warn_flag
22592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22599 if test -z "$ac_cpp_err"; then
22600 ac_header_preproc=yes
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_header_preproc=no
22607 rm -f conftest.err conftest.$ac_ext
22608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22609 echo "${ECHO_T}$ac_header_preproc" >&6
22611 # So? What about this header?
22612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22614 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
22615 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
22617 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
22618 ac_header_preproc=yes
22621 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
22622 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
22623 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
22624 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
22625 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
22626 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
22627 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
22628 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
22630 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
22631 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
22632 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
22635 ## ----------------------------------- ##
22636 ## Report this to llvmbugs@cs.uiuc.edu ##
22637 ## ----------------------------------- ##
22640 sed "s/^/$as_me: WARNING: /" >&2
22643 echo "$as_me:$LINENO: checking for stdint.h" >&5
22644 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22645 if test "${ac_cv_header_stdint_h+set}" = set; then
22646 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 ac_cv_header_stdint_h=$ac_header_preproc
22650 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22651 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22658 for ac_header in bzlib.h
22660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22662 echo "$as_me:$LINENO: checking for $ac_header" >&5
22663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22670 # Is the header compilable?
22671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22673 cat >conftest.$ac_ext <<_ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h. */
22679 $ac_includes_default
22680 #include <$ac_header>
22682 rm -f conftest.$ac_objext
22683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22684 (eval $ac_compile) 2>conftest.er1
22686 grep -v '^ *+' conftest.er1 >conftest.err
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } &&
22691 { ac_try='test -z "$ac_c_werror_flag"
22692 || test ! -s conftest.err'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; } &&
22698 { ac_try='test -s conftest.$ac_objext'
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; }; then
22704 ac_header_compiler=yes
22706 echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.$ac_ext >&5
22709 ac_header_compiler=no
22711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22713 echo "${ECHO_T}$ac_header_compiler" >&6
22715 # Is the header present?
22716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 #include <$ac_header>
22726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22729 grep -v '^ *+' conftest.er1 >conftest.err
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } >/dev/null; then
22734 if test -s conftest.err; then
22735 ac_cpp_err=$ac_c_preproc_warn_flag
22736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22743 if test -z "$ac_cpp_err"; then
22744 ac_header_preproc=yes
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22749 ac_header_preproc=no
22751 rm -f conftest.err conftest.$ac_ext
22752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22753 echo "${ECHO_T}$ac_header_preproc" >&6
22755 # So? What about this header?
22756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22762 ac_header_preproc=yes
22765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22779 ## ----------------------------------- ##
22780 ## Report this to llvmbugs@cs.uiuc.edu ##
22781 ## ----------------------------------- ##
22784 sed "s/^/$as_me: WARNING: /" >&2
22787 echo "$as_me:$LINENO: checking for $ac_header" >&5
22788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 eval "$as_ac_Header=\$ac_header_preproc"
22794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22799 cat >>confdefs.h <<_ACEOF
22800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22810 for ac_header in zlib.h
22812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22814 echo "$as_me:$LINENO: checking for $ac_header" >&5
22815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
22819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22822 # Is the header compilable?
22823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22825 cat >conftest.$ac_ext <<_ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h. */
22831 $ac_includes_default
22832 #include <$ac_header>
22834 rm -f conftest.$ac_objext
22835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22836 (eval $ac_compile) 2>conftest.er1
22838 grep -v '^ *+' conftest.er1 >conftest.err
22840 cat conftest.err >&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } &&
22843 { ac_try='test -z "$ac_c_werror_flag"
22844 || test ! -s conftest.err'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; } &&
22850 { ac_try='test -s conftest.$ac_objext'
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; }; then
22856 ac_header_compiler=yes
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 ac_header_compiler=no
22863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22865 echo "${ECHO_T}$ac_header_compiler" >&6
22867 # Is the header present?
22868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22870 cat >conftest.$ac_ext <<_ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22876 #include <$ac_header>
22878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } >/dev/null; then
22886 if test -s conftest.err; then
22887 ac_cpp_err=$ac_c_preproc_warn_flag
22888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22895 if test -z "$ac_cpp_err"; then
22896 ac_header_preproc=yes
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ac_header_preproc=no
22903 rm -f conftest.err conftest.$ac_ext
22904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22905 echo "${ECHO_T}$ac_header_preproc" >&6
22907 # So? What about this header?
22908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22914 ac_header_preproc=yes
22917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22931 ## ----------------------------------- ##
22932 ## Report this to llvmbugs@cs.uiuc.edu ##
22933 ## ----------------------------------- ##
22936 sed "s/^/$as_me: WARNING: /" >&2
22939 echo "$as_me:$LINENO: checking for $ac_header" >&5
22940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22942 echo $ECHO_N "(cached) $ECHO_C" >&6
22944 eval "$as_ac_Header=\$ac_header_preproc"
22946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22951 cat >>confdefs.h <<_ACEOF
22952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22963 echo "$as_me:$LINENO: checking for pid_t" >&5
22964 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22965 if test "${ac_cv_type_pid_t+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 cat >conftest.$ac_ext <<_ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h. */
22974 $ac_includes_default
22980 if (sizeof (pid_t))
22986 rm -f conftest.$ac_objext
22987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22988 (eval $ac_compile) 2>conftest.er1
22990 grep -v '^ *+' conftest.er1 >conftest.err
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } &&
22995 { ac_try='test -z "$ac_c_werror_flag"
22996 || test ! -s conftest.err'
22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998 (eval $ac_try) 2>&5
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); }; } &&
23002 { ac_try='test -s conftest.$ac_objext'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; }; then
23008 ac_cv_type_pid_t=yes
23010 echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23013 ac_cv_type_pid_t=no
23015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23017 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23018 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23019 if test $ac_cv_type_pid_t = yes; then
23023 cat >>confdefs.h <<_ACEOF
23029 echo "$as_me:$LINENO: checking for size_t" >&5
23030 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23031 if test "${ac_cv_type_size_t+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 cat >conftest.$ac_ext <<_ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 $ac_includes_default
23046 if (sizeof (size_t))
23052 rm -f conftest.$ac_objext
23053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23054 (eval $ac_compile) 2>conftest.er1
23056 grep -v '^ *+' conftest.er1 >conftest.err
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } &&
23061 { ac_try='test -z "$ac_c_werror_flag"
23062 || test ! -s conftest.err'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; } &&
23068 { ac_try='test -s conftest.$ac_objext'
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; }; then
23074 ac_cv_type_size_t=yes
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23079 ac_cv_type_size_t=no
23081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23083 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23084 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23085 if test $ac_cv_type_size_t = yes; then
23089 cat >>confdefs.h <<_ACEOF
23090 #define size_t unsigned
23095 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23096 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23097 if test "${ac_cv_type_signal+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 cat >conftest.$ac_ext <<_ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23106 #include <sys/types.h>
23107 #include <signal.h>
23112 extern "C" void (*signal (int, void (*)(int)))(int);
23114 void (*signal ()) ();
23125 rm -f conftest.$ac_objext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23127 (eval $ac_compile) 2>conftest.er1
23129 grep -v '^ *+' conftest.er1 >conftest.err
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } &&
23134 { ac_try='test -z "$ac_c_werror_flag"
23135 || test ! -s conftest.err'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; } &&
23141 { ac_try='test -s conftest.$ac_objext'
23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143 (eval $ac_try) 2>&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; }; then
23147 ac_cv_type_signal=void
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 ac_cv_type_signal=int
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23156 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23157 echo "${ECHO_T}$ac_cv_type_signal" >&6
23159 cat >>confdefs.h <<_ACEOF
23160 #define RETSIGTYPE $ac_cv_type_signal
23164 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23165 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23166 if test "${ac_cv_struct_tm+set}" = set; then
23167 echo $ECHO_N "(cached) $ECHO_C" >&6
23169 cat >conftest.$ac_ext <<_ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23175 #include <sys/types.h>
23181 struct tm *tp; tp->tm_sec;
23186 rm -f conftest.$ac_objext
23187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23188 (eval $ac_compile) 2>conftest.er1
23190 grep -v '^ *+' conftest.er1 >conftest.err
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } &&
23195 { ac_try='test -z "$ac_c_werror_flag"
23196 || test ! -s conftest.err'
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; } &&
23202 { ac_try='test -s conftest.$ac_objext'
23203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204 (eval $ac_try) 2>&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); }; }; then
23208 ac_cv_struct_tm=time.h
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23213 ac_cv_struct_tm=sys/time.h
23215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23217 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23218 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23219 if test $ac_cv_struct_tm = sys/time.h; then
23221 cat >>confdefs.h <<\_ACEOF
23222 #define TM_IN_SYS_TIME 1
23227 echo "$as_me:$LINENO: checking for int64_t" >&5
23228 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
23229 if test "${ac_cv_type_int64_t+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 cat >conftest.$ac_ext <<_ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 $ac_includes_default
23244 if (sizeof (int64_t))
23250 rm -f conftest.$ac_objext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23252 (eval $ac_compile) 2>conftest.er1
23254 grep -v '^ *+' conftest.er1 >conftest.err
23256 cat conftest.err >&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } &&
23259 { ac_try='test -z "$ac_c_werror_flag"
23260 || test ! -s conftest.err'
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; } &&
23266 { ac_try='test -s conftest.$ac_objext'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; }; then
23272 ac_cv_type_int64_t=yes
23274 echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 ac_cv_type_int64_t=no
23279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23281 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23282 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
23283 if test $ac_cv_type_int64_t = yes; then
23285 cat >>confdefs.h <<_ACEOF
23286 #define HAVE_INT64_T 1
23291 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
23292 echo "$as_me: error: Type int64_t required but not found" >&2;}
23293 { (exit 1); exit 1; }; }
23296 echo "$as_me:$LINENO: checking for uint64_t" >&5
23297 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
23298 if test "${ac_cv_type_uint64_t+set}" = set; then
23299 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 $ac_includes_default
23311 if ((uint64_t *) 0)
23313 if (sizeof (uint64_t))
23319 rm -f conftest.$ac_objext
23320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23321 (eval $ac_compile) 2>conftest.er1
23323 grep -v '^ *+' conftest.er1 >conftest.err
23325 cat conftest.err >&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } &&
23328 { ac_try='test -z "$ac_c_werror_flag"
23329 || test ! -s conftest.err'
23330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331 (eval $ac_try) 2>&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); }; } &&
23335 { ac_try='test -s conftest.$ac_objext'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; }; then
23341 ac_cv_type_uint64_t=yes
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 ac_cv_type_uint64_t=no
23348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23350 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23351 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
23352 if test $ac_cv_type_uint64_t = yes; then
23354 cat >>confdefs.h <<_ACEOF
23355 #define HAVE_UINT64_T 1
23360 echo "$as_me:$LINENO: checking for u_int64_t" >&5
23361 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
23362 if test "${ac_cv_type_u_int64_t+set}" = set; then
23363 echo $ECHO_N "(cached) $ECHO_C" >&6
23365 cat >conftest.$ac_ext <<_ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23371 $ac_includes_default
23375 if ((u_int64_t *) 0)
23377 if (sizeof (u_int64_t))
23383 rm -f conftest.$ac_objext
23384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23385 (eval $ac_compile) 2>conftest.er1
23387 grep -v '^ *+' conftest.er1 >conftest.err
23389 cat conftest.err >&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); } &&
23392 { ac_try='test -z "$ac_c_werror_flag"
23393 || test ! -s conftest.err'
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; } &&
23399 { ac_try='test -s conftest.$ac_objext'
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; }; then
23405 ac_cv_type_u_int64_t=yes
23407 echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 ac_cv_type_u_int64_t=no
23412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23414 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23415 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23416 if test $ac_cv_type_u_int64_t = yes; then
23418 cat >>confdefs.h <<_ACEOF
23419 #define HAVE_U_INT64_T 1
23424 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23425 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23426 { (exit 1); exit 1; }; }
23433 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
23434 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
23436 ac_cpp='$CPP $CPPFLAGS'
23437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23441 if test "$cross_compiling" = yes; then
23444 cat >conftest.$ac_ext <<_ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23453 #include <stdlib.h>
23459 volatile double A, B;
23463 sprintf(Buffer, "%a", A);
23467 if (A != 0x1.999999999999ap-4)
23474 rm -f conftest$ac_exeext
23475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23476 (eval $ac_link) 2>&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23487 echo "$as_me: program exited with status $ac_status" >&5
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23491 ( exit $ac_status )
23494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23497 ac_cpp='$CPP $CPPFLAGS'
23498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23502 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
23503 echo "${ECHO_T}$ac_c_printf_a" >&6
23504 if test "$ac_c_printf_a" = "yes"; then
23506 cat >>confdefs.h <<\_ACEOF
23507 #define HAVE_PRINTF_A 1
23513 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
23514 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
23515 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
23516 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 ac_cpp='$CXXCPP $CPPFLAGS'
23520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23524 cat >conftest.$ac_ext <<_ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h. */
23531 int foo(float f) {return isnan(f);}
23533 rm -f conftest.$ac_objext
23534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23535 (eval $ac_compile) 2>conftest.er1
23537 grep -v '^ *+' conftest.er1 >conftest.err
23539 cat conftest.err >&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); } &&
23542 { ac_try='test -z "$ac_cxx_werror_flag"
23543 || test ! -s conftest.err'
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; } &&
23549 { ac_try='test -s conftest.$ac_objext'
23550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551 (eval $ac_try) 2>&5
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
23555 ac_cv_func_isnan_in_math_h=yes
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23560 ac_cv_func_isnan_in_math_h=no
23562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23564 ac_cpp='$CPP $CPPFLAGS'
23565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23570 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
23571 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
23572 if test "$ac_cv_func_isnan_in_math_h" = "yes"
23575 cat >>confdefs.h <<\_ACEOF
23576 #define HAVE_ISNAN_IN_MATH_H 1
23580 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
23581 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
23582 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23586 ac_cpp='$CXXCPP $CPPFLAGS'
23587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23598 int foo(float f) {return isnan(f);}
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_cxx_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_func_isnan_in_cmath=yes
23624 echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23627 ac_cv_func_isnan_in_cmath=no
23629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23631 ac_cpp='$CPP $CPPFLAGS'
23632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23637 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
23638 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
23639 if test "$ac_cv_func_isnan_in_cmath" = "yes"
23642 cat >>confdefs.h <<\_ACEOF
23643 #define HAVE_ISNAN_IN_CMATH 1
23647 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
23648 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
23649 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23653 ac_cpp='$CXXCPP $CPPFLAGS'
23654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23658 cat >conftest.$ac_ext <<_ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23665 using std::isnan; int foo(float f) {return isnan(f);}
23667 rm -f conftest.$ac_objext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23669 (eval $ac_compile) 2>conftest.er1
23671 grep -v '^ *+' conftest.er1 >conftest.err
23673 cat conftest.err >&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } &&
23676 { ac_try='test -z "$ac_cxx_werror_flag"
23677 || test ! -s conftest.err'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest.$ac_objext'
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_cv_func_std_isnan_in_cmath=yes
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 ac_cv_func_std_isnan_in_cmath=no
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23698 ac_cpp='$CPP $CPPFLAGS'
23699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23704 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
23705 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
23706 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
23709 cat >>confdefs.h <<\_ACEOF
23710 #define HAVE_STD_ISNAN_IN_CMATH 1
23716 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
23717 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
23718 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
23719 echo $ECHO_N "(cached) $ECHO_C" >&6
23722 ac_cpp='$CXXCPP $CPPFLAGS'
23723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23727 cat >conftest.$ac_ext <<_ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23734 int foo(float f) {return isinf(f);}
23736 rm -f conftest.$ac_objext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23738 (eval $ac_compile) 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } &&
23745 { ac_try='test -z "$ac_cxx_werror_flag"
23746 || test ! -s conftest.err'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; } &&
23752 { ac_try='test -s conftest.$ac_objext'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; }; then
23758 ac_cv_func_isinf_in_math_h=yes
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23763 ac_cv_func_isinf_in_math_h=no
23765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23767 ac_cpp='$CPP $CPPFLAGS'
23768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23773 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
23774 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
23775 if test "$ac_cv_func_isinf_in_math_h" = "yes"
23778 cat >>confdefs.h <<\_ACEOF
23779 #define HAVE_ISINF_IN_MATH_H 1
23783 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
23784 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
23785 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 ac_cpp='$CXXCPP $CPPFLAGS'
23790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23794 cat >conftest.$ac_ext <<_ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23801 int foo(float f) {return isinf(f);}
23803 rm -f conftest.$ac_objext
23804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23805 (eval $ac_compile) 2>conftest.er1
23807 grep -v '^ *+' conftest.er1 >conftest.err
23809 cat conftest.err >&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } &&
23812 { ac_try='test -z "$ac_cxx_werror_flag"
23813 || test ! -s conftest.err'
23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815 (eval $ac_try) 2>&5
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; } &&
23819 { ac_try='test -s conftest.$ac_objext'
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; }; then
23825 ac_cv_func_isinf_in_cmath=yes
23827 echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23830 ac_cv_func_isinf_in_cmath=no
23832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23834 ac_cpp='$CPP $CPPFLAGS'
23835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23840 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
23841 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
23842 if test "$ac_cv_func_isinf_in_cmath" = "yes"
23845 cat >>confdefs.h <<\_ACEOF
23846 #define HAVE_ISINF_IN_CMATH 1
23850 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
23851 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
23852 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
23853 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 ac_cpp='$CXXCPP $CPPFLAGS'
23857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23868 using std::isinf; int foo(float f) {return isinf(f);}
23870 rm -f conftest.$ac_objext
23871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23872 (eval $ac_compile) 2>conftest.er1
23874 grep -v '^ *+' conftest.er1 >conftest.err
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } &&
23879 { ac_try='test -z "$ac_cxx_werror_flag"
23880 || test ! -s conftest.err'
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; } &&
23886 { ac_try='test -s conftest.$ac_objext'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 ac_cv_func_std_isinf_in_cmath=yes
23894 echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23897 ac_cv_func_std_isinf_in_cmath=no
23899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23901 ac_cpp='$CPP $CPPFLAGS'
23902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23907 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
23908 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
23909 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
23912 cat >>confdefs.h <<\_ACEOF
23913 #define HAVE_STD_ISINF_IN_CMATH 1
23917 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23918 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23919 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23920 echo $ECHO_N "(cached) $ECHO_C" >&6
23923 ac_cpp='$CXXCPP $CPPFLAGS'
23924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23928 cat >conftest.$ac_ext <<_ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23934 #include <ieeefp.h>
23935 int foo(float f) {return finite(f);}
23937 rm -f conftest.$ac_objext
23938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23939 (eval $ac_compile) 2>conftest.er1
23941 grep -v '^ *+' conftest.er1 >conftest.err
23943 cat conftest.err >&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } &&
23946 { ac_try='test -z "$ac_cxx_werror_flag"
23947 || test ! -s conftest.err'
23948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23949 (eval $ac_try) 2>&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); }; } &&
23953 { ac_try='test -s conftest.$ac_objext'
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; }; then
23959 ac_cv_func_finite_in_ieeefp_h=yes
23961 echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 ac_cv_func_finite_in_ieeefp_h=no
23966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23968 ac_cpp='$CPP $CPPFLAGS'
23969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23974 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23975 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
23976 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
23979 cat >>confdefs.h <<\_ACEOF
23980 #define HAVE_FINITE_IN_IEEEFP_H 1
23985 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23986 # for constant arguments. Useless!
23987 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23988 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23989 if test "${ac_cv_working_alloca_h+set}" = set; then
23990 echo $ECHO_N "(cached) $ECHO_C" >&6
23992 cat >conftest.$ac_ext <<_ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23998 #include <alloca.h>
24002 char *p = (char *) alloca (2 * sizeof (int));
24007 rm -f conftest.$ac_objext conftest$ac_exeext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24009 (eval $ac_link) 2>conftest.er1
24011 grep -v '^ *+' conftest.er1 >conftest.err
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } &&
24016 { ac_try='test -z "$ac_c_werror_flag"
24017 || test ! -s conftest.err'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; } &&
24023 { ac_try='test -s conftest$ac_exeext'
24024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); }; }; then
24029 ac_cv_working_alloca_h=yes
24031 echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24034 ac_cv_working_alloca_h=no
24036 rm -f conftest.err conftest.$ac_objext \
24037 conftest$ac_exeext conftest.$ac_ext
24039 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24040 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24041 if test $ac_cv_working_alloca_h = yes; then
24043 cat >>confdefs.h <<\_ACEOF
24044 #define HAVE_ALLOCA_H 1
24049 echo "$as_me:$LINENO: checking for alloca" >&5
24050 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24051 if test "${ac_cv_func_alloca_works+set}" = set; then
24052 echo $ECHO_N "(cached) $ECHO_C" >&6
24054 cat >conftest.$ac_ext <<_ACEOF
24057 cat confdefs.h >>conftest.$ac_ext
24058 cat >>conftest.$ac_ext <<_ACEOF
24059 /* end confdefs.h. */
24061 # define alloca __builtin_alloca
24064 # include <malloc.h>
24065 # define alloca _alloca
24068 # include <alloca.h>
24073 # ifndef alloca /* predefined by HP cc +Olibcalls */
24084 char *p = (char *) alloca (1);
24089 rm -f conftest.$ac_objext conftest$ac_exeext
24090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24091 (eval $ac_link) 2>conftest.er1
24093 grep -v '^ *+' conftest.er1 >conftest.err
24095 cat conftest.err >&5
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); } &&
24098 { ac_try='test -z "$ac_c_werror_flag"
24099 || test ! -s conftest.err'
24100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101 (eval $ac_try) 2>&5
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); }; } &&
24105 { ac_try='test -s conftest$ac_exeext'
24106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107 (eval $ac_try) 2>&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); }; }; then
24111 ac_cv_func_alloca_works=yes
24113 echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24116 ac_cv_func_alloca_works=no
24118 rm -f conftest.err conftest.$ac_objext \
24119 conftest$ac_exeext conftest.$ac_ext
24121 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24122 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24124 if test $ac_cv_func_alloca_works = yes; then
24126 cat >>confdefs.h <<\_ACEOF
24127 #define HAVE_ALLOCA 1
24131 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24132 # that cause trouble. Some versions do not even contain alloca or
24133 # contain a buggy version. If you still want to use their alloca,
24134 # use ar to extract alloca.o from them instead of compiling alloca.c.
24136 ALLOCA=alloca.$ac_objext
24138 cat >>confdefs.h <<\_ACEOF
24143 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24144 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24145 if test "${ac_cv_os_cray+set}" = set; then
24146 echo $ECHO_N "(cached) $ECHO_C" >&6
24148 cat >conftest.$ac_ext <<_ACEOF
24151 cat confdefs.h >>conftest.$ac_ext
24152 cat >>conftest.$ac_ext <<_ACEOF
24153 /* end confdefs.h. */
24154 #if defined(CRAY) && ! defined(CRAY2)
24161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24162 $EGREP "webecray" >/dev/null 2>&1; then
24170 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24171 echo "${ECHO_T}$ac_cv_os_cray" >&6
24172 if test $ac_cv_os_cray = yes; then
24173 for ac_func in _getb67 GETB67 getb67; do
24174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24175 echo "$as_me:$LINENO: checking for $ac_func" >&5
24176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24177 if eval "test \"\${$as_ac_var+set}\" = set"; then
24178 echo $ECHO_N "(cached) $ECHO_C" >&6
24180 cat >conftest.$ac_ext <<_ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24188 #define $ac_func innocuous_$ac_func
24190 /* System header to define __stub macros and hopefully few prototypes,
24191 which can conflict with char $ac_func (); below.
24192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24193 <limits.h> exists even on freestanding compilers. */
24196 # include <limits.h>
24198 # include <assert.h>
24203 /* Override any gcc2 internal prototype to avoid an error. */
24208 /* We use char because int might match the return type of a gcc2
24209 builtin and then its argument prototype would still apply. */
24211 /* The GNU C library defines this for functions which it implements
24212 to always fail with ENOSYS. Some functions are actually named
24213 something starting with __ and the normal name is an alias. */
24214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24217 char (*f) () = $ac_func;
24226 return f != $ac_func;
24231 rm -f conftest.$ac_objext conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233 (eval $ac_link) 2>conftest.er1
24235 grep -v '^ *+' conftest.er1 >conftest.err
24237 cat conftest.err >&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } &&
24240 { ac_try='test -z "$ac_c_werror_flag"
24241 || test ! -s conftest.err'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; } &&
24247 { ac_try='test -s conftest$ac_exeext'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 eval "$as_ac_var=yes"
24255 echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24258 eval "$as_ac_var=no"
24260 rm -f conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24265 if test `eval echo '${'$as_ac_var'}'` = yes; then
24267 cat >>confdefs.h <<_ACEOF
24268 #define CRAY_STACKSEG_END $ac_func
24277 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24278 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24279 if test "${ac_cv_c_stack_direction+set}" = set; then
24280 echo $ECHO_N "(cached) $ECHO_C" >&6
24282 if test "$cross_compiling" = yes; then
24283 ac_cv_c_stack_direction=0
24285 cat >conftest.$ac_ext <<_ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24292 find_stack_direction ()
24294 static char *addr = 0;
24299 return find_stack_direction ();
24302 return (&dummy > addr) ? 1 : -1;
24308 exit (find_stack_direction () < 0);
24311 rm -f conftest$ac_exeext
24312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24313 (eval $ac_link) 2>&5
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
24322 ac_cv_c_stack_direction=1
24324 echo "$as_me: program exited with status $ac_status" >&5
24325 echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24328 ( exit $ac_status )
24329 ac_cv_c_stack_direction=-1
24331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24334 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24335 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24337 cat >>confdefs.h <<_ACEOF
24338 #define STACK_DIRECTION $ac_cv_c_stack_direction
24346 for ac_header in stdlib.h unistd.h
24348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24350 echo "$as_me:$LINENO: checking for $ac_header" >&5
24351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24358 # Is the header compilable?
24359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24361 cat >conftest.$ac_ext <<_ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24367 $ac_includes_default
24368 #include <$ac_header>
24370 rm -f conftest.$ac_objext
24371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24372 (eval $ac_compile) 2>conftest.er1
24374 grep -v '^ *+' conftest.er1 >conftest.err
24376 cat conftest.err >&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } &&
24379 { ac_try='test -z "$ac_c_werror_flag"
24380 || test ! -s conftest.err'
24381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382 (eval $ac_try) 2>&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); }; } &&
24386 { ac_try='test -s conftest.$ac_objext'
24387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388 (eval $ac_try) 2>&5
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); }; }; then
24392 ac_header_compiler=yes
24394 echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24397 ac_header_compiler=no
24399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24401 echo "${ECHO_T}$ac_header_compiler" >&6
24403 # Is the header present?
24404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24406 cat >conftest.$ac_ext <<_ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h. */
24412 #include <$ac_header>
24414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24417 grep -v '^ *+' conftest.er1 >conftest.err
24419 cat conftest.err >&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } >/dev/null; then
24422 if test -s conftest.err; then
24423 ac_cpp_err=$ac_c_preproc_warn_flag
24424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24431 if test -z "$ac_cpp_err"; then
24432 ac_header_preproc=yes
24434 echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24437 ac_header_preproc=no
24439 rm -f conftest.err conftest.$ac_ext
24440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24441 echo "${ECHO_T}$ac_header_preproc" >&6
24443 # So? What about this header?
24444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24450 ac_header_preproc=yes
24453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24467 ## ----------------------------------- ##
24468 ## Report this to llvmbugs@cs.uiuc.edu ##
24469 ## ----------------------------------- ##
24472 sed "s/^/$as_me: WARNING: /" >&2
24475 echo "$as_me:$LINENO: checking for $ac_header" >&5
24476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24478 echo $ECHO_N "(cached) $ECHO_C" >&6
24480 eval "$as_ac_Header=\$ac_header_preproc"
24482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24487 cat >>confdefs.h <<_ACEOF
24488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24496 for ac_func in getpagesize
24498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24499 echo "$as_me:$LINENO: checking for $ac_func" >&5
24500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24501 if eval "test \"\${$as_ac_var+set}\" = set"; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24504 cat >conftest.$ac_ext <<_ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24512 #define $ac_func innocuous_$ac_func
24514 /* System header to define __stub macros and hopefully few prototypes,
24515 which can conflict with char $ac_func (); below.
24516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24517 <limits.h> exists even on freestanding compilers. */
24520 # include <limits.h>
24522 # include <assert.h>
24527 /* Override any gcc2 internal prototype to avoid an error. */
24532 /* We use char because int might match the return type of a gcc2
24533 builtin and then its argument prototype would still apply. */
24535 /* The GNU C library defines this for functions which it implements
24536 to always fail with ENOSYS. Some functions are actually named
24537 something starting with __ and the normal name is an alias. */
24538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24541 char (*f) () = $ac_func;
24550 return f != $ac_func;
24555 rm -f conftest.$ac_objext conftest$ac_exeext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24557 (eval $ac_link) 2>conftest.er1
24559 grep -v '^ *+' conftest.er1 >conftest.err
24561 cat conftest.err >&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } &&
24564 { ac_try='test -z "$ac_c_werror_flag"
24565 || test ! -s conftest.err'
24566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567 (eval $ac_try) 2>&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; } &&
24571 { ac_try='test -s conftest$ac_exeext'
24572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573 (eval $ac_try) 2>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 eval "$as_ac_var=yes"
24579 echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24582 eval "$as_ac_var=no"
24584 rm -f conftest.err conftest.$ac_objext \
24585 conftest$ac_exeext conftest.$ac_ext
24587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24589 if test `eval echo '${'$as_ac_var'}'` = yes; then
24590 cat >>confdefs.h <<_ACEOF
24591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24597 echo "$as_me:$LINENO: checking for working mmap" >&5
24598 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24599 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 if test "$cross_compiling" = yes; then
24603 ac_cv_func_mmap_fixed_mapped=no
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 $ac_includes_default
24612 /* malloc might have been renamed as rpl_malloc. */
24615 /* Thanks to Mike Haertel and Jim Avera for this test.
24616 Here is a matrix of mmap possibilities:
24617 mmap private not fixed
24618 mmap private fixed at somewhere currently unmapped
24619 mmap private fixed at somewhere already mapped
24620 mmap shared not fixed
24621 mmap shared fixed at somewhere currently unmapped
24622 mmap shared fixed at somewhere already mapped
24623 For private mappings, we should verify that changes cannot be read()
24624 back from the file, nor mmap's back from the file at a different
24625 address. (There have been systems where private was not correctly
24626 implemented like the infamous i386 svr4.0, and systems where the
24627 VM page cache was not coherent with the file system buffer cache
24628 like early versions of FreeBSD and possibly contemporary NetBSD.)
24629 For shared mappings, we should conversely verify that changes get
24630 propagated back to all the places they're supposed to be.
24632 Grep wants private fixed already mapped.
24633 The main things grep needs to know about mmap are:
24634 * does it exist and is it safe to write into the mmap'd area
24635 * how to use it (BSD variants) */
24638 #include <sys/mman.h>
24640 #if !STDC_HEADERS && !HAVE_STDLIB_H
24644 /* This mess was copied from the GNU getpagesize.h. */
24645 #if !HAVE_GETPAGESIZE
24646 /* Assume that all systems that can run configure have sys/param.h. */
24647 # if !HAVE_SYS_PARAM_H
24648 # define HAVE_SYS_PARAM_H 1
24651 # ifdef _SC_PAGESIZE
24652 # define getpagesize() sysconf(_SC_PAGESIZE)
24653 # else /* no _SC_PAGESIZE */
24654 # if HAVE_SYS_PARAM_H
24655 # include <sys/param.h>
24656 # ifdef EXEC_PAGESIZE
24657 # define getpagesize() EXEC_PAGESIZE
24658 # else /* no EXEC_PAGESIZE */
24660 # define getpagesize() NBPG * CLSIZE
24663 # endif /* no CLSIZE */
24664 # else /* no NBPG */
24666 # define getpagesize() NBPC
24667 # else /* no NBPC */
24669 # define getpagesize() PAGESIZE
24670 # endif /* PAGESIZE */
24671 # endif /* no NBPC */
24672 # endif /* no NBPG */
24673 # endif /* no EXEC_PAGESIZE */
24674 # else /* no HAVE_SYS_PARAM_H */
24675 # define getpagesize() 8192 /* punt totally */
24676 # endif /* no HAVE_SYS_PARAM_H */
24677 # endif /* no _SC_PAGESIZE */
24679 #endif /* no HAVE_GETPAGESIZE */
24684 char *data, *data2, *data3;
24688 pagesize = getpagesize ();
24690 /* First, make a file with some known garbage in it. */
24691 data = (char *) malloc (pagesize);
24694 for (i = 0; i < pagesize; ++i)
24695 *(data + i) = rand ();
24697 fd = creat ("conftest.mmap", 0600);
24700 if (write (fd, data, pagesize) != pagesize)
24704 /* Next, try to mmap the file at a fixed address which already has
24705 something else allocated at it. If we can, also make sure that
24706 we see the same garbage. */
24707 fd = open ("conftest.mmap", O_RDWR);
24710 data2 = (char *) malloc (2 * pagesize);
24713 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24714 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24715 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24717 for (i = 0; i < pagesize; ++i)
24718 if (*(data + i) != *(data2 + i))
24721 /* Finally, make sure that changes to the mapped area do not
24722 percolate back to the file as seen by read(). (This is a bug on
24723 some variants of i386 svr4.0.) */
24724 for (i = 0; i < pagesize; ++i)
24725 *(data2 + i) = *(data2 + i) + 1;
24726 data3 = (char *) malloc (pagesize);
24729 if (read (fd, data3, pagesize) != pagesize)
24731 for (i = 0; i < pagesize; ++i)
24732 if (*(data + i) != *(data3 + i))
24738 rm -f conftest$ac_exeext
24739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24740 (eval $ac_link) 2>&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745 (eval $ac_try) 2>&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; }; then
24749 ac_cv_func_mmap_fixed_mapped=yes
24751 echo "$as_me: program exited with status $ac_status" >&5
24752 echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24755 ( exit $ac_status )
24756 ac_cv_func_mmap_fixed_mapped=no
24758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24761 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24762 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24763 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24765 cat >>confdefs.h <<\_ACEOF
24766 #define HAVE_MMAP 1
24770 rm -f conftest.mmap
24772 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
24774 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
24775 echo "$as_me: WARNING: mmap() required but not found" >&2;}
24777 echo "$as_me:$LINENO: checking for mmap of files" >&5
24778 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
24779 if test "${ac_cv_func_mmap_file+set}" = set; then
24780 echo $ECHO_N "(cached) $ECHO_C" >&6
24783 ac_cpp='$CPP $CPPFLAGS'
24784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24788 if test "$cross_compiling" = yes; then
24789 ac_cv_func_mmap_file=no
24791 cat >conftest.$ac_ext <<_ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24799 #include <sys/types.h>
24800 #include <sys/mman.h>
24808 fd = creat ("foo",0777);
24809 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
24811 return (fd != (int) MAP_FAILED);
24816 rm -f conftest$ac_exeext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818 (eval $ac_link) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823 (eval $ac_try) 2>&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); }; }; then
24827 ac_cv_func_mmap_file=yes
24829 echo "$as_me: program exited with status $ac_status" >&5
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ( exit $ac_status )
24834 ac_cv_func_mmap_file=no
24836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839 ac_cpp='$CPP $CPPFLAGS'
24840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24846 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24847 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24848 if test "$ac_cv_func_mmap_file" = yes; then
24850 cat >>confdefs.h <<\_ACEOF
24851 #define HAVE_MMAP_FILE
24858 if test "$ac_cv_func_mmap_file" = "no"
24860 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24861 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
24870 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
24872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24873 echo "$as_me:$LINENO: checking for $ac_func" >&5
24874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24875 if eval "test \"\${$as_ac_var+set}\" = set"; then
24876 echo $ECHO_N "(cached) $ECHO_C" >&6
24878 cat >conftest.$ac_ext <<_ACEOF
24881 cat confdefs.h >>conftest.$ac_ext
24882 cat >>conftest.$ac_ext <<_ACEOF
24883 /* end confdefs.h. */
24884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24886 #define $ac_func innocuous_$ac_func
24888 /* System header to define __stub macros and hopefully few prototypes,
24889 which can conflict with char $ac_func (); below.
24890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24891 <limits.h> exists even on freestanding compilers. */
24894 # include <limits.h>
24896 # include <assert.h>
24901 /* Override any gcc2 internal prototype to avoid an error. */
24906 /* We use char because int might match the return type of a gcc2
24907 builtin and then its argument prototype would still apply. */
24909 /* The GNU C library defines this for functions which it implements
24910 to always fail with ENOSYS. Some functions are actually named
24911 something starting with __ and the normal name is an alias. */
24912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24915 char (*f) () = $ac_func;
24924 return f != $ac_func;
24929 rm -f conftest.$ac_objext conftest$ac_exeext
24930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24931 (eval $ac_link) 2>conftest.er1
24933 grep -v '^ *+' conftest.er1 >conftest.err
24935 cat conftest.err >&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } &&
24938 { ac_try='test -z "$ac_c_werror_flag"
24939 || test ! -s conftest.err'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; } &&
24945 { ac_try='test -s conftest$ac_exeext'
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
24951 eval "$as_ac_var=yes"
24953 echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24956 eval "$as_ac_var=no"
24958 rm -f conftest.err conftest.$ac_objext \
24959 conftest$ac_exeext conftest.$ac_ext
24961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24963 if test `eval echo '${'$as_ac_var'}'` = yes; then
24964 cat >>confdefs.h <<_ACEOF
24965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24973 for ac_func in mkstemp getrusage
24975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24976 echo "$as_me:$LINENO: checking for $ac_func" >&5
24977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24978 if eval "test \"\${$as_ac_var+set}\" = set"; then
24979 echo $ECHO_N "(cached) $ECHO_C" >&6
24981 cat >conftest.$ac_ext <<_ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24989 #define $ac_func innocuous_$ac_func
24991 /* System header to define __stub macros and hopefully few prototypes,
24992 which can conflict with char $ac_func (); below.
24993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24994 <limits.h> exists even on freestanding compilers. */
24997 # include <limits.h>
24999 # include <assert.h>
25004 /* Override any gcc2 internal prototype to avoid an error. */
25009 /* We use char because int might match the return type of a gcc2
25010 builtin and then its argument prototype would still apply. */
25012 /* The GNU C library defines this for functions which it implements
25013 to always fail with ENOSYS. Some functions are actually named
25014 something starting with __ and the normal name is an alias. */
25015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25018 char (*f) () = $ac_func;
25027 return f != $ac_func;
25032 rm -f conftest.$ac_objext conftest$ac_exeext
25033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25034 (eval $ac_link) 2>conftest.er1
25036 grep -v '^ *+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } &&
25041 { ac_try='test -z "$ac_c_werror_flag"
25042 || test ! -s conftest.err'
25043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25044 (eval $ac_try) 2>&5
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); }; } &&
25048 { ac_try='test -s conftest$ac_exeext'
25049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050 (eval $ac_try) 2>&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; }; then
25054 eval "$as_ac_var=yes"
25056 echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25059 eval "$as_ac_var=no"
25061 rm -f conftest.err conftest.$ac_objext \
25062 conftest$ac_exeext conftest.$ac_ext
25064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25066 if test `eval echo '${'$as_ac_var'}'` = yes; then
25067 cat >>confdefs.h <<_ACEOF
25068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25074 echo "$as_me:$LINENO: checking for mprotect" >&5
25075 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25076 if test "${ac_cv_func_mprotect+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25079 cat >conftest.$ac_ext <<_ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h. */
25085 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25087 #define mprotect innocuous_mprotect
25089 /* System header to define __stub macros and hopefully few prototypes,
25090 which can conflict with char mprotect (); below.
25091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25092 <limits.h> exists even on freestanding compilers. */
25095 # include <limits.h>
25097 # include <assert.h>
25102 /* Override any gcc2 internal prototype to avoid an error. */
25107 /* We use char because int might match the return type of a gcc2
25108 builtin and then its argument prototype would still apply. */
25110 /* The GNU C library defines this for functions which it implements
25111 to always fail with ENOSYS. Some functions are actually named
25112 something starting with __ and the normal name is an alias. */
25113 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25116 char (*f) () = mprotect;
25125 return f != mprotect;
25130 rm -f conftest.$ac_objext conftest$ac_exeext
25131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25132 (eval $ac_link) 2>conftest.er1
25134 grep -v '^ *+' conftest.er1 >conftest.err
25136 cat conftest.err >&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); } &&
25139 { ac_try='test -z "$ac_c_werror_flag"
25140 || test ! -s conftest.err'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; } &&
25146 { ac_try='test -s conftest$ac_exeext'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; }; then
25152 ac_cv_func_mprotect=yes
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25157 ac_cv_func_mprotect=no
25159 rm -f conftest.err conftest.$ac_objext \
25160 conftest$ac_exeext conftest.$ac_ext
25162 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25163 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25164 if test $ac_cv_func_mprotect = yes; then
25167 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25168 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25169 { (exit 1); exit 1; }; }
25173 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
25174 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
25175 if test "${ac_cv_cxx_namespaces+set}" = set; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
25179 ac_cpp='$CXXCPP $CPPFLAGS'
25180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25184 cat >conftest.$ac_ext <<_ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 namespace Outer { namespace Inner { int i = 0; }}
25194 using namespace Outer::Inner; return i;
25199 rm -f conftest.$ac_objext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25201 (eval $ac_compile) 2>conftest.er1
25203 grep -v '^ *+' conftest.er1 >conftest.err
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } &&
25208 { ac_try='test -z "$ac_cxx_werror_flag"
25209 || test ! -s conftest.err'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; } &&
25215 { ac_try='test -s conftest.$ac_objext'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 ac_cv_cxx_namespaces=yes
25223 echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25226 ac_cv_cxx_namespaces=no
25228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25230 ac_cpp='$CPP $CPPFLAGS'
25231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25237 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
25238 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
25239 if test "$ac_cv_cxx_namespaces" = yes; then
25241 cat >>confdefs.h <<\_ACEOF
25242 #define HAVE_NAMESPACES
25247 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
25248 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
25249 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25254 ac_cpp='$CXXCPP $CPPFLAGS'
25255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25259 cat >conftest.$ac_ext <<_ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h. */
25265 #include <ext/hash_map>
25266 #ifdef HAVE_NAMESPACES
25267 using namespace std;
25272 hash_map<int, int> t;
25277 rm -f conftest.$ac_objext
25278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25279 (eval $ac_compile) 2>conftest.er1
25281 grep -v '^ *+' conftest.er1 >conftest.err
25283 cat conftest.err >&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); } &&
25286 { ac_try='test -z "$ac_cxx_werror_flag"
25287 || test ! -s conftest.err'
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; } &&
25293 { ac_try='test -s conftest.$ac_objext'
25294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295 (eval $ac_try) 2>&5
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); }; }; then
25299 ac_cv_cxx_have_std_ext_hash_map=yes
25301 echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25304 ac_cv_cxx_have_std_ext_hash_map=no
25306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25308 ac_cpp='$CPP $CPPFLAGS'
25309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25314 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
25315 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
25316 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
25319 cat >>confdefs.h <<\_ACEOF
25320 #define HAVE_STD_EXT_HASH_MAP 1
25325 cat >>confdefs.h <<\_ACEOF
25326 #define HAVE_STD_EXT_HASH_MAP 0
25331 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
25332 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
25333 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
25334 echo $ECHO_N "(cached) $ECHO_C" >&6
25338 ac_cpp='$CXXCPP $CPPFLAGS'
25339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25343 cat >conftest.$ac_ext <<_ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25349 #include <ext/hash_map>
25350 #ifdef HAVE_NAMESPACES
25351 using namespace __gnu_cxx;
25356 hash_map<int,int> t;
25361 rm -f conftest.$ac_objext
25362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25363 (eval $ac_compile) 2>conftest.er1
25365 grep -v '^ *+' conftest.er1 >conftest.err
25367 cat conftest.err >&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); } &&
25370 { ac_try='test -z "$ac_cxx_werror_flag"
25371 || test ! -s conftest.err'
25372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373 (eval $ac_try) 2>&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }; } &&
25377 { ac_try='test -s conftest.$ac_objext'
25378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379 (eval $ac_try) 2>&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); }; }; then
25383 ac_cv_cxx_have_gnu_ext_hash_map=yes
25385 echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25388 ac_cv_cxx_have_gnu_ext_hash_map=no
25390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25392 ac_cpp='$CPP $CPPFLAGS'
25393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25398 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
25399 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
25400 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
25403 cat >>confdefs.h <<\_ACEOF
25404 #define HAVE_GNU_EXT_HASH_MAP 1
25409 cat >>confdefs.h <<\_ACEOF
25410 #define HAVE_GNU_EXT_HASH_MAP 0
25415 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
25416 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
25417 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
25418 echo $ECHO_N "(cached) $ECHO_C" >&6
25422 ac_cpp='$CXXCPP $CPPFLAGS'
25423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25427 cat >conftest.$ac_ext <<_ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h. */
25433 #include <hash_map>
25437 hash_map<int,int> t;
25442 rm -f conftest.$ac_objext
25443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25444 (eval $ac_compile) 2>conftest.er1
25446 grep -v '^ *+' conftest.er1 >conftest.err
25448 cat conftest.err >&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
25451 { ac_try='test -z "$ac_cxx_werror_flag"
25452 || test ! -s conftest.err'
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; } &&
25458 { ac_try='test -s conftest.$ac_objext'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; }; then
25464 ac_cv_cxx_have_global_hash_map=yes
25466 echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25469 ac_cv_cxx_have_global_hash_map=no
25471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25473 ac_cpp='$CPP $CPPFLAGS'
25474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25479 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
25480 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
25481 if test "$ac_cv_cxx_have_global_hash_map" = yes
25484 cat >>confdefs.h <<\_ACEOF
25485 #define HAVE_GLOBAL_HASH_MAP 1
25490 cat >>confdefs.h <<\_ACEOF
25491 #define HAVE_GLOBAL_HASH_MAP 0
25496 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
25497 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
25498 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25503 ac_cpp='$CXXCPP $CPPFLAGS'
25504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25508 cat >conftest.$ac_ext <<_ACEOF
25511 cat confdefs.h >>conftest.$ac_ext
25512 cat >>conftest.$ac_ext <<_ACEOF
25513 /* end confdefs.h. */
25514 #include <ext/hash_set>
25515 #ifdef HAVE_NAMESPACES
25516 using namespace std;
25526 rm -f conftest.$ac_objext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25528 (eval $ac_compile) 2>conftest.er1
25530 grep -v '^ *+' conftest.er1 >conftest.err
25532 cat conftest.err >&5
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } &&
25535 { ac_try='test -z "$ac_cxx_werror_flag"
25536 || test ! -s conftest.err'
25537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538 (eval $ac_try) 2>&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; } &&
25542 { ac_try='test -s conftest.$ac_objext'
25543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544 (eval $ac_try) 2>&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); }; }; then
25548 ac_cv_cxx_have_std_ext_hash_set=yes
25550 echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25553 ac_cv_cxx_have_std_ext_hash_set=no
25555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25557 ac_cpp='$CPP $CPPFLAGS'
25558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25563 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
25564 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
25565 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
25568 cat >>confdefs.h <<\_ACEOF
25569 #define HAVE_STD_EXT_HASH_SET 1
25574 cat >>confdefs.h <<\_ACEOF
25575 #define HAVE_STD_EXT_HASH_SET 0
25580 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
25581 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
25582 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
25583 echo $ECHO_N "(cached) $ECHO_C" >&6
25587 ac_cpp='$CXXCPP $CPPFLAGS'
25588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25592 cat >conftest.$ac_ext <<_ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h. */
25598 #include <ext/hash_set>
25599 #ifdef HAVE_NAMESPACES
25600 using namespace __gnu_cxx;
25610 rm -f conftest.$ac_objext
25611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25612 (eval $ac_compile) 2>conftest.er1
25614 grep -v '^ *+' conftest.er1 >conftest.err
25616 cat conftest.err >&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } &&
25619 { ac_try='test -z "$ac_cxx_werror_flag"
25620 || test ! -s conftest.err'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; } &&
25626 { ac_try='test -s conftest.$ac_objext'
25627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628 (eval $ac_try) 2>&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
25632 ac_cv_cxx_have_gnu_ext_hash_set=yes
25634 echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25637 ac_cv_cxx_have_gnu_ext_hash_set=no
25639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25641 ac_cpp='$CPP $CPPFLAGS'
25642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25647 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
25648 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
25649 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
25652 cat >>confdefs.h <<\_ACEOF
25653 #define HAVE_GNU_EXT_HASH_SET 1
25658 cat >>confdefs.h <<\_ACEOF
25659 #define HAVE_GNU_EXT_HASH_SET 0
25664 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
25665 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
25666 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
25667 echo $ECHO_N "(cached) $ECHO_C" >&6
25671 ac_cpp='$CXXCPP $CPPFLAGS'
25672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25676 cat >conftest.$ac_ext <<_ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h. */
25682 #include <hash_set>
25686 hash_set<int> t; return 0;
25691 rm -f conftest.$ac_objext
25692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25693 (eval $ac_compile) 2>conftest.er1
25695 grep -v '^ *+' conftest.er1 >conftest.err
25697 cat conftest.err >&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } &&
25700 { ac_try='test -z "$ac_cxx_werror_flag"
25701 || test ! -s conftest.err'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; } &&
25707 { ac_try='test -s conftest.$ac_objext'
25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709 (eval $ac_try) 2>&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); }; }; then
25713 ac_cv_cxx_have_global_hash_set=yes
25715 echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25718 ac_cv_cxx_have_global_hash_set=no
25720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25722 ac_cpp='$CPP $CPPFLAGS'
25723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25728 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
25729 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
25730 if test "$ac_cv_cxx_have_global_hash_set" = yes
25733 cat >>confdefs.h <<\_ACEOF
25734 #define HAVE_GLOBAL_HASH_SET 1
25739 cat >>confdefs.h <<\_ACEOF
25740 #define HAVE_GLOBAL_HASH_SET 0
25745 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
25746 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
25747 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25752 ac_cpp='$CXXCPP $CPPFLAGS'
25753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25757 cat >conftest.$ac_ext <<_ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h. */
25763 #include <iterator>
25764 #ifdef HAVE_NAMESPACES
25765 using namespace std;
25770 iterator<int,int,int> t; return 0;
25775 rm -f conftest.$ac_objext
25776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25777 (eval $ac_compile) 2>conftest.er1
25779 grep -v '^ *+' conftest.er1 >conftest.err
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } &&
25784 { ac_try='test -z "$ac_cxx_werror_flag"
25785 || test ! -s conftest.err'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; } &&
25791 { ac_try='test -s conftest.$ac_objext'
25792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; }; then
25797 ac_cv_cxx_have_std_iterator=yes
25799 echo "$as_me: failed program was:" >&5
25800 sed 's/^/| /' conftest.$ac_ext >&5
25802 ac_cv_cxx_have_std_iterator=no
25804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25806 ac_cpp='$CPP $CPPFLAGS'
25807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25813 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
25814 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
25815 if test "$ac_cv_cxx_have_std_iterator" = yes
25818 cat >>confdefs.h <<\_ACEOF
25819 #define HAVE_STD_ITERATOR 1
25824 cat >>confdefs.h <<\_ACEOF
25825 #define HAVE_STD_ITERATOR 0
25830 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
25831 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
25832 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 ac_cpp='$CXXCPP $CPPFLAGS'
25838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25842 cat >conftest.$ac_ext <<_ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h. */
25848 #include <iterator>
25849 #ifdef HAVE_NAMESPACES
25850 using namespace std;
25855 bidirectional_iterator<int,int> t; return 0;
25860 rm -f conftest.$ac_objext
25861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25862 (eval $ac_compile) 2>conftest.er1
25864 grep -v '^ *+' conftest.er1 >conftest.err
25866 cat conftest.err >&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } &&
25869 { ac_try='test -z "$ac_cxx_werror_flag"
25870 || test ! -s conftest.err'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; } &&
25876 { ac_try='test -s conftest.$ac_objext'
25877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878 (eval $ac_try) 2>&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); }; }; then
25882 ac_cv_cxx_have_bi_iterator=yes
25884 echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25887 ac_cv_cxx_have_bi_iterator=no
25889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25891 ac_cpp='$CPP $CPPFLAGS'
25892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25898 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
25899 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
25900 if test "$ac_cv_cxx_have_bi_iterator" = yes
25903 cat >>confdefs.h <<\_ACEOF
25904 #define HAVE_BI_ITERATOR 1
25909 cat >>confdefs.h <<\_ACEOF
25910 #define HAVE_BI_ITERATOR 0
25915 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
25916 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
25917 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
25918 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 ac_cpp='$CXXCPP $CPPFLAGS'
25923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25927 cat >conftest.$ac_ext <<_ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h. */
25933 #include <iterator>
25934 #ifdef HAVE_NAMESPACES
25935 using namespace std;
25940 forward_iterator<int,int> t; return 0;
25945 rm -f conftest.$ac_objext
25946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25947 (eval $ac_compile) 2>conftest.er1
25949 grep -v '^ *+' conftest.er1 >conftest.err
25951 cat conftest.err >&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } &&
25954 { ac_try='test -z "$ac_cxx_werror_flag"
25955 || test ! -s conftest.err'
25956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957 (eval $ac_try) 2>&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); }; } &&
25961 { ac_try='test -s conftest.$ac_objext'
25962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25963 (eval $ac_try) 2>&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); }; }; then
25967 ac_cv_cxx_have_fwd_iterator=yes
25969 echo "$as_me: failed program was:" >&5
25970 sed 's/^/| /' conftest.$ac_ext >&5
25972 ac_cv_cxx_have_fwd_iterator=no
25974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25976 ac_cpp='$CPP $CPPFLAGS'
25977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25983 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
25984 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
25985 if test "$ac_cv_cxx_have_fwd_iterator" = yes
25988 cat >>confdefs.h <<\_ACEOF
25989 #define HAVE_FWD_ITERATOR 1
25994 cat >>confdefs.h <<\_ACEOF
25995 #define HAVE_FWD_ITERATOR 0
26002 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
26003 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
26005 ac_cpp='$CPP $CPPFLAGS'
26006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26010 oldcflags="$CFLAGS"
26011 CFLAGS="$CFLAGS -Wl,-R."
26012 cat >conftest.$ac_ext <<_ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26022 int main() { return 0; }
26027 rm -f conftest.$ac_objext conftest$ac_exeext
26028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26029 (eval $ac_link) 2>conftest.er1
26031 grep -v '^ *+' conftest.er1 >conftest.err
26033 cat conftest.err >&5
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); } &&
26036 { ac_try='test -z "$ac_c_werror_flag"
26037 || test ! -s conftest.err'
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; } &&
26043 { ac_try='test -s conftest$ac_exeext'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; }; then
26049 ac_cv_link_use_r=yes
26051 echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26054 ac_cv_link_use_r=no
26056 rm -f conftest.err conftest.$ac_objext \
26057 conftest$ac_exeext conftest.$ac_ext
26058 CFLAGS="$oldcflags"
26060 ac_cpp='$CPP $CPPFLAGS'
26061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26065 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
26066 echo "${ECHO_T}$ac_cv_link_use_r" >&6
26067 if test "$ac_cv_link_use_r" = yes
26070 cat >>confdefs.h <<\_ACEOF
26071 #define HAVE_LINK_R 1
26078 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
26080 cat >>confdefs.h <<\_ACEOF
26081 #define HAVE_ZLIB 1
26090 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
26092 cat >>confdefs.h <<\_ACEOF
26093 #define HAVE_BZIP2 1
26103 echo "$as_me:$LINENO: checking for shared library suffix" >&5
26104 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
26105 eval "SHLIBEXT=$shrext_cmds"
26106 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
26107 echo "${ECHO_T}$SHLIBEXT" >&6
26112 cat >>confdefs.h <<_ACEOF
26113 #define SHLIBEXT "$SHLIBEXT"
26117 # Translate the various configuration directories and other basic
26118 # information into substitutions that will end up in config.h.in so
26119 # that these configured values can be hard-wired into a program.
26120 eval LLVM_PREFIX="${prefix}";
26121 eval LLVM_BINDIR="${prefix}/bin";
26122 eval LLVM_LIBDIR="${prefix}/lib";
26123 eval LLVM_DATADIR="${prefix}/data";
26124 eval LLVM_DOCSDIR="${prefix}/docs";
26125 eval LLVM_ETCDIR="${prefix}/etc";
26126 eval LLVM_INCLUDEDIR="${prefix}/include";
26127 eval LLVM_INFODIR="${prefix}/info";
26128 eval LLVM_MANDIR="${prefix}/man";
26129 LLVM_CONFIGTIME=`date`
26143 cat >>confdefs.h <<_ACEOF
26144 #define LLVM_PREFIX "$LLVM_PREFIX"
26148 cat >>confdefs.h <<_ACEOF
26149 #define LLVM_BINDIR "$LLVM_BINDIR"
26153 cat >>confdefs.h <<_ACEOF
26154 #define LLVM_LIBDIR "$LLVM_LIBDIR"
26158 cat >>confdefs.h <<_ACEOF
26159 #define LLVM_DATADIR "$LLVM_DATADIR"
26163 cat >>confdefs.h <<_ACEOF
26164 #define LLVM_DATADIR "$LLVM_DOCSDIR"
26168 cat >>confdefs.h <<_ACEOF
26169 #define LLVM_ETCDIR "$LLVM_ETCDIR"
26173 cat >>confdefs.h <<_ACEOF
26174 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
26178 cat >>confdefs.h <<_ACEOF
26179 #define LLVM_INFODIR "$LLVM_INFODIR"
26183 cat >>confdefs.h <<_ACEOF
26184 #define LLVM_MANDIR "$LLVM_MANDIR"
26188 cat >>confdefs.h <<_ACEOF
26189 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
26194 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
26196 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
26198 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
26200 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
26202 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
26204 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
26207 ac_config_files="$ac_config_files Makefile"
26209 ac_config_files="$ac_config_files lib/Makefile"
26211 ac_config_files="$ac_config_files lib/Analysis/IPA/Makefile"
26213 ac_config_files="$ac_config_files lib/Analysis/Makefile"
26215 ac_config_files="$ac_config_files lib/Analysis/DataStructure/Makefile"
26217 ac_config_files="$ac_config_files lib/AsmParser/Makefile"
26219 ac_config_files="$ac_config_files lib/System/Makefile"
26221 ac_config_files="$ac_config_files lib/Bytecode/Reader/Makefile"
26223 ac_config_files="$ac_config_files lib/Bytecode/Makefile"
26225 ac_config_files="$ac_config_files lib/Bytecode/Writer/Makefile"
26227 ac_config_files="$ac_config_files lib/Bytecode/Archive/Makefile"
26229 ac_config_files="$ac_config_files lib/CodeGen/Makefile"
26231 ac_config_files="$ac_config_files lib/CodeGen/ModuloScheduling/Makefile"
26233 ac_config_files="$ac_config_files lib/CodeGen/SelectionDAG/Makefile"
26235 ac_config_files="$ac_config_files lib/Debugger/Makefile"
26237 ac_config_files="$ac_config_files lib/ExecutionEngine/Interpreter/Makefile"
26239 ac_config_files="$ac_config_files lib/ExecutionEngine/Makefile"
26241 ac_config_files="$ac_config_files lib/ExecutionEngine/JIT/Makefile"
26243 ac_config_files="$ac_config_files lib/Support/Makefile"
26245 ac_config_files="$ac_config_files lib/Target/CBackend/Makefile"
26247 ac_config_files="$ac_config_files lib/Target/Makefile"
26249 ac_config_files="$ac_config_files lib/Target/Skeleton/Makefile"
26251 ac_config_files="$ac_config_files lib/Target/PowerPC/Makefile"
26253 ac_config_files="$ac_config_files lib/Target/SparcV9/Makefile"
26255 ac_config_files="$ac_config_files lib/Target/SparcV9/InstrSched/Makefile"
26257 ac_config_files="$ac_config_files lib/Target/SparcV9/LiveVar/Makefile"
26259 ac_config_files="$ac_config_files lib/Target/SparcV9/RegAlloc/Makefile"
26261 ac_config_files="$ac_config_files lib/Target/X86/Makefile"
26263 ac_config_files="$ac_config_files lib/Transforms/Hello/Makefile"
26265 ac_config_files="$ac_config_files lib/Transforms/Makefile"
26267 ac_config_files="$ac_config_files lib/Transforms/IPO/Makefile"
26269 ac_config_files="$ac_config_files lib/Transforms/Instrumentation/ProfilePaths/Makefile"
26271 ac_config_files="$ac_config_files lib/Transforms/Instrumentation/Makefile"
26273 ac_config_files="$ac_config_files lib/Transforms/Scalar/Makefile"
26275 ac_config_files="$ac_config_files lib/Transforms/Utils/Makefile"
26277 ac_config_files="$ac_config_files lib/VMCore/Makefile"
26279 ac_config_files="$ac_config_files utils/Makefile"
26281 ac_config_files="$ac_config_files utils/Burg/Makefile"
26283 ac_config_files="$ac_config_files utils/fpcmp/Makefile"
26285 ac_config_files="$ac_config_files utils/TableGen/Makefile"
26287 ac_config_files="$ac_config_files tools/Makefile"
26289 ac_config_files="$ac_config_files tools/analyze/Makefile"
26291 ac_config_files="$ac_config_files tools/llvmc/Makefile"
26293 ac_config_files="$ac_config_files tools/bugpoint/Makefile"
26295 ac_config_files="$ac_config_files tools/extract/Makefile"
26297 ac_config_files="$ac_config_files tools/gccas/Makefile"
26299 ac_config_files="$ac_config_files tools/gccld/Makefile"
26301 ac_config_files="$ac_config_files tools/llvm-bcanalyzer/Makefile"
26303 ac_config_files="$ac_config_files tools/llc/Makefile"
26305 ac_config_files="$ac_config_files tools/llee/Makefile"
26307 ac_config_files="$ac_config_files tools/lli/Makefile"
26309 ac_config_files="$ac_config_files tools/llvm-ar/Makefile"
26311 ac_config_files="$ac_config_files tools/llvm-as/Makefile"
26313 ac_config_files="$ac_config_files tools/llvm-db/Makefile"
26315 ac_config_files="$ac_config_files tools/llvm-dis/Makefile"
26317 ac_config_files="$ac_config_files tools/llvm-link/Makefile"
26319 ac_config_files="$ac_config_files tools/llvm-nm/Makefile"
26321 ac_config_files="$ac_config_files tools/llvm-prof/Makefile"
26323 ac_config_files="$ac_config_files tools/opt/Makefile"
26325 ac_config_files="$ac_config_files tools/llvm-ld/Makefile"
26327 ac_config_files="$ac_config_files tools/llvm-stub/Makefile"
26330 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_platform_type"
26333 for i in `ls ${srcdir}/projects`
26335 if test -d ${srcdir}/projects/${i} ; then
26340 subdirs="$subdirs projects/sample"
26344 subdirs="$subdirs projects/Stacker"
26348 subdirs="$subdirs projects/llvm-test"
26352 subdirs="$subdirs projects/llvm-reopt"
26356 subdirs="$subdirs projects/llvm-gcc"
26360 subdirs="$subdirs projects/Java"
26364 subdirs="$subdirs projects/llvm-tv"
26368 subdirs="$subdirs projects/llvm-fefw"
26371 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
26372 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
26377 cat >confcache <<\_ACEOF
26378 # This file is a shell script that caches the results of configure
26379 # tests run on this system so they can be shared between configure
26380 # scripts and configure runs, see configure's option --config-cache.
26381 # It is not useful on other systems. If it contains results you don't
26382 # want to keep, you may remove or edit it.
26384 # config.status only pays attention to the cache file if you give it
26385 # the --recheck option to rerun configure.
26387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26389 # following values.
26393 # The following way of writing the cache mishandles newlines in values,
26394 # but we know of no workaround that is simple, portable, and efficient.
26395 # So, don't put newlines in cache variables' values.
26396 # Ultrix sh set writes to stderr and can't be redirected directly,
26397 # and sets the high bit in the cache file unless we assign to the vars.
26400 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26402 # `set' does not quote correctly, so add quotes (double-quote
26403 # substitution turns \\\\ into \\, and sed turns \\ into \).
26406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26409 # `set' quotes correctly as required by POSIX, so do not add quotes.
26411 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26420 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26422 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26423 if test -w $cache_file; then
26424 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26425 cat confcache >$cache_file
26427 echo "not updating unwritable cache $cache_file"
26432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26433 # Let make expand exec_prefix.
26434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26438 # trailing colons and then remove the whole line if VPATH becomes empty
26439 # (actually we leave an empty line to preserve line numbers).
26440 if test "x$srcdir" = x.; then
26441 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26442 s/:*\$(srcdir):*/:/;
26443 s/:*\${srcdir}:*/:/;
26445 s/^\([^=]*=[ ]*\):*/\1/;
26451 DEFS=-DHAVE_CONFIG_H
26455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26456 # 1. Remove the extension, and $U if already installed.
26457 ac_i=`echo "$ac_i" |
26458 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26460 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26461 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26463 LIBOBJS=$ac_libobjs
26465 LTLIBOBJS=$ac_ltlibobjs
26468 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
26469 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
26470 Usually this means the macro was only invoked conditionally." >&5
26471 echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
26472 Usually this means the macro was only invoked conditionally." >&2;}
26473 { (exit 1); exit 1; }; }
26475 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
26476 { { echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
26477 Usually this means the macro was only invoked conditionally." >&5
26478 echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
26479 Usually this means the macro was only invoked conditionally." >&2;}
26480 { (exit 1); exit 1; }; }
26482 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
26483 { { echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
26484 Usually this means the macro was only invoked conditionally." >&5
26485 echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
26486 Usually this means the macro was only invoked conditionally." >&2;}
26487 { (exit 1); exit 1; }; }
26489 if test -z "${ARCH_UNKNOWN_TRUE}" && test -z "${ARCH_UNKNOWN_FALSE}"; then
26490 { { echo "$as_me:$LINENO: error: conditional \"ARCH_UNKNOWN\" was never defined.
26491 Usually this means the macro was only invoked conditionally." >&5
26492 echo "$as_me: error: conditional \"ARCH_UNKNOWN\" was never defined.
26493 Usually this means the macro was only invoked conditionally." >&2;}
26494 { (exit 1); exit 1; }; }
26496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26497 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26498 Usually this means the macro was only invoked conditionally." >&5
26499 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26500 Usually this means the macro was only invoked conditionally." >&2;}
26501 { (exit 1); exit 1; }; }
26503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26504 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26505 Usually this means the macro was only invoked conditionally." >&5
26506 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26507 Usually this means the macro was only invoked conditionally." >&2;}
26508 { (exit 1); exit 1; }; }
26510 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26511 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26512 Usually this means the macro was only invoked conditionally." >&5
26513 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26514 Usually this means the macro was only invoked conditionally." >&2;}
26515 { (exit 1); exit 1; }; }
26517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26518 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26519 Usually this means the macro was only invoked conditionally." >&5
26520 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26521 Usually this means the macro was only invoked conditionally." >&2;}
26522 { (exit 1); exit 1; }; }
26525 : ${CONFIG_STATUS=./config.status}
26526 ac_clean_files_save=$ac_clean_files
26527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26530 cat >$CONFIG_STATUS <<_ACEOF
26532 # Generated by $as_me.
26533 # Run this file to recreate the current configuration.
26534 # Compiler output produced by configure, useful for debugging
26535 # configure, is in config.log if it exists.
26538 ac_cs_recheck=false
26540 SHELL=\${CONFIG_SHELL-$SHELL}
26543 cat >>$CONFIG_STATUS <<\_ACEOF
26544 ## --------------------- ##
26545 ## M4sh Initialization. ##
26546 ## --------------------- ##
26548 # Be Bourne compatible
26549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26553 # is contrary to our usage. Disable this feature.
26554 alias -g '${1+"$@"}'='"$@"'
26555 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26558 DUALCASE=1; export DUALCASE # for MKS sh
26560 # Support unset when possible.
26561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26568 # Work around bugs in pre-3.0 UWIN ksh.
26569 $as_unset ENV MAIL MAILPATH
26576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26578 LC_TELEPHONE LC_TIME
26580 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26581 eval $as_var=C; export $as_var
26587 # Required to use basename.
26588 if expr a : '\(a\)' >/dev/null 2>&1; then
26594 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26595 as_basename=basename
26601 # Name of the executable.
26602 as_me=`$as_basename "$0" ||
26603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26604 X"$0" : 'X\(//\)$' \| \
26605 X"$0" : 'X\(/\)$' \| \
26606 . : '\(.\)' 2>/dev/null ||
26608 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26609 /^X\/\(\/\/\)$/{ s//\1/; q; }
26610 /^X\/\(\/\).*/{ s//\1/; q; }
26614 # PATH needs CR, and LINENO needs CR and PATH.
26615 # Avoid depending upon Character Ranges.
26616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26619 as_cr_digits='0123456789'
26620 as_cr_alnum=$as_cr_Letters$as_cr_digits
26622 # The user is always right.
26623 if test "${PATH_SEPARATOR+set}" != set; then
26624 echo "#! /bin/sh" >conf$$.sh
26625 echo "exit 0" >>conf$$.sh
26627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26636 as_lineno_1=$LINENO
26637 as_lineno_2=$LINENO
26638 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26639 test "x$as_lineno_1" != "x$as_lineno_2" &&
26640 test "x$as_lineno_3" = "x$as_lineno_2" || {
26641 # Find who we are. Look in the path if we contain no path at all
26644 *[\\/]* ) as_myself=$0 ;;
26645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26646 for as_dir in $PATH
26649 test -z "$as_dir" && as_dir=.
26650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26655 # We did not find ourselves, most probably we were run as `sh COMMAND'
26656 # in which case we are not to be found in the path.
26657 if test "x$as_myself" = x; then
26660 if test ! -f "$as_myself"; then
26661 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26662 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26663 { (exit 1); exit 1; }; }
26665 case $CONFIG_SHELL in
26667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26668 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26671 test -z "$as_dir" && as_dir=.
26672 for as_base in sh bash ksh sh5; do
26675 if ("$as_dir/$as_base" -c '
26676 as_lineno_1=$LINENO
26677 as_lineno_2=$LINENO
26678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26679 test "x$as_lineno_1" != "x$as_lineno_2" &&
26680 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26681 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26682 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26683 CONFIG_SHELL=$as_dir/$as_base
26684 export CONFIG_SHELL
26685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26694 # uniformly replaced by the line number. The first 'sed' inserts a
26695 # line-number line before each line; the second 'sed' does the real
26696 # work. The second script uses 'N' to pair each line-number line
26697 # with the numbered line, and appends trailing '-' during
26698 # substitution so that $LINENO is not a special case at line end.
26699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26701 sed '=' <$as_myself |
26706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26709 s,^['$as_cr_digits']*\n,,
26710 ' >$as_me.lineno &&
26711 chmod +x $as_me.lineno ||
26712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26714 { (exit 1); exit 1; }; }
26716 # Don't try to exec as it changes $[0], causing all sort of problems
26717 # (the dirname of $[0] is not the place where we might find the
26718 # original and so on. Autoconf is especially sensible to this).
26720 # Exit status is that of the last command.
26725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26726 *c*,-n*) ECHO_N= ECHO_C='
26728 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26729 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26732 if expr a : '\(a\)' >/dev/null 2>&1; then
26738 rm -f conf$$ conf$$.exe conf$$.file
26740 if ln -s conf$$.file conf$$ 2>/dev/null; then
26741 # We could just check for DJGPP; but this test a) works b) is more generic
26742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26743 if test -f conf$$.exe; then
26744 # Don't use ln at all; we don't have any links
26749 elif ln conf$$.file conf$$ 2>/dev/null; then
26754 rm -f conf$$ conf$$.exe conf$$.file
26756 if mkdir -p . 2>/dev/null; then
26759 test -d ./-p && rmdir ./-p
26763 as_executable_p="test -f"
26765 # Sed expression to map a string onto a valid CPP name.
26766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26768 # Sed expression to map a string onto a valid variable name.
26769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26773 # We need space, tab and new line, in precisely that order.
26783 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26784 # report actual input values of CONFIG_FILES etc. instead of their
26785 # values after options handling. Logging --version etc. is OK.
26789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26790 ## Running $as_me. ##
26795 This file was extended by LLVM $as_me 1.4, which was
26796 generated by GNU Autoconf 2.59. Invocation command line was
26798 CONFIG_FILES = $CONFIG_FILES
26799 CONFIG_HEADERS = $CONFIG_HEADERS
26800 CONFIG_LINKS = $CONFIG_LINKS
26801 CONFIG_COMMANDS = $CONFIG_COMMANDS
26805 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26809 # Files that config.status was made for.
26810 if test -n "$ac_config_files"; then
26811 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26814 if test -n "$ac_config_headers"; then
26815 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26818 if test -n "$ac_config_links"; then
26819 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26822 if test -n "$ac_config_commands"; then
26823 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26826 cat >>$CONFIG_STATUS <<\_ACEOF
26829 \`$as_me' instantiates files from templates according to the
26830 current configuration.
26832 Usage: $0 [OPTIONS] [FILE]...
26834 -h, --help print this help, then exit
26835 -V, --version print version number, then exit
26836 -q, --quiet do not print progress messages
26837 -d, --debug don't remove temporary files
26838 --recheck update $as_me by reconfiguring in the same conditions
26839 --file=FILE[:TEMPLATE]
26840 instantiate the configuration file FILE
26841 --header=FILE[:TEMPLATE]
26842 instantiate the configuration header FILE
26844 Configuration files:
26847 Configuration headers:
26850 Configuration links:
26853 Configuration commands:
26856 Report bugs to <bug-autoconf@gnu.org>."
26859 cat >>$CONFIG_STATUS <<_ACEOF
26861 LLVM config.status 1.4
26862 configured by $0, generated by GNU Autoconf 2.59,
26863 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26865 Copyright (C) 2003 Free Software Foundation, Inc.
26866 This config.status script is free software; the Free Software Foundation
26867 gives unlimited permission to copy, distribute and modify it."
26872 cat >>$CONFIG_STATUS <<\_ACEOF
26873 # If no file are specified by the user, then we need to provide default
26874 # value. By we need to know if files were specified by the user.
26880 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26881 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26889 *) # This is not an option, so the user has probably given explicit
26892 ac_need_defaults=false;;
26896 # Handling of the options.
26898 cat >>$CONFIG_STATUS <<\_ACEOF
26899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26901 --version | --vers* | -V )
26902 echo "$ac_cs_version"; exit 0 ;;
26904 # Conflict between --help and --header
26905 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26906 Try \`$0 --help' for more information." >&5
26907 echo "$as_me: error: ambiguous option: $1
26908 Try \`$0 --help' for more information." >&2;}
26909 { (exit 1); exit 1; }; };;
26910 --help | --hel | -h )
26911 echo "$ac_cs_usage"; exit 0 ;;
26912 --debug | --d* | -d )
26914 --file | --fil | --fi | --f )
26916 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26917 ac_need_defaults=false;;
26918 --header | --heade | --head | --hea )
26920 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26921 ac_need_defaults=false;;
26922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26926 # This is an error.
26927 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26928 Try \`$0 --help' for more information." >&5
26929 echo "$as_me: error: unrecognized option: $1
26930 Try \`$0 --help' for more information." >&2;}
26931 { (exit 1); exit 1; }; } ;;
26933 *) ac_config_targets="$ac_config_targets $1" ;;
26939 ac_configure_extra_args=
26941 if $ac_cs_silent; then
26943 ac_configure_extra_args="$ac_configure_extra_args --silent"
26947 cat >>$CONFIG_STATUS <<_ACEOF
26948 if \$ac_cs_recheck; then
26949 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26950 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26955 cat >>$CONFIG_STATUS <<_ACEOF
26957 # INIT-COMMANDS section.
26960 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26966 cat >>$CONFIG_STATUS <<\_ACEOF
26967 for ac_config_target in $ac_config_targets
26969 case "$ac_config_target" in
26970 # Handling of arguments.
26971 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26972 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26973 "lib/Analysis/IPA/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/IPA/Makefile" ;;
26974 "lib/Analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/Makefile" ;;
26975 "lib/Analysis/DataStructure/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/DataStructure/Makefile" ;;
26976 "lib/AsmParser/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/AsmParser/Makefile" ;;
26977 "lib/System/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/System/Makefile" ;;
26978 "lib/Bytecode/Reader/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Reader/Makefile" ;;
26979 "lib/Bytecode/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Makefile" ;;
26980 "lib/Bytecode/Writer/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Writer/Makefile" ;;
26981 "lib/Bytecode/Archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Archive/Makefile" ;;
26982 "lib/CodeGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/Makefile" ;;
26983 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/ModuloScheduling/Makefile" ;;
26984 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/SelectionDAG/Makefile" ;;
26985 "lib/Debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Debugger/Makefile" ;;
26986 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Interpreter/Makefile" ;;
26987 "lib/ExecutionEngine/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Makefile" ;;
26988 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/JIT/Makefile" ;;
26989 "lib/Support/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Support/Makefile" ;;
26990 "lib/Target/CBackend/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/CBackend/Makefile" ;;
26991 "lib/Target/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Makefile" ;;
26992 "lib/Target/Skeleton/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Skeleton/Makefile" ;;
26993 "lib/Target/PowerPC/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/PowerPC/Makefile" ;;
26994 "lib/Target/SparcV9/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/Makefile" ;;
26995 "lib/Target/SparcV9/InstrSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/InstrSched/Makefile" ;;
26996 "lib/Target/SparcV9/LiveVar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/LiveVar/Makefile" ;;
26997 "lib/Target/SparcV9/RegAlloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/RegAlloc/Makefile" ;;
26998 "lib/Target/X86/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/X86/Makefile" ;;
26999 "lib/Transforms/Hello/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Hello/Makefile" ;;
27000 "lib/Transforms/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Makefile" ;;
27001 "lib/Transforms/IPO/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/IPO/Makefile" ;;
27002 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
27003 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/Makefile" ;;
27004 "lib/Transforms/Scalar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Scalar/Makefile" ;;
27005 "lib/Transforms/Utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Utils/Makefile" ;;
27006 "lib/VMCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/VMCore/Makefile" ;;
27007 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27008 "utils/Burg/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Burg/Makefile" ;;
27009 "utils/fpcmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/fpcmp/Makefile" ;;
27010 "utils/TableGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/TableGen/Makefile" ;;
27011 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27012 "tools/analyze/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/analyze/Makefile" ;;
27013 "tools/llvmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/Makefile" ;;
27014 "tools/bugpoint/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/bugpoint/Makefile" ;;
27015 "tools/extract/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extract/Makefile" ;;
27016 "tools/gccas/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccas/Makefile" ;;
27017 "tools/gccld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccld/Makefile" ;;
27018 "tools/llvm-bcanalyzer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-bcanalyzer/Makefile" ;;
27019 "tools/llc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llc/Makefile" ;;
27020 "tools/llee/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llee/Makefile" ;;
27021 "tools/lli/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/lli/Makefile" ;;
27022 "tools/llvm-ar/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ar/Makefile" ;;
27023 "tools/llvm-as/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-as/Makefile" ;;
27024 "tools/llvm-db/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-db/Makefile" ;;
27025 "tools/llvm-dis/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-dis/Makefile" ;;
27026 "tools/llvm-link/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-link/Makefile" ;;
27027 "tools/llvm-nm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-nm/Makefile" ;;
27028 "tools/llvm-prof/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-prof/Makefile" ;;
27029 "tools/opt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/opt/Makefile" ;;
27030 "tools/llvm-ld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ld/Makefile" ;;
27031 "tools/llvm-stub/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-stub/Makefile" ;;
27032 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_platform_type" ;;
27033 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27034 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
27035 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
27036 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
27037 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
27038 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
27039 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
27040 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27041 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27042 { (exit 1); exit 1; }; };;
27046 # If the user did not use the arguments to specify the items to instantiate,
27047 # then the envvar interface is used. Set only those that are not.
27048 # We use the long form for the default assignment because of an extremely
27049 # bizarre bug on SunOS 4.1.3.
27050 if $ac_need_defaults; then
27051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27053 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27057 # Have a temporary directory for convenience. Make it in the build tree
27058 # simply because there is no reason to put it here, and in addition,
27059 # creating and moving files from /tmp can sometimes cause problems.
27060 # Create a temporary directory, and hook for its removal unless debugging.
27063 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27064 trap '{ (exit 1); exit 1; }' 1 2 13 15
27067 # Create a (secure) tmp directory for tmp files.
27070 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27071 test -n "$tmp" && test -d "$tmp"
27074 tmp=./confstat$$-$RANDOM
27075 (umask 077 && mkdir $tmp)
27078 echo "$me: cannot create a temporary directory in ." >&2
27079 { (exit 1); exit 1; }
27084 cat >>$CONFIG_STATUS <<_ACEOF
27087 # CONFIG_FILES section.
27090 # No need to generate the scripts if there are no CONFIG_FILES.
27091 # This happens for instance when ./config.status config.h
27092 if test -n "\$CONFIG_FILES"; then
27093 # Protect against being on the right side of a sed subst in config.status.
27094 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27095 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27096 s,@SHELL@,$SHELL,;t t
27097 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27098 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27099 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27100 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27101 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27102 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27103 s,@exec_prefix@,$exec_prefix,;t t
27104 s,@prefix@,$prefix,;t t
27105 s,@program_transform_name@,$program_transform_name,;t t
27106 s,@bindir@,$bindir,;t t
27107 s,@sbindir@,$sbindir,;t t
27108 s,@libexecdir@,$libexecdir,;t t
27109 s,@datadir@,$datadir,;t t
27110 s,@sysconfdir@,$sysconfdir,;t t
27111 s,@sharedstatedir@,$sharedstatedir,;t t
27112 s,@localstatedir@,$localstatedir,;t t
27113 s,@libdir@,$libdir,;t t
27114 s,@includedir@,$includedir,;t t
27115 s,@oldincludedir@,$oldincludedir,;t t
27116 s,@infodir@,$infodir,;t t
27117 s,@mandir@,$mandir,;t t
27118 s,@build_alias@,$build_alias,;t t
27119 s,@host_alias@,$host_alias,;t t
27120 s,@target_alias@,$target_alias,;t t
27121 s,@DEFS@,$DEFS,;t t
27122 s,@ECHO_C@,$ECHO_C,;t t
27123 s,@ECHO_N@,$ECHO_N,;t t
27124 s,@ECHO_T@,$ECHO_T,;t t
27125 s,@LIBS@,$LIBS,;t t
27126 s,@build@,$build,;t t
27127 s,@build_cpu@,$build_cpu,;t t
27128 s,@build_vendor@,$build_vendor,;t t
27129 s,@build_os@,$build_os,;t t
27130 s,@host@,$host,;t t
27131 s,@host_cpu@,$host_cpu,;t t
27132 s,@host_vendor@,$host_vendor,;t t
27133 s,@host_os@,$host_os,;t t
27134 s,@target@,$target,;t t
27135 s,@target_cpu@,$target_cpu,;t t
27136 s,@target_vendor@,$target_vendor,;t t
27137 s,@target_os@,$target_os,;t t
27138 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27139 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27140 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27141 s,@CYGPATH_W@,$CYGPATH_W,;t t
27142 s,@PACKAGE@,$PACKAGE,;t t
27143 s,@VERSION@,$VERSION,;t t
27144 s,@ACLOCAL@,$ACLOCAL,;t t
27145 s,@AUTOCONF@,$AUTOCONF,;t t
27146 s,@AUTOMAKE@,$AUTOMAKE,;t t
27147 s,@AUTOHEADER@,$AUTOHEADER,;t t
27148 s,@MAKEINFO@,$MAKEINFO,;t t
27149 s,@install_sh@,$install_sh,;t t
27150 s,@STRIP@,$STRIP,;t t
27151 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27152 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27153 s,@mkdir_p@,$mkdir_p,;t t
27155 s,@SET_MAKE@,$SET_MAKE,;t t
27156 s,@am__leading_dot@,$am__leading_dot,;t t
27157 s,@AMTAR@,$AMTAR,;t t
27158 s,@am__tar@,$am__tar,;t t
27159 s,@am__untar@,$am__untar,;t t
27160 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
27161 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
27162 s,@ENABLE_PROFILED@,$ENABLE_PROFILED,;t t
27163 s,@BUILDMODE@,$BUILDMODE,;t t
27166 s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
27167 s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
27168 s,@ARCH_SPARC_TRUE@,$ARCH_SPARC_TRUE,;t t
27169 s,@ARCH_SPARC_FALSE@,$ARCH_SPARC_FALSE,;t t
27170 s,@ARCH_PPC_TRUE@,$ARCH_PPC_TRUE,;t t
27171 s,@ARCH_PPC_FALSE@,$ARCH_PPC_FALSE,;t t
27172 s,@ARCH_UNKNOWN_TRUE@,$ARCH_UNKNOWN_TRUE,;t t
27173 s,@ARCH_UNKNOWN_FALSE@,$ARCH_UNKNOWN_FALSE,;t t
27174 s,@ARCH@,$ARCH,;t t
27175 s,@ENDIAN@,$ENDIAN,;t t
27177 s,@CFLAGS@,$CFLAGS,;t t
27178 s,@LDFLAGS@,$LDFLAGS,;t t
27179 s,@CPPFLAGS@,$CPPFLAGS,;t t
27180 s,@ac_ct_CC@,$ac_ct_CC,;t t
27181 s,@EXEEXT@,$EXEEXT,;t t
27182 s,@OBJEXT@,$OBJEXT,;t t
27183 s,@DEPDIR@,$DEPDIR,;t t
27184 s,@am__include@,$am__include,;t t
27185 s,@am__quote@,$am__quote,;t t
27186 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27187 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27188 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27189 s,@CCDEPMODE@,$CCDEPMODE,;t t
27190 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27191 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27193 s,@CXXFLAGS@,$CXXFLAGS,;t t
27194 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27195 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27196 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27197 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27200 s,@LEXLIB@,$LEXLIB,;t t
27201 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27202 s,@FLEX@,$FLEX,;t t
27203 s,@YACC@,$YACC,;t t
27204 s,@BISON@,$BISON,;t t
27205 s,@EGREP@,$EGREP,;t t
27206 s,@LN_S@,$LN_S,;t t
27207 s,@ECHO@,$ECHO,;t t
27209 s,@ac_ct_AR@,$ac_ct_AR,;t t
27210 s,@RANLIB@,$RANLIB,;t t
27211 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27212 s,@CXXCPP@,$CXXCPP,;t t
27214 s,@FFLAGS@,$FFLAGS,;t t
27215 s,@ac_ct_F77@,$ac_ct_F77,;t t
27216 s,@LIBTOOL@,$LIBTOOL,;t t
27218 s,@ETAGS@,$ETAGS,;t t
27219 s,@PYTHON@,$PYTHON,;t t
27220 s,@QMTEST@,$QMTEST,;t t
27221 s,@ifGNUmake@,$ifGNUmake,;t t
27222 s,@LLVMCC1@,$LLVMCC1,;t t
27223 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
27224 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
27225 s,@ALLOCA@,$ALLOCA,;t t
27226 s,@MMAP_FILE@,$MMAP_FILE,;t t
27227 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
27228 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
27229 s,@SHLIBEXT@,$SHLIBEXT,;t t
27230 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
27231 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
27232 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
27233 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
27234 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
27235 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
27236 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
27237 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
27238 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
27239 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
27240 s,@subdirs@,$subdirs,;t t
27241 s,@LIBOBJS@,$LIBOBJS,;t t
27242 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27247 cat >>$CONFIG_STATUS <<\_ACEOF
27248 # Split the substitutions into bite-sized pieces for seds with
27249 # small command number limits, like on Digital OSF/1 and HP-UX.
27250 ac_max_sed_lines=48
27251 ac_sed_frag=1 # Number of current file.
27252 ac_beg=1 # First line for current file.
27253 ac_end=$ac_max_sed_lines # Line after last line for current file.
27256 while $ac_more_lines; do
27257 if test $ac_beg -gt 1; then
27258 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27260 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27262 if test ! -s $tmp/subs.frag; then
27263 ac_more_lines=false
27265 # The purpose of the label and of the branching condition is to
27266 # speed up the sed processing (if there are no `@' at all, there
27267 # is no need to browse any of the substitutions).
27268 # These are the two extra sed commands mentioned above.
27270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27271 if test -z "$ac_sed_cmds"; then
27272 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27274 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27276 ac_sed_frag=`expr $ac_sed_frag + 1`
27278 ac_end=`expr $ac_end + $ac_max_sed_lines`
27281 if test -z "$ac_sed_cmds"; then
27284 fi # test -n "$CONFIG_FILES"
27287 cat >>$CONFIG_STATUS <<\_ACEOF
27288 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27289 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27291 - | *:- | *:-:* ) # input from stdin
27293 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27294 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27295 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27296 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27297 * ) ac_file_in=$ac_file.in ;;
27300 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27301 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27303 X"$ac_file" : 'X\(//\)[^/]' \| \
27304 X"$ac_file" : 'X\(//\)$' \| \
27305 X"$ac_file" : 'X\(/\)' \| \
27306 . : '\(.\)' 2>/dev/null ||
27308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27310 /^X\(\/\/\)$/{ s//\1/; q; }
27311 /^X\(\/\).*/{ s//\1/; q; }
27313 { if $as_mkdir_p; then
27318 while test ! -d "$as_dir"; do
27319 as_dirs="$as_dir $as_dirs"
27320 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27322 X"$as_dir" : 'X\(//\)[^/]' \| \
27323 X"$as_dir" : 'X\(//\)$' \| \
27324 X"$as_dir" : 'X\(/\)' \| \
27325 . : '\(.\)' 2>/dev/null ||
27327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27329 /^X\(\/\/\)$/{ s//\1/; q; }
27330 /^X\(\/\).*/{ s//\1/; q; }
27333 test ! -n "$as_dirs" || mkdir $as_dirs
27334 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27335 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27336 { (exit 1); exit 1; }; }; }
27340 if test "$ac_dir" != .; then
27341 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27342 # A "../" for each directory in $ac_dir_suffix.
27343 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27345 ac_dir_suffix= ac_top_builddir=
27349 .) # No --srcdir option. We are building in place.
27351 if test -z "$ac_top_builddir"; then
27354 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27356 [\\/]* | ?:[\\/]* ) # Absolute path.
27357 ac_srcdir=$srcdir$ac_dir_suffix;
27358 ac_top_srcdir=$srcdir ;;
27359 *) # Relative path.
27360 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27361 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27364 # Do not use `cd foo && pwd` to compute absolute paths, because
27365 # the directories may not exist.
27367 .) ac_abs_builddir="$ac_dir";;
27370 .) ac_abs_builddir=`pwd`;;
27371 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27372 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27375 case $ac_abs_builddir in
27376 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27378 case ${ac_top_builddir}. in
27379 .) ac_abs_top_builddir=$ac_abs_builddir;;
27380 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27381 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27384 case $ac_abs_builddir in
27385 .) ac_abs_srcdir=$ac_srcdir;;
27388 .) ac_abs_srcdir=$ac_abs_builddir;;
27389 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27390 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27393 case $ac_abs_builddir in
27394 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27396 case $ac_top_srcdir in
27397 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27398 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27399 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27405 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27406 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27409 if test x"$ac_file" != x-; then
27410 { echo "$as_me:$LINENO: creating $ac_file" >&5
27411 echo "$as_me: creating $ac_file" >&6;}
27414 # Let's still pretend it is `configure' which instantiates (i.e., don't
27415 # use $as_me), people would be surprised to read:
27416 # /* config.h. Generated by config.status. */
27417 if test x"$ac_file" = x-; then
27420 configure_input="$ac_file. "
27422 configure_input=$configure_input"Generated from `echo $ac_file_in |
27423 sed 's,.*/,,'` by configure."
27425 # First look for the input files in the build tree, otherwise in the
27427 ac_file_inputs=`IFS=:
27428 for f in $ac_file_in; do
27430 -) echo $tmp/stdin ;;
27432 # Absolute (can't be DOS-style, as IFS=:)
27433 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27434 echo "$as_me: error: cannot find input file: $f" >&2;}
27435 { (exit 1); exit 1; }; }
27438 if test -f "$f"; then
27441 elif test -f "$srcdir/$f"; then
27446 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27447 echo "$as_me: error: cannot find input file: $f" >&2;}
27448 { (exit 1); exit 1; }; }
27451 done` || { (exit 1); exit 1; }
27453 cat >>$CONFIG_STATUS <<_ACEOF
27457 cat >>$CONFIG_STATUS <<\_ACEOF
27459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27460 s,@configure_input@,$configure_input,;t t
27461 s,@srcdir@,$ac_srcdir,;t t
27462 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27463 s,@top_srcdir@,$ac_top_srcdir,;t t
27464 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27465 s,@builddir@,$ac_builddir,;t t
27466 s,@abs_builddir@,$ac_abs_builddir,;t t
27467 s,@top_builddir@,$ac_top_builddir,;t t
27468 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27469 s,@INSTALL@,$ac_INSTALL,;t t
27470 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27472 if test x"$ac_file" != x-; then
27473 mv $tmp/out $ac_file
27481 cat >>$CONFIG_STATUS <<\_ACEOF
27484 # CONFIG_HEADER section.
27487 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27488 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27490 # ac_d sets the value in "#define NAME VALUE" lines.
27491 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27492 ac_dB='[ ].*$,\1#\2'
27495 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27496 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27497 ac_uB='$,\1#\2define\3'
27501 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27502 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27504 - | *:- | *:-:* ) # input from stdin
27506 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27507 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27508 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27510 * ) ac_file_in=$ac_file.in ;;
27513 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27514 echo "$as_me: creating $ac_file" >&6;}
27516 # First look for the input files in the build tree, otherwise in the
27518 ac_file_inputs=`IFS=:
27519 for f in $ac_file_in; do
27521 -) echo $tmp/stdin ;;
27523 # Absolute (can't be DOS-style, as IFS=:)
27524 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27525 echo "$as_me: error: cannot find input file: $f" >&2;}
27526 { (exit 1); exit 1; }; }
27527 # Do quote $f, to prevent DOS paths from being IFS'd.
27530 if test -f "$f"; then
27533 elif test -f "$srcdir/$f"; then
27538 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27539 echo "$as_me: error: cannot find input file: $f" >&2;}
27540 { (exit 1); exit 1; }; }
27543 done` || { (exit 1); exit 1; }
27544 # Remove the trailing spaces.
27545 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27549 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27550 # `conftest.undefs', that substitutes the proper values into
27551 # config.h.in to produce config.h. The first handles `#define'
27552 # templates, and the second `#undef' templates.
27553 # And first: Protect against being on the right side of a sed subst in
27554 # config.status. Protect against being in an unquoted here document
27555 # in config.status.
27556 rm -f conftest.defines conftest.undefs
27557 # Using a here document instead of a string reduces the quoting nightmare.
27558 # Putting comments in sed scripts is not portable.
27560 # `end' is used to avoid that the second main sed command (meant for
27561 # 0-ary CPP macros) applies to n-ary macro definitions.
27562 # See the Autoconf documentation for `clear'.
27563 cat >confdef2sed.sed <<\_ACEOF
27568 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27570 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27573 # If some macros were called several times there might be several times
27574 # the same #defines, which is useless. Nevertheless, we may not want to
27575 # sort them, since we want the *last* AC-DEFINE to be honored.
27576 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27577 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27578 rm -f confdef2sed.sed
27580 # This sed command replaces #undef with comments. This is necessary, for
27581 # example, in the case of _POSIX_SOURCE, which is predefined and required
27582 # on some systems where configure will not decide to define it.
27583 cat >>conftest.undefs <<\_ACEOF
27584 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27587 # Break up conftest.defines because some shells have a limit on the size
27588 # of here documents, and old seds have small limits too (100 cmds).
27589 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27590 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27591 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27592 echo ' :' >>$CONFIG_STATUS
27593 rm -f conftest.tail
27594 while grep . conftest.defines >/dev/null
27596 # Write a limited-size here document to $tmp/defines.sed.
27597 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27598 # Speed up: don't consider the non `#define' lines.
27599 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27600 # Work around the forget-to-reset-the-flag bug.
27601 echo 't clr' >>$CONFIG_STATUS
27602 echo ': clr' >>$CONFIG_STATUS
27603 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27605 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27607 mv $tmp/out $tmp/in
27609 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27610 rm -f conftest.defines
27611 mv conftest.tail conftest.defines
27613 rm -f conftest.defines
27614 echo ' fi # grep' >>$CONFIG_STATUS
27615 echo >>$CONFIG_STATUS
27617 # Break up conftest.undefs because some shells have a limit on the size
27618 # of here documents, and old seds have small limits too (100 cmds).
27619 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27620 rm -f conftest.tail
27621 while grep . conftest.undefs >/dev/null
27623 # Write a limited-size here document to $tmp/undefs.sed.
27624 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27625 # Speed up: don't consider the non `#undef'
27626 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27627 # Work around the forget-to-reset-the-flag bug.
27628 echo 't clr' >>$CONFIG_STATUS
27629 echo ': clr' >>$CONFIG_STATUS
27630 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27632 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27634 mv $tmp/out $tmp/in
27636 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27637 rm -f conftest.undefs
27638 mv conftest.tail conftest.undefs
27640 rm -f conftest.undefs
27642 cat >>$CONFIG_STATUS <<\_ACEOF
27643 # Let's still pretend it is `configure' which instantiates (i.e., don't
27644 # use $as_me), people would be surprised to read:
27645 # /* config.h. Generated by config.status. */
27646 if test x"$ac_file" = x-; then
27647 echo "/* Generated by configure. */" >$tmp/config.h
27649 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27651 cat $tmp/in >>$tmp/config.h
27653 if test x"$ac_file" != x-; then
27654 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27655 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27656 echo "$as_me: $ac_file is unchanged" >&6;}
27658 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27660 X"$ac_file" : 'X\(//\)[^/]' \| \
27661 X"$ac_file" : 'X\(//\)$' \| \
27662 X"$ac_file" : 'X\(/\)' \| \
27663 . : '\(.\)' 2>/dev/null ||
27665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27667 /^X\(\/\/\)$/{ s//\1/; q; }
27668 /^X\(\/\).*/{ s//\1/; q; }
27670 { if $as_mkdir_p; then
27675 while test ! -d "$as_dir"; do
27676 as_dirs="$as_dir $as_dirs"
27677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27679 X"$as_dir" : 'X\(//\)[^/]' \| \
27680 X"$as_dir" : 'X\(//\)$' \| \
27681 X"$as_dir" : 'X\(/\)' \| \
27682 . : '\(.\)' 2>/dev/null ||
27684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27686 /^X\(\/\/\)$/{ s//\1/; q; }
27687 /^X\(\/\).*/{ s//\1/; q; }
27690 test ! -n "$as_dirs" || mkdir $as_dirs
27691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27693 { (exit 1); exit 1; }; }; }
27696 mv $tmp/config.h $ac_file
27700 rm -f $tmp/config.h
27702 # Compute $ac_file's index in $config_headers.
27704 for _am_header in $config_headers :; do
27705 case $_am_header in
27706 $ac_file | $ac_file:* )
27709 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27712 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27713 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27714 X$ac_file : 'X\(//\)[^/]' \| \
27715 X$ac_file : 'X\(//\)$' \| \
27716 X$ac_file : 'X\(/\)' \| \
27717 . : '\(.\)' 2>/dev/null ||
27719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27721 /^X\(\/\/\)$/{ s//\1/; q; }
27722 /^X\(\/\).*/{ s//\1/; q; }
27723 s/.*/./; q'`/stamp-h$_am_stamp_count
27726 cat >>$CONFIG_STATUS <<\_ACEOF
27729 # CONFIG_LINKS section.
27732 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27733 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27734 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27736 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27737 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27739 if test ! -r $srcdir/$ac_source; then
27740 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27741 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27742 { (exit 1); exit 1; }; }
27746 # Make relative symlinks.
27747 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27748 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27749 X"$ac_dest" : 'X\(//\)[^/]' \| \
27750 X"$ac_dest" : 'X\(//\)$' \| \
27751 X"$ac_dest" : 'X\(/\)' \| \
27752 . : '\(.\)' 2>/dev/null ||
27754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27756 /^X\(\/\/\)$/{ s//\1/; q; }
27757 /^X\(\/\).*/{ s//\1/; q; }
27759 { if $as_mkdir_p; then
27760 mkdir -p "$ac_dest_dir"
27762 as_dir="$ac_dest_dir"
27764 while test ! -d "$as_dir"; do
27765 as_dirs="$as_dir $as_dirs"
27766 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27768 X"$as_dir" : 'X\(//\)[^/]' \| \
27769 X"$as_dir" : 'X\(//\)$' \| \
27770 X"$as_dir" : 'X\(/\)' \| \
27771 . : '\(.\)' 2>/dev/null ||
27773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27775 /^X\(\/\/\)$/{ s//\1/; q; }
27776 /^X\(\/\).*/{ s//\1/; q; }
27779 test ! -n "$as_dirs" || mkdir $as_dirs
27780 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27781 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27782 { (exit 1); exit 1; }; }; }
27786 if test "$ac_dest_dir" != .; then
27787 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27788 # A "../" for each directory in $ac_dir_suffix.
27789 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27791 ac_dir_suffix= ac_top_builddir=
27795 .) # No --srcdir option. We are building in place.
27797 if test -z "$ac_top_builddir"; then
27800 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27802 [\\/]* | ?:[\\/]* ) # Absolute path.
27803 ac_srcdir=$srcdir$ac_dir_suffix;
27804 ac_top_srcdir=$srcdir ;;
27805 *) # Relative path.
27806 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27807 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27810 # Do not use `cd foo && pwd` to compute absolute paths, because
27811 # the directories may not exist.
27813 .) ac_abs_builddir="$ac_dest_dir";;
27815 case "$ac_dest_dir" in
27816 .) ac_abs_builddir=`pwd`;;
27817 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27818 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27821 case $ac_abs_builddir in
27822 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27824 case ${ac_top_builddir}. in
27825 .) ac_abs_top_builddir=$ac_abs_builddir;;
27826 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27827 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27830 case $ac_abs_builddir in
27831 .) ac_abs_srcdir=$ac_srcdir;;
27834 .) ac_abs_srcdir=$ac_abs_builddir;;
27835 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27836 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27839 case $ac_abs_builddir in
27840 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27842 case $ac_top_srcdir in
27843 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27844 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27845 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27851 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27852 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27855 # Try a symlink, then a hard link, then a copy.
27856 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27857 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27858 cp -p $srcdir/$ac_source $ac_dest ||
27859 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27860 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27861 { (exit 1); exit 1; }; }
27864 cat >>$CONFIG_STATUS <<\_ACEOF
27867 # CONFIG_COMMANDS section.
27869 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27870 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27871 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27872 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27873 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27874 X"$ac_dest" : 'X\(//\)[^/]' \| \
27875 X"$ac_dest" : 'X\(//\)$' \| \
27876 X"$ac_dest" : 'X\(/\)' \| \
27877 . : '\(.\)' 2>/dev/null ||
27879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27881 /^X\(\/\/\)$/{ s//\1/; q; }
27882 /^X\(\/\).*/{ s//\1/; q; }
27884 { if $as_mkdir_p; then
27889 while test ! -d "$as_dir"; do
27890 as_dirs="$as_dir $as_dirs"
27891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27893 X"$as_dir" : 'X\(//\)[^/]' \| \
27894 X"$as_dir" : 'X\(//\)$' \| \
27895 X"$as_dir" : 'X\(/\)' \| \
27896 . : '\(.\)' 2>/dev/null ||
27898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27900 /^X\(\/\/\)$/{ s//\1/; q; }
27901 /^X\(\/\).*/{ s//\1/; q; }
27904 test ! -n "$as_dirs" || mkdir $as_dirs
27905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27907 { (exit 1); exit 1; }; }; }
27911 if test "$ac_dir" != .; then
27912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27913 # A "../" for each directory in $ac_dir_suffix.
27914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27916 ac_dir_suffix= ac_top_builddir=
27920 .) # No --srcdir option. We are building in place.
27922 if test -z "$ac_top_builddir"; then
27925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27927 [\\/]* | ?:[\\/]* ) # Absolute path.
27928 ac_srcdir=$srcdir$ac_dir_suffix;
27929 ac_top_srcdir=$srcdir ;;
27930 *) # Relative path.
27931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27935 # Do not use `cd foo && pwd` to compute absolute paths, because
27936 # the directories may not exist.
27938 .) ac_abs_builddir="$ac_dir";;
27941 .) ac_abs_builddir=`pwd`;;
27942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27946 case $ac_abs_builddir in
27947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27949 case ${ac_top_builddir}. in
27950 .) ac_abs_top_builddir=$ac_abs_builddir;;
27951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27955 case $ac_abs_builddir in
27956 .) ac_abs_srcdir=$ac_srcdir;;
27959 .) ac_abs_srcdir=$ac_abs_builddir;;
27960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27964 case $ac_abs_builddir in
27965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27967 case $ac_top_srcdir in
27968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27975 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27976 echo "$as_me: executing $ac_dest commands" >&6;}
27978 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27979 # Strip MF so we end up with the name of the file.
27980 mf=`echo "$mf" | sed -e 's/:.*$//'`
27981 # Check whether this is an Automake generated Makefile or not.
27982 # We used to match only the files named `Makefile.in', but
27983 # some people rename them; so instead we look at the file content.
27984 # Grep'ing the first line is not enough: some people post-process
27985 # each Makefile.in and add a new line on top of each file to say so.
27986 # So let's grep whole file.
27987 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27988 dirpart=`(dirname "$mf") 2>/dev/null ||
27989 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27990 X"$mf" : 'X\(//\)[^/]' \| \
27991 X"$mf" : 'X\(//\)$' \| \
27992 X"$mf" : 'X\(/\)' \| \
27993 . : '\(.\)' 2>/dev/null ||
27995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27997 /^X\(\/\/\)$/{ s//\1/; q; }
27998 /^X\(\/\).*/{ s//\1/; q; }
28003 # Extract the definition of DEPDIR, am__include, and am__quote
28004 # from the Makefile without running `make'.
28005 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28006 test -z "$DEPDIR" && continue
28007 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28008 test -z "am__include" && continue
28009 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28010 # When using ansi2knr, U may be empty or an underscore; expand it
28011 U=`sed -n 's/^U = //p' < "$mf"`
28012 # Find all dependency output files, they are included files with
28013 # $(DEPDIR) in their names. We invoke sed twice because it is the
28014 # simplest approach to changing $(DEPDIR) to its actual value in the
28016 for file in `sed -n "
28017 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28018 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28019 # Make sure the directory exists.
28020 test -f "$dirpart/$file" && continue
28021 fdir=`(dirname "$file") 2>/dev/null ||
28022 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28023 X"$file" : 'X\(//\)[^/]' \| \
28024 X"$file" : 'X\(//\)$' \| \
28025 X"$file" : 'X\(/\)' \| \
28026 . : '\(.\)' 2>/dev/null ||
28028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28030 /^X\(\/\/\)$/{ s//\1/; q; }
28031 /^X\(\/\).*/{ s//\1/; q; }
28033 { if $as_mkdir_p; then
28034 mkdir -p $dirpart/$fdir
28036 as_dir=$dirpart/$fdir
28038 while test ! -d "$as_dir"; do
28039 as_dirs="$as_dir $as_dirs"
28040 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28042 X"$as_dir" : 'X\(//\)[^/]' \| \
28043 X"$as_dir" : 'X\(//\)$' \| \
28044 X"$as_dir" : 'X\(/\)' \| \
28045 . : '\(.\)' 2>/dev/null ||
28047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28049 /^X\(\/\/\)$/{ s//\1/; q; }
28050 /^X\(\/\).*/{ s//\1/; q; }
28053 test ! -n "$as_dirs" || mkdir $as_dirs
28054 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28055 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28056 { (exit 1); exit 1; }; }; }
28058 # echo "creating $dirpart/$file"
28059 echo '# dummy' > "$dirpart/$file"
28067 cat >>$CONFIG_STATUS <<\_ACEOF
28069 { (exit 0); exit 0; }
28071 chmod +x $CONFIG_STATUS
28072 ac_clean_files=$ac_clean_files_save
28075 # configure is writing to config.log, and then calls config.status.
28076 # config.status does its own redirection, appending to config.log.
28077 # Unfortunately, on DOS this fails, as config.log is still kept open
28078 # by configure, so config.status won't be able to write to it; its
28079 # output is simply discarded. So we exec the FD to /dev/null,
28080 # effectively closing config.log, so it can be properly (re)opened and
28081 # appended to by config.status. When coming back to configure, we
28082 # need to make the FD available again.
28083 if test "$no_create" != yes; then
28085 ac_config_status_args=
28086 test "$silent" = yes &&
28087 ac_config_status_args="$ac_config_status_args --quiet"
28089 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28091 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28092 # would make configure fail if this is the last instruction.
28093 $ac_cs_success || { (exit 1); exit 1; }
28097 # CONFIG_SUBDIRS section.
28099 if test "$no_recursion" != yes; then
28101 # Remove --cache-file and --srcdir arguments so they do not pile up.
28102 ac_sub_configure_args=
28104 for ac_arg in $ac_configure_args; do
28105 if test -n "$ac_prev"; then
28110 -cache-file | --cache-file | --cache-fil | --cache-fi \
28111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28112 ac_prev=cache_file ;;
28113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28117 --config-cache | -C)
28119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28127 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
28131 # Always prepend --prefix to ensure using the same prefix
28132 # in subdir configurations.
28133 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
28136 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28138 # Do not complain, so a configure script can configure whichever
28139 # parts of a large source tree are present.
28140 test -d $srcdir/$ac_dir || continue
28142 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
28143 echo "$as_me: configuring in $ac_dir" >&6;}
28144 { if $as_mkdir_p; then
28149 while test ! -d "$as_dir"; do
28150 as_dirs="$as_dir $as_dirs"
28151 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28153 X"$as_dir" : 'X\(//\)[^/]' \| \
28154 X"$as_dir" : 'X\(//\)$' \| \
28155 X"$as_dir" : 'X\(/\)' \| \
28156 . : '\(.\)' 2>/dev/null ||
28158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28160 /^X\(\/\/\)$/{ s//\1/; q; }
28161 /^X\(\/\).*/{ s//\1/; q; }
28164 test ! -n "$as_dirs" || mkdir $as_dirs
28165 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28166 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28167 { (exit 1); exit 1; }; }; }
28171 if test "$ac_dir" != .; then
28172 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28173 # A "../" for each directory in $ac_dir_suffix.
28174 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28176 ac_dir_suffix= ac_top_builddir=
28180 .) # No --srcdir option. We are building in place.
28182 if test -z "$ac_top_builddir"; then
28185 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28187 [\\/]* | ?:[\\/]* ) # Absolute path.
28188 ac_srcdir=$srcdir$ac_dir_suffix;
28189 ac_top_srcdir=$srcdir ;;
28190 *) # Relative path.
28191 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28192 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28195 # Do not use `cd foo && pwd` to compute absolute paths, because
28196 # the directories may not exist.
28198 .) ac_abs_builddir="$ac_dir";;
28201 .) ac_abs_builddir=`pwd`;;
28202 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28203 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28206 case $ac_abs_builddir in
28207 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28209 case ${ac_top_builddir}. in
28210 .) ac_abs_top_builddir=$ac_abs_builddir;;
28211 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28212 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28215 case $ac_abs_builddir in
28216 .) ac_abs_srcdir=$ac_srcdir;;
28219 .) ac_abs_srcdir=$ac_abs_builddir;;
28220 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28221 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28224 case $ac_abs_builddir in
28225 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28227 case $ac_top_srcdir in
28228 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28229 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28230 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28237 # Check for guested configure; otherwise get Cygnus style configure.
28238 if test -f $ac_srcdir/configure.gnu; then
28239 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
28240 elif test -f $ac_srcdir/configure; then
28241 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
28242 elif test -f $ac_srcdir/configure.in; then
28243 ac_sub_configure=$ac_configure
28245 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28246 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28250 # The recursion is here.
28251 if test -n "$ac_sub_configure"; then
28252 # Make the cache file name correct relative to the subdirectory.
28253 case $cache_file in
28254 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28255 *) # Relative path.
28256 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
28259 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28260 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28261 # The eval makes quoting arguments work.
28262 eval $ac_sub_configure $ac_sub_configure_args \
28263 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
28264 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28265 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28266 { (exit 1); exit 1; }; }
28275 if test $bzip2_found -ne 1 ; then
28276 if test $zlib_found -ne 1 ; then
28277 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
28278 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
28279 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
28280 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
28281 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and re-run configure." >&5
28282 echo "$as_me: WARNING: *** To correct, install the libraries and re-run configure." >&2;}
28286 if test $llvmgccwarn = yes
28288 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
28289 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
28290 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
28291 echo "$as_me: WARNING: ***** appear to be working." >&2;}
28292 { echo "$as_me:$LINENO: WARNING: ***** " >&5
28293 echo "$as_me: WARNING: ***** " >&2;}
28294 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
28295 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
28296 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
28297 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
28298 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
28299 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}