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_OPTIMIZED_TRUE ENABLE_OPTIMIZED_FALSE ENABLE_PROFILED ENABLE_PROFILED_TRUE ENABLE_PROFILED_FALSE 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; }; } ;;
2093 if test $ENABLE_OPTIMIZED = 1; then
2094 ENABLE_OPTIMIZED_TRUE=
2095 ENABLE_OPTIMIZED_FALSE='#'
2097 ENABLE_OPTIMIZED_TRUE='#'
2098 ENABLE_OPTIMIZED_FALSE=
2102 # Check whether --enable-profiled or --disable-profiled was given.
2103 if test "${enable_profiled+set}" = set; then
2104 enableval="$enable_profiled"
2105 case "${withval}" in
2106 yes) ENABLE_PROFILED=1 ;;
2107 no) ENABLE_PROFILED=0 ;;
2108 "") ENABLE_PROFILED=0 ;;
2109 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-profiled" >&5
2110 echo "$as_me: error: bad value ${withval} for --enable-profiled" >&2;}
2111 { (exit 1); exit 1; }; } ;;
2116 ENABLE_PROFILED=$ENABLE_PROFILED
2120 if test $ENABLE_PROFILED = 1; then
2121 ENABLE_PROFILED_TRUE=
2122 ENABLE_PROFILED_FALSE='#'
2124 ENABLE_PROFILED_TRUE='#'
2125 ENABLE_PROFILED_FALSE=
2129 # Check whether --enable-jit or --disable-jit was given.
2130 if test "${enable_jit+set}" = set; then
2131 enableval="$enable_jit"
2137 if test ${enableval} = "no"
2143 *i*86*) JIT=TARGET_HAS_JIT=1
2145 *sparc*) JIT=TARGET_HAS_JIT=1
2153 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
2154 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
2156 *-*-aix*) llvm_platform_type="AIX" ;;
2157 *-*-cygwin*) llvm_platform_type="Cygwin" ;;
2158 *-*-darwin*) llvm_platform_type="Darwin" ;;
2159 *-*-freebsd*) llvm_platform_type="FreeBSD" ;;
2160 *-*-interix*) llvm_platform_type="Interix" ;;
2161 *-*-linux*) llvm_platform_type="Linux" ;;
2162 *-*-solaris*) llvm_platform_type="SunOS" ;;
2163 *-*-win32*) llvm_platform_type="Win32" ;;
2164 *-*-mingw*) llvm_platform_type="Win32" ;;
2166 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
2167 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
2168 { (exit 1); exit 1; }; }
2169 llvm_platform_type="Unknown"
2172 OS=$llvm_platform_type
2174 echo "$as_me:$LINENO: result: $llvm_platform_type" >&5
2175 echo "${ECHO_T}$llvm_platform_type" >&6
2177 echo "$as_me:$LINENO: checking target architecture" >&5
2178 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
2180 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
2185 i*86-*) ARCH="x86" ;;
2186 sparc*-*) ARCH="Sparc" ;;
2187 powerpc*-*) ARCH="PowerPC" ;;
2192 if test $ARCH = "x86"; then
2202 if test $ARCH = "Sparc"; then
2204 ARCH_SPARC_FALSE='#'
2212 if test $ARCH = "PowerPC"; then
2222 if test $ARCH = "Unknown"; then
2224 ARCH_UNKNOWN_FALSE='#'
2226 ARCH_UNKNOWN_TRUE='#'
2232 echo "$as_me:$LINENO: result: $ARCH" >&5
2233 echo "${ECHO_T}$ARCH" >&6
2235 DEPDIR="${am__leading_dot}deps"
2237 ac_config_commands="$ac_config_commands depfiles"
2240 am_make=${MAKE-make}
2241 cat > confinc << 'END'
2246 # If we don't find an include directive, just comment out the code.
2247 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2248 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2252 # First try GNU make style include.
2253 echo "include confinc" > confmf
2254 # We grep out `Entering directory' and `Leaving directory'
2255 # messages which can occur if `w' ends up in MAKEFLAGS.
2256 # In particular we don't look at `^make:' because GNU make might
2257 # be invoked under some other name (usually "gmake"), in which
2258 # case it prints its new name instead of `make'.
2259 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2264 # Now try BSD make style include.
2265 if test "$am__include" = "#"; then
2266 echo '.include "confinc"' > confmf
2267 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2268 am__include=.include
2275 echo "$as_me:$LINENO: result: $_am_result" >&5
2276 echo "${ECHO_T}$_am_result" >&6
2277 rm -f confinc confmf
2279 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2280 if test "${enable_dependency_tracking+set}" = set; then
2281 enableval="$enable_dependency_tracking"
2284 if test "x$enable_dependency_tracking" != xno; then
2285 am_depcomp="$ac_aux_dir/depcomp"
2290 if test "x$enable_dependency_tracking" != xno; then
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 if test -n "$CC"; then
2334 echo "$as_me:$LINENO: result: $CC" >&5
2335 echo "${ECHO_T}$CC" >&6
2337 echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6
2342 if test -z "$ac_cv_prog_CC"; then
2344 # Extract the first word of "gcc", so it can be a program name with args.
2345 set dummy gcc; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$ac_ct_CC"; then
2352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361 ac_cv_prog_ac_ct_CC="gcc"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2371 if test -n "$ac_ct_CC"; then
2372 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2373 echo "${ECHO_T}$ac_ct_CC" >&6
2375 echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2384 if test -z "$CC"; then
2385 if test -n "$ac_tool_prefix"; then
2386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2387 set dummy ${ac_tool_prefix}cc; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC="$CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403 ac_cv_prog_CC="${ac_tool_prefix}cc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test -n "$CC"; then
2414 echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6
2417 echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2422 if test -z "$ac_cv_prog_CC"; then
2424 # Extract the first word of "cc", so it can be a program name with args.
2425 set dummy cc; ac_word=$2
2426 echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -n "$ac_ct_CC"; then
2432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441 ac_cv_prog_ac_ct_CC="cc"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2451 if test -n "$ac_ct_CC"; then
2452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2453 echo "${ECHO_T}$ac_ct_CC" >&6
2455 echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2465 if test -z "$CC"; then
2466 # Extract the first word of "cc", so it can be a program name with args.
2467 set dummy cc; ac_word=$2
2468 echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485 ac_prog_rejected=yes
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 if test $ac_prog_rejected = yes; then
2496 # We found a bogon in the path, so make sure we never use it.
2497 set dummy $ac_cv_prog_CC
2499 if test $# != 0; then
2500 # We chose a different compiler from the bogus one.
2501 # However, it has the same basename, so the bogon will be chosen
2502 # first if we set CC to just the basename; use the full file name.
2504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2510 if test -n "$CC"; then
2511 echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6
2514 echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2519 if test -z "$CC"; then
2520 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2525 echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 if test -n "$CC"; then
2551 echo "$as_me:$LINENO: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6
2554 echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2558 test -n "$CC" && break
2561 if test -z "$CC"; then
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 ac_cv_prog_ac_ct_CC="$ac_prog"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2592 if test -n "$ac_ct_CC"; then
2593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2594 echo "${ECHO_T}$ac_ct_CC" >&6
2596 echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6
2600 test -n "$ac_ct_CC" && break
2609 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: no acceptable C compiler found in \$PATH
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2615 # Provide some information about the compiler.
2616 echo "$as_me:$LINENO:" \
2617 "checking for C compiler version" >&5
2618 ac_compiler=`set X $ac_compile; echo $2`
2619 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2620 (eval $ac_compiler --version </dev/null >&5) 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }
2624 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2625 (eval $ac_compiler -v </dev/null >&5) 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }
2629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2630 (eval $ac_compiler -V </dev/null >&5) 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }
2635 cat >conftest.$ac_ext <<_ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2650 ac_clean_files_save=$ac_clean_files
2651 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2652 # Try to create an executable without -o first, disregard a.out.
2653 # It will help us diagnose broken compilers, and finding out an intuition
2655 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2656 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2657 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2659 (eval $ac_link_default) 2>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; then
2663 # Find the output, starting from the most likely. This scheme is
2664 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2667 # Be careful to initialize this variable, since it used to be cached.
2668 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2670 # b.out is created by i960 compilers.
2671 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2673 test -f "$ac_file" || continue
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2678 # This is the source file.
2681 # We found the default executable, but exeext='' is most
2685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2686 # FIXME: I believe we export ac_cv_exeext for Libtool,
2687 # but it would be cool to find out if it's true. Does anybody
2688 # maintain Libtool? --akim.
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: C compiler cannot create executables
2702 See \`config.log' for more details." >&2;}
2703 { (exit 77); exit 77; }; }
2706 ac_exeext=$ac_cv_exeext
2707 echo "$as_me:$LINENO: result: $ac_file" >&5
2708 echo "${ECHO_T}$ac_file" >&6
2710 # Check the compiler produces executables we can run. If not, either
2711 # the compiler is broken, or we cross compile.
2712 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2713 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2714 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2715 # If not cross compiling, check that we can run a simple program.
2716 if test "$cross_compiling" != yes; then
2717 if { ac_try='./$ac_file'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2725 if test "$cross_compiling" = maybe; then
2728 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2729 If you meant to cross compile, use \`--host'.
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: cannot run C compiled programs.
2732 If you meant to cross compile, use \`--host'.
2733 See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2738 echo "$as_me:$LINENO: result: yes" >&5
2739 echo "${ECHO_T}yes" >&6
2741 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2742 ac_clean_files=$ac_clean_files_save
2743 # Check the compiler produces executables we can run. If not, either
2744 # the compiler is broken, or we cross compile.
2745 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2746 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2747 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2748 echo "${ECHO_T}$cross_compiling" >&6
2750 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2751 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2753 (eval $ac_link) 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; then
2757 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2758 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2759 # work properly (i.e., refer to `conftest.exe'), while it won't with
2761 for ac_file in conftest.exe conftest conftest.*; do
2762 test -f "$ac_file" || continue
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2765 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2773 See \`config.log' for more details." >&5
2774 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2775 See \`config.log' for more details." >&2;}
2776 { (exit 1); exit 1; }; }
2779 rm -f conftest$ac_cv_exeext
2780 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2781 echo "${ECHO_T}$ac_cv_exeext" >&6
2783 rm -f conftest.$ac_ext
2784 EXEEXT=$ac_cv_exeext
2786 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2787 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2788 if test "${ac_cv_objext+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 cat >conftest.$ac_ext <<_ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2806 rm -f conftest.o conftest.obj
2807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; then
2812 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2823 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2832 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2833 echo "${ECHO_T}$ac_cv_objext" >&6
2834 OBJEXT=$ac_cv_objext
2836 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2837 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 cat >conftest.$ac_ext <<_ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2863 grep -v '^ *+' conftest.er1 >conftest.err
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -z "$ac_c_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2892 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2893 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2894 GCC=`test $ac_compiler_gnu = yes && echo yes`
2895 ac_test_CFLAGS=${CFLAGS+set}
2896 ac_save_CFLAGS=$CFLAGS
2898 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2899 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2900 if test "${ac_cv_prog_cc_g+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2951 if test "$ac_test_CFLAGS" = set; then
2952 CFLAGS=$ac_save_CFLAGS
2953 elif test $ac_cv_prog_cc_g = yes; then
2954 if test "$GCC" = yes; then
2960 if test "$GCC" = yes; then
2966 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2967 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2968 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 ac_cv_prog_cc_stdc=no
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2981 #include <sys/types.h>
2982 #include <sys/stat.h>
2983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2984 struct buf { int x; };
2985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2986 static char *e (p, i)
2992 static char *f (char * (*g) (char **, int), char **p, ...)
2997 s = g (p, va_arg (v,int));
3002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3003 function prototypes and stuff, but not '\xHH' hex character constants.
3004 These don't provoke an error unfortunately, instead are silently treated
3005 as 'x'. The following induces an error, until -std1 is added to get
3006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3007 array size at least. It's necessary to write '\x00'==0 to get something
3008 that's true only with -std1. */
3009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3011 int test (int i, double x);
3012 struct s1 {int (*f) (int a);};
3013 struct s2 {int (*f) (double a);};
3014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3025 # Don't try gcc -ansi; that turns off useful extensions and
3026 # breaks some systems' header files.
3027 # AIX -qlanglvl=ansi
3028 # Ultrix and OSF/1 -std1
3029 # HP-UX 10.20 and later -Ae
3030 # HP-UX older versions -Aa -D_HPUX_SOURCE
3031 # SVR4 -Xc -D__EXTENSIONS__
3032 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3034 CC="$ac_save_CC $ac_arg"
3035 rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>conftest.er1
3039 grep -v '^ *+' conftest.er1 >conftest.err
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag"
3045 || test ! -s conftest.err'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_prog_cc_stdc=$ac_arg
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f conftest.err conftest.$ac_objext
3066 rm -f conftest.$ac_ext conftest.$ac_objext
3071 case "x$ac_cv_prog_cc_stdc" in
3073 echo "$as_me:$LINENO: result: none needed" >&5
3074 echo "${ECHO_T}none needed" >&6 ;;
3076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3077 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3078 CC="$CC $ac_cv_prog_cc_stdc" ;;
3081 # Some people use a C++ compiler to compile C. Since we use `exit',
3082 # in C++ we need to declare it. In case someone uses the same compiler
3083 # for both compiling C and C++ we need to have the C++ compiler decide
3084 # the declaration of exit, since it's the most demanding environment.
3085 cat >conftest.$ac_ext <<_ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_c_werror_flag"
3100 || test ! -s conftest.err'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 for ac_declaration in \
3114 'extern "C" void std::exit (int) throw (); using std::exit;' \
3115 'extern "C" void std::exit (int); using std::exit;' \
3116 'extern "C" void exit (int) throw ();' \
3117 'extern "C" void exit (int);' \
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag"
3146 || test ! -s conftest.err'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag"
3191 || test ! -s conftest.err'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3212 if test -n "$ac_declaration"; then
3213 echo '#ifdef __cplusplus' >>confdefs.h
3214 echo $ac_declaration >>confdefs.h
3215 echo '#endif' >>confdefs.h
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 depcc="$CC" am_compiler_list=
3232 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3233 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3234 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3238 # We make a subdir and do the tests there. Otherwise we can end up
3239 # making bogus files that we don't know about and never remove. For
3240 # instance it was reported that on HP-UX the gcc test will end up
3241 # making a dummy file named `D' -- because `-MD' means `put the output
3244 # Copy depcomp to subdir because otherwise we won't find it if we're
3245 # using a relative directory.
3246 cp "$am_depcomp" conftest.dir
3248 # We will build objects and dependencies in a subdirectory because
3249 # it helps to detect inapplicable dependency modes. For instance
3250 # both Tru64's cc and ICC support -MD to output dependencies as a
3251 # side effect of compilation, but ICC will put the dependencies in
3252 # the current directory while Tru64 will put them in the object
3256 am_cv_CC_dependencies_compiler_type=none
3257 if test "$am_compiler_list" = ""; then
3258 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3260 for depmode in $am_compiler_list; do
3261 # Setup a source with many dependencies, because some compilers
3262 # like to wrap large dependency lists on column 80 (with \), and
3263 # we should not choose a depcomp mode which is confused by this.
3265 # We need to recreate these files for each test, as the compiler may
3266 # overwrite some of them when testing with obscure command lines.
3267 # This happens at least with the AIX C compiler.
3269 for i in 1 2 3 4 5 6; do
3270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3272 # Solaris 8's {/usr,}/bin/sh.
3273 touch sub/conftst$i.h
3275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3279 # after this tag, mechanisms are not by side-effect, so they'll
3280 # only be used when explicitly requested
3281 if test "x$enable_dependency_tracking" = xyes; then
3289 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3290 # mode. It turns out that the SunPro C++ compiler does not properly
3291 # handle `-M -o', and we need to detect this.
3292 if depmode=$depmode \
3293 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3294 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3295 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3296 >/dev/null 2>conftest.err &&
3297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3298 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3300 # icc doesn't choke on unknown options, it will just issue warnings
3301 # or remarks (even with -Werror). So we grep stderr for any message
3302 # that says an option was ignored or not supported.
3303 # When given -MP, icc 7.0 and 7.1 complain thusly:
3304 # icc: Command line warning: ignoring option '-M'; no argument required
3305 # The diagnosis changed in icc 8.0:
3306 # icc: Command line remark: option '-MP' not supported
3307 if (grep 'ignoring option' conftest.err ||
3308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3309 am_cv_CC_dependencies_compiler_type=$depmode
3318 am_cv_CC_dependencies_compiler_type=none
3322 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3323 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3329 test "x$enable_dependency_tracking" != xno \
3330 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3332 am__fastdepCC_FALSE='#'
3334 am__fastdepCC_TRUE='#'
3335 am__fastdepCC_FALSE=
3340 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3341 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3342 if test "${ac_cv_c_bigendian+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 # See if sys/param.h defines the BYTE_ORDER macro.
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include <sys/types.h>
3353 #include <sys/param.h>
3358 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3366 rm -f conftest.$ac_objext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 # It does; now see whether it defined to BIG_ENDIAN or not.
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <sys/types.h>
3396 #include <sys/param.h>
3401 #if BYTE_ORDER != BIG_ENDIAN
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } &&
3418 { ac_try='test -z "$ac_c_werror_flag"
3419 || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_c_bigendian=yes
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_cv_c_bigendian=no
3438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # It does not; compile a test program.
3444 if test "$cross_compiling" = yes; then
3445 # try to guess the endianness by grepping values into an object file
3446 ac_cv_c_bigendian=unknown
3447 cat >conftest.$ac_ext <<_ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3454 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3455 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3456 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3457 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3458 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3462 _ascii (); _ebcdic ();
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469 (eval $ac_compile) 2>conftest.er1
3471 grep -v '^ *+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -z "$ac_c_werror_flag"
3477 || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3490 ac_cv_c_bigendian=yes
3492 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3493 if test "$ac_cv_c_bigendian" = unknown; then
3494 ac_cv_c_bigendian=no
3496 # finding both strings is unlikely to happen, but who knows?
3497 ac_cv_c_bigendian=unknown
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3516 /* Are we little or big endian? From Harbison&Steele. */
3520 char c[sizeof (long)];
3523 exit (u.c[sizeof (long) - 1] == 1);
3526 rm -f conftest$ac_exeext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3528 (eval $ac_link) 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_c_bigendian=no
3539 echo "$as_me: program exited with status $ac_status" >&5
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3544 ac_cv_c_bigendian=yes
3546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3552 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3553 case $ac_cv_c_bigendian in
3561 { { echo "$as_me:$LINENO: error: unknown endianness
3562 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3563 echo "$as_me: error: unknown endianness
3564 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3565 { (exit 1); exit 1; }; } ;;
3570 # Find a good install program. We prefer a C program (faster),
3571 # so one script is as good as another. But avoid the broken or
3572 # incompatible versions:
3573 # SysV /etc/install, /usr/sbin/install
3574 # SunOS /usr/etc/install
3575 # IRIX /sbin/install
3577 # AmigaOS /C/install, which installs bootblocks on floppy discs
3578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3581 # OS/2's system install, which has a completely different semantic
3582 # ./install, which can be erroneously created by make from ./install.sh.
3583 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585 if test -z "$INSTALL"; then
3586 if test "${ac_cv_path_install+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3596 ./ | .// | /cC/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607 if test $ac_prog = install &&
3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # AIX install. It has an incompatible calling convention.
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3628 if test "${ac_cv_path_install+set}" = set; then
3629 INSTALL=$ac_cv_path_install
3631 # As a last resort, use the slow shell script. We don't cache a
3632 # path for INSTALL within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the path is relative.
3635 INSTALL=$ac_install_sh
3638 echo "$as_me:$LINENO: result: $INSTALL" >&5
3639 echo "${ECHO_T}$INSTALL" >&6
3641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642 # It thinks the first close brace ends the variable substitution.
3643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3651 ac_cpp='$CXXCPP $CPPFLAGS'
3652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_prog_CXX+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 if test -n "$CXX"; then
3666 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 if test -n "$CXX"; then
3686 echo "$as_me:$LINENO: result: $CXX" >&5
3687 echo "${ECHO_T}$CXX" >&6
3689 echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3693 test -n "$CXX" && break
3696 if test -z "$CXX"; then
3698 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy $ac_prog; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 if test -n "$ac_ct_CXX"; then
3708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_CXX="$ac_prog"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3727 if test -n "$ac_ct_CXX"; then
3728 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3729 echo "${ECHO_T}$ac_ct_CXX" >&6
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3735 test -n "$ac_ct_CXX" && break
3737 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3743 # Provide some information about the compiler.
3744 echo "$as_me:$LINENO:" \
3745 "checking for C++ compiler version" >&5
3746 ac_compiler=`set X $ac_compile; echo $2`
3747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3748 (eval $ac_compiler --version </dev/null >&5) 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }
3752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3753 (eval $ac_compiler -v </dev/null >&5) 2>&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }
3757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3758 (eval $ac_compiler -V </dev/null >&5) 2>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }
3763 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3764 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3765 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_cxx_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3819 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3820 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3821 GXX=`test $ac_compiler_gnu = yes && echo yes`
3822 ac_test_CXXFLAGS=${CXXFLAGS+set}
3823 ac_save_CXXFLAGS=$CXXFLAGS
3825 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3826 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3827 if test "${ac_cv_prog_cxx_g+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_cxx_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_prog_cxx_g=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3877 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3878 if test "$ac_test_CXXFLAGS" = set; then
3879 CXXFLAGS=$ac_save_CXXFLAGS
3880 elif test $ac_cv_prog_cxx_g = yes; then
3881 if test "$GXX" = yes; then
3887 if test "$GXX" = yes; then
3893 for ac_declaration in \
3895 'extern "C" void std::exit (int) throw (); using std::exit;' \
3896 'extern "C" void std::exit (int); using std::exit;' \
3897 'extern "C" void exit (int) throw ();' \
3898 'extern "C" void exit (int);' \
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_cxx_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3962 rm -f conftest.$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>conftest.er1
3966 grep -v '^ *+' conftest.er1 >conftest.err
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -z "$ac_cxx_werror_flag"
3972 || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3993 if test -n "$ac_declaration"; then
3994 echo '#ifdef __cplusplus' >>confdefs.h
3995 echo $ac_declaration >>confdefs.h
3996 echo '#endif' >>confdefs.h
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 depcc="$CXX" am_compiler_list=
4007 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4008 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4009 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4013 # We make a subdir and do the tests there. Otherwise we can end up
4014 # making bogus files that we don't know about and never remove. For
4015 # instance it was reported that on HP-UX the gcc test will end up
4016 # making a dummy file named `D' -- because `-MD' means `put the output
4019 # Copy depcomp to subdir because otherwise we won't find it if we're
4020 # using a relative directory.
4021 cp "$am_depcomp" conftest.dir
4023 # We will build objects and dependencies in a subdirectory because
4024 # it helps to detect inapplicable dependency modes. For instance
4025 # both Tru64's cc and ICC support -MD to output dependencies as a
4026 # side effect of compilation, but ICC will put the dependencies in
4027 # the current directory while Tru64 will put them in the object
4031 am_cv_CXX_dependencies_compiler_type=none
4032 if test "$am_compiler_list" = ""; then
4033 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4035 for depmode in $am_compiler_list; do
4036 # Setup a source with many dependencies, because some compilers
4037 # like to wrap large dependency lists on column 80 (with \), and
4038 # we should not choose a depcomp mode which is confused by this.
4040 # We need to recreate these files for each test, as the compiler may
4041 # overwrite some of them when testing with obscure command lines.
4042 # This happens at least with the AIX C compiler.
4044 for i in 1 2 3 4 5 6; do
4045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4047 # Solaris 8's {/usr,}/bin/sh.
4048 touch sub/conftst$i.h
4050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4054 # after this tag, mechanisms are not by side-effect, so they'll
4055 # only be used when explicitly requested
4056 if test "x$enable_dependency_tracking" = xyes; then
4064 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle `-M -o', and we need to detect this.
4067 if depmode=$depmode \
4068 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4069 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4070 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4071 >/dev/null 2>conftest.err &&
4072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4073 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4075 # icc doesn't choke on unknown options, it will just issue warnings
4076 # or remarks (even with -Werror). So we grep stderr for any message
4077 # that says an option was ignored or not supported.
4078 # When given -MP, icc 7.0 and 7.1 complain thusly:
4079 # icc: Command line warning: ignoring option '-M'; no argument required
4080 # The diagnosis changed in icc 8.0:
4081 # icc: Command line remark: option '-MP' not supported
4082 if (grep 'ignoring option' conftest.err ||
4083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4084 am_cv_CXX_dependencies_compiler_type=$depmode
4093 am_cv_CXX_dependencies_compiler_type=none
4097 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4098 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4099 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4104 test "x$enable_dependency_tracking" != xno \
4105 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4106 am__fastdepCXX_TRUE=
4107 am__fastdepCXX_FALSE='#'
4109 am__fastdepCXX_TRUE='#'
4110 am__fastdepCXX_FALSE=
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_CC+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 if test -n "$CC"; then
4150 echo "$as_me:$LINENO: result: $CC" >&5
4151 echo "${ECHO_T}$CC" >&6
4153 echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4157 test -n "$CC" && break
4160 if test -z "$CC"; then
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 if test -n "$ac_ct_CC"; then
4172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_ac_ct_CC="$ac_prog"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191 if test -n "$ac_ct_CC"; then
4192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4193 echo "${ECHO_T}$ac_ct_CC" >&6
4195 echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4199 test -n "$ac_ct_CC" && break
4206 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4207 See \`config.log' for more details." >&5
4208 echo "$as_me: error: no acceptable C compiler found in \$PATH
4209 See \`config.log' for more details." >&2;}
4210 { (exit 1); exit 1; }; }
4212 # Provide some information about the compiler.
4213 echo "$as_me:$LINENO:" \
4214 "checking for C compiler version" >&5
4215 ac_compiler=`set X $ac_compile; echo $2`
4216 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4217 (eval $ac_compiler --version </dev/null >&5) 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }
4221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4222 (eval $ac_compiler -v </dev/null >&5) 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }
4226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4227 (eval $ac_compiler -V </dev/null >&5) 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }
4232 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4233 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4234 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 cat >conftest.$ac_ext <<_ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>conftest.er1
4259 grep -v '^ *+' conftest.er1 >conftest.err
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag"
4265 || test ! -s conftest.err'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4288 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4289 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4290 GCC=`test $ac_compiler_gnu = yes && echo yes`
4291 ac_test_CFLAGS=${CFLAGS+set}
4292 ac_save_CFLAGS=$CFLAGS
4294 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4295 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4296 if test "${ac_cv_prog_cc_g+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4314 rm -f conftest.$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316 (eval $ac_compile) 2>conftest.er1
4318 grep -v '^ *+' conftest.er1 >conftest.err
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag"
4324 || test ! -s conftest.err'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4347 if test "$ac_test_CFLAGS" = set; then
4348 CFLAGS=$ac_save_CFLAGS
4349 elif test $ac_cv_prog_cc_g = yes; then
4350 if test "$GCC" = yes; then
4356 if test "$GCC" = yes; then
4362 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4363 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4364 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 ac_cv_prog_cc_stdc=no
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4377 #include <sys/types.h>
4378 #include <sys/stat.h>
4379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4380 struct buf { int x; };
4381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4382 static char *e (p, i)
4388 static char *f (char * (*g) (char **, int), char **p, ...)
4393 s = g (p, va_arg (v,int));
4398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4399 function prototypes and stuff, but not '\xHH' hex character constants.
4400 These don't provoke an error unfortunately, instead are silently treated
4401 as 'x'. The following induces an error, until -std1 is added to get
4402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4403 array size at least. It's necessary to write '\x00'==0 to get something
4404 that's true only with -std1. */
4405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4407 int test (int i, double x);
4408 struct s1 {int (*f) (int a);};
4409 struct s2 {int (*f) (double a);};
4410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4421 # Don't try gcc -ansi; that turns off useful extensions and
4422 # breaks some systems' header files.
4423 # AIX -qlanglvl=ansi
4424 # Ultrix and OSF/1 -std1
4425 # HP-UX 10.20 and later -Ae
4426 # HP-UX older versions -Aa -D_HPUX_SOURCE
4427 # SVR4 -Xc -D__EXTENSIONS__
4428 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4430 CC="$ac_save_CC $ac_arg"
4431 rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4435 grep -v '^ *+' conftest.er1 >conftest.err
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_cv_prog_cc_stdc=$ac_arg
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4460 rm -f conftest.err conftest.$ac_objext
4462 rm -f conftest.$ac_ext conftest.$ac_objext
4467 case "x$ac_cv_prog_cc_stdc" in
4469 echo "$as_me:$LINENO: result: none needed" >&5
4470 echo "${ECHO_T}none needed" >&6 ;;
4472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4474 CC="$CC $ac_cv_prog_cc_stdc" ;;
4477 # Some people use a C++ compiler to compile C. Since we use `exit',
4478 # in C++ we need to declare it. In case someone uses the same compiler
4479 # for both compiling C and C++ we need to have the C++ compiler decide
4480 # the declaration of exit, since it's the most demanding environment.
4481 cat >conftest.$ac_ext <<_ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 for ac_declaration in \
4510 'extern "C" void std::exit (int) throw (); using std::exit;' \
4511 'extern "C" void std::exit (int); using std::exit;' \
4512 'extern "C" void exit (int) throw ();' \
4513 'extern "C" void exit (int);' \
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 cat >conftest.$ac_ext <<_ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -z "$ac_c_werror_flag"
4587 || test ! -s conftest.err'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608 if test -n "$ac_declaration"; then
4609 echo '#ifdef __cplusplus' >>confdefs.h
4610 echo $ac_declaration >>confdefs.h
4611 echo '#endif' >>confdefs.h
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626 depcc="$CC" am_compiler_list=
4628 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4629 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4630 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4634 # We make a subdir and do the tests there. Otherwise we can end up
4635 # making bogus files that we don't know about and never remove. For
4636 # instance it was reported that on HP-UX the gcc test will end up
4637 # making a dummy file named `D' -- because `-MD' means `put the output
4640 # Copy depcomp to subdir because otherwise we won't find it if we're
4641 # using a relative directory.
4642 cp "$am_depcomp" conftest.dir
4644 # We will build objects and dependencies in a subdirectory because
4645 # it helps to detect inapplicable dependency modes. For instance
4646 # both Tru64's cc and ICC support -MD to output dependencies as a
4647 # side effect of compilation, but ICC will put the dependencies in
4648 # the current directory while Tru64 will put them in the object
4652 am_cv_CC_dependencies_compiler_type=none
4653 if test "$am_compiler_list" = ""; then
4654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4656 for depmode in $am_compiler_list; do
4657 # Setup a source with many dependencies, because some compilers
4658 # like to wrap large dependency lists on column 80 (with \), and
4659 # we should not choose a depcomp mode which is confused by this.
4661 # We need to recreate these files for each test, as the compiler may
4662 # overwrite some of them when testing with obscure command lines.
4663 # This happens at least with the AIX C compiler.
4665 for i in 1 2 3 4 5 6; do
4666 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4667 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4668 # Solaris 8's {/usr,}/bin/sh.
4669 touch sub/conftst$i.h
4671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4675 # after this tag, mechanisms are not by side-effect, so they'll
4676 # only be used when explicitly requested
4677 if test "x$enable_dependency_tracking" = xyes; then
4685 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4686 # mode. It turns out that the SunPro C++ compiler does not properly
4687 # handle `-M -o', and we need to detect this.
4688 if depmode=$depmode \
4689 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4690 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4691 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4692 >/dev/null 2>conftest.err &&
4693 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4694 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4695 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4696 # icc doesn't choke on unknown options, it will just issue warnings
4697 # or remarks (even with -Werror). So we grep stderr for any message
4698 # that says an option was ignored or not supported.
4699 # When given -MP, icc 7.0 and 7.1 complain thusly:
4700 # icc: Command line warning: ignoring option '-M'; no argument required
4701 # The diagnosis changed in icc 8.0:
4702 # icc: Command line remark: option '-MP' not supported
4703 if (grep 'ignoring option' conftest.err ||
4704 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4705 am_cv_CC_dependencies_compiler_type=$depmode
4714 am_cv_CC_dependencies_compiler_type=none
4718 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4719 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4720 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4725 test "x$enable_dependency_tracking" != xno \
4726 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4728 am__fastdepCC_FALSE='#'
4730 am__fastdepCC_TRUE='#'
4731 am__fastdepCC_FALSE=
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4742 # On Suns, sometimes $CPP names a directory.
4743 if test -n "$CPP" && test -d "$CPP"; then
4746 if test -z "$CPP"; then
4747 if test "${ac_cv_prog_CPP+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 # Double quotes because CPP needs to be expanded
4751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4754 for ac_c_preproc_warn_flag in '' yes
4756 # Use a header file that comes with gcc, so configuring glibc
4757 # with a fresh cross-compiler works.
4758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759 # <limits.h> exists even on freestanding compilers.
4760 # On the NeXT, cc -E runs the code through the compiler's parser,
4761 # not just through cpp. "Syntax error" is here to catch this case.
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4769 # include <limits.h>
4771 # include <assert.h>
4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } >/dev/null; then
4783 if test -s conftest.err; then
4784 ac_cpp_err=$ac_c_preproc_warn_flag
4785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4792 if test -z "$ac_cpp_err"; then
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 # Broken: fails on valid input.
4801 rm -f conftest.err conftest.$ac_ext
4803 # OK, works on sane cases. Now check whether non-existent headers
4804 # can be detected and how.
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #include <ac_nonexistent.h>
4813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } >/dev/null; then
4821 if test -s conftest.err; then
4822 ac_cpp_err=$ac_c_preproc_warn_flag
4823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4830 if test -z "$ac_cpp_err"; then
4831 # Broken: success on invalid input.
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 # Passes both tests.
4841 rm -f conftest.err conftest.$ac_ext
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then
4858 echo "$as_me:$LINENO: result: $CPP" >&5
4859 echo "${ECHO_T}$CPP" >&6
4861 for ac_c_preproc_warn_flag in '' yes
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat >conftest.$ac_ext <<_ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4876 # include <limits.h>
4878 # include <assert.h>
4882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
4892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4899 if test -z "$ac_cpp_err"; then
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 # Broken: fails on valid input.
4908 rm -f conftest.err conftest.$ac_ext
4910 # OK, works on sane cases. Now check whether non-existent headers
4911 # can be detected and how.
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <ac_nonexistent.h>
4920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4923 grep -v '^ *+' conftest.er1 >conftest.err
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } >/dev/null; then
4928 if test -s conftest.err; then
4929 ac_cpp_err=$ac_c_preproc_warn_flag
4930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4937 if test -z "$ac_cpp_err"; then
4938 # Broken: success on invalid input.
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 # Passes both tests.
4948 rm -f conftest.err conftest.$ac_ext
4951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952 rm -f conftest.err conftest.$ac_ext
4953 if $ac_preproc_ok; then
4956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4957 See \`config.log' for more details." >&5
4958 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4959 See \`config.log' for more details." >&2;}
4960 { (exit 1); exit 1; }; }
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 echo "$as_me:$LINENO: checking " >&5
4971 echo $ECHO_N "checking ... $ECHO_C" >&6
4972 if test "${ac_cv_has_flex+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 for ac_prog in flex lex
4977 # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981 if test "${ac_cv_prog_LEX+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 if test -n "$LEX"; then
4985 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_prog_LEX="$ac_prog"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 if test -n "$LEX"; then
5005 echo "$as_me:$LINENO: result: $LEX" >&5
5006 echo "${ECHO_T}$LEX" >&6
5008 echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6
5012 test -n "$LEX" && break
5014 test -n "$LEX" || LEX=":"
5016 if test -z "$LEXLIB"
5018 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5019 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5020 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 ac_check_lib_save_LIBS=$LIBS
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 /* Override any gcc2 internal prototype to avoid an error. */
5036 /* We use char because int might match the return type of a gcc2
5037 builtin and then its argument prototype would still apply. */
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049 (eval $ac_link) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -z "$ac_c_werror_flag"
5057 || test ! -s conftest.err'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; } &&
5063 { ac_try='test -s conftest$ac_exeext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_cv_lib_fl_yywrap=yes
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 ac_cv_lib_fl_yywrap=no
5076 rm -f conftest.err conftest.$ac_objext \
5077 conftest$ac_exeext conftest.$ac_ext
5078 LIBS=$ac_check_lib_save_LIBS
5080 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5081 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5082 if test $ac_cv_lib_fl_yywrap = yes; then
5085 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5086 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5087 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 ac_check_lib_save_LIBS=$LIBS
5092 cat >conftest.$ac_ext <<_ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5114 rm -f conftest.$ac_objext conftest$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_lib_l_yywrap=yes
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_cv_lib_l_yywrap=no
5143 rm -f conftest.err conftest.$ac_objext \
5144 conftest$ac_exeext conftest.$ac_ext
5145 LIBS=$ac_check_lib_save_LIBS
5147 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5148 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5149 if test $ac_cv_lib_l_yywrap = yes; then
5157 if test "x$LEX" != "x:"; then
5158 echo "$as_me:$LINENO: checking lex output file root" >&5
5159 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5160 if test "${ac_cv_prog_lex_root+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 # The minimal lex program is just a single line: %%. But some broken lexes
5164 # (Solaris, I think it was) want two %% lines, so accommodate them.
5165 cat >conftest.l <<_ACEOF
5169 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5170 (eval $LEX conftest.l) 2>&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }
5174 if test -f lex.yy.c; then
5175 ac_cv_prog_lex_root=lex.yy
5176 elif test -f lexyy.c; then
5177 ac_cv_prog_lex_root=lexyy
5179 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5180 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5181 { (exit 1); exit 1; }; }
5184 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5185 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5187 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5189 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5190 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5191 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 # POSIX says lex can declare yytext either as a pointer or an array; the
5195 # default is implementation-dependent. Figure out which it is, since
5196 # not all implementations provide the %pointer and %array declarations.
5197 ac_cv_prog_lex_yytext_pointer=no
5198 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5200 LIBS="$LIBS $LEXLIB"
5201 cat >conftest.$ac_ext <<_ACEOF
5202 `cat $LEX_OUTPUT_ROOT.c`
5204 rm -f conftest.$ac_objext conftest$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_prog_lex_yytext_pointer=yes
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5232 rm -f conftest.err conftest.$ac_objext \
5233 conftest$ac_exeext conftest.$ac_ext
5235 rm -f "${LEX_OUTPUT_ROOT}.c"
5238 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5239 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5240 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5242 cat >>confdefs.h <<\_ACEOF
5243 #define YYTEXT_POINTER 1
5251 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
5252 echo "${ECHO_T}$ac_cv_has_flex" >&6
5253 if test "$LEX" != "flex"; then
5254 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
5255 echo "$as_me: error: flex not found but required" >&2;}
5256 { (exit 1); exit 1; }; }
5262 echo "$as_me:$LINENO: checking " >&5
5263 echo $ECHO_N "checking ... $ECHO_C" >&6
5264 if test "${ac_cv_has_bison+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 for ac_prog in 'bison -y' byacc
5269 # Extract the first word of "$ac_prog", so it can be a program name with args.
5270 set dummy $ac_prog; ac_word=$2
5271 echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273 if test "${ac_cv_prog_YACC+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 if test -n "$YACC"; then
5277 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_YACC="$ac_prog"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 YACC=$ac_cv_prog_YACC
5296 if test -n "$YACC"; then
5297 echo "$as_me:$LINENO: result: $YACC" >&5
5298 echo "${ECHO_T}$YACC" >&6
5300 echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5304 test -n "$YACC" && break
5306 test -n "$YACC" || YACC="yacc"
5310 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
5311 echo "${ECHO_T}$ac_cv_has_bison" >&6
5312 if test "$YACC" != "bison -y"; then
5313 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
5314 echo "$as_me: error: bison not found but required" >&2;}
5315 { (exit 1); exit 1; }; }
5321 # Check whether --enable-shared or --disable-shared was given.
5322 if test "${enable_shared+set}" = set; then
5323 enableval="$enable_shared"
5324 p=${PACKAGE-default}
5326 yes) enable_shared=yes ;;
5327 no) enable_shared=no ;;
5330 # Look at the argument we got. We use all the common list separators.
5331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5332 for pkg in $enableval; do
5334 if test "X$pkg" = "X$p"; then
5345 # Check whether --enable-static or --disable-static was given.
5346 if test "${enable_static+set}" = set; then
5347 enableval="$enable_static"
5348 p=${PACKAGE-default}
5350 yes) enable_static=yes ;;
5351 no) enable_static=no ;;
5354 # Look at the argument we got. We use all the common list separators.
5355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5356 for pkg in $enableval; do
5358 if test "X$pkg" = "X$p"; then
5369 # Check whether --enable-fast-install or --disable-fast-install was given.
5370 if test "${enable_fast_install+set}" = set; then
5371 enableval="$enable_fast_install"
5372 p=${PACKAGE-default}
5374 yes) enable_fast_install=yes ;;
5375 no) enable_fast_install=no ;;
5377 enable_fast_install=no
5378 # Look at the argument we got. We use all the common list separators.
5379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5380 for pkg in $enableval; do
5382 if test "X$pkg" = "X$p"; then
5383 enable_fast_install=yes
5390 enable_fast_install=yes
5393 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5394 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5395 if test "${lt_cv_path_SED+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 # Loop through the user's path and test for sed and gsed.
5399 # Then use that list of sed's as ones to test for truncation.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for lt_ac_prog in sed gsed; do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5408 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5415 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5416 # along with /bin/sed that truncates output.
5417 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5418 test ! -f $lt_ac_sed && break
5419 cat /dev/null > conftest.in
5421 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5422 # Check for GNU sed and select it if it is found.
5423 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5424 lt_cv_path_SED=$lt_ac_sed
5428 cat conftest.in conftest.in >conftest.tmp
5429 mv conftest.tmp conftest.in
5430 cp conftest.in conftest.nl
5432 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5433 cmp -s conftest.out conftest.nl || break
5434 # 10000 chars as input seems more than enough
5435 test $lt_ac_count -gt 10 && break
5436 lt_ac_count=`expr $lt_ac_count + 1`
5437 if test $lt_ac_count -gt $lt_ac_max; then
5438 lt_ac_max=$lt_ac_count
5439 lt_cv_path_SED=$lt_ac_sed
5447 echo "$as_me:$LINENO: result: $SED" >&5
5448 echo "${ECHO_T}$SED" >&6
5450 echo "$as_me:$LINENO: checking for egrep" >&5
5451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5452 if test "${ac_cv_prog_egrep+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5456 then ac_cv_prog_egrep='grep -E'
5457 else ac_cv_prog_egrep='egrep'
5460 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5461 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5462 EGREP=$ac_cv_prog_egrep
5466 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5467 if test "${with_gnu_ld+set}" = set; then
5468 withval="$with_gnu_ld"
5469 test "$withval" = no || with_gnu_ld=yes
5474 if test "$GCC" = yes; then
5475 # Check if gcc -print-prog-name=ld gives a path.
5476 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5477 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5480 # gcc leaves a trailing carriage return which upsets mingw
5481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5486 # Accept absolute paths.
5488 re_direlt='/[^/][^/]*/\.\./'
5489 # Canonicalize the pathname of ld
5490 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5491 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5492 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5494 test -z "$LD" && LD="$ac_prog"
5497 # If it fails, then pretend we aren't using GCC.
5501 # If it is relative, then search for the first ld in PATH.
5505 elif test "$with_gnu_ld" = yes; then
5506 echo "$as_me:$LINENO: checking for GNU ld" >&5
5507 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5509 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5510 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5512 if test "${lt_cv_path_LD+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 if test -z "$LD"; then
5516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5517 for ac_dir in $PATH; do
5519 test -z "$ac_dir" && ac_dir=.
5520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5521 lt_cv_path_LD="$ac_dir/$ac_prog"
5522 # Check to see if the program is GNU ld. I'd rather use --version,
5523 # but apparently some GNU ld's only accept -v.
5524 # Break only if it was the GNU/non-GNU ld that we prefer.
5525 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5526 *GNU* | *'with BFD'*)
5527 test "$with_gnu_ld" != no && break
5530 test "$with_gnu_ld" != yes && break
5537 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5542 if test -n "$LD"; then
5543 echo "$as_me:$LINENO: result: $LD" >&5
5544 echo "${ECHO_T}$LD" >&6
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5549 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5550 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5551 { (exit 1); exit 1; }; }
5552 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5553 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5554 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5558 case `$LD -v 2>&1 </dev/null` in
5559 *GNU* | *'with BFD'*)
5560 lt_cv_prog_gnu_ld=yes
5563 lt_cv_prog_gnu_ld=no
5567 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5568 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5569 with_gnu_ld=$lt_cv_prog_gnu_ld
5572 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5573 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5574 if test "${lt_cv_ld_reload_flag+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 lt_cv_ld_reload_flag='-r'
5579 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5580 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5581 reload_flag=$lt_cv_ld_reload_flag
5582 case $reload_flag in
5584 *) reload_flag=" $reload_flag" ;;
5586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5589 if test "$GCC" = yes; then
5590 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5592 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5597 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5598 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5599 if test "${lt_cv_path_NM+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 if test -n "$NM"; then
5603 # Let the user override the test.
5606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5607 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5609 test -z "$ac_dir" && ac_dir=.
5610 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5611 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5612 # Check to see if the nm accepts a BSD-compat flag.
5613 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5614 # nm: unknown option "B" ignored
5615 # Tru64's nm complains that /dev/null is an invalid object file
5616 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5617 */dev/null* | *'Invalid file or object type'*)
5618 lt_cv_path_NM="$tmp_nm -B"
5622 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5624 lt_cv_path_NM="$tmp_nm -p"
5628 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5629 continue # so that we can try to find one that supports BSD flags
5636 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5639 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5640 echo "${ECHO_T}$lt_cv_path_NM" >&6
5643 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5646 if test "$LN_S" = "ln -s"; then
5647 echo "$as_me:$LINENO: result: yes" >&5
5648 echo "${ECHO_T}yes" >&6
5650 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5651 echo "${ECHO_T}no, using $LN_S" >&6
5654 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5655 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5656 if test "${lt_cv_deplibs_check_method+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 lt_cv_file_magic_cmd='$MAGIC_CMD'
5660 lt_cv_file_magic_test_file=
5661 lt_cv_deplibs_check_method='unknown'
5662 # Need to set the preceding variable on all platforms that support
5663 # interlibrary dependencies.
5664 # 'none' -- dependencies not supported.
5665 # `unknown' -- same as none, but documents that we really don't know.
5666 # 'pass_all' -- all dependencies passed with no checks.
5667 # 'test_compile' -- check by making test program.
5668 # 'file_magic [[regex]]' -- check by looking for files in library path
5669 # which responds to the $file_magic_cmd with a given extended regex.
5670 # If you have `file' or equivalent on your system and you're not sure
5671 # whether `pass_all' will *always* work, you probably want this one.
5675 lt_cv_deplibs_check_method=pass_all
5679 lt_cv_deplibs_check_method=pass_all
5683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5684 lt_cv_file_magic_cmd='/usr/bin/file -L'
5685 lt_cv_file_magic_test_file=/shlib/libc.so
5689 # func_win32_libid is a shell function defined in ltmain.sh
5690 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5691 lt_cv_file_magic_cmd='func_win32_libid'
5695 # Base MSYS/MinGW do not provide the 'file' command needed by
5696 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5697 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5698 lt_cv_file_magic_cmd='$OBJDUMP -f'
5701 darwin* | rhapsody*)
5702 lt_cv_deplibs_check_method=pass_all
5705 freebsd* | kfreebsd*-gnu)
5706 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5709 # Not sure whether the presence of OpenBSD here was a mistake.
5710 # Let's accept both of them until this is cleared up.
5711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5712 lt_cv_file_magic_cmd=/usr/bin/file
5713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5717 lt_cv_deplibs_check_method=pass_all
5722 lt_cv_deplibs_check_method=pass_all
5725 hpux10.20* | hpux11*)
5726 lt_cv_file_magic_cmd=/usr/bin/file
5729 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5730 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5733 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]'
5734 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5738 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5743 irix5* | irix6* | nonstopux*)
5745 *-32|*"-32 ") libmagic=32-bit;;
5746 *-n32|*"-n32 ") libmagic=N32;;
5747 *-64|*"-64 ") libmagic=64-bit;;
5748 *) libmagic=never-match;;
5750 lt_cv_deplibs_check_method=pass_all
5753 # This must be Linux ELF.
5755 lt_cv_deplibs_check_method=pass_all
5759 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5768 lt_cv_file_magic_cmd=/usr/bin/file
5769 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5773 lt_cv_deplibs_check_method=unknown
5777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5784 osf3* | osf4* | osf5*)
5785 lt_cv_deplibs_check_method=pass_all
5789 lt_cv_deplibs_check_method=pass_all
5793 lt_cv_deplibs_check_method=pass_all
5796 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5797 case $host_vendor in
5799 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]'
5800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5803 lt_cv_deplibs_check_method=pass_all
5806 lt_cv_file_magic_cmd='/bin/file'
5807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5810 lt_cv_file_magic_cmd='/bin/file'
5811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5812 lt_cv_file_magic_test_file=/lib/libc.so
5815 lt_cv_deplibs_check_method=pass_all
5820 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5821 lt_cv_deplibs_check_method=pass_all
5826 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5827 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5828 file_magic_cmd=$lt_cv_file_magic_cmd
5829 deplibs_check_method=$lt_cv_deplibs_check_method
5830 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5835 # If no C compiler was specified, use CC.
5838 # Allow CC to be a program name with arguments.
5841 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5842 if test "${enable_libtool_lock+set}" = set; then
5843 enableval="$enable_libtool_lock"
5846 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5848 # Some flags need to be propagated to the compiler or linker for good
5852 # Find out which ABI we are using.
5853 echo 'int i;' > conftest.$ac_ext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; then
5859 case `/usr/bin/file conftest.$ac_objext` in
5871 # Find out which ABI we are using.
5872 echo '#line 5872 "configure"' > conftest.$ac_ext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; then
5878 if test "$lt_cv_prog_gnu_ld" = yes; then
5879 case `/usr/bin/file conftest.$ac_objext` in
5881 LD="${LD-ld} -melf32bsmip"
5884 LD="${LD-ld} -melf32bmipn32"
5887 LD="${LD-ld} -melf64bmip"
5891 case `/usr/bin/file conftest.$ac_objext` in
5907 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5908 # Find out which ABI we are using.
5909 echo 'int i;' > conftest.$ac_ext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; then
5915 case "`/usr/bin/file conftest.o`" in
5919 LD="${LD-ld} -m elf_i386"
5921 ppc64-*linux*|powerpc64-*linux*)
5922 LD="${LD-ld} -m elf32ppclinux"
5925 LD="${LD-ld} -m elf_s390"
5928 LD="${LD-ld} -m elf32_sparc"
5935 LD="${LD-ld} -m elf_x86_64"
5937 ppc*-*linux*|powerpc*-*linux*)
5938 LD="${LD-ld} -m elf64ppc"
5941 LD="${LD-ld} -m elf64_s390"
5944 LD="${LD-ld} -m elf64_sparc"
5954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5955 SAVE_CFLAGS="$CFLAGS"
5956 CFLAGS="$CFLAGS -belf"
5957 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5958 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5959 if test "${lt_cv_cc_needs_belf+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 ac_cpp='$CPP $CPPFLAGS'
5964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 lt_cv_cc_needs_belf=yes
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 lt_cv_cc_needs_belf=no
6012 rm -f conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6022 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6023 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6024 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6025 CFLAGS="$SAVE_CFLAGS"
6031 need_locks="$enable_libtool_lock"
6035 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6037 if test "${ac_cv_header_stdc+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 cat >conftest.$ac_ext <<_ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_header_stdc=yes
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_cv_header_stdc=no
6088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6090 if test $ac_cv_header_stdc = yes; then
6091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6092 cat >conftest.$ac_ext <<_ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6102 $EGREP "memchr" >/dev/null 2>&1; then
6105 ac_cv_header_stdc=no
6111 if test $ac_cv_header_stdc = yes; then
6112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6113 cat >conftest.$ac_ext <<_ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "free" >/dev/null 2>&1; then
6126 ac_cv_header_stdc=no
6132 if test $ac_cv_header_stdc = yes; then
6133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6134 if test "$cross_compiling" = yes; then
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6144 #if ((' ' & 0x0FF) == 0x020)
6145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6148 # define ISLOWER(c) \
6149 (('a' <= (c) && (c) <= 'i') \
6150 || ('j' <= (c) && (c) <= 'r') \
6151 || ('s' <= (c) && (c) <= 'z'))
6152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6160 for (i = 0; i < 256; i++)
6161 if (XOR (islower (i), ISLOWER (i))
6162 || toupper (i) != TOUPPER (i))
6167 rm -f conftest$ac_exeext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169 (eval $ac_link) 2>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6180 echo "$as_me: program exited with status $ac_status" >&5
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6185 ac_cv_header_stdc=no
6187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6192 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6193 if test $ac_cv_header_stdc = yes; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define STDC_HEADERS 1
6201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6212 inttypes.h stdint.h unistd.h
6214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 echo "$as_me:$LINENO: checking for $ac_header" >&5
6216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6228 #include <$ac_header>
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 eval "$as_ac_Header=yes"
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 eval "$as_ac_Header=no"
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6274 for ac_header in dlfcn.h
6276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6278 echo "$as_me:$LINENO: checking for $ac_header" >&5
6279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6286 # Is the header compilable?
6287 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6289 cat >conftest.$ac_ext <<_ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 $ac_includes_default
6296 #include <$ac_header>
6298 rm -f conftest.$ac_objext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_c_werror_flag"
6308 || test ! -s conftest.err'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_header_compiler=yes
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 ac_header_compiler=no
6327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6329 echo "${ECHO_T}$ac_header_compiler" >&6
6331 # Is the header present?
6332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <$ac_header>
6342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } >/dev/null; then
6350 if test -s conftest.err; then
6351 ac_cpp_err=$ac_c_preproc_warn_flag
6352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6359 if test -z "$ac_cpp_err"; then
6360 ac_header_preproc=yes
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_header_preproc=no
6367 rm -f conftest.err conftest.$ac_ext
6368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369 echo "${ECHO_T}$ac_header_preproc" >&6
6371 # So? What about this header?
6372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6378 ac_header_preproc=yes
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6395 ## ----------------------------------- ##
6396 ## Report this to llvmbugs@cs.uiuc.edu ##
6397 ## ----------------------------------- ##
6400 sed "s/^/$as_me: WARNING: /" >&2
6403 echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 eval "$as_ac_Header=\$ac_header_preproc"
6410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6415 cat >>confdefs.h <<_ACEOF
6416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6426 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6427 (test "X$CXX" != "Xg++"))) ; then
6429 ac_cpp='$CXXCPP $CPPFLAGS'
6430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6433 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6434 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6435 if test -z "$CXXCPP"; then
6436 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 # Double quotes because CXXCPP needs to be expanded
6440 for CXXCPP in "$CXX -E" "/lib/cpp"
6443 for ac_cxx_preproc_warn_flag in '' yes
6445 # Use a header file that comes with gcc, so configuring glibc
6446 # with a fresh cross-compiler works.
6447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448 # <limits.h> exists even on freestanding compilers.
6449 # On the NeXT, cc -E runs the code through the compiler's parser,
6450 # not just through cpp. "Syntax error" is here to catch this case.
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6458 # include <limits.h>
6460 # include <assert.h>
6464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } >/dev/null; then
6472 if test -s conftest.err; then
6473 ac_cpp_err=$ac_cxx_preproc_warn_flag
6474 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6481 if test -z "$ac_cpp_err"; then
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 # Broken: fails on valid input.
6490 rm -f conftest.err conftest.$ac_ext
6492 # OK, works on sane cases. Now check whether non-existent headers
6493 # can be detected and how.
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <ac_nonexistent.h>
6502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } >/dev/null; then
6510 if test -s conftest.err; then
6511 ac_cpp_err=$ac_cxx_preproc_warn_flag
6512 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6519 if test -z "$ac_cpp_err"; then
6520 # Broken: success on invalid input.
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 # Passes both tests.
6530 rm -f conftest.err conftest.$ac_ext
6533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6534 rm -f conftest.err conftest.$ac_ext
6535 if $ac_preproc_ok; then
6540 ac_cv_prog_CXXCPP=$CXXCPP
6543 CXXCPP=$ac_cv_prog_CXXCPP
6545 ac_cv_prog_CXXCPP=$CXXCPP
6547 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6548 echo "${ECHO_T}$CXXCPP" >&6
6550 for ac_cxx_preproc_warn_flag in '' yes
6552 # Use a header file that comes with gcc, so configuring glibc
6553 # with a fresh cross-compiler works.
6554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6555 # <limits.h> exists even on freestanding compilers.
6556 # On the NeXT, cc -E runs the code through the compiler's parser,
6557 # not just through cpp. "Syntax error" is here to catch this case.
6558 cat >conftest.$ac_ext <<_ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6565 # include <limits.h>
6567 # include <assert.h>
6571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } >/dev/null; then
6579 if test -s conftest.err; then
6580 ac_cpp_err=$ac_cxx_preproc_warn_flag
6581 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6588 if test -z "$ac_cpp_err"; then
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 # Broken: fails on valid input.
6597 rm -f conftest.err conftest.$ac_ext
6599 # OK, works on sane cases. Now check whether non-existent headers
6600 # can be detected and how.
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <ac_nonexistent.h>
6609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612 grep -v '^ *+' conftest.er1 >conftest.err
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } >/dev/null; then
6617 if test -s conftest.err; then
6618 ac_cpp_err=$ac_cxx_preproc_warn_flag
6619 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6626 if test -z "$ac_cpp_err"; then
6627 # Broken: success on invalid input.
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 # Passes both tests.
6637 rm -f conftest.err conftest.$ac_ext
6640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6641 rm -f conftest.err conftest.$ac_ext
6642 if $ac_preproc_ok; then
6645 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6646 See \`config.log' for more details." >&5
6647 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6648 See \`config.log' for more details." >&2;}
6649 { (exit 1); exit 1; }; }
6653 ac_cpp='$CXXCPP $CPPFLAGS'
6654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6662 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6663 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6665 if test -n "$ac_tool_prefix"; then
6666 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6670 echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6672 if test "${ac_cv_prog_F77+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 if test -n "$F77"; then
6676 ac_cv_prog_F77="$F77" # Let the user override the test.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 if test -n "$F77"; then
6696 echo "$as_me:$LINENO: result: $F77" >&5
6697 echo "${ECHO_T}$F77" >&6
6699 echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6
6703 test -n "$F77" && break
6706 if test -z "$F77"; then
6708 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6710 # Extract the first word of "$ac_prog", so it can be a program name with args.
6711 set dummy $ac_prog; ac_word=$2
6712 echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6714 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 if test -n "$ac_ct_F77"; then
6718 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_F77="$ac_prog"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6737 if test -n "$ac_ct_F77"; then
6738 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6739 echo "${ECHO_T}$ac_ct_F77" >&6
6741 echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6
6745 test -n "$ac_ct_F77" && break
6752 # Provide some information about the compiler.
6753 echo "$as_me:6753:" \
6754 "checking for Fortran 77 compiler version" >&5
6755 ac_compiler=`set X $ac_compile; echo $2`
6756 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6757 (eval $ac_compiler --version </dev/null >&5) 2>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }
6761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6762 (eval $ac_compiler -v </dev/null >&5) 2>&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }
6766 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6767 (eval $ac_compiler -V </dev/null >&5) 2>&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }
6773 # If we don't use `.F' as extension, the preprocessor is not run on the
6774 # input file. (Note that this only needs to work for GNU compilers.)
6777 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6778 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6779 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 cat >conftest.$ac_ext <<_ACEOF
6790 rm -f conftest.$ac_objext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792 (eval $ac_compile) 2>conftest.er1
6794 grep -v '^ *+' conftest.er1 >conftest.err
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -z "$ac_f77_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest.$ac_objext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6823 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6824 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6826 ac_test_FFLAGS=${FFLAGS+set}
6827 ac_save_FFLAGS=$FFLAGS
6829 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6830 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6831 if test "${ac_cv_prog_f77_g+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 cat >conftest.$ac_ext <<_ACEOF
6840 rm -f conftest.$ac_objext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842 (eval $ac_compile) 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -z "$ac_f77_werror_flag"
6850 || test ! -s conftest.err'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; } &&
6856 { ac_try='test -s conftest.$ac_objext'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 ac_cv_prog_f77_g=yes
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6873 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6874 if test "$ac_test_FFLAGS" = set; then
6875 FFLAGS=$ac_save_FFLAGS
6876 elif test $ac_cv_prog_f77_g = yes; then
6877 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6883 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6890 G77=`test $ac_compiler_gnu = yes && echo yes`
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6899 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6901 # find the maximum length of command line arguments
6902 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6903 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6904 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 # On DJGPP, this test can blow up pretty badly due to problems in libc
6913 # (any single argument exceeding 2000 bytes causes a buffer overrun
6914 # during glob expansion). Even if it were fixed, the result of this
6915 # check would be larger than it should be.
6916 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6920 # Under GNU Hurd, this test is not required because there is
6921 # no limit to the length of command line arguments.
6922 # Libtool will interpret -1 as no limit whatsoever
6923 lt_cv_sys_max_cmd_len=-1;
6927 # On Win9x/ME, this test blows up -- it succeeds, but takes
6928 # about 5 minutes as the teststring grows exponentially.
6929 # Worse, since 9x/ME are not pre-emptively multitasking,
6930 # you end up with a "frozen" computer, even though with patience
6931 # the test eventually succeeds (with a max line length of 256k).
6932 # Instead, let's just punt: use the minimum linelength reported by
6933 # all of the supported platforms: 8192 (on NT/2K/XP).
6934 lt_cv_sys_max_cmd_len=8192;
6938 # On AmigaOS with pdksh, this test takes hours, literally.
6939 # So we just punt and use a minimum line length of 8192.
6940 lt_cv_sys_max_cmd_len=8192;
6943 netbsd* | freebsd* | openbsd* | darwin* )
6944 # This has been around since 386BSD, at least. Likely further.
6945 if test -x /sbin/sysctl; then
6946 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6947 elif test -x /usr/sbin/sysctl; then
6948 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6950 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6952 # And add a safety zone
6953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6957 # If test is not a shell built-in, we'll probably end up computing a
6958 # maximum length that is only half of the actual maximum length, but
6960 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6961 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6962 = "XX$teststring") >/dev/null 2>&1 &&
6963 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6964 lt_cv_sys_max_cmd_len=$new_result &&
6965 test $i != 17 # 1/2 MB should be enough
6968 teststring=$teststring$teststring
6971 # Add a significant safety factor because C++ compilers can tack on massive
6972 # amounts of additional arguments before passing them to the linker.
6973 # It appears as though 1/2 is a usable value.
6974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6980 if test -n $lt_cv_sys_max_cmd_len ; then
6981 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6982 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6984 echo "$as_me:$LINENO: result: none" >&5
6985 echo "${ECHO_T}none" >&6
6991 # Check for command to grab the raw symbol name followed by C symbol from nm.
6992 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6993 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6994 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 # These are sane defaults that work on at least a few old systems.
6999 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7001 # Character class describing NM global symbol codes.
7002 symcode='[BCDEGRST]'
7004 # Regexp to match symbols that can be accessed directly from C.
7005 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7007 # Transform the above into a raw symbol and a C symbol.
7008 symxfrm='\1 \2\3 \3'
7010 # Transform an extracted symbol line into a proper C declaration
7011 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7013 # Transform an extracted symbol line into symbol name and symbol address
7014 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'"
7016 # Define system-specific variables.
7021 cygwin* | mingw* | pw32*)
7022 symcode='[ABCDGISTW]'
7024 hpux*) # Its linker distinguishes data from code symbols
7025 if test "$host_cpu" = ia64; then
7026 symcode='[ABCDEGRST]'
7028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7029 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'"
7032 if test "$host_cpu" = ia64; then
7033 symcode='[ABCDGIRSTW]'
7034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7035 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'"
7039 symcode='[BCDEGRST]'
7042 symcode='[BCDEGQRST]'
7052 # Handle CRLF in mingw tool chain
7056 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7060 # If we're using GNU nm, then use its standard symbol codes.
7061 case `$NM -V 2>&1` in
7062 *GNU* | *'with BFD'*)
7063 symcode='[ABCDGIRSTW]' ;;
7066 # Try without a prefix undercore, then with it.
7067 for ac_symprfx in "" "_"; do
7069 # Write the raw and C identifiers.
7070 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7072 # Check to see that the pipe works correctly.
7076 cat > conftest.$ac_ext <<EOF
7081 void nm_test_func(){}
7085 int main(){nm_test_var='a';nm_test_func();return(0);}
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; then
7093 # Now try to grab the symbols.
7095 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7096 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && test -s "$nlist"; then
7100 # Try sorting and uniquifying the output.
7101 if sort "$nlist" | uniq > "$nlist"T; then
7102 mv -f "$nlist"T "$nlist"
7107 # Make sure that we snagged all the symbols we need.
7108 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7109 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7110 cat <<EOF > conftest.$ac_ext
7116 # Now generate the symbol file.
7117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7119 cat <<EOF >> conftest.$ac_ext
7120 #if defined (__STDC__) && __STDC__
7121 # define lt_ptr_t void *
7123 # define lt_ptr_t char *
7127 /* The mapping between symbol names and symbols. */
7132 lt_preloaded_symbols[] =
7135 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7136 cat <<\EOF >> conftest.$ac_ext
7144 # Now try linking the two files.
7145 mv conftest.$ac_objext conftstm.$ac_objext
7146 lt_save_LIBS="$LIBS"
7147 lt_save_CFLAGS="$CFLAGS"
7148 LIBS="conftstm.$ac_objext"
7149 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7157 LIBS="$lt_save_LIBS"
7158 CFLAGS="$lt_save_CFLAGS"
7160 echo "cannot find nm_test_func in $nlist" >&5
7163 echo "cannot find nm_test_var in $nlist" >&5
7166 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7169 echo "$progname: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 rm -f conftest* conftst*
7174 # Do not use the global_symbol_pipe unless it works.
7175 if test "$pipe_works" = yes; then
7178 lt_cv_sys_global_symbol_pipe=
7184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185 lt_cv_sys_global_symbol_to_cdecl=
7187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188 echo "$as_me:$LINENO: result: failed" >&5
7189 echo "${ECHO_T}failed" >&6
7191 echo "$as_me:$LINENO: result: ok" >&5
7192 echo "${ECHO_T}ok" >&6
7195 echo "$as_me:$LINENO: checking for objdir" >&5
7196 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7197 if test "${lt_cv_objdir+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 rm -f .libs 2>/dev/null
7201 mkdir .libs 2>/dev/null
7202 if test -d .libs; then
7205 # MS-DOS does not allow filenames that begin with a dot.
7208 rmdir .libs 2>/dev/null
7210 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7211 echo "${ECHO_T}$lt_cv_objdir" >&6
7212 objdir=$lt_cv_objdir
7220 # AIX sometimes has problems with the GCC collect2 program. For some
7221 # reason, if we set the COLLECT_NAMES environment variable, the problems
7222 # vanish in a puff of smoke.
7223 if test "X${COLLECT_NAMES+set}" != Xset; then
7225 export COLLECT_NAMES
7230 # Sed substitution that helps us do robust quoting. It backslashifies
7231 # metacharacters that are still active within double-quoted strings.
7232 Xsed='sed -e s/^X//'
7233 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7235 # Same as above, but do not quote variable references.
7236 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7238 # Sed substitution to delay expansion of an escaped shell variable in a
7239 # double_quote_subst'ed string.
7240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7242 # Sed substitution to avoid accidental globbing in evaled expressions
7243 no_glob_subst='s/\*/\\\*/g'
7250 can_build_shared=yes
7252 # All known linkers require a `.a' archive for static linking (except M$VC,
7253 # which needs '.lib').
7255 ltmain="$ac_aux_dir/ltmain.sh"
7256 ofile="$default_ofile"
7257 with_gnu_ld="$lt_cv_prog_gnu_ld"
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}ar; ac_word=$2
7262 echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264 if test "${ac_cv_prog_AR+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 if test -n "$AR"; then
7268 ac_cv_prog_AR="$AR" # Let the user override the test.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_AR="${ac_tool_prefix}ar"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 if test -n "$AR"; then
7288 echo "$as_me:$LINENO: result: $AR" >&5
7289 echo "${ECHO_T}$AR" >&6
7291 echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7296 if test -z "$ac_cv_prog_AR"; then
7298 # Extract the first word of "ar", so it can be a program name with args.
7299 set dummy ar; ac_word=$2
7300 echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7302 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 if test -n "$ac_ct_AR"; then
7306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_ac_ct_AR="ar"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7325 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7326 if test -n "$ac_ct_AR"; then
7327 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7328 echo "${ECHO_T}$ac_ct_AR" >&6
7330 echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7342 echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7344 if test "${ac_cv_prog_RANLIB+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 if test -n "$RANLIB"; then
7348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 RANLIB=$ac_cv_prog_RANLIB
7367 if test -n "$RANLIB"; then
7368 echo "$as_me:$LINENO: result: $RANLIB" >&5
7369 echo "${ECHO_T}$RANLIB" >&6
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7376 if test -z "$ac_cv_prog_RANLIB"; then
7377 ac_ct_RANLIB=$RANLIB
7378 # Extract the first word of "ranlib", so it can be a program name with args.
7379 set dummy ranlib; ac_word=$2
7380 echo "$as_me:$LINENO: checking for $ac_word" >&5
7381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 if test -n "$ac_ct_RANLIB"; then
7386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_ac_ct_RANLIB="ranlib"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7406 if test -n "$ac_ct_RANLIB"; then
7407 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7410 echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6
7414 RANLIB=$ac_ct_RANLIB
7416 RANLIB="$ac_cv_prog_RANLIB"
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}strip; ac_word=$2
7422 echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424 if test "${ac_cv_prog_STRIP+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 if test -n "$STRIP"; then
7428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 STRIP=$ac_cv_prog_STRIP
7447 if test -n "$STRIP"; then
7448 echo "$as_me:$LINENO: result: $STRIP" >&5
7449 echo "${ECHO_T}$STRIP" >&6
7451 echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7456 if test -z "$ac_cv_prog_STRIP"; then
7458 # Extract the first word of "strip", so it can be a program name with args.
7459 set dummy strip; ac_word=$2
7460 echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 if test -n "$ac_ct_STRIP"; then
7466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_ac_ct_STRIP="strip"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7486 if test -n "$ac_ct_STRIP"; then
7487 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7488 echo "${ECHO_T}$ac_ct_STRIP" >&6
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7496 STRIP="$ac_cv_prog_STRIP"
7501 old_CFLAGS="$CFLAGS"
7503 # Set sane defaults for various variables
7504 test -z "$AR" && AR=ar
7505 test -z "$AR_FLAGS" && AR_FLAGS=cru
7506 test -z "$AS" && AS=as
7507 test -z "$CC" && CC=cc
7508 test -z "$LTCC" && LTCC=$CC
7509 test -z "$DLLTOOL" && DLLTOOL=dlltool
7510 test -z "$LD" && LD=ld
7511 test -z "$LN_S" && LN_S="ln -s"
7512 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7513 test -z "$NM" && NM=nm
7514 test -z "$SED" && SED=sed
7515 test -z "$OBJDUMP" && OBJDUMP=objdump
7516 test -z "$RANLIB" && RANLIB=:
7517 test -z "$STRIP" && STRIP=:
7518 test -z "$ac_objext" && ac_objext=o
7520 # Determine commands to create old-style static archives.
7521 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7522 old_postinstall_cmds='chmod 644 $oldlib'
7523 old_postuninstall_cmds=
7525 if test -n "$RANLIB"; then
7528 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
7531 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
7534 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
7537 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7539 # Only perform the check for file, if the check method requires it
7540 case $deplibs_check_method in
7542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7543 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7544 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7553 lt_save_MAGIC_CMD="$MAGIC_CMD"
7554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7556 for ac_dir in $ac_dummy; do
7558 test -z "$ac_dir" && ac_dir=.
7559 if test -f $ac_dir/${ac_tool_prefix}file; then
7560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7561 if test -n "$file_magic_test_file"; then
7562 case $deplibs_check_method in
7564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7567 $EGREP "$file_magic_regex" > /dev/null; then
7572 *** Warning: the command libtool uses to detect shared libraries,
7573 *** $file_magic_cmd, produces output that libtool cannot recognize.
7574 *** The result is that libtool may fail to recognize shared libraries
7575 *** as such. This will affect the creation of libtool libraries that
7576 *** depend on shared libraries, but programs linked with such libtool
7577 *** libraries will work regardless of this problem. Nevertheless, you
7578 *** may want to report the problem to your system manager and/or to
7579 *** bug-libtool@gnu.org
7589 MAGIC_CMD="$lt_save_MAGIC_CMD"
7594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7595 if test -n "$MAGIC_CMD"; then
7596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7597 echo "${ECHO_T}$MAGIC_CMD" >&6
7599 echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6
7603 if test -z "$lt_cv_path_MAGIC_CMD"; then
7604 if test -n "$ac_tool_prefix"; then
7605 echo "$as_me:$LINENO: checking for file" >&5
7606 echo $ECHO_N "checking for file... $ECHO_C" >&6
7607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7615 lt_save_MAGIC_CMD="$MAGIC_CMD"
7616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7618 for ac_dir in $ac_dummy; do
7620 test -z "$ac_dir" && ac_dir=.
7621 if test -f $ac_dir/file; then
7622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7623 if test -n "$file_magic_test_file"; then
7624 case $deplibs_check_method in
7626 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7629 $EGREP "$file_magic_regex" > /dev/null; then
7634 *** Warning: the command libtool uses to detect shared libraries,
7635 *** $file_magic_cmd, produces output that libtool cannot recognize.
7636 *** The result is that libtool may fail to recognize shared libraries
7637 *** as such. This will affect the creation of libtool libraries that
7638 *** depend on shared libraries, but programs linked with such libtool
7639 *** libraries will work regardless of this problem. Nevertheless, you
7640 *** may want to report the problem to your system manager and/or to
7641 *** bug-libtool@gnu.org
7651 MAGIC_CMD="$lt_save_MAGIC_CMD"
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if test -n "$MAGIC_CMD"; then
7658 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7659 echo "${ECHO_T}$MAGIC_CMD" >&6
7661 echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6
7677 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7678 if test "${enable_libtool_lock+set}" = set; then
7679 enableval="$enable_libtool_lock"
7682 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7685 # Check whether --with-pic or --without-pic was given.
7686 if test "${with_pic+set}" = set; then
7692 test -z "$pic_mode" && pic_mode=default
7694 # Use C for the default configuration in the libtool script
7698 ac_cpp='$CPP $CPPFLAGS'
7699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704 # Source file extension for C test sources.
7707 # Object file extension for compiled C test sources.
7711 # Code to be used in simple compile tests
7712 lt_simple_compile_test_code="int some_variable = 0;\n"
7714 # Code to be used in simple link tests
7715 lt_simple_link_test_code='int main(){return(0);}\n'
7718 # If no C compiler was specified, use CC.
7721 # Allow CC to be a program name with arguments.
7726 # Check for any special shared library compilation flags.
7729 if test "$GCC" = no; then
7732 lt_prog_cc_shlib='-belf'
7736 if test -n "$lt_prog_cc_shlib"; then
7737 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7738 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7739 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7741 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7742 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7743 lt_cv_prog_cc_can_build_shared=no
7749 # Check to make sure the static flag actually works.
7751 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7752 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7753 if test "${lt_prog_compiler_static_works+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 lt_prog_compiler_static_works=no
7757 save_LDFLAGS="$LDFLAGS"
7758 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7759 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7761 # The compiler can only warn and ignore the option if not recognized
7762 # So say no if there are warnings
7763 if test -s conftest.err; then
7764 # Append any errors to the config.log.
7765 cat conftest.err 1>&5
7767 lt_prog_compiler_static_works=yes
7771 LDFLAGS="$save_LDFLAGS"
7774 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7775 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7777 if test x"$lt_prog_compiler_static_works" = xyes; then
7780 lt_prog_compiler_static=
7786 lt_prog_compiler_no_builtin_flag=
7788 if test "$GCC" = yes; then
7789 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7792 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7793 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7794 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 lt_cv_prog_compiler_rtti_exceptions=no
7798 ac_outfile=conftest.$ac_objext
7799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7800 lt_compiler_flag="-fno-rtti -fno-exceptions"
7801 # Insert the option either (1) after the last *FLAGS variable, or
7802 # (2) before a word containing "conftest.", or (3) at the end.
7803 # Note that $ac_compile itself does not contain backslashes and begins
7804 # with a dollar sign (not a hyphen), so the echo should work correctly.
7805 # The option is referenced via a variable to avoid confusing sed.
7806 lt_compile=`echo "$ac_compile" | $SED \
7807 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7809 -e 's:$: $lt_compiler_flag:'`
7810 (eval echo "\"\$as_me:7810: $lt_compile\"" >&5)
7811 (eval "$lt_compile" 2>conftest.err)
7813 cat conftest.err >&5
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 if (exit $ac_status) && test -s "$ac_outfile"; then
7816 # The compiler can only warn and ignore the option if not recognized
7817 # So say no if there are warnings
7818 if test ! -s conftest.err; then
7819 lt_cv_prog_compiler_rtti_exceptions=yes
7825 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7826 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7828 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7829 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7836 lt_prog_compiler_wl=
7837 lt_prog_compiler_pic=
7838 lt_prog_compiler_static=
7840 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7841 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7843 if test "$GCC" = yes; then
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_static='-static'
7849 # All AIX code is PIC.
7850 if test "$host_cpu" = ia64; then
7851 # AIX 5 now supports IA64 processor
7852 lt_prog_compiler_static='-Bstatic'
7857 # FIXME: we need at least 68020 code to build shared libraries, but
7858 # adding the `-m68020' flag to GCC prevents building anything better,
7860 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7863 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7864 # PIC is the default for these OSes.
7867 mingw* | pw32* | os2*)
7868 # This hack is so that the source file can tell whether it is being
7869 # built for inclusion in a dll (and should export symbols for example).
7870 lt_prog_compiler_pic='-DDLL_EXPORT'
7873 darwin* | rhapsody*)
7874 # PIC is the default on this platform
7875 # Common symbols not allowed in MH_DYLIB files
7876 lt_prog_compiler_pic='-fno-common'
7880 # Just because we use GCC doesn't mean we suddenly get shared libraries
7881 # on systems that don't support them.
7882 lt_prog_compiler_can_build_shared=no
7887 if test -d /usr/nec; then
7888 lt_prog_compiler_pic=-Kconform_pic
7893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7900 lt_prog_compiler_pic='-fPIC'
7906 lt_prog_compiler_pic='-fPIC'
7910 # PORTME Check for flag to pass linker flags through the system compiler.
7913 lt_prog_compiler_wl='-Wl,'
7914 if test "$host_cpu" = ia64; then
7915 # AIX 5 now supports IA64 processor
7916 lt_prog_compiler_static='-Bstatic'
7918 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7922 # PIC is the default on this platform
7923 # Common symbols not allowed in MH_DYLIB files
7924 case "$cc_basename" in
7926 lt_prog_compiler_pic='-qnocommon'
7927 lt_prog_compiler_wl='-Wl,'
7932 mingw* | pw32* | os2*)
7933 # This hack is so that the source file can tell whether it is being
7934 # built for inclusion in a dll (and should export symbols for example).
7935 lt_prog_compiler_pic='-DDLL_EXPORT'
7938 hpux9* | hpux10* | hpux11*)
7939 lt_prog_compiler_wl='-Wl,'
7940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7947 lt_prog_compiler_pic='+Z'
7950 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7951 lt_prog_compiler_static='${wl}-a ${wl}archive'
7954 irix5* | irix6* | nonstopux*)
7955 lt_prog_compiler_wl='-Wl,'
7956 # PIC (with -KPIC) is the default.
7957 lt_prog_compiler_static='-non_shared'
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='-KPIC'
7970 lt_prog_compiler_static='-static'
7973 lt_prog_compiler_wl='-Wl,'
7974 # All Alpha code is PIC.
7975 lt_prog_compiler_static='-non_shared'
7980 osf3* | osf4* | osf5*)
7981 lt_prog_compiler_wl='-Wl,'
7982 # All OSF/1 code is PIC.
7983 lt_prog_compiler_static='-non_shared'
7987 lt_prog_compiler_pic='-Kpic'
7988 lt_prog_compiler_static='-dn'
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='-KPIC'
7994 lt_prog_compiler_static='-Bstatic'
7998 lt_prog_compiler_wl='-Qoption ld '
7999 lt_prog_compiler_pic='-PIC'
8000 lt_prog_compiler_static='-Bstatic'
8003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8004 lt_prog_compiler_wl='-Wl,'
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8010 if test -d /usr/nec ;then
8011 lt_prog_compiler_pic='-Kconform_pic'
8012 lt_prog_compiler_static='-Bstatic'
8017 lt_prog_compiler_pic='-pic'
8018 lt_prog_compiler_static='-Bstatic'
8022 lt_prog_compiler_can_build_shared=no
8027 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8028 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8031 # Check to make sure the PIC flag actually works.
8033 if test -n "$lt_prog_compiler_pic"; then
8035 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8036 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8037 if test "${lt_prog_compiler_pic_works+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 lt_prog_compiler_pic_works=no
8041 ac_outfile=conftest.$ac_objext
8042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8043 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8044 # Insert the option either (1) after the last *FLAGS variable, or
8045 # (2) before a word containing "conftest.", or (3) at the end.
8046 # Note that $ac_compile itself does not contain backslashes and begins
8047 # with a dollar sign (not a hyphen), so the echo should work correctly.
8048 # The option is referenced via a variable to avoid confusing sed.
8049 lt_compile=`echo "$ac_compile" | $SED \
8050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052 -e 's:$: $lt_compiler_flag:'`
8053 (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054 (eval "$lt_compile" 2>conftest.err)
8056 cat conftest.err >&5
8057 echo "$as_me:8057: \$? = $ac_status" >&5
8058 if (exit $ac_status) && test -s "$ac_outfile"; then
8059 # The compiler can only warn and ignore the option if not recognized
8060 # So say no if there are warnings
8061 if test ! -s conftest.err; then
8062 lt_prog_compiler_pic_works=yes
8068 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8069 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8071 if test x"$lt_prog_compiler_pic_works" = xyes; then
8072 case $lt_prog_compiler_pic in
8074 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8077 lt_prog_compiler_pic=
8078 lt_prog_compiler_can_build_shared=no
8083 # For platforms which do not support PIC, -DPIC is meaningless:
8085 lt_prog_compiler_pic=
8088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8092 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8093 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8094 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 lt_cv_prog_compiler_c_o=no
8098 $rm -r conftest 2>/dev/null
8102 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8104 lt_compiler_flag="-o out/conftest2.$ac_objext"
8105 # Insert the option either (1) after the last *FLAGS variable, or
8106 # (2) before a word containing "conftest.", or (3) at the end.
8107 # Note that $ac_compile itself does not contain backslashes and begins
8108 # with a dollar sign (not a hyphen), so the echo should work correctly.
8109 lt_compile=`echo "$ac_compile" | $SED \
8110 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112 -e 's:$: $lt_compiler_flag:'`
8113 (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
8114 (eval "$lt_compile" 2>out/conftest.err)
8116 cat out/conftest.err >&5
8117 echo "$as_me:8117: \$? = $ac_status" >&5
8118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8120 # The compiler can only warn and ignore the option if not recognized
8121 # So say no if there are warnings
8122 if test ! -s out/conftest.err; then
8123 lt_cv_prog_compiler_c_o=yes
8128 # SGI C++ compiler will create directory out/ii_files/ for
8129 # template instantiation
8130 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8131 $rm out/* && rmdir out
8137 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8138 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8141 hard_links="nottested"
8142 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8143 # do not overwrite the value of need_locks provided by the user
8144 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8145 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8150 ln conftest.a conftest.b 2>&5 || hard_links=no
8151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8152 echo "$as_me:$LINENO: result: $hard_links" >&5
8153 echo "${ECHO_T}$hard_links" >&6
8154 if test "$hard_links" = no; then
8155 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8156 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8163 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8164 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8167 allow_undefined_flag=
8168 enable_shared_with_static_runtimes=no
8170 archive_expsym_cmds=
8171 old_archive_From_new_cmds=
8172 old_archive_from_expsyms_cmds=
8173 export_dynamic_flag_spec=
8174 whole_archive_flag_spec=
8175 thread_safe_flag_spec=
8176 hardcode_libdir_flag_spec=
8177 hardcode_libdir_flag_spec_ld=
8178 hardcode_libdir_separator=
8181 hardcode_shlibpath_var=unsupported
8182 link_all_deplibs=unknown
8183 hardcode_automatic=no
8186 always_export_symbols=no
8187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8188 # include_expsyms should be a list of space-separated symbols to be *always*
8189 # included in the symbol list
8191 # exclude_expsyms can be an extended regexp of symbols to exclude
8192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8194 # as well as any symbol that contains `d'.
8195 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8197 # platforms (ab)use it in PIC code, but their linkers get confused if
8198 # the symbol is explicitly referenced. Since portable code cannot
8199 # rely on this symbol name, it's probably fine to never include it in
8200 # preloaded symbol tables.
8201 extract_expsyms_cmds=
8204 cygwin* | mingw* | pw32*)
8205 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8206 # When not using gcc, we currently assume that we are using
8207 # Microsoft Visual C++.
8208 if test "$GCC" != yes; then
8218 if test "$with_gnu_ld" = yes; then
8219 # If archive_cmds runs LD, not CC, wlarc should be empty
8222 # See if GNU ld supports shared libraries.
8224 aix3* | aix4* | aix5*)
8225 # On AIX/PPC, the GNU linker is very broken
8226 if test "$host_cpu" != ia64; then
8230 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8231 *** to be unable to reliably create shared libraries on AIX.
8232 *** Therefore, libtool is disabling shared libraries support. If you
8233 *** really care for shared libraries, you may want to modify your PATH
8234 *** so that a non-GNU linker is found, and then restart.
8241 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)'
8242 hardcode_libdir_flag_spec='-L$libdir'
8243 hardcode_minus_L=yes
8245 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8246 # that the semantics of dynamic libraries on AmigaOS, at least up
8247 # to version 4, is to share data among multiple programs linked
8248 # with the same dynamic library. Since this doesn't match the
8249 # behavior of shared libraries on other platforms, we can't use
8255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256 allow_undefined_flag=unsupported
8257 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8258 # support --undefined. This deserves some investigation. FIXME
8259 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 cygwin* | mingw* | pw32*)
8266 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8267 # as there is no search path for DLLs.
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 allow_undefined_flag=unsupported
8270 always_export_symbols=no
8271 enable_shared_with_static_runtimes=yes
8272 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8274 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8276 # If the export-symbols file already is a .def file (1st line
8277 # is EXPORTS), use it as is; otherwise, prepend...
8278 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8279 cp $export_symbols $output_objdir/$soname.def;
8281 echo EXPORTS > $output_objdir/$soname.def;
8282 cat $export_symbols >> $output_objdir/$soname.def;
8283 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8291 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8305 *** create shared libraries on Solaris systems. Therefore, libtool
8306 *** is disabling shared libraries support. We urge you to upgrade GNU
8307 *** binutils to release 2.9.1 or newer. Another option is to modify
8308 *** your PATH or compiler configuration so that the native linker is
8309 *** used, and then restart.
8312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8324 hardcode_shlibpath_var=no
8328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8329 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330 archive_cmds="$tmp_archive_cmds"
8331 supports_anon_versioning=no
8332 case `$LD -v 2>/dev/null` in
8333 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8334 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8335 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8336 *\ 2.11.*) ;; # other 2.11 versions
8337 *) supports_anon_versioning=yes ;;
8339 if test $supports_anon_versioning = yes; then
8340 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
8341 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8343 archive_expsym_cmds="$tmp_archive_cmds"
8351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8360 if test "$ld_shlibs" = yes; then
8361 runpath_var=LD_RUN_PATH
8362 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8363 export_dynamic_flag_spec='${wl}--export-dynamic'
8364 # ancient GNU ld didn't support --whole-archive et. al.
8365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8366 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8368 whole_archive_flag_spec=
8372 # PORTME fill in a description of your system's linker (not GNU ld)
8375 allow_undefined_flag=unsupported
8376 always_export_symbols=yes
8377 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'
8378 # Note: this linker hardcodes the directories in LIBPATH if there
8379 # are no directories specified by -L.
8380 hardcode_minus_L=yes
8381 if test "$GCC" = yes && test -z "$link_static_flag"; then
8382 # Neither direct hardcoding nor static linking is supported with a
8384 hardcode_direct=unsupported
8389 if test "$host_cpu" = ia64; then
8390 # On IA64, the linker does run time linking by default, so we don't
8391 # have to do anything special.
8392 aix_use_runtimelinking=no
8393 exp_sym_flag='-Bexport'
8396 # If we're using GNU nm, then we don't want the "-C" option.
8397 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8398 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8399 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'
8401 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'
8403 aix_use_runtimelinking=no
8405 # Test if we are trying to use run time linking or normal
8406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8407 # need to do runtime linking.
8408 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8409 for ld_flag in $LDFLAGS; do
8410 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8411 aix_use_runtimelinking=yes
8417 exp_sym_flag='-bexport'
8418 no_entry_flag='-bnoentry'
8421 # When large executables or shared objects are built, AIX ld can
8422 # have problems creating the table of contents. If linking a library
8423 # or program results in "error TOC overflow" add -mminimal-toc to
8424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8429 hardcode_libdir_separator=':'
8430 link_all_deplibs=yes
8432 if test "$GCC" = yes; then
8433 case $host_os in aix4.012|aix4.012.*)
8434 # We only want to do this on AIX 4.2 and lower, the check
8435 # below for broken collect2 doesn't work under 4.3+
8436 collect2name=`${CC} -print-prog-name=collect2`
8437 if test -f "$collect2name" && \
8438 strings "$collect2name" | grep resolve_lib_name >/dev/null
8440 # We have reworked collect2
8443 # We have old collect2
8444 hardcode_direct=unsupported
8445 # It fails to find uninstalled libraries when the uninstalled
8446 # path is not listed in the libpath. Setting hardcode_minus_L
8447 # to unsupported forces relinking
8448 hardcode_minus_L=yes
8449 hardcode_libdir_flag_spec='-L$libdir'
8450 hardcode_libdir_separator=
8453 shared_flag='-shared'
8456 if test "$host_cpu" = ia64; then
8457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8458 # chokes on -Wl,-G. The following line is correct:
8461 if test "$aix_use_runtimelinking" = yes; then
8462 shared_flag='${wl}-G'
8464 shared_flag='${wl}-bM:SRE'
8469 # It seems that -bexpall does not export symbols beginning with
8470 # underscore (_), so it is better to generate a list of symbols to export.
8471 always_export_symbols=yes
8472 if test "$aix_use_runtimelinking" = yes; then
8473 # Warning - without using the other runtime loading flags (-brtl),
8474 # -berok will link without error, but may produce a broken library.
8475 allow_undefined_flag='-berok'
8476 # Determine the default libpath from the value encoded in an empty executable.
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8517 # Check for a 64-bit object if we didn't find anything.
8518 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; }
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8525 rm -f conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8530 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"
8532 if test "$host_cpu" = ia64; then
8533 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8534 allow_undefined_flag="-z nodefs"
8535 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"
8537 # Determine the default libpath from the value encoded in an empty executable.
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555 (eval $ac_link) 2>conftest.er1
8557 grep -v '^ *+' conftest.er1 >conftest.err
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -z "$ac_c_werror_flag"
8563 || test ! -s conftest.err'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8578 # Check for a 64-bit object if we didn't find anything.
8579 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; }
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8586 rm -f conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
8588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8591 # Warning - without using the other run time loading flags,
8592 # -berok will link without error, but may produce a broken library.
8593 no_undefined_flag=' ${wl}-bernotok'
8594 allow_undefined_flag=' ${wl}-berok'
8595 # -bexpall does not export symbols beginning with underscore (_)
8596 always_export_symbols=yes
8597 # Exported symbols can be pulled into shared objects from archives
8598 whole_archive_flag_spec=' '
8599 archive_cmds_need_lc=yes
8600 # This is similar to how AIX traditionally builds it's shared libraries.
8601 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'
8607 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)'
8608 hardcode_libdir_flag_spec='-L$libdir'
8609 hardcode_minus_L=yes
8610 # see comment about different semantics on the GNU ld section
8615 export_dynamic_flag_spec=-rdynamic
8618 cygwin* | mingw* | pw32*)
8619 # When not using gcc, we currently assume that we are using
8620 # Microsoft Visual C++.
8621 # hardcode_libdir_flag_spec is actually meaningless, as there is
8622 # no search path for DLLs.
8623 hardcode_libdir_flag_spec=' '
8624 allow_undefined_flag=unsupported
8625 # Tell ltmain to make .lib files, not .a files.
8627 # Tell ltmain to make .dll files, not .so files.
8629 # FIXME: Setting linknames here is a bad hack.
8630 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
8631 # The linker will automatically build a .lib file if we build a DLL.
8632 old_archive_From_new_cmds='true'
8633 # FIXME: Should let the user specify the lib program.
8634 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8635 fix_srcfile_path='`cygpath -w "$srcfile"`'
8636 enable_shared_with_static_runtimes=yes
8639 darwin* | rhapsody*)
8641 rhapsody* | darwin1.[012])
8642 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8645 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8646 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8648 case ${MACOSX_DEPLOYMENT_TARGET} in
8650 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8653 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8659 archive_cmds_need_lc=no
8661 hardcode_automatic=yes
8662 hardcode_shlibpath_var=unsupported
8663 whole_archive_flag_spec=''
8664 link_all_deplibs=yes
8665 if test "$GCC" = yes ; then
8666 output_verbose_link_cmd='echo'
8667 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8668 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8670 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}'
8671 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}'
8673 case "$cc_basename" in
8675 output_verbose_link_cmd='echo'
8676 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8677 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8678 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8679 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}'
8680 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}'
8690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_shlibpath_var=no
8699 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8700 # support. Future versions do this automatically, but an explicit c++rt0.o
8701 # does not break anything, and helps significantly (at the cost of a little
8704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8705 hardcode_libdir_flag_spec='-R$libdir'
8707 hardcode_shlibpath_var=no
8710 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8714 hardcode_minus_L=yes
8715 hardcode_shlibpath_var=no
8718 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8719 freebsd* | kfreebsd*-gnu)
8720 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8721 hardcode_libdir_flag_spec='-R$libdir'
8723 hardcode_shlibpath_var=no
8727 if test "$GCC" = yes; then
8728 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'
8730 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'
8732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733 hardcode_libdir_separator=:
8736 # hardcode_minus_L: Not really in the search PATH,
8737 # but as the default location of the library.
8738 hardcode_minus_L=yes
8739 export_dynamic_flag_spec='${wl}-E'
8743 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8746 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8755 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8762 if test "$with_gnu_ld" = no; then
8765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8766 hardcode_libdir_flag_spec_ld='+b $libdir'
8767 hardcode_libdir_separator=:
8769 hardcode_shlibpath_var=no
8772 hardcode_libdir_flag_spec='-L$libdir'
8774 hardcode_shlibpath_var=no
8776 # hardcode_minus_L: Not really in the search PATH,
8777 # but as the default location of the library.
8778 hardcode_minus_L=yes
8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782 hardcode_libdir_separator=:
8784 export_dynamic_flag_spec='${wl}-E'
8786 # hardcode_minus_L: Not really in the search PATH,
8787 # but as the default location of the library.
8788 hardcode_minus_L=yes
8794 irix5* | irix6* | nonstopux*)
8795 if test "$GCC" = yes; then
8796 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'
8798 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'
8799 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802 hardcode_libdir_separator=:
8803 link_all_deplibs=yes
8807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8810 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8812 hardcode_libdir_flag_spec='-R$libdir'
8814 hardcode_shlibpath_var=no
8818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821 hardcode_libdir_separator=:
8822 hardcode_shlibpath_var=no
8827 hardcode_shlibpath_var=no
8828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832 export_dynamic_flag_spec='${wl}-E'
8835 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8837 hardcode_libdir_flag_spec='-R$libdir'
8840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_minus_L=yes
8850 allow_undefined_flag=unsupported
8851 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'
8852 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8856 if test "$GCC" = yes; then
8857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858 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'
8860 allow_undefined_flag=' -expect_unresolved \*'
8861 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'
8863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8864 hardcode_libdir_separator=:
8867 osf4* | osf5*) # as osf3* with the addition of -msym flag
8868 if test "$GCC" = yes; then
8869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8870 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'
8871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873 allow_undefined_flag=' -expect_unresolved \*'
8874 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'
8875 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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'
8876 # Both c and cxx compiler support -rpath directly
8877 hardcode_libdir_flag_spec='-rpath $libdir'
8879 hardcode_libdir_separator=:
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_shlibpath_var=no
8885 export_dynamic_flag_spec='${wl}-Bexport'
8886 runpath_var=LD_RUN_PATH
8887 hardcode_runpath_var=yes
8891 no_undefined_flag=' -z text'
8892 if test "$GCC" = yes; then
8893 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8894 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
8896 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
8899 hardcode_libdir_flag_spec='-R$libdir'
8900 hardcode_shlibpath_var=no
8902 solaris2.[0-5] | solaris2.[0-5].*) ;;
8903 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8904 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8906 link_all_deplibs=yes
8910 if test "x$host_vendor" = xsequent; then
8911 # Use $CC to link under sequent, because it throws in some extra .o
8912 # files that make .init and .fini sections work.
8913 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_libdir_flag_spec='-L$libdir'
8919 hardcode_minus_L=yes
8920 hardcode_shlibpath_var=no
8924 case $host_vendor in
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_direct=yes # is this really true???
8930 ## LD is ld it makes a PLAMLIB
8931 ## CC just makes a GrossModule.
8932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8933 reload_cmds='$CC -r -o $output$reload_objs'
8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8941 runpath_var='LD_RUN_PATH'
8942 hardcode_shlibpath_var=no
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_shlibpath_var=no
8948 export_dynamic_flag_spec='-Bexport'
8952 if test -d /usr/nec; then
8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_shlibpath_var=no
8955 runpath_var=LD_RUN_PATH
8956 hardcode_runpath_var=yes
8962 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8965 hardcode_shlibpath_var=no
8966 hardcode_runpath_var=yes
8967 runpath_var=LD_RUN_PATH
8970 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8971 no_undefined_flag='${wl}-z ${wl}text'
8972 if test "$GCC" = yes; then
8973 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 runpath_var='LD_RUN_PATH'
8978 hardcode_shlibpath_var=no
8982 no_undefined_flag=' -z text'
8983 # $CC -shared without GNU ld will not create a library from C++
8984 # object files and a static libstdc++, better avoid it by now
8985 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
8987 hardcode_libdir_flag_spec=
8988 hardcode_shlibpath_var=no
8989 runpath_var='LD_RUN_PATH'
8993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_shlibpath_var=no
9004 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9005 echo "${ECHO_T}$ld_shlibs" >&6
9006 test "$ld_shlibs" = no && can_build_shared=no
9008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9009 if test "$GCC" = yes; then
9010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9014 # Do we need to explicitly link libc?
9016 case "x$archive_cmds_need_lc" in
9018 # Assume -lc should be added
9019 archive_cmds_need_lc=yes
9021 if test "$enable_shared" = yes && test "$GCC" = yes; then
9022 case $archive_cmds in
9024 # FIXME: we may have to deal with multi-command sequences.
9027 # Test whether the compiler implicitly links with -lc since on some
9028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9029 # to ld, don't add -lc before -lgcc.
9030 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9031 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036 (eval $ac_compile) 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } 2>conftest.err; then
9042 libobjs=conftest.$ac_objext
9044 wl=$lt_prog_compiler_wl
9050 lt_save_allow_undefined_flag=$allow_undefined_flag
9051 allow_undefined_flag=
9052 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9053 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }
9058 archive_cmds_need_lc=no
9060 archive_cmds_need_lc=yes
9062 allow_undefined_flag=$lt_save_allow_undefined_flag
9064 cat conftest.err 1>&5
9067 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9068 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9075 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9076 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9078 libname_spec='lib$name'
9086 shlibpath_overrides_runpath=unknown
9088 dynamic_linker="$host_os ld.so"
9089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9090 if test "$GCC" = yes; then
9091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9092 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9093 # if the path contains ";" then we assume it to be the separator
9094 # otherwise default to the standard path separator (i.e. ":") - it is
9095 # assumed that no part of a normal pathname contains ";" but that should
9096 # okay in the real world where ";" in dirpaths is itself problematic.
9097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9102 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9104 need_lib_prefix=unknown
9105 hardcode_into_libs=no
9107 # when you set need_version to no, make sure it does not cause -set_version
9108 # flags to be left without arguments
9109 need_version=unknown
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9115 shlibpath_var=LIBPATH
9117 # AIX 3 has no versioning support, so we append a major version to the name.
9118 soname_spec='${libname}${release}${shared_ext}$major'
9125 hardcode_into_libs=yes
9126 if test "$host_cpu" = ia64; then
9127 # AIX 5 supports IA64
9128 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9129 shlibpath_var=LD_LIBRARY_PATH
9131 # With GCC up to 2.95.x, collect2 would create an import file
9132 # for dependence libraries. The import file would start with
9133 # the line `#! .'. This would cause the generated library to
9134 # depend on `.', always an invalid library. This was fixed in
9135 # development snapshots of GCC prior to 3.0.
9137 aix4 | aix4.[01] | aix4.[01].*)
9138 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9140 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9147 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9148 # soname into executable. Probably we can add versioning support to
9149 # collect2, so additional links can be useful in future.
9150 if test "$aix_use_runtimelinking" = yes; then
9151 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9152 # instead of lib<name>.a to let people know that these are not
9153 # typical AIX shared libraries.
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 # We preserve .a as extension for shared libraries through AIX4.2
9157 # and later when we are not doing run time linking.
9158 library_names_spec='${libname}${release}.a $libname.a'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9161 shlibpath_var=LIBPATH
9166 library_names_spec='$libname.ixlibrary $libname.a'
9167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9168 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'
9172 library_names_spec='${libname}${shared_ext}'
9173 dynamic_linker="$host_os ld.so"
9174 shlibpath_var=LIBRARY_PATH
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9186 # the default ld.so.conf also contains /usr/contrib/lib and
9187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9188 # libtool to hard-code these into programs
9191 cygwin* | mingw* | pw32*)
9192 version_type=windows
9197 case $GCC,$host_os in
9198 yes,cygwin* | yes,mingw* | yes,pw32*)
9199 library_names_spec='$libname.dll.a'
9200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9201 postinstall_cmds='base_file=`basename \${file}`;
9202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
9203 dldir=$destdir/`dirname \$dlpath`;
9204 test -d \$dldir || mkdir -p \$dldir;
9205 $install_prog $dir/$dlname \$dldir/$dlname'
9206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
9207 dlpath=$dir/\$dldll;
9209 shlibpath_overrides_runpath=yes
9213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9215 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9218 # MinGW DLLs use traditional 'lib' prefix
9219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9221 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9222 # It is most probably a Windows format PATH printed by
9223 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9224 # path with ; separators, and with drive letters. We can handle the
9225 # drive letters (cygwin fileutils understands them), so leave them,
9226 # especially as we might pass files found there to a mingw objdump,
9227 # which wouldn't understand a cygwinified path. Ahh.
9228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9234 # pw32 DLLs use 'pw' prefix rather than 'lib'
9235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9244 dynamic_linker='Win32 ld.exe'
9245 # FIXME: first we should search . and the directory the executable is in
9249 darwin* | rhapsody*)
9250 dynamic_linker="$host_os dyld"
9254 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9255 soname_spec='${libname}${release}${major}$shared_ext'
9256 shlibpath_overrides_runpath=yes
9257 shlibpath_var=DYLD_LIBRARY_PATH
9258 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9259 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9260 if test "$GCC" = yes; then
9261 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"`
9263 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 shlibpath_var=LD_LIBRARY_PATH
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=no
9289 hardcode_into_libs=yes
9290 dynamic_linker='GNU ld.so'
9294 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9295 version_type=freebsd-$objformat
9296 case $version_type in
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9307 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes
9312 freebsd3.01* | freebsdelf3.01*)
9313 shlibpath_overrides_runpath=yes
9314 hardcode_into_libs=yes
9317 shlibpath_overrides_runpath=no
9318 hardcode_into_libs=yes
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 hardcode_into_libs=yes
9333 hpux9* | hpux10* | hpux11*)
9334 # Give a soname corresponding to the major version so that dld.sl refuses to
9335 # link against other versions.
9342 hardcode_into_libs=yes
9343 dynamic_linker="$host_os dld.so"
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 if test "X$HPUX_IA64_MODE" = X32; then
9349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9357 hardcode_into_libs=yes
9358 dynamic_linker="$host_os dld.sl"
9359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9368 dynamic_linker="$host_os dld.sl"
9369 shlibpath_var=SHLIB_PATH
9370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9375 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9376 postinstall_cmds='chmod 555 $lib'
9379 irix5* | irix6* | nonstopux*)
9381 nonstopux*) version_type=nonstopux ;;
9383 if test "$lt_cv_prog_gnu_ld" = yes; then
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9394 irix5* | nonstopux*)
9398 case $LD in # libtool.m4 will add one of these switches to LD
9399 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9400 libsuff= shlibsuff= libmagic=32-bit;;
9401 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9402 libsuff=32 shlibsuff=N32 libmagic=N32;;
9403 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9404 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9405 *) libsuff= shlibsuff= libmagic=never-match;;
9409 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9410 shlibpath_overrides_runpath=no
9411 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9412 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9413 hardcode_into_libs=yes
9416 # No shared lib support for Linux oldld, aout, or coff.
9417 linux*oldld* | linux*aout* | linux*coff*)
9421 # This must be Linux ELF.
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=no
9431 # This implies no fast_install, which is unacceptable.
9432 # Some rework will be needed to allow for fast_install
9433 # before this can be enabled.
9434 hardcode_into_libs=yes
9436 # Append ld.so.conf contents to the search path
9437 if test -f /etc/ld.so.conf; then
9438 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9442 # We used to test for /lib/ld.so.1 and disable shared libraries on
9443 # powerpc, because MkLinux only supported shared libraries with the
9444 # GNU dynamic linker. Since this was broken with cross compilers,
9445 # most powerpc-linux boxes support dynamic linking these days and
9446 # people can always --disable-shared, the test was removed, and we
9447 # assume the GNU/Linux dynamic linker is in use.
9448 dynamic_linker='GNU/Linux ld.so'
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=no
9459 hardcode_into_libs=yes
9460 dynamic_linker='GNU ld.so'
9467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9470 dynamic_linker='NetBSD (a.out) ld.so'
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 dynamic_linker='NetBSD ld.elf_so'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 shlibpath_overrides_runpath=yes
9478 hardcode_into_libs=yes
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=yes
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=yes
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9507 openbsd2.[89] | openbsd2.[89].*)
9508 shlibpath_overrides_runpath=no
9511 shlibpath_overrides_runpath=yes
9515 shlibpath_overrides_runpath=yes
9520 libname_spec='$name'
9523 library_names_spec='$libname${shared_ext} $libname.a'
9524 dynamic_linker='OS/2 ld.exe'
9525 shlibpath_var=LIBPATH
9528 osf3* | osf4* | osf5*)
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 shlibpath_var=LD_LIBRARY_PATH
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 shlibpath_overrides_runpath=yes
9554 hardcode_into_libs=yes
9555 # ldd complains unless libraries are executable
9556 postinstall_cmds='chmod +x $lib'
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9562 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=yes
9565 if test "$with_gnu_ld" = yes; then
9571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 case $host_vendor in
9578 shlibpath_overrides_runpath=no
9580 export_dynamic_flag_spec='${wl}-Blargedynsym'
9581 runpath_var=LD_RUN_PATH
9589 shlibpath_overrides_runpath=no
9590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9596 if test -d /usr/nec ;then
9598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9599 soname_spec='$libname${shared_ext}.$major'
9600 shlibpath_var=LD_LIBRARY_PATH
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9615 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9616 echo "${ECHO_T}$dynamic_linker" >&6
9617 test "$dynamic_linker" = no && can_build_shared=no
9619 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9620 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9622 if test -n "$hardcode_libdir_flag_spec" || \
9623 test -n "$runpath_var" || \
9624 test "X$hardcode_automatic" = "Xyes" ; then
9626 # We can hardcode non-existant directories.
9627 if test "$hardcode_direct" != no &&
9628 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9629 # have to relink, otherwise we might link with an installed library
9630 # when we should be linking with a yet-to-be-installed one
9631 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9632 test "$hardcode_minus_L" != no; then
9633 # Linking always hardcodes the temporary library directory.
9634 hardcode_action=relink
9636 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9637 hardcode_action=immediate
9640 # We cannot hardcode anything, or else we can only hardcode existing
9642 hardcode_action=unsupported
9644 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9645 echo "${ECHO_T}$hardcode_action" >&6
9647 if test "$hardcode_action" = relink; then
9648 # Fast installation is not supported
9649 enable_fast_install=no
9650 elif test "$shlibpath_overrides_runpath" = yes ||
9651 test "$enable_shared" = no; then
9652 # Fast installation is not necessary
9653 enable_fast_install=needless
9658 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9659 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9660 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9662 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9663 echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6
9666 # FIXME - insert some real tests, host_os isn't really good enough
9669 if test -n "$STRIP" ; then
9670 striplib="$STRIP -x"
9671 echo "$as_me:$LINENO: result: yes" >&5
9672 echo "${ECHO_T}yes" >&6
9674 echo "$as_me:$LINENO: result: no" >&5
9675 echo "${ECHO_T}no" >&6
9679 echo "$as_me:$LINENO: result: no" >&5
9680 echo "${ECHO_T}no" >&6
9685 if test "x$enable_dlopen" != xyes; then
9686 enable_dlopen=unknown
9687 enable_dlopen_self=unknown
9688 enable_dlopen_self_static=unknown
9695 lt_cv_dlopen="load_add_on"
9697 lt_cv_dlopen_self=yes
9701 lt_cv_dlopen="LoadLibrary"
9706 lt_cv_dlopen="dlopen"
9711 # if libdl is installed we need to link against it
9712 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 ac_check_lib_save_LIBS=$LIBS
9719 cat >conftest.$ac_ext <<_ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9726 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9741 rm -f conftest.$ac_objext conftest$ac_exeext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>conftest.er1
9745 grep -v '^ *+' conftest.er1 >conftest.err
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -z "$ac_c_werror_flag"
9751 || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_lib_dl_dlopen=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_lib_dl_dlopen=no
9770 rm -f conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_lib_save_LIBS
9774 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9775 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9776 if test $ac_cv_lib_dl_dlopen = yes; then
9777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9782 lt_cv_dlopen_self=yes
9789 echo "$as_me:$LINENO: checking for shl_load" >&5
9790 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9791 if test "${ac_cv_func_shl_load+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 cat >conftest.$ac_ext <<_ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9802 #define shl_load innocuous_shl_load
9804 /* System header to define __stub macros and hopefully few prototypes,
9805 which can conflict with char shl_load (); below.
9806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9807 <limits.h> exists even on freestanding compilers. */
9810 # include <limits.h>
9812 # include <assert.h>
9817 /* Override any gcc2 internal prototype to avoid an error. */
9822 /* We use char because int might match the return type of a gcc2
9823 builtin and then its argument prototype would still apply. */
9825 /* The GNU C library defines this for functions which it implements
9826 to always fail with ENOSYS. Some functions are actually named
9827 something starting with __ and the normal name is an alias. */
9828 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9831 char (*f) () = shl_load;
9840 return f != shl_load;
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9849 grep -v '^ *+' conftest.er1 >conftest.err
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag"
9855 || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 ac_cv_func_shl_load=yes
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 ac_cv_func_shl_load=no
9874 rm -f conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9878 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9879 if test $ac_cv_func_shl_load = yes; then
9880 lt_cv_dlopen="shl_load"
9882 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9883 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9884 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 ac_check_lib_save_LIBS=$LIBS
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9896 /* Override any gcc2 internal prototype to avoid an error. */
9900 /* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag"
9921 || test ! -s conftest.err'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_cv_lib_dld_shl_load=yes
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 ac_cv_lib_dld_shl_load=no
9940 rm -f conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9944 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9945 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9946 if test $ac_cv_lib_dld_shl_load = yes; then
9947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9949 echo "$as_me:$LINENO: checking for dlopen" >&5
9950 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9951 if test "${ac_cv_func_dlopen+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 cat >conftest.$ac_ext <<_ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9960 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9962 #define dlopen innocuous_dlopen
9964 /* System header to define __stub macros and hopefully few prototypes,
9965 which can conflict with char dlopen (); below.
9966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9967 <limits.h> exists even on freestanding compilers. */
9970 # include <limits.h>
9972 # include <assert.h>
9977 /* Override any gcc2 internal prototype to avoid an error. */
9982 /* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9985 /* The GNU C library defines this for functions which it implements
9986 to always fail with ENOSYS. Some functions are actually named
9987 something starting with __ and the normal name is an alias. */
9988 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9991 char (*f) () = dlopen;
10000 return f != dlopen;
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007 (eval $ac_link) 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_c_werror_flag"
10015 || test ! -s conftest.err'
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); }; } &&
10021 { ac_try='test -s conftest$ac_exeext'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 ac_cv_func_dlopen=yes
10029 echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10032 ac_cv_func_dlopen=no
10034 rm -f conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10037 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10038 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10039 if test $ac_cv_func_dlopen = yes; then
10040 lt_cv_dlopen="dlopen"
10042 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10043 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 ac_check_lib_save_LIBS=$LIBS
10049 cat >conftest.$ac_ext <<_ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10056 /* Override any gcc2 internal prototype to avoid an error. */
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073 (eval $ac_link) 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -z "$ac_c_werror_flag"
10081 || test ! -s conftest.err'
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); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_lib_dl_dlopen=yes
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_cv_lib_dl_dlopen=no
10100 rm -f conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 LIBS=$ac_check_lib_save_LIBS
10104 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10106 if test $ac_cv_lib_dl_dlopen = yes; then
10107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10109 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10110 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10111 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lsvld $LIBS"
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10123 /* Override any gcc2 internal prototype to avoid an error. */
10127 /* We use char because int might match the return type of a gcc2
10128 builtin and then its argument prototype would still apply. */
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140 (eval $ac_link) 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
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); }; } &&
10154 { ac_try='test -s conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_lib_svld_dlopen=yes
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ac_cv_lib_svld_dlopen=no
10167 rm -f conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169 LIBS=$ac_check_lib_save_LIBS
10171 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10172 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10173 if test $ac_cv_lib_svld_dlopen = yes; then
10174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10176 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10177 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10178 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 ac_check_lib_save_LIBS=$LIBS
10183 cat >conftest.$ac_ext <<_ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10190 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207 (eval $ac_link) 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -z "$ac_c_werror_flag"
10215 || test ! -s conftest.err'
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); }; } &&
10221 { ac_try='test -s conftest$ac_exeext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_lib_dld_dld_link=yes
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10232 ac_cv_lib_dld_dld_link=no
10234 rm -f conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 LIBS=$ac_check_lib_save_LIBS
10238 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10239 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10240 if test $ac_cv_lib_dld_dld_link = yes; then
10241 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10262 if test "x$lt_cv_dlopen" != xno; then
10268 case $lt_cv_dlopen in
10270 save_CPPFLAGS="$CPPFLAGS"
10271 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10273 save_LDFLAGS="$LDFLAGS"
10274 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10277 LIBS="$lt_cv_dlopen_libs $LIBS"
10279 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10280 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10281 if test "${lt_cv_dlopen_self+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 if test "$cross_compiling" = yes; then :
10285 lt_cv_dlopen_self=cross
10287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10288 lt_status=$lt_dlunknown
10289 cat > conftest.$ac_ext <<EOF
10290 #line 10290 "configure"
10291 #include "confdefs.h"
10300 # define LT_DLGLOBAL RTLD_GLOBAL
10303 # define LT_DLGLOBAL DL_GLOBAL
10305 # define LT_DLGLOBAL 0
10309 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10310 find out it does not work in some platform. */
10311 #ifndef LT_DLLAZY_OR_NOW
10313 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10316 # define LT_DLLAZY_OR_NOW DL_LAZY
10319 # define LT_DLLAZY_OR_NOW RTLD_NOW
10322 # define LT_DLLAZY_OR_NOW DL_NOW
10324 # define LT_DLLAZY_OR_NOW 0
10332 extern "C" void exit (int);
10335 void fnord() { int i=42;}
10338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10339 int status = $lt_dlunknown;
10343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10344 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10345 /* dlclose (self); */
10351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352 (eval $ac_link) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10356 (./conftest; exit; ) 2>/dev/null
10358 case x$lt_status in
10359 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10360 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10361 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10364 # compilation failed
10365 lt_cv_dlopen_self=no
10372 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10373 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10375 if test "x$lt_cv_dlopen_self" = xyes; then
10376 LDFLAGS="$LDFLAGS $link_static_flag"
10377 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10378 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10379 if test "${lt_cv_dlopen_self_static+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 if test "$cross_compiling" = yes; then :
10383 lt_cv_dlopen_self_static=cross
10385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10386 lt_status=$lt_dlunknown
10387 cat > conftest.$ac_ext <<EOF
10388 #line 10388 "configure"
10389 #include "confdefs.h"
10398 # define LT_DLGLOBAL RTLD_GLOBAL
10401 # define LT_DLGLOBAL DL_GLOBAL
10403 # define LT_DLGLOBAL 0
10407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10408 find out it does not work in some platform. */
10409 #ifndef LT_DLLAZY_OR_NOW
10411 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10414 # define LT_DLLAZY_OR_NOW DL_LAZY
10417 # define LT_DLLAZY_OR_NOW RTLD_NOW
10420 # define LT_DLLAZY_OR_NOW DL_NOW
10422 # define LT_DLLAZY_OR_NOW 0
10430 extern "C" void exit (int);
10433 void fnord() { int i=42;}
10436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10437 int status = $lt_dlunknown;
10441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10442 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10443 /* dlclose (self); */
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10454 (./conftest; exit; ) 2>/dev/null
10456 case x$lt_status in
10457 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10458 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10459 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10462 # compilation failed
10463 lt_cv_dlopen_self_static=no
10470 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10471 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10474 CPPFLAGS="$save_CPPFLAGS"
10475 LDFLAGS="$save_LDFLAGS"
10480 case $lt_cv_dlopen_self in
10481 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10482 *) enable_dlopen_self=unknown ;;
10485 case $lt_cv_dlopen_self_static in
10486 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10487 *) enable_dlopen_self_static=unknown ;;
10492 # Report which librarie types wil actually be built
10493 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10494 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10495 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10496 echo "${ECHO_T}$can_build_shared" >&6
10498 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10499 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10500 test "$can_build_shared" = "no" && enable_shared=no
10502 # On AIX, shared libraries and static libraries use the same namespace, and
10503 # are all built from PIC.
10506 test "$enable_shared" = yes && enable_static=no
10507 if test -n "$RANLIB"; then
10508 archive_cmds="$archive_cmds;\$RANLIB \$lib"
10509 postinstall_cmds='$RANLIB $lib'
10514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10515 test "$enable_shared" = yes && enable_static=no
10519 echo "$as_me:$LINENO: result: $enable_shared" >&5
10520 echo "${ECHO_T}$enable_shared" >&6
10522 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10523 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10524 # Make sure either enable_shared or enable_static is yes.
10525 test "$enable_shared" = yes || enable_static=yes
10526 echo "$as_me:$LINENO: result: $enable_static" >&5
10527 echo "${ECHO_T}$enable_static" >&6
10529 # The else clause should only fire when bootstrapping the
10530 # libtool distribution, otherwise you forgot to ship ltmain.sh
10531 # with your package, and you will get complaints that there are
10532 # no rules to generate ltmain.sh.
10533 if test -f "$ltmain"; then
10534 # See if we are running on zsh, and set the options which allow our commands through
10535 # without removal of \ escapes.
10536 if test -n "${ZSH_VERSION+set}" ; then
10537 setopt NO_GLOB_SUBST
10539 # Now quote all the things that may contain metacharacters while being
10540 # careful not to overquote the AC_SUBSTed values. We take copies of the
10541 # variables and quote the copies for generation of the libtool script.
10542 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10544 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10545 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10546 deplibs_check_method reload_flag reload_cmds need_locks \
10547 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10548 lt_cv_sys_global_symbol_to_c_name_address \
10549 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10550 old_postinstall_cmds old_postuninstall_cmds \
10554 lt_prog_compiler_wl \
10555 lt_prog_compiler_pic \
10556 lt_prog_compiler_static \
10557 lt_prog_compiler_no_builtin_flag \
10558 export_dynamic_flag_spec \
10559 thread_safe_flag_spec \
10560 whole_archive_flag_spec \
10561 enable_shared_with_static_runtimes \
10563 old_archive_from_new_cmds \
10568 compiler_lib_search_path \
10570 archive_expsym_cmds \
10572 postuninstall_cmds \
10573 old_archive_from_expsyms_cmds \
10574 allow_undefined_flag \
10575 no_undefined_flag \
10576 export_symbols_cmds \
10577 hardcode_libdir_flag_spec \
10578 hardcode_libdir_flag_spec_ld \
10579 hardcode_libdir_separator \
10580 hardcode_automatic \
10582 module_expsym_cmds \
10583 lt_cv_prog_compiler_c_o \
10585 include_expsyms; do
10588 old_archive_cmds | \
10589 old_archive_from_new_cmds | \
10591 archive_expsym_cmds | \
10593 module_expsym_cmds | \
10594 old_archive_from_expsyms_cmds | \
10595 export_symbols_cmds | \
10596 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10597 postinstall_cmds | postuninstall_cmds | \
10598 old_postinstall_cmds | old_postuninstall_cmds | \
10599 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10600 # Double-quote double-evaled strings.
10601 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10604 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10610 *'\$0 --fallback-echo"')
10611 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10615 cfgfile="${ofile}T"
10616 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10618 { echo "$as_me:$LINENO: creating $ofile" >&5
10619 echo "$as_me: creating $ofile" >&6;}
10621 cat <<__EOF__ >> "$cfgfile"
10624 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10625 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10626 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10628 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10629 # Free Software Foundation, Inc.
10631 # This file is part of GNU Libtool:
10632 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10634 # This program is free software; you can redistribute it and/or modify
10635 # it under the terms of the GNU General Public License as published by
10636 # the Free Software Foundation; either version 2 of the License, or
10637 # (at your option) any later version.
10639 # This program is distributed in the hope that it will be useful, but
10640 # WITHOUT ANY WARRANTY; without even the implied warranty of
10641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10642 # General Public License for more details.
10644 # You should have received a copy of the GNU General Public License
10645 # along with this program; if not, write to the Free Software
10646 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10648 # As a special exception to the GNU General Public License, if you
10649 # distribute this file as part of a program that contains a
10650 # configuration script generated by Autoconf, you may include it under
10651 # the same distribution terms that you use for the rest of that program.
10653 # A sed program that does not truncate output.
10656 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10657 Xsed="$SED -e s/^X//"
10659 # The HP-UX ksh and POSIX shell print the target directory to stdout
10660 # if CDPATH is set.
10661 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10663 # The names of the tagged configurations supported by this script.
10666 # ### BEGIN LIBTOOL CONFIG
10668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10670 # Shell to use when invoking shell scripts.
10673 # Whether or not to build shared libraries.
10674 build_libtool_libs=$enable_shared
10676 # Whether or not to build static libraries.
10677 build_old_libs=$enable_static
10679 # Whether or not to add -lc for building shared libraries.
10680 build_libtool_need_lc=$archive_cmds_need_lc
10682 # Whether or not to disallow shared libs when runtime libs are static
10683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10685 # Whether or not to optimize for fast installation.
10686 fast_install=$enable_fast_install
10689 host_alias=$host_alias
10692 # An echo program that does not interpret backslashes.
10697 AR_FLAGS=$lt_AR_FLAGS
10702 # A language-specific compiler.
10705 # Is the compiler the GNU C compiler?
10711 # The linker used to build libraries.
10714 # Whether we need hard or soft links.
10717 # A BSD-compatible nm program.
10720 # A symbol stripping program
10723 # Used to examine libraries when file_magic_cmd begins "file"
10724 MAGIC_CMD=$MAGIC_CMD
10726 # Used on cygwin: DLL creation program.
10729 # Used on cygwin: object dumper.
10732 # Used on cygwin: assembler.
10735 # The name of the directory that contains temporary libtool files.
10738 # How to create reloadable object files.
10739 reload_flag=$lt_reload_flag
10740 reload_cmds=$lt_reload_cmds
10742 # How to pass a linker flag through the compiler.
10743 wl=$lt_lt_prog_compiler_wl
10745 # Object file suffix (normally "o").
10746 objext="$ac_objext"
10748 # Old archive suffix (normally "a").
10751 # Shared library suffix (normally ".so").
10752 shrext_cmds='$shrext_cmds'
10754 # Executable file suffix (normally "").
10757 # Additional compiler flags for building library objects.
10758 pic_flag=$lt_lt_prog_compiler_pic
10761 # What is the maximum length of a command?
10762 max_cmd_len=$lt_cv_sys_max_cmd_len
10764 # Does compiler simultaneously support -c and -o options?
10765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10767 # Must we lock files when doing compilation ?
10768 need_locks=$lt_need_locks
10770 # Do we need the lib prefix for modules?
10771 need_lib_prefix=$need_lib_prefix
10773 # Do we need a version for libraries?
10774 need_version=$need_version
10776 # Whether dlopen is supported.
10777 dlopen_support=$enable_dlopen
10779 # Whether dlopen of programs is supported.
10780 dlopen_self=$enable_dlopen_self
10782 # Whether dlopen of statically linked programs is supported.
10783 dlopen_self_static=$enable_dlopen_self_static
10785 # Compiler flag to prevent dynamic linking.
10786 link_static_flag=$lt_lt_prog_compiler_static
10788 # Compiler flag to turn off builtin functions.
10789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10791 # Compiler flag to allow reflexive dlopens.
10792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10794 # Compiler flag to generate shared objects directly from archives.
10795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10797 # Compiler flag to generate thread-safe objects.
10798 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10800 # Library versioning type.
10801 version_type=$version_type
10803 # Format of library name prefix.
10804 libname_spec=$lt_libname_spec
10806 # List of archive names. First name is the real one, the rest are links.
10807 # The last name is the one that the linker finds with -lNAME.
10808 library_names_spec=$lt_library_names_spec
10810 # The coded name of the library, if different from the real name.
10811 soname_spec=$lt_soname_spec
10813 # Commands used to build and install an old-style archive.
10815 old_archive_cmds=$lt_old_archive_cmds
10816 old_postinstall_cmds=$lt_old_postinstall_cmds
10817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10819 # Create an old-style archive from a shared archive.
10820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10822 # Create a temporary old-style archive to link instead of a shared archive.
10823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10825 # Commands used to build and install a shared archive.
10826 archive_cmds=$lt_archive_cmds
10827 archive_expsym_cmds=$lt_archive_expsym_cmds
10828 postinstall_cmds=$lt_postinstall_cmds
10829 postuninstall_cmds=$lt_postuninstall_cmds
10831 # Commands used to build a loadable module (assumed same as above if empty)
10832 module_cmds=$lt_module_cmds
10833 module_expsym_cmds=$lt_module_expsym_cmds
10835 # Commands to strip libraries.
10836 old_striplib=$lt_old_striplib
10837 striplib=$lt_striplib
10839 # Dependencies to place before the objects being linked to create a
10841 predep_objects=$lt_predep_objects
10843 # Dependencies to place after the objects being linked to create a
10845 postdep_objects=$lt_postdep_objects
10847 # Dependencies to place before the objects being linked to create a
10849 predeps=$lt_predeps
10851 # Dependencies to place after the objects being linked to create a
10853 postdeps=$lt_postdeps
10855 # The library search path used internally by the compiler when linking
10856 # a shared library.
10857 compiler_lib_search_path=$lt_compiler_lib_search_path
10859 # Method to check whether dependent libraries are shared objects.
10860 deplibs_check_method=$lt_deplibs_check_method
10862 # Command to use when deplibs_check_method == file_magic.
10863 file_magic_cmd=$lt_file_magic_cmd
10865 # Flag that allows shared libraries with undefined symbols to be built.
10866 allow_undefined_flag=$lt_allow_undefined_flag
10868 # Flag that forces no undefined symbols.
10869 no_undefined_flag=$lt_no_undefined_flag
10871 # Commands used to finish a libtool library installation in a directory.
10872 finish_cmds=$lt_finish_cmds
10874 # Same as above, but a single script fragment to be evaled but not shown.
10875 finish_eval=$lt_finish_eval
10877 # Take the output of nm and produce a listing of raw symbols and C names.
10878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10880 # Transform the output of nm in a proper C declaration
10881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10883 # Transform the output of nm in a C name address pair
10884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10886 # This is the shared library runtime path variable.
10887 runpath_var=$runpath_var
10889 # This is the shared library path variable.
10890 shlibpath_var=$shlibpath_var
10892 # Is shlibpath searched before the hard-coded library search path?
10893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10895 # How to hardcode a shared library path into an executable.
10896 hardcode_action=$hardcode_action
10898 # Whether we should hardcode library paths into libraries.
10899 hardcode_into_libs=$hardcode_into_libs
10901 # Flag to hardcode \$libdir into a binary during linking.
10902 # This must work even if \$libdir does not exist.
10903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10905 # If ld is used when linking, flag to hardcode \$libdir into
10906 # a binary during linking. This must work even if \$libdir does
10908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10910 # Whether we need a single -rpath flag with a separated argument.
10911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10914 # resulting binary.
10915 hardcode_direct=$hardcode_direct
10917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10918 # resulting binary.
10919 hardcode_minus_L=$hardcode_minus_L
10921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10922 # the resulting binary.
10923 hardcode_shlibpath_var=$hardcode_shlibpath_var
10925 # Set to yes if building a shared library automatically hardcodes DIR into the library
10926 # and all subsequent libraries and executables linked against it.
10927 hardcode_automatic=$hardcode_automatic
10929 # Variables whose values should be saved in libtool wrapper scripts and
10930 # restored at relink time.
10931 variables_saved_for_relink="$variables_saved_for_relink"
10933 # Whether libtool must link a program against all its dependency libraries.
10934 link_all_deplibs=$link_all_deplibs
10936 # Compile-time system search path for libraries
10937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10939 # Run-time system search path for libraries
10940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10942 # Fix the shell variable \$srcfile for the compiler.
10943 fix_srcfile_path="$fix_srcfile_path"
10945 # Set to yes if exported symbols are required.
10946 always_export_symbols=$always_export_symbols
10948 # The commands to list exported symbols.
10949 export_symbols_cmds=$lt_export_symbols_cmds
10951 # The commands to extract the exported symbol list from a shared archive.
10952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10954 # Symbols that should not be listed in the preloaded symbols.
10955 exclude_expsyms=$lt_exclude_expsyms
10957 # Symbols that must always be exported.
10958 include_expsyms=$lt_include_expsyms
10960 # ### END LIBTOOL CONFIG
10967 cat <<\EOF >> "$cfgfile"
10969 # AIX sometimes has problems with the GCC collect2 program. For some
10970 # reason, if we set the COLLECT_NAMES environment variable, the problems
10971 # vanish in a puff of smoke.
10972 if test "X${COLLECT_NAMES+set}" != Xset; then
10974 export COLLECT_NAMES
10980 # We use sed instead of cat because bash on DJGPP gets confused if
10981 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10982 # text mode, it properly converts lines to CR/LF. This bash problem
10983 # is reportedly fixed, but why not run on old versions too?
10984 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10986 mv -f "$cfgfile" "$ofile" || \
10987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10991 # If there is no Makefile yet, we rely on a make rule to execute
10992 # `config.status --recheck' to rerun these tests and create the
10993 # libtool script then.
10994 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10995 if test -f "$ltmain_in"; then
10996 test -f Makefile && make "$ltmain"
11002 ac_cpp='$CPP $CPPFLAGS'
11003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010 # Check whether --with-tags or --without-tags was given.
11011 if test "${with_tags+set}" = set; then
11012 withval="$with_tags"
11013 tagnames="$withval"
11016 if test -f "$ltmain" && test -n "$tagnames"; then
11017 if test ! -f "${ofile}"; then
11018 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11019 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11022 if test -z "$LTCC"; then
11023 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11024 if test -z "$LTCC"; then
11025 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11026 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11029 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11033 # Extract list of available tagged configurations in $ofile.
11034 # Note that this assumes the entire list is on one line.
11035 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038 for tagname in $tagnames; do
11040 # Check whether tagname contains only valid characters
11041 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11043 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11044 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11045 { (exit 1); exit 1; }; }
11049 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11051 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11052 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11053 { (exit 1); exit 1; }; }
11056 # Update the list of available tags.
11057 if test -n "$tagname"; then
11058 echo appending configuration tag \"$tagname\" to $ofile
11062 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11063 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11064 (test "X$CXX" != "Xg++"))) ; then
11066 ac_cpp='$CXXCPP $CPPFLAGS'
11067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11074 archive_cmds_need_lc_CXX=no
11075 allow_undefined_flag_CXX=
11076 always_export_symbols_CXX=no
11077 archive_expsym_cmds_CXX=
11078 export_dynamic_flag_spec_CXX=
11079 hardcode_direct_CXX=no
11080 hardcode_libdir_flag_spec_CXX=
11081 hardcode_libdir_flag_spec_ld_CXX=
11082 hardcode_libdir_separator_CXX=
11083 hardcode_minus_L_CXX=no
11084 hardcode_automatic_CXX=no
11086 module_expsym_cmds_CXX=
11087 link_all_deplibs_CXX=unknown
11088 old_archive_cmds_CXX=$old_archive_cmds
11089 no_undefined_flag_CXX=
11090 whole_archive_flag_spec_CXX=
11091 enable_shared_with_static_runtimes_CXX=no
11093 # Dependencies to place before and after the object being linked:
11094 predep_objects_CXX=
11095 postdep_objects_CXX=
11098 compiler_lib_search_path_CXX=
11100 # Source file extension for C++ test sources.
11103 # Object file extension for compiled C++ test sources.
11107 # Code to be used in simple compile tests
11108 lt_simple_compile_test_code="int some_variable = 0;\n"
11110 # Code to be used in simple link tests
11111 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11115 # If no C compiler was specified, use CC.
11118 # Allow CC to be a program name with arguments.
11122 # Allow CC to be a program name with arguments.
11127 lt_save_with_gnu_ld=$with_gnu_ld
11128 lt_save_path_LD=$lt_cv_path_LD
11129 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11130 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11132 unset lt_cv_prog_gnu_ld
11134 if test -n "${lt_cv_path_LDCXX+set}"; then
11135 lt_cv_path_LD=$lt_cv_path_LDCXX
11137 unset lt_cv_path_LD
11139 test -z "${LDCXX+set}" || LD=$LDCXX
11143 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11145 # We don't want -fno-exception wen compiling C++ code, so set the
11146 # no_builtin_flag separately
11147 if test "$GXX" = yes; then
11148 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11150 lt_prog_compiler_no_builtin_flag_CXX=
11153 if test "$GXX" = yes; then
11154 # Set up default GNU C++ configuration
11157 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11158 if test "${with_gnu_ld+set}" = set; then
11159 withval="$with_gnu_ld"
11160 test "$withval" = no || with_gnu_ld=yes
11165 if test "$GCC" = yes; then
11166 # Check if gcc -print-prog-name=ld gives a path.
11167 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11168 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11171 # gcc leaves a trailing carriage return which upsets mingw
11172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11177 # Accept absolute paths.
11179 re_direlt='/[^/][^/]*/\.\./'
11180 # Canonicalize the pathname of ld
11181 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11182 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11183 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11185 test -z "$LD" && LD="$ac_prog"
11188 # If it fails, then pretend we aren't using GCC.
11192 # If it is relative, then search for the first ld in PATH.
11193 with_gnu_ld=unknown
11196 elif test "$with_gnu_ld" = yes; then
11197 echo "$as_me:$LINENO: checking for GNU ld" >&5
11198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11200 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11203 if test "${lt_cv_path_LD+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 if test -z "$LD"; then
11207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11208 for ac_dir in $PATH; do
11210 test -z "$ac_dir" && ac_dir=.
11211 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11212 lt_cv_path_LD="$ac_dir/$ac_prog"
11213 # Check to see if the program is GNU ld. I'd rather use --version,
11214 # but apparently some GNU ld's only accept -v.
11215 # Break only if it was the GNU/non-GNU ld that we prefer.
11216 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11217 *GNU* | *'with BFD'*)
11218 test "$with_gnu_ld" != no && break
11221 test "$with_gnu_ld" != yes && break
11228 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11232 LD="$lt_cv_path_LD"
11233 if test -n "$LD"; then
11234 echo "$as_me:$LINENO: result: $LD" >&5
11235 echo "${ECHO_T}$LD" >&6
11237 echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11242 { (exit 1); exit 1; }; }
11243 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11245 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11249 case `$LD -v 2>&1 </dev/null` in
11250 *GNU* | *'with BFD'*)
11251 lt_cv_prog_gnu_ld=yes
11254 lt_cv_prog_gnu_ld=no
11258 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11259 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11260 with_gnu_ld=$lt_cv_prog_gnu_ld
11264 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11265 # archiving commands below assume that GNU ld is being used.
11266 if test "$with_gnu_ld" = yes; then
11267 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11268 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'
11270 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11273 # If archive_cmds runs LD, not CC, wlarc should be empty
11274 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11275 # investigate it a little bit more. (MM)
11278 # ancient GNU ld didn't support --whole-archive et. al.
11279 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11280 grep 'no-whole-archive' > /dev/null; then
11281 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11283 whole_archive_flag_spec_CXX=
11289 # A generic and very simple default shared library creation
11290 # command for GNU C++ for the case where it uses the native
11291 # linker, instead of GNU ld. If possible, this setting should
11292 # overridden to take advantage of the native linker features on
11293 # the platform it is being used on.
11294 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11297 # Commands to make compiler produce verbose output that lists
11298 # what "hidden" libraries, object files and flags are used when
11299 # linking a shared library.
11300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11308 # PORTME: fill in a description of your system's C++ link characteristics
11309 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11310 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11314 # FIXME: insert proper C++ library support
11318 if test "$host_cpu" = ia64; then
11319 # On IA64, the linker does run time linking by default, so we don't
11320 # have to do anything special.
11321 aix_use_runtimelinking=no
11322 exp_sym_flag='-Bexport'
11325 aix_use_runtimelinking=no
11327 # Test if we are trying to use run time linking or normal
11328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11329 # need to do runtime linking.
11330 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11331 for ld_flag in $LDFLAGS; do
11334 aix_use_runtimelinking=yes
11341 exp_sym_flag='-bexport'
11342 no_entry_flag='-bnoentry'
11345 # When large executables or shared objects are built, AIX ld can
11346 # have problems creating the table of contents. If linking a library
11347 # or program results in "error TOC overflow" add -mminimal-toc to
11348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11351 archive_cmds_CXX=''
11352 hardcode_direct_CXX=yes
11353 hardcode_libdir_separator_CXX=':'
11354 link_all_deplibs_CXX=yes
11356 if test "$GXX" = yes; then
11357 case $host_os in aix4.012|aix4.012.*)
11358 # We only want to do this on AIX 4.2 and lower, the check
11359 # below for broken collect2 doesn't work under 4.3+
11360 collect2name=`${CC} -print-prog-name=collect2`
11361 if test -f "$collect2name" && \
11362 strings "$collect2name" | grep resolve_lib_name >/dev/null
11364 # We have reworked collect2
11365 hardcode_direct_CXX=yes
11367 # We have old collect2
11368 hardcode_direct_CXX=unsupported
11369 # It fails to find uninstalled libraries when the uninstalled
11370 # path is not listed in the libpath. Setting hardcode_minus_L
11371 # to unsupported forces relinking
11372 hardcode_minus_L_CXX=yes
11373 hardcode_libdir_flag_spec_CXX='-L$libdir'
11374 hardcode_libdir_separator_CXX=
11377 shared_flag='-shared'
11380 if test "$host_cpu" = ia64; then
11381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11382 # chokes on -Wl,-G. The following line is correct:
11385 if test "$aix_use_runtimelinking" = yes; then
11386 shared_flag='${wl}-G'
11388 shared_flag='${wl}-bM:SRE'
11393 # It seems that -bexpall does not export symbols beginning with
11394 # underscore (_), so it is better to generate a list of symbols to export.
11395 always_export_symbols_CXX=yes
11396 if test "$aix_use_runtimelinking" = yes; then
11397 # Warning - without using the other runtime loading flags (-brtl),
11398 # -berok will link without error, but may produce a broken library.
11399 allow_undefined_flag_CXX='-berok'
11400 # Determine the default libpath from the value encoded in an empty executable.
11401 cat >conftest.$ac_ext <<_ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11416 rm -f conftest.$ac_objext conftest$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418 (eval $ac_link) 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -z "$ac_cxx_werror_flag"
11426 || test ! -s conftest.err'
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); }; } &&
11432 { ac_try='test -s conftest$ac_exeext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11441 # Check for a 64-bit object if we didn't find anything.
11442 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; }
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11449 rm -f conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11453 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11455 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"
11457 if test "$host_cpu" = ia64; then
11458 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11459 allow_undefined_flag_CXX="-z nodefs"
11460 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"
11462 # Determine the default libpath from the value encoded in an empty executable.
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>conftest.er1
11482 grep -v '^ *+' conftest.er1 >conftest.err
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_cxx_werror_flag"
11488 || test ! -s conftest.err'
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); }; } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11503 # Check for a 64-bit object if we didn't find anything.
11504 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; }
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11511 rm -f conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11515 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11516 # Warning - without using the other run time loading flags,
11517 # -berok will link without error, but may produce a broken library.
11518 no_undefined_flag_CXX=' ${wl}-bernotok'
11519 allow_undefined_flag_CXX=' ${wl}-berok'
11520 # -bexpall does not export symbols beginning with underscore (_)
11521 always_export_symbols_CXX=yes
11522 # Exported symbols can be pulled into shared objects from archives
11523 whole_archive_flag_spec_CXX=' '
11524 archive_cmds_need_lc_CXX=yes
11525 # This is similar to how AIX traditionally builds it's shared libraries.
11526 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'
11531 case $cc_basename in
11533 # FIXME: insert proper C++ library support
11540 cygwin* | mingw* | pw32*)
11541 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11542 # as there is no search path for DLLs.
11543 hardcode_libdir_flag_spec_CXX='-L$libdir'
11544 allow_undefined_flag_CXX=unsupported
11545 always_export_symbols_CXX=no
11546 enable_shared_with_static_runtimes_CXX=yes
11548 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11549 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'
11550 # If the export-symbols file already is a .def file (1st line
11551 # is EXPORTS), use it as is; otherwise, prepend...
11552 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11553 cp $export_symbols $output_objdir/$soname.def;
11555 echo EXPORTS > $output_objdir/$soname.def;
11556 cat $export_symbols >> $output_objdir/$soname.def;
11557 fi;$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'
11562 darwin* | rhapsody*)
11564 rhapsody* | darwin1.[012])
11565 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11569 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11571 case ${MACOSX_DEPLOYMENT_TARGET} in
11573 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11576 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11582 archive_cmds_need_lc_CXX=no
11583 hardcode_direct_CXX=no
11584 hardcode_automatic_CXX=yes
11585 hardcode_shlibpath_var_CXX=unsupported
11586 whole_archive_flag_spec_CXX=''
11587 link_all_deplibs_CXX=yes
11589 if test "$GXX" = yes ; then
11590 lt_int_apple_cc_single_mod=no
11591 output_verbose_link_cmd='echo'
11592 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11593 lt_int_apple_cc_single_mod=yes
11595 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11596 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11598 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'
11600 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11601 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11602 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11603 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}'
11605 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}'
11607 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}'
11609 case "$cc_basename" in
11611 output_verbose_link_cmd='echo'
11612 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'
11613 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11615 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}'
11616 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}'
11626 case $cc_basename in
11628 # FIXME: insert proper C++ library support
11632 # Green Hills C++ Compiler
11633 # FIXME: insert proper C++ library support
11637 # FIXME: insert proper C++ library support
11643 # C++ shared libraries reported to be fairly broken before switch to ELF
11647 archive_cmds_need_lc_CXX=no
11649 freebsd* | kfreebsd*-gnu)
11650 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11657 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11658 hardcode_libdir_separator_CXX=:
11659 export_dynamic_flag_spec_CXX='${wl}-E'
11660 hardcode_direct_CXX=yes
11661 hardcode_minus_L_CXX=yes # Not in the search PATH,
11662 # but as the default
11663 # location of the library.
11665 case $cc_basename in
11667 # FIXME: insert proper C++ library support
11671 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'
11672 # Commands to make compiler produce verbose output that lists
11673 # what "hidden" libraries, object files and flags are used when
11674 # linking a shared library.
11676 # There doesn't appear to be a way to prevent this compiler from
11677 # explicitly linking system object files so we need to strip them
11678 # from the output so that they don't get included in the library
11680 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'
11683 if test "$GXX" = yes; then
11684 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'
11686 # FIXME: insert proper C++ library support
11693 if test $with_gnu_ld = no; then
11694 case "$host_cpu" in
11696 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11697 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11698 hardcode_libdir_separator_CXX=:
11701 hardcode_libdir_flag_spec_CXX='-L$libdir'
11704 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11705 hardcode_libdir_separator_CXX=:
11706 export_dynamic_flag_spec_CXX='${wl}-E'
11710 case "$host_cpu" in
11712 hardcode_direct_CXX=no
11713 hardcode_shlibpath_var_CXX=no
11716 hardcode_direct_CXX=no
11717 hardcode_shlibpath_var_CXX=no
11718 hardcode_minus_L_CXX=yes # Not in the search PATH,
11719 # but as the default
11720 # location of the library.
11723 hardcode_direct_CXX=yes
11724 hardcode_minus_L_CXX=yes # Not in the search PATH,
11725 # but as the default
11726 # location of the library.
11730 case $cc_basename in
11732 # FIXME: insert proper C++ library support
11736 case "$host_cpu" in
11738 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11741 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11744 # Commands to make compiler produce verbose output that lists
11745 # what "hidden" libraries, object files and flags are used when
11746 # linking a shared library.
11748 # There doesn't appear to be a way to prevent this compiler from
11749 # explicitly linking system object files so we need to strip them
11750 # from the output so that they don't get included in the library
11752 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'
11755 if test "$GXX" = yes; then
11756 if test $with_gnu_ld = no; then
11757 case "$host_cpu" in
11759 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11762 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'
11767 # FIXME: insert proper C++ library support
11774 case $cc_basename in
11777 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'
11779 # Archives containing C++ object files must be created using
11780 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11781 # necessary to make sure instantiated templates are included
11783 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11786 if test "$GXX" = yes; then
11787 if test "$with_gnu_ld" = no; then
11788 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'
11790 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'
11793 link_all_deplibs_CXX=yes
11796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11797 hardcode_libdir_separator_CXX=:
11800 case $cc_basename in
11802 # Kuck and Associates, Inc. (KAI) C++ Compiler
11804 # KCC will only create a shared library if the output file
11805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11806 # to its proper name (with version) after linking.
11807 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'
11808 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'
11809 # Commands to make compiler produce verbose output that lists
11810 # what "hidden" libraries, object files and flags are used when
11811 # linking a shared library.
11813 # There doesn't appear to be a way to prevent this compiler from
11814 # explicitly linking system object files so we need to strip them
11815 # from the output so that they don't get included in the library
11817 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'
11819 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11822 # Archives containing C++ object files must be created using
11823 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11824 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11829 # version 8.0 and above of icpc choke on multiply defined symbols
11830 # if we add $predep_objects and $postdep_objects, however 7.1 and
11831 # earlier do not add the objects themselves.
11832 case `$CC -V 2>&1` in
11834 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11835 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'
11837 *) # Version 8.0 or newer
11838 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11839 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11842 archive_cmds_need_lc_CXX=no
11843 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11844 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11845 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11849 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11850 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'
11852 runpath_var=LD_RUN_PATH
11853 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11854 hardcode_libdir_separator_CXX=:
11856 # Commands to make compiler produce verbose output that lists
11857 # what "hidden" libraries, object files and flags are used when
11858 # linking a shared library.
11860 # There doesn't appear to be a way to prevent this compiler from
11861 # explicitly linking system object files so we need to strip them
11862 # from the output so that they don't get included in the library
11864 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'
11869 # FIXME: insert proper C++ library support
11873 # FIXME: insert proper C++ library support
11877 case $cc_basename in
11879 # FIXME: insert proper C++ library support
11883 # FIXME: insert proper C++ library support
11889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11890 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11892 hardcode_libdir_flag_spec_CXX='-R$libdir'
11893 hardcode_direct_CXX=yes
11894 hardcode_shlibpath_var_CXX=no
11896 # Workaround some broken pre-1.5 toolchains
11897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11900 # C++ shared libraries are fairly broken
11904 hardcode_direct_CXX=yes
11905 hardcode_shlibpath_var_CXX=no
11906 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11909 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11910 export_dynamic_flag_spec_CXX='${wl}-E'
11911 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11913 output_verbose_link_cmd='echo'
11916 case $cc_basename in
11918 # Kuck and Associates, Inc. (KAI) C++ Compiler
11920 # KCC will only create a shared library if the output file
11921 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11922 # to its proper name (with version) after linking.
11923 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'
11925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926 hardcode_libdir_separator_CXX=:
11928 # Archives containing C++ object files must be created using
11929 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11930 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11934 # Rational C++ 2.4.1
11935 # FIXME: insert proper C++ library support
11939 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11940 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'
11942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11943 hardcode_libdir_separator_CXX=:
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11953 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'
11956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11958 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'
11960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11961 hardcode_libdir_separator_CXX=:
11963 # Commands to make compiler produce verbose output that lists
11964 # what "hidden" libraries, object files and flags are used when
11965 # linking a shared library.
11966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11969 # FIXME: insert proper C++ library support
11976 case $cc_basename in
11978 # Kuck and Associates, Inc. (KAI) C++ Compiler
11980 # KCC will only create a shared library if the output file
11981 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11982 # to its proper name (with version) after linking.
11983 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'
11985 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11986 hardcode_libdir_separator_CXX=:
11988 # Archives containing C++ object files must be created using
11989 # the KAI C++ compiler.
11990 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11993 # Rational C++ 2.4.1
11994 # FIXME: insert proper C++ library support
11998 allow_undefined_flag_CXX=' -expect_unresolved \*'
11999 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'
12000 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp'
12002 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12003 hardcode_libdir_separator_CXX=:
12005 # Commands to make compiler produce verbose output that lists
12006 # what "hidden" libraries, object files and flags are used when
12007 # linking a shared library.
12009 # There doesn't appear to be a way to prevent this compiler from
12010 # explicitly linking system object files so we need to strip them
12011 # from the output so that they don't get included in the library
12013 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'
12016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12017 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12018 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'
12020 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12021 hardcode_libdir_separator_CXX=:
12023 # Commands to make compiler produce verbose output that lists
12024 # what "hidden" libraries, object files and flags are used when
12025 # linking a shared library.
12026 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12029 # FIXME: insert proper C++ library support
12036 # FIXME: insert proper C++ library support
12040 archive_cmds_need_lc_CXX=no
12041 case $cc_basename in
12043 # FIXME: insert proper C++ library support
12047 # FIXME: insert proper C++ library support
12053 case $cc_basename in
12056 # FIXME: insert proper C++ library support
12061 # FIXME: insert proper C++ library support
12065 # FIXME: insert proper C++ library support
12071 case $cc_basename in
12073 # Sun C++ 4.2, 5.x and Centerline C++
12074 no_undefined_flag_CXX=' -zdefs'
12075 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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'
12078 hardcode_libdir_flag_spec_CXX='-R$libdir'
12079 hardcode_shlibpath_var_CXX=no
12081 solaris2.0-5 | solaris2.0-5.*) ;;
12083 # The C++ compiler is used as linker so we must use $wl
12084 # flag to pass the commands to the underlying system
12086 # Supported since Solaris 2.6 (maybe 2.5.1?)
12087 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12090 link_all_deplibs_CXX=yes
12092 # Commands to make compiler produce verbose output that lists
12093 # what "hidden" libraries, object files and flags are used when
12094 # linking a shared library.
12096 # There doesn't appear to be a way to prevent this compiler from
12097 # explicitly linking system object files so we need to strip them
12098 # from the output so that they don't get included in the library
12100 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'
12102 # Archives containing C++ object files must be created using
12103 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12104 # necessary to make sure instantiated templates are included
12106 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12109 # Green Hills C++ Compiler
12110 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12112 # The C++ compiler must be used to create the archive.
12113 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12116 # GNU C++ compiler with Solaris linker
12117 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12118 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12119 if $CC --version | grep -v '^2\.7' > /dev/null; then
12120 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
12122 # Commands to make compiler produce verbose output that lists
12123 # what "hidden" libraries, object files and flags are used when
12124 # linking a shared library.
12125 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12127 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12129 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
12131 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12139 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12144 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12145 archive_cmds_need_lc_CXX=no
12148 case $cc_basename in
12150 # NonStop-UX NCC 3.20
12151 # FIXME: insert proper C++ library support
12155 # FIXME: insert proper C++ library support
12161 # FIXME: insert proper C++ library support
12165 # FIXME: insert proper C++ library support
12169 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12170 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12171 test "$ld_shlibs_CXX" = no && can_build_shared=no
12177 cat > conftest.$ac_ext <<EOF
12181 Foo (void) { a = 0; }
12187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188 (eval $ac_compile) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; then
12192 # Parse the compiler output and extract the necessary
12193 # objects, libraries and library flags.
12195 # Sentinel used to keep track of whether or not we are before
12196 # the conftest object file.
12197 pre_test_object_deps_done=no
12199 # The `*' in the case matches for architectures that use `case' in
12200 # $output_verbose_cmd can trigger glob expansion during the loop
12201 # eval without this substitution.
12202 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12204 for p in `eval $output_verbose_link_cmd`; do
12208 # Some compilers place space between "-{L,R}" and the path.
12209 # Remove the space.
12210 if test $p = "-L" \
12211 || test $p = "-R"; then
12218 if test "$pre_test_object_deps_done" = no; then
12221 # Internal compiler library paths should come after those
12222 # provided the user. The postdeps already come after the
12223 # user supplied libs so there is no need to process them.
12224 if test -z "$compiler_lib_search_path_CXX"; then
12225 compiler_lib_search_path_CXX="${prev}${p}"
12227 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12230 # The "-l" case would never come before the object being
12231 # linked, so don't bother handling this case.
12234 if test -z "$postdeps_CXX"; then
12235 postdeps_CXX="${prev}${p}"
12237 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12243 # This assumes that the test object file only shows up
12244 # once in the compiler output.
12245 if test "$p" = "conftest.$objext"; then
12246 pre_test_object_deps_done=yes
12250 if test "$pre_test_object_deps_done" = no; then
12251 if test -z "$predep_objects_CXX"; then
12252 predep_objects_CXX="$p"
12254 predep_objects_CXX="$predep_objects_CXX $p"
12257 if test -z "$postdep_objects_CXX"; then
12258 postdep_objects_CXX="$p"
12260 postdep_objects_CXX="$postdep_objects_CXX $p"
12265 *) ;; # Ignore the rest.
12273 echo "libtool.m4: error: problem compiling CXX test program"
12276 $rm -f confest.$objext
12278 case " $postdeps_CXX " in
12279 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12282 lt_prog_compiler_wl_CXX=
12283 lt_prog_compiler_pic_CXX=
12284 lt_prog_compiler_static_CXX=
12286 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12287 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12289 # C++ specific cases for pic, static, wl, etc.
12290 if test "$GXX" = yes; then
12291 lt_prog_compiler_wl_CXX='-Wl,'
12292 lt_prog_compiler_static_CXX='-static'
12296 # All AIX code is PIC.
12297 if test "$host_cpu" = ia64; then
12298 # AIX 5 now supports IA64 processor
12299 lt_prog_compiler_static_CXX='-Bstatic'
12303 # FIXME: we need at least 68020 code to build shared libraries, but
12304 # adding the `-m68020' flag to GCC prevents building anything better,
12306 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12308 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12309 # PIC is the default for these OSes.
12311 mingw* | os2* | pw32*)
12312 # This hack is so that the source file can tell whether it is being
12313 # built for inclusion in a dll (and should export symbols for example).
12314 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12316 darwin* | rhapsody*)
12317 # PIC is the default on this platform
12318 # Common symbols not allowed in MH_DYLIB files
12319 lt_prog_compiler_pic_CXX='-fno-common'
12322 # DJGPP does not support shared libraries at all
12323 lt_prog_compiler_pic_CXX=
12326 if test -d /usr/nec; then
12327 lt_prog_compiler_pic_CXX=-Kconform_pic
12331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12332 # not for PA HP-UX.
12333 case "$host_cpu" in
12337 lt_prog_compiler_pic_CXX='-fPIC'
12342 lt_prog_compiler_pic_CXX='-fPIC'
12348 # All AIX code is PIC.
12349 if test "$host_cpu" = ia64; then
12350 # AIX 5 now supports IA64 processor
12351 lt_prog_compiler_static_CXX='-Bstatic'
12353 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12357 case $cc_basename in
12359 # Green Hills C++ Compiler
12360 # _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"
12365 # PIC is the default on this platform
12366 # Common symbols not allowed in MH_DYLIB files
12367 case "$cc_basename" in
12369 lt_prog_compiler_pic_CXX='-qnocommon'
12370 lt_prog_compiler_wl_CXX='-Wl,'
12375 case $cc_basename in
12377 lt_prog_compiler_pic_CXX='-KPIC'
12380 # Green Hills C++ Compiler
12381 lt_prog_compiler_pic_CXX='-pic'
12387 freebsd* | kfreebsd*-gnu)
12388 # FreeBSD uses GNU C++
12390 hpux9* | hpux10* | hpux11*)
12391 case $cc_basename in
12393 lt_prog_compiler_wl_CXX='-Wl,'
12394 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12395 if test "$host_cpu" != ia64; then
12396 lt_prog_compiler_pic_CXX='+Z'
12400 lt_prog_compiler_wl_CXX='-Wl,'
12401 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12402 case "$host_cpu" in
12407 lt_prog_compiler_pic_CXX='+Z'
12415 irix5* | irix6* | nonstopux*)
12416 case $cc_basename in
12418 lt_prog_compiler_wl_CXX='-Wl,'
12419 lt_prog_compiler_static_CXX='-non_shared'
12420 # CC pic flag -KPIC is the default.
12427 case $cc_basename in
12430 lt_prog_compiler_wl_CXX='--backend -Wl,'
12431 lt_prog_compiler_pic_CXX='-fPIC'
12435 lt_prog_compiler_wl_CXX='-Wl,'
12436 lt_prog_compiler_pic_CXX='-KPIC'
12437 lt_prog_compiler_static_CXX='-static'
12441 # Make sure the PIC flag is empty. It appears that all Alpha
12442 # Linux and Compaq Tru64 Unix objects are PIC.
12443 lt_prog_compiler_pic_CXX=
12444 lt_prog_compiler_static_CXX='-non_shared'
12455 case $cc_basename in
12457 lt_prog_compiler_pic_CXX='-W c,exportall'
12465 osf3* | osf4* | osf5*)
12466 case $cc_basename in
12468 lt_prog_compiler_wl_CXX='--backend -Wl,'
12471 # Rational C++ 2.4.1
12472 lt_prog_compiler_pic_CXX='-pic'
12475 # Digital/Compaq C++
12476 lt_prog_compiler_wl_CXX='-Wl,'
12477 # Make sure the PIC flag is empty. It appears that all Alpha
12478 # Linux and Compaq Tru64 Unix objects are PIC.
12479 lt_prog_compiler_pic_CXX=
12480 lt_prog_compiler_static_CXX='-non_shared'
12489 case $cc_basename in
12491 lt_prog_compiler_pic_CXX='-fPIC'
12498 case $cc_basename in
12500 # Sun C++ 4.2, 5.x and Centerline C++
12501 lt_prog_compiler_pic_CXX='-KPIC'
12502 lt_prog_compiler_static_CXX='-Bstatic'
12503 lt_prog_compiler_wl_CXX='-Qoption ld '
12506 # Green Hills C++ Compiler
12507 lt_prog_compiler_pic_CXX='-PIC'
12514 case $cc_basename in
12517 lt_prog_compiler_pic_CXX='-pic'
12518 lt_prog_compiler_static_CXX='-Bstatic'
12522 lt_prog_compiler_pic_CXX='-pic'
12529 case $cc_basename in
12531 # NonStop-UX NCC 3.20
12532 lt_prog_compiler_pic_CXX='-KPIC'
12543 lt_prog_compiler_can_build_shared_CXX=no
12548 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12549 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12552 # Check to make sure the PIC flag actually works.
12554 if test -n "$lt_prog_compiler_pic_CXX"; then
12556 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12557 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12558 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 lt_prog_compiler_pic_works_CXX=no
12562 ac_outfile=conftest.$ac_objext
12563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12564 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12565 # Insert the option either (1) after the last *FLAGS variable, or
12566 # (2) before a word containing "conftest.", or (3) at the end.
12567 # Note that $ac_compile itself does not contain backslashes and begins
12568 # with a dollar sign (not a hyphen), so the echo should work correctly.
12569 # The option is referenced via a variable to avoid confusing sed.
12570 lt_compile=`echo "$ac_compile" | $SED \
12571 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12573 -e 's:$: $lt_compiler_flag:'`
12574 (eval echo "\"\$as_me:12574: $lt_compile\"" >&5)
12575 (eval "$lt_compile" 2>conftest.err)
12577 cat conftest.err >&5
12578 echo "$as_me:12578: \$? = $ac_status" >&5
12579 if (exit $ac_status) && test -s "$ac_outfile"; then
12580 # The compiler can only warn and ignore the option if not recognized
12581 # So say no if there are warnings
12582 if test ! -s conftest.err; then
12583 lt_prog_compiler_pic_works_CXX=yes
12589 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12590 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12592 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12593 case $lt_prog_compiler_pic_CXX in
12595 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12598 lt_prog_compiler_pic_CXX=
12599 lt_prog_compiler_can_build_shared_CXX=no
12604 # For platforms which do not support PIC, -DPIC is meaningless:
12606 lt_prog_compiler_pic_CXX=
12609 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12613 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12614 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12615 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 lt_cv_prog_compiler_c_o_CXX=no
12619 $rm -r conftest 2>/dev/null
12623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12625 lt_compiler_flag="-o out/conftest2.$ac_objext"
12626 # Insert the option either (1) after the last *FLAGS variable, or
12627 # (2) before a word containing "conftest.", or (3) at the end.
12628 # Note that $ac_compile itself does not contain backslashes and begins
12629 # with a dollar sign (not a hyphen), so the echo should work correctly.
12630 lt_compile=`echo "$ac_compile" | $SED \
12631 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633 -e 's:$: $lt_compiler_flag:'`
12634 (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
12635 (eval "$lt_compile" 2>out/conftest.err)
12637 cat out/conftest.err >&5
12638 echo "$as_me:12638: \$? = $ac_status" >&5
12639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12641 # The compiler can only warn and ignore the option if not recognized
12642 # So say no if there are warnings
12643 if test ! -s out/conftest.err; then
12644 lt_cv_prog_compiler_c_o_CXX=yes
12649 # SGI C++ compiler will create directory out/ii_files/ for
12650 # template instantiation
12651 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12652 $rm out/* && rmdir out
12658 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12659 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12662 hard_links="nottested"
12663 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12664 # do not overwrite the value of need_locks provided by the user
12665 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12666 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12671 ln conftest.a conftest.b 2>&5 || hard_links=no
12672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12673 echo "$as_me:$LINENO: result: $hard_links" >&5
12674 echo "${ECHO_T}$hard_links" >&6
12675 if test "$hard_links" = no; then
12676 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12677 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12684 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12685 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12687 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12690 # If we're using GNU nm, then we don't want the "-C" option.
12691 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12692 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12693 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'
12695 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'
12699 export_symbols_cmds_CXX="$ltdll_cmds"
12702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12705 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12709 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12710 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12711 test "$ld_shlibs_CXX" = no && can_build_shared=no
12713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12714 if test "$GCC" = yes; then
12715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12719 # Do we need to explicitly link libc?
12721 case "x$archive_cmds_need_lc_CXX" in
12723 # Assume -lc should be added
12724 archive_cmds_need_lc_CXX=yes
12726 if test "$enable_shared" = yes && test "$GCC" = yes; then
12727 case $archive_cmds_CXX in
12729 # FIXME: we may have to deal with multi-command sequences.
12732 # Test whether the compiler implicitly links with -lc since on some
12733 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12734 # to ld, don't add -lc before -lgcc.
12735 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12736 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741 (eval $ac_compile) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } 2>conftest.err; then
12747 libobjs=conftest.$ac_objext
12749 wl=$lt_prog_compiler_wl_CXX
12755 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12756 allow_undefined_flag_CXX=
12757 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12758 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }
12763 archive_cmds_need_lc_CXX=no
12765 archive_cmds_need_lc_CXX=yes
12767 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12769 cat conftest.err 1>&5
12772 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12773 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12780 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12781 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12782 library_names_spec=
12783 libname_spec='lib$name'
12787 postuninstall_cmds=
12791 shlibpath_overrides_runpath=unknown
12793 dynamic_linker="$host_os ld.so"
12794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12795 if test "$GCC" = yes; then
12796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12797 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12798 # if the path contains ";" then we assume it to be the separator
12799 # otherwise default to the standard path separator (i.e. ":") - it is
12800 # assumed that no part of a normal pathname contains ";" but that should
12801 # okay in the real world where ";" in dirpaths is itself problematic.
12802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12809 need_lib_prefix=unknown
12810 hardcode_into_libs=no
12812 # when you set need_version to no, make sure it does not cause -set_version
12813 # flags to be left without arguments
12814 need_version=unknown
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12820 shlibpath_var=LIBPATH
12822 # AIX 3 has no versioning support, so we append a major version to the name.
12823 soname_spec='${libname}${release}${shared_ext}$major'
12830 hardcode_into_libs=yes
12831 if test "$host_cpu" = ia64; then
12832 # AIX 5 supports IA64
12833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12834 shlibpath_var=LD_LIBRARY_PATH
12836 # With GCC up to 2.95.x, collect2 would create an import file
12837 # for dependence libraries. The import file would start with
12838 # the line `#! .'. This would cause the generated library to
12839 # depend on `.', always an invalid library. This was fixed in
12840 # development snapshots of GCC prior to 3.0.
12842 aix4 | aix4.[01] | aix4.[01].*)
12843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12845 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12848 can_build_shared=no
12852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12853 # soname into executable. Probably we can add versioning support to
12854 # collect2, so additional links can be useful in future.
12855 if test "$aix_use_runtimelinking" = yes; then
12856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12857 # instead of lib<name>.a to let people know that these are not
12858 # typical AIX shared libraries.
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12861 # We preserve .a as extension for shared libraries through AIX4.2
12862 # and later when we are not doing run time linking.
12863 library_names_spec='${libname}${release}.a $libname.a'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12866 shlibpath_var=LIBPATH
12871 library_names_spec='$libname.ixlibrary $libname.a'
12872 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12873 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'
12877 library_names_spec='${libname}${shared_ext}'
12878 dynamic_linker="$host_os ld.so"
12879 shlibpath_var=LIBRARY_PATH
12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886 soname_spec='${libname}${release}${shared_ext}$major'
12887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12888 shlibpath_var=LD_LIBRARY_PATH
12889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12891 # the default ld.so.conf also contains /usr/contrib/lib and
12892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12893 # libtool to hard-code these into programs
12896 cygwin* | mingw* | pw32*)
12897 version_type=windows
12902 case $GCC,$host_os in
12903 yes,cygwin* | yes,mingw* | yes,pw32*)
12904 library_names_spec='$libname.dll.a'
12905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12906 postinstall_cmds='base_file=`basename \${file}`;
12907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
12908 dldir=$destdir/`dirname \$dlpath`;
12909 test -d \$dldir || mkdir -p \$dldir;
12910 $install_prog $dir/$dlname \$dldir/$dlname'
12911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
12912 dlpath=$dir/\$dldll;
12914 shlibpath_overrides_runpath=yes
12918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12923 # MinGW DLLs use traditional 'lib' prefix
12924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12927 # It is most probably a Windows format PATH printed by
12928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12929 # path with ; separators, and with drive letters. We can handle the
12930 # drive letters (cygwin fileutils understands them), so leave them,
12931 # especially as we might pass files found there to a mingw objdump,
12932 # which wouldn't understand a cygwinified path. Ahh.
12933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12939 # pw32 DLLs use 'pw' prefix rather than 'lib'
12940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12949 dynamic_linker='Win32 ld.exe'
12950 # FIXME: first we should search . and the directory the executable is in
12954 darwin* | rhapsody*)
12955 dynamic_linker="$host_os dyld"
12956 version_type=darwin
12959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12960 soname_spec='${libname}${release}${major}$shared_ext'
12961 shlibpath_overrides_runpath=yes
12962 shlibpath_var=DYLD_LIBRARY_PATH
12963 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12965 if test "$GCC" = yes; then
12966 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"`
12968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12978 soname_spec='${libname}${release}${shared_ext}$major'
12979 shlibpath_var=LD_LIBRARY_PATH
12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12991 soname_spec='${libname}${release}${shared_ext}$major'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 shlibpath_overrides_runpath=no
12994 hardcode_into_libs=yes
12995 dynamic_linker='GNU ld.so'
12999 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13000 version_type=freebsd-$objformat
13001 case $version_type in
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13012 shlibpath_var=LD_LIBRARY_PATH
13015 shlibpath_overrides_runpath=yes
13017 freebsd3.01* | freebsdelf3.01*)
13018 shlibpath_overrides_runpath=yes
13019 hardcode_into_libs=yes
13022 shlibpath_overrides_runpath=no
13023 hardcode_into_libs=yes
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13033 soname_spec='${libname}${release}${shared_ext}$major'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 hardcode_into_libs=yes
13038 hpux9* | hpux10* | hpux11*)
13039 # Give a soname corresponding to the major version so that dld.sl refuses to
13040 # link against other versions.
13044 case "$host_cpu" in
13047 hardcode_into_libs=yes
13048 dynamic_linker="$host_os dld.so"
13049 shlibpath_var=LD_LIBRARY_PATH
13050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052 soname_spec='${libname}${release}${shared_ext}$major'
13053 if test "X$HPUX_IA64_MODE" = X32; then
13054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13062 hardcode_into_libs=yes
13063 dynamic_linker="$host_os dld.sl"
13064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13067 soname_spec='${libname}${release}${shared_ext}$major'
13068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13073 dynamic_linker="$host_os dld.sl"
13074 shlibpath_var=SHLIB_PATH
13075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13077 soname_spec='${libname}${release}${shared_ext}$major'
13080 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13081 postinstall_cmds='chmod 555 $lib'
13084 irix5* | irix6* | nonstopux*)
13086 nonstopux*) version_type=nonstopux ;;
13088 if test "$lt_cv_prog_gnu_ld" = yes; then
13096 soname_spec='${libname}${release}${shared_ext}$major'
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13099 irix5* | nonstopux*)
13100 libsuff= shlibsuff=
13103 case $LD in # libtool.m4 will add one of these switches to LD
13104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13105 libsuff= shlibsuff= libmagic=32-bit;;
13106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13107 libsuff=32 shlibsuff=N32 libmagic=N32;;
13108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13110 *) libsuff= shlibsuff= libmagic=never-match;;
13114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13115 shlibpath_overrides_runpath=no
13116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13118 hardcode_into_libs=yes
13121 # No shared lib support for Linux oldld, aout, or coff.
13122 linux*oldld* | linux*aout* | linux*coff*)
13126 # This must be Linux ELF.
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
13133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13134 shlibpath_var=LD_LIBRARY_PATH
13135 shlibpath_overrides_runpath=no
13136 # This implies no fast_install, which is unacceptable.
13137 # Some rework will be needed to allow for fast_install
13138 # before this can be enabled.
13139 hardcode_into_libs=yes
13141 # Append ld.so.conf contents to the search path
13142 if test -f /etc/ld.so.conf; then
13143 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13147 # We used to test for /lib/ld.so.1 and disable shared libraries on
13148 # powerpc, because MkLinux only supported shared libraries with the
13149 # GNU dynamic linker. Since this was broken with cross compilers,
13150 # most powerpc-linux boxes support dynamic linking these days and
13151 # people can always --disable-shared, the test was removed, and we
13152 # assume the GNU/Linux dynamic linker is in use.
13153 dynamic_linker='GNU/Linux ld.so'
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 shlibpath_var=LD_LIBRARY_PATH
13163 shlibpath_overrides_runpath=no
13164 hardcode_into_libs=yes
13165 dynamic_linker='GNU ld.so'
13172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13175 dynamic_linker='NetBSD (a.out) ld.so'
13177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13178 soname_spec='${libname}${release}${shared_ext}$major'
13179 dynamic_linker='NetBSD ld.elf_so'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 shlibpath_overrides_runpath=yes
13183 hardcode_into_libs=yes
13188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13189 shlibpath_var=LD_LIBRARY_PATH
13190 shlibpath_overrides_runpath=yes
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 shlibpath_overrides_runpath=yes
13207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13209 shlibpath_var=LD_LIBRARY_PATH
13210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13212 openbsd2.[89] | openbsd2.[89].*)
13213 shlibpath_overrides_runpath=no
13216 shlibpath_overrides_runpath=yes
13220 shlibpath_overrides_runpath=yes
13225 libname_spec='$name'
13228 library_names_spec='$libname${shared_ext} $libname.a'
13229 dynamic_linker='OS/2 ld.exe'
13230 shlibpath_var=LIBPATH
13233 osf3* | osf4* | osf5*)
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239 shlibpath_var=LD_LIBRARY_PATH
13240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13246 soname_spec='${libname}${release}${shared_ext}$major'
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 shlibpath_var=LD_LIBRARY_PATH
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13256 soname_spec='${libname}${release}${shared_ext}$major'
13257 shlibpath_var=LD_LIBRARY_PATH
13258 shlibpath_overrides_runpath=yes
13259 hardcode_into_libs=yes
13260 # ldd complains unless libraries are executable
13261 postinstall_cmds='chmod +x $lib'
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13268 shlibpath_var=LD_LIBRARY_PATH
13269 shlibpath_overrides_runpath=yes
13270 if test "$with_gnu_ld" = yes; then
13276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 case $host_vendor in
13283 shlibpath_overrides_runpath=no
13285 export_dynamic_flag_spec='${wl}-Blargedynsym'
13286 runpath_var=LD_RUN_PATH
13294 shlibpath_overrides_runpath=no
13295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13301 if test -d /usr/nec ;then
13303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13304 soname_spec='$libname${shared_ext}.$major'
13305 shlibpath_var=LD_LIBRARY_PATH
13311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312 soname_spec='${libname}${release}${shared_ext}$major'
13313 shlibpath_var=LD_LIBRARY_PATH
13320 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13321 echo "${ECHO_T}$dynamic_linker" >&6
13322 test "$dynamic_linker" = no && can_build_shared=no
13324 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13325 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13326 hardcode_action_CXX=
13327 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13328 test -n "$runpath_var_CXX" || \
13329 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13331 # We can hardcode non-existant directories.
13332 if test "$hardcode_direct_CXX" != no &&
13333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13334 # have to relink, otherwise we might link with an installed library
13335 # when we should be linking with a yet-to-be-installed one
13336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13337 test "$hardcode_minus_L_CXX" != no; then
13338 # Linking always hardcodes the temporary library directory.
13339 hardcode_action_CXX=relink
13341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13342 hardcode_action_CXX=immediate
13345 # We cannot hardcode anything, or else we can only hardcode existing
13347 hardcode_action_CXX=unsupported
13349 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13350 echo "${ECHO_T}$hardcode_action_CXX" >&6
13352 if test "$hardcode_action_CXX" = relink; then
13353 # Fast installation is not supported
13354 enable_fast_install=no
13355 elif test "$shlibpath_overrides_runpath" = yes ||
13356 test "$enable_shared" = no; then
13357 # Fast installation is not necessary
13358 enable_fast_install=needless
13363 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13364 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13365 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13368 echo "$as_me:$LINENO: result: yes" >&5
13369 echo "${ECHO_T}yes" >&6
13371 # FIXME - insert some real tests, host_os isn't really good enough
13374 if test -n "$STRIP" ; then
13375 striplib="$STRIP -x"
13376 echo "$as_me:$LINENO: result: yes" >&5
13377 echo "${ECHO_T}yes" >&6
13379 echo "$as_me:$LINENO: result: no" >&5
13380 echo "${ECHO_T}no" >&6
13384 echo "$as_me:$LINENO: result: no" >&5
13385 echo "${ECHO_T}no" >&6
13390 if test "x$enable_dlopen" != xyes; then
13391 enable_dlopen=unknown
13392 enable_dlopen_self=unknown
13393 enable_dlopen_self_static=unknown
13400 lt_cv_dlopen="load_add_on"
13402 lt_cv_dlopen_self=yes
13406 lt_cv_dlopen="LoadLibrary"
13411 lt_cv_dlopen="dlopen"
13416 # if libdl is installed we need to link against it
13417 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13418 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 ac_check_lib_save_LIBS=$LIBS
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13431 /* Override any gcc2 internal prototype to avoid an error. */
13435 /* We use char because int might match the return type of a gcc2
13436 builtin and then its argument prototype would still apply. */
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_cxx_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_lib_dl_dlopen=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_cv_lib_dl_dlopen=no
13475 rm -f conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477 LIBS=$ac_check_lib_save_LIBS
13479 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13480 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13481 if test $ac_cv_lib_dl_dlopen = yes; then
13482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13485 lt_cv_dlopen="dyld"
13487 lt_cv_dlopen_self=yes
13494 echo "$as_me:$LINENO: checking for shl_load" >&5
13495 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13496 if test "${ac_cv_func_shl_load+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13507 #define shl_load innocuous_shl_load
13509 /* System header to define __stub macros and hopefully few prototypes,
13510 which can conflict with char shl_load (); below.
13511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13512 <limits.h> exists even on freestanding compilers. */
13515 # include <limits.h>
13517 # include <assert.h>
13522 /* Override any gcc2 internal prototype to avoid an error. */
13527 /* We use char because int might match the return type of a gcc2
13528 builtin and then its argument prototype would still apply. */
13530 /* The GNU C library defines this for functions which it implements
13531 to always fail with ENOSYS. Some functions are actually named
13532 something starting with __ and the normal name is an alias. */
13533 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13536 char (*f) () = shl_load;
13545 return f != shl_load;
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552 (eval $ac_link) 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_cxx_werror_flag"
13560 || test ! -s conftest.err'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest$ac_exeext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 ac_cv_func_shl_load=yes
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 ac_cv_func_shl_load=no
13579 rm -f conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13582 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13583 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13584 if test $ac_cv_func_shl_load = yes; then
13585 lt_cv_dlopen="shl_load"
13587 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13588 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13589 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 ac_check_lib_save_LIBS=$LIBS
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any gcc2 internal prototype to avoid an error. */
13605 /* We use char because int might match the return type of a gcc2
13606 builtin and then its argument prototype would still apply. */
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_cxx_werror_flag"
13626 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_cv_lib_dld_shl_load=yes
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13643 ac_cv_lib_dld_shl_load=no
13645 rm -f conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13649 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13650 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13651 if test $ac_cv_lib_dld_shl_load = yes; then
13652 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13654 echo "$as_me:$LINENO: checking for dlopen" >&5
13655 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13656 if test "${ac_cv_func_dlopen+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13667 #define dlopen innocuous_dlopen
13669 /* System header to define __stub macros and hopefully few prototypes,
13670 which can conflict with char dlopen (); below.
13671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13672 <limits.h> exists even on freestanding compilers. */
13675 # include <limits.h>
13677 # include <assert.h>
13682 /* Override any gcc2 internal prototype to avoid an error. */
13687 /* We use char because int might match the return type of a gcc2
13688 builtin and then its argument prototype would still apply. */
13690 /* The GNU C library defines this for functions which it implements
13691 to always fail with ENOSYS. Some functions are actually named
13692 something starting with __ and the normal name is an alias. */
13693 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13696 char (*f) () = dlopen;
13705 return f != dlopen;
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712 (eval $ac_link) 2>conftest.er1
13714 grep -v '^ *+' conftest.er1 >conftest.err
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -z "$ac_cxx_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_func_dlopen=yes
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 ac_cv_func_dlopen=no
13739 rm -f conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13742 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13743 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13744 if test $ac_cv_func_dlopen = yes; then
13745 lt_cv_dlopen="dlopen"
13747 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13748 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 ac_check_lib_save_LIBS=$LIBS
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13761 /* Override any gcc2 internal prototype to avoid an error. */
13765 /* We use char because int might match the return type of a gcc2
13766 builtin and then its argument prototype would still apply. */
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778 (eval $ac_link) 2>conftest.er1
13780 grep -v '^ *+' conftest.er1 >conftest.err
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_cxx_werror_flag"
13786 || test ! -s conftest.err'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest$ac_exeext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_lib_dl_dlopen=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_cv_lib_dl_dlopen=no
13805 rm -f conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13807 LIBS=$ac_check_lib_save_LIBS
13809 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13811 if test $ac_cv_lib_dl_dlopen = yes; then
13812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13814 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13815 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13816 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 ac_check_lib_save_LIBS=$LIBS
13820 LIBS="-lsvld $LIBS"
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13828 /* Override any gcc2 internal prototype to avoid an error. */
13832 /* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845 (eval $ac_link) 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_cxx_werror_flag"
13853 || test ! -s conftest.err'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_cv_lib_svld_dlopen=yes
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13870 ac_cv_lib_svld_dlopen=no
13872 rm -f conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13874 LIBS=$ac_check_lib_save_LIBS
13876 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13877 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13878 if test $ac_cv_lib_svld_dlopen = yes; then
13879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13881 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13882 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13883 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 ac_check_lib_save_LIBS=$LIBS
13888 cat >conftest.$ac_ext <<_ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13895 /* Override any gcc2 internal prototype to avoid an error. */
13899 /* We use char because int might match the return type of a gcc2
13900 builtin and then its argument prototype would still apply. */
13910 rm -f conftest.$ac_objext conftest$ac_exeext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13912 (eval $ac_link) 2>conftest.er1
13914 grep -v '^ *+' conftest.er1 >conftest.err
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_cxx_werror_flag"
13920 || test ! -s conftest.err'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try='test -s conftest$ac_exeext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 ac_cv_lib_dld_dld_link=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_cv_lib_dld_dld_link=no
13939 rm -f conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 LIBS=$ac_check_lib_save_LIBS
13943 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13944 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13945 if test $ac_cv_lib_dld_dld_link = yes; then
13946 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13967 if test "x$lt_cv_dlopen" != xno; then
13973 case $lt_cv_dlopen in
13975 save_CPPFLAGS="$CPPFLAGS"
13976 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13978 save_LDFLAGS="$LDFLAGS"
13979 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13982 LIBS="$lt_cv_dlopen_libs $LIBS"
13984 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13985 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13986 if test "${lt_cv_dlopen_self+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 if test "$cross_compiling" = yes; then :
13990 lt_cv_dlopen_self=cross
13992 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13993 lt_status=$lt_dlunknown
13994 cat > conftest.$ac_ext <<EOF
13995 #line 13995 "configure"
13996 #include "confdefs.h"
14005 # define LT_DLGLOBAL RTLD_GLOBAL
14008 # define LT_DLGLOBAL DL_GLOBAL
14010 # define LT_DLGLOBAL 0
14014 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14015 find out it does not work in some platform. */
14016 #ifndef LT_DLLAZY_OR_NOW
14018 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14021 # define LT_DLLAZY_OR_NOW DL_LAZY
14024 # define LT_DLLAZY_OR_NOW RTLD_NOW
14027 # define LT_DLLAZY_OR_NOW DL_NOW
14029 # define LT_DLLAZY_OR_NOW 0
14037 extern "C" void exit (int);
14040 void fnord() { int i=42;}
14043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14044 int status = $lt_dlunknown;
14048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14049 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14050 /* dlclose (self); */
14056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14057 (eval $ac_link) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14061 (./conftest; exit; ) 2>/dev/null
14063 case x$lt_status in
14064 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14065 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14066 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14069 # compilation failed
14070 lt_cv_dlopen_self=no
14077 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14078 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14080 if test "x$lt_cv_dlopen_self" = xyes; then
14081 LDFLAGS="$LDFLAGS $link_static_flag"
14082 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14083 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14084 if test "${lt_cv_dlopen_self_static+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 if test "$cross_compiling" = yes; then :
14088 lt_cv_dlopen_self_static=cross
14090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14091 lt_status=$lt_dlunknown
14092 cat > conftest.$ac_ext <<EOF
14093 #line 14093 "configure"
14094 #include "confdefs.h"
14103 # define LT_DLGLOBAL RTLD_GLOBAL
14106 # define LT_DLGLOBAL DL_GLOBAL
14108 # define LT_DLGLOBAL 0
14112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14113 find out it does not work in some platform. */
14114 #ifndef LT_DLLAZY_OR_NOW
14116 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14119 # define LT_DLLAZY_OR_NOW DL_LAZY
14122 # define LT_DLLAZY_OR_NOW RTLD_NOW
14125 # define LT_DLLAZY_OR_NOW DL_NOW
14127 # define LT_DLLAZY_OR_NOW 0
14135 extern "C" void exit (int);
14138 void fnord() { int i=42;}
14141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14142 int status = $lt_dlunknown;
14146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14147 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14148 /* dlclose (self); */
14154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14159 (./conftest; exit; ) 2>/dev/null
14161 case x$lt_status in
14162 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14163 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14164 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14167 # compilation failed
14168 lt_cv_dlopen_self_static=no
14175 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14176 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14179 CPPFLAGS="$save_CPPFLAGS"
14180 LDFLAGS="$save_LDFLAGS"
14185 case $lt_cv_dlopen_self in
14186 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14187 *) enable_dlopen_self=unknown ;;
14190 case $lt_cv_dlopen_self_static in
14191 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14192 *) enable_dlopen_self_static=unknown ;;
14197 # The else clause should only fire when bootstrapping the
14198 # libtool distribution, otherwise you forgot to ship ltmain.sh
14199 # with your package, and you will get complaints that there are
14200 # no rules to generate ltmain.sh.
14201 if test -f "$ltmain"; then
14202 # See if we are running on zsh, and set the options which allow our commands through
14203 # without removal of \ escapes.
14204 if test -n "${ZSH_VERSION+set}" ; then
14205 setopt NO_GLOB_SUBST
14207 # Now quote all the things that may contain metacharacters while being
14208 # careful not to overquote the AC_SUBSTed values. We take copies of the
14209 # variables and quote the copies for generation of the libtool script.
14210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14212 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14213 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14214 deplibs_check_method reload_flag reload_cmds need_locks \
14215 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14216 lt_cv_sys_global_symbol_to_c_name_address \
14217 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14218 old_postinstall_cmds old_postuninstall_cmds \
14222 lt_prog_compiler_wl_CXX \
14223 lt_prog_compiler_pic_CXX \
14224 lt_prog_compiler_static_CXX \
14225 lt_prog_compiler_no_builtin_flag_CXX \
14226 export_dynamic_flag_spec_CXX \
14227 thread_safe_flag_spec_CXX \
14228 whole_archive_flag_spec_CXX \
14229 enable_shared_with_static_runtimes_CXX \
14230 old_archive_cmds_CXX \
14231 old_archive_from_new_cmds_CXX \
14232 predep_objects_CXX \
14233 postdep_objects_CXX \
14236 compiler_lib_search_path_CXX \
14238 archive_expsym_cmds_CXX \
14239 postinstall_cmds_CXX \
14240 postuninstall_cmds_CXX \
14241 old_archive_from_expsyms_cmds_CXX \
14242 allow_undefined_flag_CXX \
14243 no_undefined_flag_CXX \
14244 export_symbols_cmds_CXX \
14245 hardcode_libdir_flag_spec_CXX \
14246 hardcode_libdir_flag_spec_ld_CXX \
14247 hardcode_libdir_separator_CXX \
14248 hardcode_automatic_CXX \
14250 module_expsym_cmds_CXX \
14251 lt_cv_prog_compiler_c_o_CXX \
14252 exclude_expsyms_CXX \
14253 include_expsyms_CXX; do
14256 old_archive_cmds_CXX | \
14257 old_archive_from_new_cmds_CXX | \
14258 archive_cmds_CXX | \
14259 archive_expsym_cmds_CXX | \
14260 module_cmds_CXX | \
14261 module_expsym_cmds_CXX | \
14262 old_archive_from_expsyms_cmds_CXX | \
14263 export_symbols_cmds_CXX | \
14264 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14265 postinstall_cmds | postuninstall_cmds | \
14266 old_postinstall_cmds | old_postuninstall_cmds | \
14267 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14268 # Double-quote double-evaled strings.
14269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14278 *'\$0 --fallback-echo"')
14279 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14285 cat <<__EOF__ >> "$cfgfile"
14286 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14290 # Shell to use when invoking shell scripts.
14293 # Whether or not to build shared libraries.
14294 build_libtool_libs=$enable_shared
14296 # Whether or not to build static libraries.
14297 build_old_libs=$enable_static
14299 # Whether or not to add -lc for building shared libraries.
14300 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14302 # Whether or not to disallow shared libs when runtime libs are static
14303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14305 # Whether or not to optimize for fast installation.
14306 fast_install=$enable_fast_install
14309 host_alias=$host_alias
14312 # An echo program that does not interpret backslashes.
14317 AR_FLAGS=$lt_AR_FLAGS
14322 # A language-specific compiler.
14323 CC=$lt_compiler_CXX
14325 # Is the compiler the GNU C compiler?
14331 # The linker used to build libraries.
14334 # Whether we need hard or soft links.
14337 # A BSD-compatible nm program.
14340 # A symbol stripping program
14343 # Used to examine libraries when file_magic_cmd begins "file"
14344 MAGIC_CMD=$MAGIC_CMD
14346 # Used on cygwin: DLL creation program.
14349 # Used on cygwin: object dumper.
14352 # Used on cygwin: assembler.
14355 # The name of the directory that contains temporary libtool files.
14358 # How to create reloadable object files.
14359 reload_flag=$lt_reload_flag
14360 reload_cmds=$lt_reload_cmds
14362 # How to pass a linker flag through the compiler.
14363 wl=$lt_lt_prog_compiler_wl_CXX
14365 # Object file suffix (normally "o").
14366 objext="$ac_objext"
14368 # Old archive suffix (normally "a").
14371 # Shared library suffix (normally ".so").
14372 shrext_cmds='$shrext_cmds'
14374 # Executable file suffix (normally "").
14377 # Additional compiler flags for building library objects.
14378 pic_flag=$lt_lt_prog_compiler_pic_CXX
14381 # What is the maximum length of a command?
14382 max_cmd_len=$lt_cv_sys_max_cmd_len
14384 # Does compiler simultaneously support -c and -o options?
14385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14387 # Must we lock files when doing compilation ?
14388 need_locks=$lt_need_locks
14390 # Do we need the lib prefix for modules?
14391 need_lib_prefix=$need_lib_prefix
14393 # Do we need a version for libraries?
14394 need_version=$need_version
14396 # Whether dlopen is supported.
14397 dlopen_support=$enable_dlopen
14399 # Whether dlopen of programs is supported.
14400 dlopen_self=$enable_dlopen_self
14402 # Whether dlopen of statically linked programs is supported.
14403 dlopen_self_static=$enable_dlopen_self_static
14405 # Compiler flag to prevent dynamic linking.
14406 link_static_flag=$lt_lt_prog_compiler_static_CXX
14408 # Compiler flag to turn off builtin functions.
14409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14411 # Compiler flag to allow reflexive dlopens.
14412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14414 # Compiler flag to generate shared objects directly from archives.
14415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14417 # Compiler flag to generate thread-safe objects.
14418 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14420 # Library versioning type.
14421 version_type=$version_type
14423 # Format of library name prefix.
14424 libname_spec=$lt_libname_spec
14426 # List of archive names. First name is the real one, the rest are links.
14427 # The last name is the one that the linker finds with -lNAME.
14428 library_names_spec=$lt_library_names_spec
14430 # The coded name of the library, if different from the real name.
14431 soname_spec=$lt_soname_spec
14433 # Commands used to build and install an old-style archive.
14435 old_archive_cmds=$lt_old_archive_cmds_CXX
14436 old_postinstall_cmds=$lt_old_postinstall_cmds
14437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14439 # Create an old-style archive from a shared archive.
14440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14442 # Create a temporary old-style archive to link instead of a shared archive.
14443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14445 # Commands used to build and install a shared archive.
14446 archive_cmds=$lt_archive_cmds_CXX
14447 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14448 postinstall_cmds=$lt_postinstall_cmds
14449 postuninstall_cmds=$lt_postuninstall_cmds
14451 # Commands used to build a loadable module (assumed same as above if empty)
14452 module_cmds=$lt_module_cmds_CXX
14453 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14455 # Commands to strip libraries.
14456 old_striplib=$lt_old_striplib
14457 striplib=$lt_striplib
14459 # Dependencies to place before the objects being linked to create a
14461 predep_objects=$lt_predep_objects_CXX
14463 # Dependencies to place after the objects being linked to create a
14465 postdep_objects=$lt_postdep_objects_CXX
14467 # Dependencies to place before the objects being linked to create a
14469 predeps=$lt_predeps_CXX
14471 # Dependencies to place after the objects being linked to create a
14473 postdeps=$lt_postdeps_CXX
14475 # The library search path used internally by the compiler when linking
14476 # a shared library.
14477 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14479 # Method to check whether dependent libraries are shared objects.
14480 deplibs_check_method=$lt_deplibs_check_method
14482 # Command to use when deplibs_check_method == file_magic.
14483 file_magic_cmd=$lt_file_magic_cmd
14485 # Flag that allows shared libraries with undefined symbols to be built.
14486 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14488 # Flag that forces no undefined symbols.
14489 no_undefined_flag=$lt_no_undefined_flag_CXX
14491 # Commands used to finish a libtool library installation in a directory.
14492 finish_cmds=$lt_finish_cmds
14494 # Same as above, but a single script fragment to be evaled but not shown.
14495 finish_eval=$lt_finish_eval
14497 # Take the output of nm and produce a listing of raw symbols and C names.
14498 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14500 # Transform the output of nm in a proper C declaration
14501 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14503 # Transform the output of nm in a C name address pair
14504 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14506 # This is the shared library runtime path variable.
14507 runpath_var=$runpath_var
14509 # This is the shared library path variable.
14510 shlibpath_var=$shlibpath_var
14512 # Is shlibpath searched before the hard-coded library search path?
14513 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14515 # How to hardcode a shared library path into an executable.
14516 hardcode_action=$hardcode_action_CXX
14518 # Whether we should hardcode library paths into libraries.
14519 hardcode_into_libs=$hardcode_into_libs
14521 # Flag to hardcode \$libdir into a binary during linking.
14522 # This must work even if \$libdir does not exist.
14523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14525 # If ld is used when linking, flag to hardcode \$libdir into
14526 # a binary during linking. This must work even if \$libdir does
14528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14530 # Whether we need a single -rpath flag with a separated argument.
14531 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14533 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14534 # resulting binary.
14535 hardcode_direct=$hardcode_direct_CXX
14537 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14538 # resulting binary.
14539 hardcode_minus_L=$hardcode_minus_L_CXX
14541 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14542 # the resulting binary.
14543 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14545 # Set to yes if building a shared library automatically hardcodes DIR into the library
14546 # and all subsequent libraries and executables linked against it.
14547 hardcode_automatic=$hardcode_automatic_CXX
14549 # Variables whose values should be saved in libtool wrapper scripts and
14550 # restored at relink time.
14551 variables_saved_for_relink="$variables_saved_for_relink"
14553 # Whether libtool must link a program against all its dependency libraries.
14554 link_all_deplibs=$link_all_deplibs_CXX
14556 # Compile-time system search path for libraries
14557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14559 # Run-time system search path for libraries
14560 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14562 # Fix the shell variable \$srcfile for the compiler.
14563 fix_srcfile_path="$fix_srcfile_path_CXX"
14565 # Set to yes if exported symbols are required.
14566 always_export_symbols=$always_export_symbols_CXX
14568 # The commands to list exported symbols.
14569 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14571 # The commands to extract the exported symbol list from a shared archive.
14572 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14574 # Symbols that should not be listed in the preloaded symbols.
14575 exclude_expsyms=$lt_exclude_expsyms_CXX
14577 # Symbols that must always be exported.
14578 include_expsyms=$lt_include_expsyms_CXX
14580 # ### END LIBTOOL TAG CONFIG: $tagname
14586 # If there is no Makefile yet, we rely on a make rule to execute
14587 # `config.status --recheck' to rerun these tests and create the
14588 # libtool script then.
14589 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14590 if test -f "$ltmain_in"; then
14591 test -f Makefile && make "$ltmain"
14597 ac_cpp='$CPP $CPPFLAGS'
14598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14606 with_gnu_ldcxx=$with_gnu_ld
14607 with_gnu_ld=$lt_save_with_gnu_ld
14608 lt_cv_path_LDCXX=$lt_cv_path_LD
14609 lt_cv_path_LD=$lt_save_path_LD
14610 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14611 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14619 if test -n "$F77" && test "X$F77" != "Xno"; then
14622 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14623 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14627 archive_cmds_need_lc_F77=no
14628 allow_undefined_flag_F77=
14629 always_export_symbols_F77=no
14630 archive_expsym_cmds_F77=
14631 export_dynamic_flag_spec_F77=
14632 hardcode_direct_F77=no
14633 hardcode_libdir_flag_spec_F77=
14634 hardcode_libdir_flag_spec_ld_F77=
14635 hardcode_libdir_separator_F77=
14636 hardcode_minus_L_F77=no
14637 hardcode_automatic_F77=no
14639 module_expsym_cmds_F77=
14640 link_all_deplibs_F77=unknown
14641 old_archive_cmds_F77=$old_archive_cmds
14642 no_undefined_flag_F77=
14643 whole_archive_flag_spec_F77=
14644 enable_shared_with_static_runtimes_F77=no
14646 # Source file extension for f77 test sources.
14649 # Object file extension for compiled f77 test sources.
14653 # Code to be used in simple compile tests
14654 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14656 # Code to be used in simple link tests
14657 lt_simple_link_test_code=" program t\n end\n"
14659 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14661 # If no C compiler was specified, use CC.
14664 # Allow CC to be a program name with arguments.
14668 # Allow CC to be a program name with arguments.
14673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14675 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14676 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14677 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14678 echo "${ECHO_T}$can_build_shared" >&6
14680 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14681 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14682 test "$can_build_shared" = "no" && enable_shared=no
14684 # On AIX, shared libraries and static libraries use the same namespace, and
14685 # are all built from PIC.
14688 test "$enable_shared" = yes && enable_static=no
14689 if test -n "$RANLIB"; then
14690 archive_cmds="$archive_cmds;\$RANLIB \$lib"
14691 postinstall_cmds='$RANLIB $lib'
14695 test "$enable_shared" = yes && enable_static=no
14698 echo "$as_me:$LINENO: result: $enable_shared" >&5
14699 echo "${ECHO_T}$enable_shared" >&6
14701 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14702 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14703 # Make sure either enable_shared or enable_static is yes.
14704 test "$enable_shared" = yes || enable_static=yes
14705 echo "$as_me:$LINENO: result: $enable_static" >&5
14706 echo "${ECHO_T}$enable_static" >&6
14708 test "$ld_shlibs_F77" = no && can_build_shared=no
14713 lt_prog_compiler_wl_F77=
14714 lt_prog_compiler_pic_F77=
14715 lt_prog_compiler_static_F77=
14717 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14718 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14720 if test "$GCC" = yes; then
14721 lt_prog_compiler_wl_F77='-Wl,'
14722 lt_prog_compiler_static_F77='-static'
14726 # All AIX code is PIC.
14727 if test "$host_cpu" = ia64; then
14728 # AIX 5 now supports IA64 processor
14729 lt_prog_compiler_static_F77='-Bstatic'
14734 # FIXME: we need at least 68020 code to build shared libraries, but
14735 # adding the `-m68020' flag to GCC prevents building anything better,
14737 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14740 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14741 # PIC is the default for these OSes.
14744 mingw* | pw32* | os2*)
14745 # This hack is so that the source file can tell whether it is being
14746 # built for inclusion in a dll (and should export symbols for example).
14747 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14750 darwin* | rhapsody*)
14751 # PIC is the default on this platform
14752 # Common symbols not allowed in MH_DYLIB files
14753 lt_prog_compiler_pic_F77='-fno-common'
14757 # Just because we use GCC doesn't mean we suddenly get shared libraries
14758 # on systems that don't support them.
14759 lt_prog_compiler_can_build_shared_F77=no
14764 if test -d /usr/nec; then
14765 lt_prog_compiler_pic_F77=-Kconform_pic
14770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14771 # not for PA HP-UX.
14772 case "$host_cpu" in
14777 lt_prog_compiler_pic_F77='-fPIC'
14783 lt_prog_compiler_pic_F77='-fPIC'
14787 # PORTME Check for flag to pass linker flags through the system compiler.
14790 lt_prog_compiler_wl_F77='-Wl,'
14791 if test "$host_cpu" = ia64; then
14792 # AIX 5 now supports IA64 processor
14793 lt_prog_compiler_static_F77='-Bstatic'
14795 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14799 # PIC is the default on this platform
14800 # Common symbols not allowed in MH_DYLIB files
14801 case "$cc_basename" in
14803 lt_prog_compiler_pic_F77='-qnocommon'
14804 lt_prog_compiler_wl_F77='-Wl,'
14809 mingw* | pw32* | os2*)
14810 # This hack is so that the source file can tell whether it is being
14811 # built for inclusion in a dll (and should export symbols for example).
14812 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14815 hpux9* | hpux10* | hpux11*)
14816 lt_prog_compiler_wl_F77='-Wl,'
14817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14818 # not for PA HP-UX.
14819 case "$host_cpu" in
14824 lt_prog_compiler_pic_F77='+Z'
14827 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14828 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14831 irix5* | irix6* | nonstopux*)
14832 lt_prog_compiler_wl_F77='-Wl,'
14833 # PIC (with -KPIC) is the default.
14834 lt_prog_compiler_static_F77='-non_shared'
14838 lt_prog_compiler_pic_F77='-KPIC'
14839 lt_prog_compiler_static_F77='-Bstatic'
14845 lt_prog_compiler_wl_F77='-Wl,'
14846 lt_prog_compiler_pic_F77='-KPIC'
14847 lt_prog_compiler_static_F77='-static'
14850 lt_prog_compiler_wl_F77='-Wl,'
14851 # All Alpha code is PIC.
14852 lt_prog_compiler_static_F77='-non_shared'
14857 osf3* | osf4* | osf5*)
14858 lt_prog_compiler_wl_F77='-Wl,'
14859 # All OSF/1 code is PIC.
14860 lt_prog_compiler_static_F77='-non_shared'
14864 lt_prog_compiler_pic_F77='-Kpic'
14865 lt_prog_compiler_static_F77='-dn'
14869 lt_prog_compiler_wl_F77='-Wl,'
14870 lt_prog_compiler_pic_F77='-KPIC'
14871 lt_prog_compiler_static_F77='-Bstatic'
14875 lt_prog_compiler_wl_F77='-Qoption ld '
14876 lt_prog_compiler_pic_F77='-PIC'
14877 lt_prog_compiler_static_F77='-Bstatic'
14880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14881 lt_prog_compiler_wl_F77='-Wl,'
14882 lt_prog_compiler_pic_F77='-KPIC'
14883 lt_prog_compiler_static_F77='-Bstatic'
14887 if test -d /usr/nec ;then
14888 lt_prog_compiler_pic_F77='-Kconform_pic'
14889 lt_prog_compiler_static_F77='-Bstatic'
14894 lt_prog_compiler_pic_F77='-pic'
14895 lt_prog_compiler_static_F77='-Bstatic'
14899 lt_prog_compiler_can_build_shared_F77=no
14904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14905 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14908 # Check to make sure the PIC flag actually works.
14910 if test -n "$lt_prog_compiler_pic_F77"; then
14912 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14913 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14914 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 lt_prog_compiler_pic_works_F77=no
14918 ac_outfile=conftest.$ac_objext
14919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14920 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14921 # Insert the option either (1) after the last *FLAGS variable, or
14922 # (2) before a word containing "conftest.", or (3) at the end.
14923 # Note that $ac_compile itself does not contain backslashes and begins
14924 # with a dollar sign (not a hyphen), so the echo should work correctly.
14925 # The option is referenced via a variable to avoid confusing sed.
14926 lt_compile=`echo "$ac_compile" | $SED \
14927 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14929 -e 's:$: $lt_compiler_flag:'`
14930 (eval echo "\"\$as_me:14930: $lt_compile\"" >&5)
14931 (eval "$lt_compile" 2>conftest.err)
14933 cat conftest.err >&5
14934 echo "$as_me:14934: \$? = $ac_status" >&5
14935 if (exit $ac_status) && test -s "$ac_outfile"; then
14936 # The compiler can only warn and ignore the option if not recognized
14937 # So say no if there are warnings
14938 if test ! -s conftest.err; then
14939 lt_prog_compiler_pic_works_F77=yes
14945 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14946 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14948 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14949 case $lt_prog_compiler_pic_F77 in
14951 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14954 lt_prog_compiler_pic_F77=
14955 lt_prog_compiler_can_build_shared_F77=no
14960 # For platforms which do not support PIC, -DPIC is meaningless:
14962 lt_prog_compiler_pic_F77=
14965 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14969 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14970 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14971 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 lt_cv_prog_compiler_c_o_F77=no
14975 $rm -r conftest 2>/dev/null
14979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14981 lt_compiler_flag="-o out/conftest2.$ac_objext"
14982 # Insert the option either (1) after the last *FLAGS variable, or
14983 # (2) before a word containing "conftest.", or (3) at the end.
14984 # Note that $ac_compile itself does not contain backslashes and begins
14985 # with a dollar sign (not a hyphen), so the echo should work correctly.
14986 lt_compile=`echo "$ac_compile" | $SED \
14987 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14989 -e 's:$: $lt_compiler_flag:'`
14990 (eval echo "\"\$as_me:14990: $lt_compile\"" >&5)
14991 (eval "$lt_compile" 2>out/conftest.err)
14993 cat out/conftest.err >&5
14994 echo "$as_me:14994: \$? = $ac_status" >&5
14995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14997 # The compiler can only warn and ignore the option if not recognized
14998 # So say no if there are warnings
14999 if test ! -s out/conftest.err; then
15000 lt_cv_prog_compiler_c_o_F77=yes
15005 # SGI C++ compiler will create directory out/ii_files/ for
15006 # template instantiation
15007 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15008 $rm out/* && rmdir out
15014 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15015 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15018 hard_links="nottested"
15019 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15020 # do not overwrite the value of need_locks provided by the user
15021 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15022 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15027 ln conftest.a conftest.b 2>&5 || hard_links=no
15028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15029 echo "$as_me:$LINENO: result: $hard_links" >&5
15030 echo "${ECHO_T}$hard_links" >&6
15031 if test "$hard_links" = no; then
15032 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15033 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15040 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15041 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15044 allow_undefined_flag_F77=
15045 enable_shared_with_static_runtimes_F77=no
15047 archive_expsym_cmds_F77=
15048 old_archive_From_new_cmds_F77=
15049 old_archive_from_expsyms_cmds_F77=
15050 export_dynamic_flag_spec_F77=
15051 whole_archive_flag_spec_F77=
15052 thread_safe_flag_spec_F77=
15053 hardcode_libdir_flag_spec_F77=
15054 hardcode_libdir_flag_spec_ld_F77=
15055 hardcode_libdir_separator_F77=
15056 hardcode_direct_F77=no
15057 hardcode_minus_L_F77=no
15058 hardcode_shlibpath_var_F77=unsupported
15059 link_all_deplibs_F77=unknown
15060 hardcode_automatic_F77=no
15062 module_expsym_cmds_F77=
15063 always_export_symbols_F77=no
15064 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15065 # include_expsyms should be a list of space-separated symbols to be *always*
15066 # included in the symbol list
15067 include_expsyms_F77=
15068 # exclude_expsyms can be an extended regexp of symbols to exclude
15069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15071 # as well as any symbol that contains `d'.
15072 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15074 # platforms (ab)use it in PIC code, but their linkers get confused if
15075 # the symbol is explicitly referenced. Since portable code cannot
15076 # rely on this symbol name, it's probably fine to never include it in
15077 # preloaded symbol tables.
15078 extract_expsyms_cmds=
15081 cygwin* | mingw* | pw32*)
15082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15083 # When not using gcc, we currently assume that we are using
15084 # Microsoft Visual C++.
15085 if test "$GCC" != yes; then
15095 if test "$with_gnu_ld" = yes; then
15096 # If archive_cmds runs LD, not CC, wlarc should be empty
15099 # See if GNU ld supports shared libraries.
15101 aix3* | aix4* | aix5*)
15102 # On AIX/PPC, the GNU linker is very broken
15103 if test "$host_cpu" != ia64; then
15107 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15108 *** to be unable to reliably create shared libraries on AIX.
15109 *** Therefore, libtool is disabling shared libraries support. If you
15110 *** really care for shared libraries, you may want to modify your PATH
15111 *** so that a non-GNU linker is found, and then restart.
15118 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)'
15119 hardcode_libdir_flag_spec_F77='-L$libdir'
15120 hardcode_minus_L_F77=yes
15122 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15123 # that the semantics of dynamic libraries on AmigaOS, at least up
15124 # to version 4, is to share data among multiple programs linked
15125 # with the same dynamic library. Since this doesn't match the
15126 # behavior of shared libraries on other platforms, we can't use
15132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15133 allow_undefined_flag_F77=unsupported
15134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15135 # support --undefined. This deserves some investigation. FIXME
15136 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 cygwin* | mingw* | pw32*)
15143 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15144 # as there is no search path for DLLs.
15145 hardcode_libdir_flag_spec_F77='-L$libdir'
15146 allow_undefined_flag_F77=unsupported
15147 always_export_symbols_F77=no
15148 enable_shared_with_static_runtimes_F77=yes
15149 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15151 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15153 # If the export-symbols file already is a .def file (1st line
15154 # is EXPORTS), use it as is; otherwise, prepend...
15155 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15156 cp $export_symbols $output_objdir/$soname.def;
15158 echo EXPORTS > $output_objdir/$soname.def;
15159 cat $export_symbols >> $output_objdir/$soname.def;
15160 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15168 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15171 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15177 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15182 *** create shared libraries on Solaris systems. Therefore, libtool
15183 *** is disabling shared libraries support. We urge you to upgrade GNU
15184 *** binutils to release 2.9.1 or newer. Another option is to modify
15185 *** your PATH or compiler configuration so that the native linker is
15186 *** used, and then restart.
15189 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15190 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15198 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15200 hardcode_direct_F77=yes
15201 hardcode_shlibpath_var_F77=no
15205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15206 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15207 archive_cmds_F77="$tmp_archive_cmds"
15208 supports_anon_versioning=no
15209 case `$LD -v 2>/dev/null` in
15210 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15211 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15212 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15213 *\ 2.11.*) ;; # other 2.11 versions
15214 *) supports_anon_versioning=yes ;;
15216 if test $supports_anon_versioning = yes; then
15217 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15218 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15220 archive_expsym_cmds_F77="$tmp_archive_cmds"
15228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15229 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15237 if test "$ld_shlibs_F77" = yes; then
15238 runpath_var=LD_RUN_PATH
15239 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15240 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15241 # ancient GNU ld didn't support --whole-archive et. al.
15242 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15243 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15245 whole_archive_flag_spec_F77=
15249 # PORTME fill in a description of your system's linker (not GNU ld)
15252 allow_undefined_flag_F77=unsupported
15253 always_export_symbols_F77=yes
15254 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'
15255 # Note: this linker hardcodes the directories in LIBPATH if there
15256 # are no directories specified by -L.
15257 hardcode_minus_L_F77=yes
15258 if test "$GCC" = yes && test -z "$link_static_flag"; then
15259 # Neither direct hardcoding nor static linking is supported with a
15261 hardcode_direct_F77=unsupported
15266 if test "$host_cpu" = ia64; then
15267 # On IA64, the linker does run time linking by default, so we don't
15268 # have to do anything special.
15269 aix_use_runtimelinking=no
15270 exp_sym_flag='-Bexport'
15273 # If we're using GNU nm, then we don't want the "-C" option.
15274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15275 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15276 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'
15278 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'
15280 aix_use_runtimelinking=no
15282 # Test if we are trying to use run time linking or normal
15283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15284 # need to do runtime linking.
15285 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15286 for ld_flag in $LDFLAGS; do
15287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15288 aix_use_runtimelinking=yes
15294 exp_sym_flag='-bexport'
15295 no_entry_flag='-bnoentry'
15298 # When large executables or shared objects are built, AIX ld can
15299 # have problems creating the table of contents. If linking a library
15300 # or program results in "error TOC overflow" add -mminimal-toc to
15301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15304 archive_cmds_F77=''
15305 hardcode_direct_F77=yes
15306 hardcode_libdir_separator_F77=':'
15307 link_all_deplibs_F77=yes
15309 if test "$GCC" = yes; then
15310 case $host_os in aix4.012|aix4.012.*)
15311 # We only want to do this on AIX 4.2 and lower, the check
15312 # below for broken collect2 doesn't work under 4.3+
15313 collect2name=`${CC} -print-prog-name=collect2`
15314 if test -f "$collect2name" && \
15315 strings "$collect2name" | grep resolve_lib_name >/dev/null
15317 # We have reworked collect2
15318 hardcode_direct_F77=yes
15320 # We have old collect2
15321 hardcode_direct_F77=unsupported
15322 # It fails to find uninstalled libraries when the uninstalled
15323 # path is not listed in the libpath. Setting hardcode_minus_L
15324 # to unsupported forces relinking
15325 hardcode_minus_L_F77=yes
15326 hardcode_libdir_flag_spec_F77='-L$libdir'
15327 hardcode_libdir_separator_F77=
15330 shared_flag='-shared'
15333 if test "$host_cpu" = ia64; then
15334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15335 # chokes on -Wl,-G. The following line is correct:
15338 if test "$aix_use_runtimelinking" = yes; then
15339 shared_flag='${wl}-G'
15341 shared_flag='${wl}-bM:SRE'
15346 # It seems that -bexpall does not export symbols beginning with
15347 # underscore (_), so it is better to generate a list of symbols to export.
15348 always_export_symbols_F77=yes
15349 if test "$aix_use_runtimelinking" = yes; then
15350 # Warning - without using the other runtime loading flags (-brtl),
15351 # -berok will link without error, but may produce a broken library.
15352 allow_undefined_flag_F77='-berok'
15353 # Determine the default libpath from the value encoded in an empty executable.
15354 cat >conftest.$ac_ext <<_ACEOF
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361 (eval $ac_link) 2>conftest.er1
15363 grep -v '^ *+' conftest.er1 >conftest.err
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try='test -z "$ac_f77_werror_flag"
15369 || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest$ac_exeext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15384 # Check for a 64-bit object if we didn't find anything.
15385 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; }
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15392 rm -f conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15396 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15397 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"
15399 if test "$host_cpu" = ia64; then
15400 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15401 allow_undefined_flag_F77="-z nodefs"
15402 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"
15404 # Determine the default libpath from the value encoded in an empty executable.
15405 cat >conftest.$ac_ext <<_ACEOF
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15412 (eval $ac_link) 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_f77_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15435 # Check for a 64-bit object if we didn't find anything.
15436 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; }
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15443 rm -f conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15447 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15448 # Warning - without using the other run time loading flags,
15449 # -berok will link without error, but may produce a broken library.
15450 no_undefined_flag_F77=' ${wl}-bernotok'
15451 allow_undefined_flag_F77=' ${wl}-berok'
15452 # -bexpall does not export symbols beginning with underscore (_)
15453 always_export_symbols_F77=yes
15454 # Exported symbols can be pulled into shared objects from archives
15455 whole_archive_flag_spec_F77=' '
15456 archive_cmds_need_lc_F77=yes
15457 # This is similar to how AIX traditionally builds it's shared libraries.
15458 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'
15464 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)'
15465 hardcode_libdir_flag_spec_F77='-L$libdir'
15466 hardcode_minus_L_F77=yes
15467 # see comment about different semantics on the GNU ld section
15472 export_dynamic_flag_spec_F77=-rdynamic
15475 cygwin* | mingw* | pw32*)
15476 # When not using gcc, we currently assume that we are using
15477 # Microsoft Visual C++.
15478 # hardcode_libdir_flag_spec is actually meaningless, as there is
15479 # no search path for DLLs.
15480 hardcode_libdir_flag_spec_F77=' '
15481 allow_undefined_flag_F77=unsupported
15482 # Tell ltmain to make .lib files, not .a files.
15484 # Tell ltmain to make .dll files, not .so files.
15486 # FIXME: Setting linknames here is a bad hack.
15487 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
15488 # The linker will automatically build a .lib file if we build a DLL.
15489 old_archive_From_new_cmds_F77='true'
15490 # FIXME: Should let the user specify the lib program.
15491 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15492 fix_srcfile_path='`cygpath -w "$srcfile"`'
15493 enable_shared_with_static_runtimes_F77=yes
15496 darwin* | rhapsody*)
15498 rhapsody* | darwin1.[012])
15499 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15502 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15503 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15505 case ${MACOSX_DEPLOYMENT_TARGET} in
15507 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15510 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15516 archive_cmds_need_lc_F77=no
15517 hardcode_direct_F77=no
15518 hardcode_automatic_F77=yes
15519 hardcode_shlibpath_var_F77=unsupported
15520 whole_archive_flag_spec_F77=''
15521 link_all_deplibs_F77=yes
15522 if test "$GCC" = yes ; then
15523 output_verbose_link_cmd='echo'
15524 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15525 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15527 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}'
15528 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}'
15530 case "$cc_basename" in
15532 output_verbose_link_cmd='echo'
15533 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15534 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15536 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}'
15537 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}'
15547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_libdir_flag_spec_F77='-L$libdir'
15549 hardcode_shlibpath_var_F77=no
15556 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15557 # support. Future versions do this automatically, but an explicit c++rt0.o
15558 # does not break anything, and helps significantly (at the cost of a little
15561 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15562 hardcode_libdir_flag_spec_F77='-R$libdir'
15563 hardcode_direct_F77=yes
15564 hardcode_shlibpath_var_F77=no
15567 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15569 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_direct_F77=yes
15571 hardcode_minus_L_F77=yes
15572 hardcode_shlibpath_var_F77=no
15575 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15576 freebsd* | kfreebsd*-gnu)
15577 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15578 hardcode_libdir_flag_spec_F77='-R$libdir'
15579 hardcode_direct_F77=yes
15580 hardcode_shlibpath_var_F77=no
15584 if test "$GCC" = yes; then
15585 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'
15587 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'
15589 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15590 hardcode_libdir_separator_F77=:
15591 hardcode_direct_F77=yes
15593 # hardcode_minus_L: Not really in the search PATH,
15594 # but as the default location of the library.
15595 hardcode_minus_L_F77=yes
15596 export_dynamic_flag_spec_F77='${wl}-E'
15600 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15601 case "$host_cpu" in
15603 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15606 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15610 case "$host_cpu" in
15612 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15619 if test "$with_gnu_ld" = no; then
15620 case "$host_cpu" in
15622 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15623 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15624 hardcode_libdir_separator_F77=:
15625 hardcode_direct_F77=no
15626 hardcode_shlibpath_var_F77=no
15629 hardcode_libdir_flag_spec_F77='-L$libdir'
15630 hardcode_direct_F77=no
15631 hardcode_shlibpath_var_F77=no
15633 # hardcode_minus_L: Not really in the search PATH,
15634 # but as the default location of the library.
15635 hardcode_minus_L_F77=yes
15638 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15639 hardcode_libdir_separator_F77=:
15640 hardcode_direct_F77=yes
15641 export_dynamic_flag_spec_F77='${wl}-E'
15643 # hardcode_minus_L: Not really in the search PATH,
15644 # but as the default location of the library.
15645 hardcode_minus_L_F77=yes
15651 irix5* | irix6* | nonstopux*)
15652 if test "$GCC" = yes; then
15653 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'
15655 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'
15656 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15658 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15659 hardcode_libdir_separator_F77=:
15660 link_all_deplibs_F77=yes
15664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15665 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15667 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15669 hardcode_libdir_flag_spec_F77='-R$libdir'
15670 hardcode_direct_F77=yes
15671 hardcode_shlibpath_var_F77=no
15675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676 hardcode_direct_F77=yes
15677 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15678 hardcode_libdir_separator_F77=:
15679 hardcode_shlibpath_var_F77=no
15683 hardcode_direct_F77=yes
15684 hardcode_shlibpath_var_F77=no
15685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15686 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15687 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15688 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15689 export_dynamic_flag_spec_F77='${wl}-E'
15692 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15693 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15694 hardcode_libdir_flag_spec_F77='-R$libdir'
15697 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15698 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15705 hardcode_libdir_flag_spec_F77='-L$libdir'
15706 hardcode_minus_L_F77=yes
15707 allow_undefined_flag_F77=unsupported
15708 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'
15709 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15713 if test "$GCC" = yes; then
15714 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15715 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'
15717 allow_undefined_flag_F77=' -expect_unresolved \*'
15718 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'
15720 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15721 hardcode_libdir_separator_F77=:
15724 osf4* | osf5*) # as osf3* with the addition of -msym flag
15725 if test "$GCC" = yes; then
15726 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15727 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'
15728 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15730 allow_undefined_flag_F77=' -expect_unresolved \*'
15731 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'
15732 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; $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'
15733 # Both c and cxx compiler support -rpath directly
15734 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15736 hardcode_libdir_separator_F77=:
15740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_shlibpath_var_F77=no
15742 export_dynamic_flag_spec_F77='${wl}-Bexport'
15743 runpath_var=LD_RUN_PATH
15744 hardcode_runpath_var=yes
15748 no_undefined_flag_F77=' -z text'
15749 if test "$GCC" = yes; then
15750 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
15753 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
15756 hardcode_libdir_flag_spec_F77='-R$libdir'
15757 hardcode_shlibpath_var_F77=no
15759 solaris2.[0-5] | solaris2.[0-5].*) ;;
15760 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15761 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15763 link_all_deplibs_F77=yes
15767 if test "x$host_vendor" = xsequent; then
15768 # Use $CC to link under sequent, because it throws in some extra .o
15769 # files that make .init and .fini sections work.
15770 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15772 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_libdir_flag_spec_F77='-L$libdir'
15775 hardcode_direct_F77=yes
15776 hardcode_minus_L_F77=yes
15777 hardcode_shlibpath_var_F77=no
15781 case $host_vendor in
15783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 hardcode_direct_F77=yes # is this really true???
15787 ## LD is ld it makes a PLAMLIB
15788 ## CC just makes a GrossModule.
15789 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15790 reload_cmds_F77='$CC -r -o $output$reload_objs'
15791 hardcode_direct_F77=no
15794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15795 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15798 runpath_var='LD_RUN_PATH'
15799 hardcode_shlibpath_var_F77=no
15803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15804 hardcode_shlibpath_var_F77=no
15805 export_dynamic_flag_spec_F77='-Bexport'
15809 if test -d /usr/nec; then
15810 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811 hardcode_shlibpath_var_F77=no
15812 runpath_var=LD_RUN_PATH
15813 hardcode_runpath_var=yes
15819 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15820 hardcode_direct_F77=yes
15821 hardcode_minus_L_F77=no
15822 hardcode_shlibpath_var_F77=no
15823 hardcode_runpath_var=yes
15824 runpath_var=LD_RUN_PATH
15827 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15828 no_undefined_flag_F77='${wl}-z ${wl}text'
15829 if test "$GCC" = yes; then
15830 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15832 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 runpath_var='LD_RUN_PATH'
15835 hardcode_shlibpath_var_F77=no
15839 no_undefined_flag_F77=' -z text'
15840 # $CC -shared without GNU ld will not create a library from C++
15841 # object files and a static libstdc++, better avoid it by now
15842 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
15844 hardcode_libdir_flag_spec_F77=
15845 hardcode_shlibpath_var_F77=no
15846 runpath_var='LD_RUN_PATH'
15850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851 hardcode_libdir_flag_spec_F77='-L$libdir'
15852 hardcode_shlibpath_var_F77=no
15861 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15862 echo "${ECHO_T}$ld_shlibs_F77" >&6
15863 test "$ld_shlibs_F77" = no && can_build_shared=no
15865 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15866 if test "$GCC" = yes; then
15867 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15871 # Do we need to explicitly link libc?
15873 case "x$archive_cmds_need_lc_F77" in
15875 # Assume -lc should be added
15876 archive_cmds_need_lc_F77=yes
15878 if test "$enable_shared" = yes && test "$GCC" = yes; then
15879 case $archive_cmds_F77 in
15881 # FIXME: we may have to deal with multi-command sequences.
15884 # Test whether the compiler implicitly links with -lc since on some
15885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15886 # to ld, don't add -lc before -lgcc.
15887 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15888 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893 (eval $ac_compile) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } 2>conftest.err; then
15899 libobjs=conftest.$ac_objext
15901 wl=$lt_prog_compiler_wl_F77
15907 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15908 allow_undefined_flag_F77=
15909 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15910 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }
15915 archive_cmds_need_lc_F77=no
15917 archive_cmds_need_lc_F77=yes
15919 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15921 cat conftest.err 1>&5
15924 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15925 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15932 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15933 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15934 library_names_spec=
15935 libname_spec='lib$name'
15939 postuninstall_cmds=
15943 shlibpath_overrides_runpath=unknown
15945 dynamic_linker="$host_os ld.so"
15946 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15947 if test "$GCC" = yes; then
15948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15949 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15950 # if the path contains ";" then we assume it to be the separator
15951 # otherwise default to the standard path separator (i.e. ":") - it is
15952 # assumed that no part of a normal pathname contains ";" but that should
15953 # okay in the real world where ";" in dirpaths is itself problematic.
15954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15961 need_lib_prefix=unknown
15962 hardcode_into_libs=no
15964 # when you set need_version to no, make sure it does not cause -set_version
15965 # flags to be left without arguments
15966 need_version=unknown
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15972 shlibpath_var=LIBPATH
15974 # AIX 3 has no versioning support, so we append a major version to the name.
15975 soname_spec='${libname}${release}${shared_ext}$major'
15982 hardcode_into_libs=yes
15983 if test "$host_cpu" = ia64; then
15984 # AIX 5 supports IA64
15985 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15986 shlibpath_var=LD_LIBRARY_PATH
15988 # With GCC up to 2.95.x, collect2 would create an import file
15989 # for dependence libraries. The import file would start with
15990 # the line `#! .'. This would cause the generated library to
15991 # depend on `.', always an invalid library. This was fixed in
15992 # development snapshots of GCC prior to 3.0.
15994 aix4 | aix4.[01] | aix4.[01].*)
15995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15997 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16000 can_build_shared=no
16004 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16005 # soname into executable. Probably we can add versioning support to
16006 # collect2, so additional links can be useful in future.
16007 if test "$aix_use_runtimelinking" = yes; then
16008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16009 # instead of lib<name>.a to let people know that these are not
16010 # typical AIX shared libraries.
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 # We preserve .a as extension for shared libraries through AIX4.2
16014 # and later when we are not doing run time linking.
16015 library_names_spec='${libname}${release}.a $libname.a'
16016 soname_spec='${libname}${release}${shared_ext}$major'
16018 shlibpath_var=LIBPATH
16023 library_names_spec='$libname.ixlibrary $libname.a'
16024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16025 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'
16029 library_names_spec='${libname}${shared_ext}'
16030 dynamic_linker="$host_os ld.so"
16031 shlibpath_var=LIBRARY_PATH
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038 soname_spec='${libname}${release}${shared_ext}$major'
16039 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16040 shlibpath_var=LD_LIBRARY_PATH
16041 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16042 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16043 # the default ld.so.conf also contains /usr/contrib/lib and
16044 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16045 # libtool to hard-code these into programs
16048 cygwin* | mingw* | pw32*)
16049 version_type=windows
16054 case $GCC,$host_os in
16055 yes,cygwin* | yes,mingw* | yes,pw32*)
16056 library_names_spec='$libname.dll.a'
16057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16058 postinstall_cmds='base_file=`basename \${file}`;
16059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16060 dldir=$destdir/`dirname \$dlpath`;
16061 test -d \$dldir || mkdir -p \$dldir;
16062 $install_prog $dir/$dlname \$dldir/$dlname'
16063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16064 dlpath=$dir/\$dldll;
16066 shlibpath_overrides_runpath=yes
16070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16075 # MinGW DLLs use traditional 'lib' prefix
16076 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16078 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16079 # It is most probably a Windows format PATH printed by
16080 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16081 # path with ; separators, and with drive letters. We can handle the
16082 # drive letters (cygwin fileutils understands them), so leave them,
16083 # especially as we might pass files found there to a mingw objdump,
16084 # which wouldn't understand a cygwinified path. Ahh.
16085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16091 # pw32 DLLs use 'pw' prefix rather than 'lib'
16092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16098 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16101 dynamic_linker='Win32 ld.exe'
16102 # FIXME: first we should search . and the directory the executable is in
16106 darwin* | rhapsody*)
16107 dynamic_linker="$host_os dyld"
16108 version_type=darwin
16111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16112 soname_spec='${libname}${release}${major}$shared_ext'
16113 shlibpath_overrides_runpath=yes
16114 shlibpath_var=DYLD_LIBRARY_PATH
16115 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16116 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16117 if test "$GCC" = yes; then
16118 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"`
16120 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16122 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 shlibpath_var=LD_LIBRARY_PATH
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 shlibpath_overrides_runpath=no
16146 hardcode_into_libs=yes
16147 dynamic_linker='GNU ld.so'
16151 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16152 version_type=freebsd-$objformat
16153 case $version_type in
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16164 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=yes
16169 freebsd3.01* | freebsdelf3.01*)
16170 shlibpath_overrides_runpath=yes
16171 hardcode_into_libs=yes
16174 shlibpath_overrides_runpath=no
16175 hardcode_into_libs=yes
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 hardcode_into_libs=yes
16190 hpux9* | hpux10* | hpux11*)
16191 # Give a soname corresponding to the major version so that dld.sl refuses to
16192 # link against other versions.
16196 case "$host_cpu" in
16199 hardcode_into_libs=yes
16200 dynamic_linker="$host_os dld.so"
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 if test "X$HPUX_IA64_MODE" = X32; then
16206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16214 hardcode_into_libs=yes
16215 dynamic_linker="$host_os dld.sl"
16216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16225 dynamic_linker="$host_os dld.sl"
16226 shlibpath_var=SHLIB_PATH
16227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16232 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16233 postinstall_cmds='chmod 555 $lib'
16236 irix5* | irix6* | nonstopux*)
16238 nonstopux*) version_type=nonstopux ;;
16240 if test "$lt_cv_prog_gnu_ld" = yes; then
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16251 irix5* | nonstopux*)
16252 libsuff= shlibsuff=
16255 case $LD in # libtool.m4 will add one of these switches to LD
16256 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16257 libsuff= shlibsuff= libmagic=32-bit;;
16258 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16259 libsuff=32 shlibsuff=N32 libmagic=N32;;
16260 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16261 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16262 *) libsuff= shlibsuff= libmagic=never-match;;
16266 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16267 shlibpath_overrides_runpath=no
16268 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16269 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16270 hardcode_into_libs=yes
16273 # No shared lib support for Linux oldld, aout, or coff.
16274 linux*oldld* | linux*aout* | linux*coff*)
16278 # This must be Linux ELF.
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284 soname_spec='${libname}${release}${shared_ext}$major'
16285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16286 shlibpath_var=LD_LIBRARY_PATH
16287 shlibpath_overrides_runpath=no
16288 # This implies no fast_install, which is unacceptable.
16289 # Some rework will be needed to allow for fast_install
16290 # before this can be enabled.
16291 hardcode_into_libs=yes
16293 # Append ld.so.conf contents to the search path
16294 if test -f /etc/ld.so.conf; then
16295 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16296 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16299 # We used to test for /lib/ld.so.1 and disable shared libraries on
16300 # powerpc, because MkLinux only supported shared libraries with the
16301 # GNU dynamic linker. Since this was broken with cross compilers,
16302 # most powerpc-linux boxes support dynamic linking these days and
16303 # people can always --disable-shared, the test was removed, and we
16304 # assume the GNU/Linux dynamic linker is in use.
16305 dynamic_linker='GNU/Linux ld.so'
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=no
16316 hardcode_into_libs=yes
16317 dynamic_linker='GNU ld.so'
16324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16327 dynamic_linker='NetBSD (a.out) ld.so'
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 dynamic_linker='NetBSD ld.elf_so'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=yes
16335 hardcode_into_libs=yes
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341 shlibpath_var=LD_LIBRARY_PATH
16342 shlibpath_overrides_runpath=yes
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 shlibpath_var=LD_LIBRARY_PATH
16352 shlibpath_overrides_runpath=yes
16359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16361 shlibpath_var=LD_LIBRARY_PATH
16362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16364 openbsd2.[89] | openbsd2.[89].*)
16365 shlibpath_overrides_runpath=no
16368 shlibpath_overrides_runpath=yes
16372 shlibpath_overrides_runpath=yes
16377 libname_spec='$name'
16380 library_names_spec='$libname${shared_ext} $libname.a'
16381 dynamic_linker='OS/2 ld.exe'
16382 shlibpath_var=LIBPATH
16385 osf3* | osf4* | osf5*)
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 shlibpath_var=LD_LIBRARY_PATH
16392 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16393 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16411 hardcode_into_libs=yes
16412 # ldd complains unless libraries are executable
16413 postinstall_cmds='chmod +x $lib'
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16422 if test "$with_gnu_ld" = yes; then
16428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 soname_spec='${libname}${release}${shared_ext}$major'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 case $host_vendor in
16435 shlibpath_overrides_runpath=no
16437 export_dynamic_flag_spec='${wl}-Blargedynsym'
16438 runpath_var=LD_RUN_PATH
16446 shlibpath_overrides_runpath=no
16447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16453 if test -d /usr/nec ;then
16455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16456 soname_spec='$libname${shared_ext}.$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 shlibpath_var=LD_LIBRARY_PATH
16472 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16473 echo "${ECHO_T}$dynamic_linker" >&6
16474 test "$dynamic_linker" = no && can_build_shared=no
16476 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16477 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16478 hardcode_action_F77=
16479 if test -n "$hardcode_libdir_flag_spec_F77" || \
16480 test -n "$runpath_var_F77" || \
16481 test "X$hardcode_automatic_F77" = "Xyes" ; then
16483 # We can hardcode non-existant directories.
16484 if test "$hardcode_direct_F77" != no &&
16485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16486 # have to relink, otherwise we might link with an installed library
16487 # when we should be linking with a yet-to-be-installed one
16488 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16489 test "$hardcode_minus_L_F77" != no; then
16490 # Linking always hardcodes the temporary library directory.
16491 hardcode_action_F77=relink
16493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16494 hardcode_action_F77=immediate
16497 # We cannot hardcode anything, or else we can only hardcode existing
16499 hardcode_action_F77=unsupported
16501 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16502 echo "${ECHO_T}$hardcode_action_F77" >&6
16504 if test "$hardcode_action_F77" = relink; then
16505 # Fast installation is not supported
16506 enable_fast_install=no
16507 elif test "$shlibpath_overrides_runpath" = yes ||
16508 test "$enable_shared" = no; then
16509 # Fast installation is not necessary
16510 enable_fast_install=needless
16515 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16516 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16517 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16518 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16519 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16520 echo "$as_me:$LINENO: result: yes" >&5
16521 echo "${ECHO_T}yes" >&6
16523 # FIXME - insert some real tests, host_os isn't really good enough
16526 if test -n "$STRIP" ; then
16527 striplib="$STRIP -x"
16528 echo "$as_me:$LINENO: result: yes" >&5
16529 echo "${ECHO_T}yes" >&6
16531 echo "$as_me:$LINENO: result: no" >&5
16532 echo "${ECHO_T}no" >&6
16536 echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6
16544 # The else clause should only fire when bootstrapping the
16545 # libtool distribution, otherwise you forgot to ship ltmain.sh
16546 # with your package, and you will get complaints that there are
16547 # no rules to generate ltmain.sh.
16548 if test -f "$ltmain"; then
16549 # See if we are running on zsh, and set the options which allow our commands through
16550 # without removal of \ escapes.
16551 if test -n "${ZSH_VERSION+set}" ; then
16552 setopt NO_GLOB_SUBST
16554 # Now quote all the things that may contain metacharacters while being
16555 # careful not to overquote the AC_SUBSTed values. We take copies of the
16556 # variables and quote the copies for generation of the libtool script.
16557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16561 deplibs_check_method reload_flag reload_cmds need_locks \
16562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16563 lt_cv_sys_global_symbol_to_c_name_address \
16564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16565 old_postinstall_cmds old_postuninstall_cmds \
16569 lt_prog_compiler_wl_F77 \
16570 lt_prog_compiler_pic_F77 \
16571 lt_prog_compiler_static_F77 \
16572 lt_prog_compiler_no_builtin_flag_F77 \
16573 export_dynamic_flag_spec_F77 \
16574 thread_safe_flag_spec_F77 \
16575 whole_archive_flag_spec_F77 \
16576 enable_shared_with_static_runtimes_F77 \
16577 old_archive_cmds_F77 \
16578 old_archive_from_new_cmds_F77 \
16579 predep_objects_F77 \
16580 postdep_objects_F77 \
16583 compiler_lib_search_path_F77 \
16585 archive_expsym_cmds_F77 \
16586 postinstall_cmds_F77 \
16587 postuninstall_cmds_F77 \
16588 old_archive_from_expsyms_cmds_F77 \
16589 allow_undefined_flag_F77 \
16590 no_undefined_flag_F77 \
16591 export_symbols_cmds_F77 \
16592 hardcode_libdir_flag_spec_F77 \
16593 hardcode_libdir_flag_spec_ld_F77 \
16594 hardcode_libdir_separator_F77 \
16595 hardcode_automatic_F77 \
16597 module_expsym_cmds_F77 \
16598 lt_cv_prog_compiler_c_o_F77 \
16599 exclude_expsyms_F77 \
16600 include_expsyms_F77; do
16603 old_archive_cmds_F77 | \
16604 old_archive_from_new_cmds_F77 | \
16605 archive_cmds_F77 | \
16606 archive_expsym_cmds_F77 | \
16607 module_cmds_F77 | \
16608 module_expsym_cmds_F77 | \
16609 old_archive_from_expsyms_cmds_F77 | \
16610 export_symbols_cmds_F77 | \
16611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16612 postinstall_cmds | postuninstall_cmds | \
16613 old_postinstall_cmds | old_postuninstall_cmds | \
16614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16615 # Double-quote double-evaled strings.
16616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16625 *'\$0 --fallback-echo"')
16626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16632 cat <<__EOF__ >> "$cfgfile"
16633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16637 # Shell to use when invoking shell scripts.
16640 # Whether or not to build shared libraries.
16641 build_libtool_libs=$enable_shared
16643 # Whether or not to build static libraries.
16644 build_old_libs=$enable_static
16646 # Whether or not to add -lc for building shared libraries.
16647 build_libtool_need_lc=$archive_cmds_need_lc_F77
16649 # Whether or not to disallow shared libs when runtime libs are static
16650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16652 # Whether or not to optimize for fast installation.
16653 fast_install=$enable_fast_install
16656 host_alias=$host_alias
16659 # An echo program that does not interpret backslashes.
16664 AR_FLAGS=$lt_AR_FLAGS
16669 # A language-specific compiler.
16670 CC=$lt_compiler_F77
16672 # Is the compiler the GNU C compiler?
16678 # The linker used to build libraries.
16681 # Whether we need hard or soft links.
16684 # A BSD-compatible nm program.
16687 # A symbol stripping program
16690 # Used to examine libraries when file_magic_cmd begins "file"
16691 MAGIC_CMD=$MAGIC_CMD
16693 # Used on cygwin: DLL creation program.
16696 # Used on cygwin: object dumper.
16699 # Used on cygwin: assembler.
16702 # The name of the directory that contains temporary libtool files.
16705 # How to create reloadable object files.
16706 reload_flag=$lt_reload_flag
16707 reload_cmds=$lt_reload_cmds
16709 # How to pass a linker flag through the compiler.
16710 wl=$lt_lt_prog_compiler_wl_F77
16712 # Object file suffix (normally "o").
16713 objext="$ac_objext"
16715 # Old archive suffix (normally "a").
16718 # Shared library suffix (normally ".so").
16719 shrext_cmds='$shrext_cmds'
16721 # Executable file suffix (normally "").
16724 # Additional compiler flags for building library objects.
16725 pic_flag=$lt_lt_prog_compiler_pic_F77
16728 # What is the maximum length of a command?
16729 max_cmd_len=$lt_cv_sys_max_cmd_len
16731 # Does compiler simultaneously support -c and -o options?
16732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16734 # Must we lock files when doing compilation ?
16735 need_locks=$lt_need_locks
16737 # Do we need the lib prefix for modules?
16738 need_lib_prefix=$need_lib_prefix
16740 # Do we need a version for libraries?
16741 need_version=$need_version
16743 # Whether dlopen is supported.
16744 dlopen_support=$enable_dlopen
16746 # Whether dlopen of programs is supported.
16747 dlopen_self=$enable_dlopen_self
16749 # Whether dlopen of statically linked programs is supported.
16750 dlopen_self_static=$enable_dlopen_self_static
16752 # Compiler flag to prevent dynamic linking.
16753 link_static_flag=$lt_lt_prog_compiler_static_F77
16755 # Compiler flag to turn off builtin functions.
16756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16758 # Compiler flag to allow reflexive dlopens.
16759 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16761 # Compiler flag to generate shared objects directly from archives.
16762 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16764 # Compiler flag to generate thread-safe objects.
16765 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16767 # Library versioning type.
16768 version_type=$version_type
16770 # Format of library name prefix.
16771 libname_spec=$lt_libname_spec
16773 # List of archive names. First name is the real one, the rest are links.
16774 # The last name is the one that the linker finds with -lNAME.
16775 library_names_spec=$lt_library_names_spec
16777 # The coded name of the library, if different from the real name.
16778 soname_spec=$lt_soname_spec
16780 # Commands used to build and install an old-style archive.
16782 old_archive_cmds=$lt_old_archive_cmds_F77
16783 old_postinstall_cmds=$lt_old_postinstall_cmds
16784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16786 # Create an old-style archive from a shared archive.
16787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16789 # Create a temporary old-style archive to link instead of a shared archive.
16790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16792 # Commands used to build and install a shared archive.
16793 archive_cmds=$lt_archive_cmds_F77
16794 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16795 postinstall_cmds=$lt_postinstall_cmds
16796 postuninstall_cmds=$lt_postuninstall_cmds
16798 # Commands used to build a loadable module (assumed same as above if empty)
16799 module_cmds=$lt_module_cmds_F77
16800 module_expsym_cmds=$lt_module_expsym_cmds_F77
16802 # Commands to strip libraries.
16803 old_striplib=$lt_old_striplib
16804 striplib=$lt_striplib
16806 # Dependencies to place before the objects being linked to create a
16808 predep_objects=$lt_predep_objects_F77
16810 # Dependencies to place after the objects being linked to create a
16812 postdep_objects=$lt_postdep_objects_F77
16814 # Dependencies to place before the objects being linked to create a
16816 predeps=$lt_predeps_F77
16818 # Dependencies to place after the objects being linked to create a
16820 postdeps=$lt_postdeps_F77
16822 # The library search path used internally by the compiler when linking
16823 # a shared library.
16824 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16826 # Method to check whether dependent libraries are shared objects.
16827 deplibs_check_method=$lt_deplibs_check_method
16829 # Command to use when deplibs_check_method == file_magic.
16830 file_magic_cmd=$lt_file_magic_cmd
16832 # Flag that allows shared libraries with undefined symbols to be built.
16833 allow_undefined_flag=$lt_allow_undefined_flag_F77
16835 # Flag that forces no undefined symbols.
16836 no_undefined_flag=$lt_no_undefined_flag_F77
16838 # Commands used to finish a libtool library installation in a directory.
16839 finish_cmds=$lt_finish_cmds
16841 # Same as above, but a single script fragment to be evaled but not shown.
16842 finish_eval=$lt_finish_eval
16844 # Take the output of nm and produce a listing of raw symbols and C names.
16845 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16847 # Transform the output of nm in a proper C declaration
16848 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16850 # Transform the output of nm in a C name address pair
16851 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16853 # This is the shared library runtime path variable.
16854 runpath_var=$runpath_var
16856 # This is the shared library path variable.
16857 shlibpath_var=$shlibpath_var
16859 # Is shlibpath searched before the hard-coded library search path?
16860 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16862 # How to hardcode a shared library path into an executable.
16863 hardcode_action=$hardcode_action_F77
16865 # Whether we should hardcode library paths into libraries.
16866 hardcode_into_libs=$hardcode_into_libs
16868 # Flag to hardcode \$libdir into a binary during linking.
16869 # This must work even if \$libdir does not exist.
16870 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16872 # If ld is used when linking, flag to hardcode \$libdir into
16873 # a binary during linking. This must work even if \$libdir does
16875 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16877 # Whether we need a single -rpath flag with a separated argument.
16878 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16880 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16881 # resulting binary.
16882 hardcode_direct=$hardcode_direct_F77
16884 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16885 # resulting binary.
16886 hardcode_minus_L=$hardcode_minus_L_F77
16888 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16889 # the resulting binary.
16890 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16892 # Set to yes if building a shared library automatically hardcodes DIR into the library
16893 # and all subsequent libraries and executables linked against it.
16894 hardcode_automatic=$hardcode_automatic_F77
16896 # Variables whose values should be saved in libtool wrapper scripts and
16897 # restored at relink time.
16898 variables_saved_for_relink="$variables_saved_for_relink"
16900 # Whether libtool must link a program against all its dependency libraries.
16901 link_all_deplibs=$link_all_deplibs_F77
16903 # Compile-time system search path for libraries
16904 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16906 # Run-time system search path for libraries
16907 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16909 # Fix the shell variable \$srcfile for the compiler.
16910 fix_srcfile_path="$fix_srcfile_path_F77"
16912 # Set to yes if exported symbols are required.
16913 always_export_symbols=$always_export_symbols_F77
16915 # The commands to list exported symbols.
16916 export_symbols_cmds=$lt_export_symbols_cmds_F77
16918 # The commands to extract the exported symbol list from a shared archive.
16919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16921 # Symbols that should not be listed in the preloaded symbols.
16922 exclude_expsyms=$lt_exclude_expsyms_F77
16924 # Symbols that must always be exported.
16925 include_expsyms=$lt_include_expsyms_F77
16927 # ### END LIBTOOL TAG CONFIG: $tagname
16933 # If there is no Makefile yet, we rely on a make rule to execute
16934 # `config.status --recheck' to rerun these tests and create the
16935 # libtool script then.
16936 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16937 if test -f "$ltmain_in"; then
16938 test -f Makefile && make "$ltmain"
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16957 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16959 ac_cpp='$CPP $CPPFLAGS'
16960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16965 # Source file extension for Java test sources.
16968 # Object file extension for compiled Java test sources.
16972 # Code to be used in simple compile tests
16973 lt_simple_compile_test_code="class foo {}\n"
16975 # Code to be used in simple link tests
16976 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16980 # If no C compiler was specified, use CC.
16983 # Allow CC to be a program name with arguments.
16987 # Allow CC to be a program name with arguments.
16993 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16994 archive_cmds_need_lc_GCJ=no
16997 lt_prog_compiler_no_builtin_flag_GCJ=
16999 if test "$GCC" = yes; then
17000 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17003 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17004 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17005 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 lt_cv_prog_compiler_rtti_exceptions=no
17009 ac_outfile=conftest.$ac_objext
17010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17011 lt_compiler_flag="-fno-rtti -fno-exceptions"
17012 # Insert the option either (1) after the last *FLAGS variable, or
17013 # (2) before a word containing "conftest.", or (3) at the end.
17014 # Note that $ac_compile itself does not contain backslashes and begins
17015 # with a dollar sign (not a hyphen), so the echo should work correctly.
17016 # The option is referenced via a variable to avoid confusing sed.
17017 lt_compile=`echo "$ac_compile" | $SED \
17018 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17020 -e 's:$: $lt_compiler_flag:'`
17021 (eval echo "\"\$as_me:17021: $lt_compile\"" >&5)
17022 (eval "$lt_compile" 2>conftest.err)
17024 cat conftest.err >&5
17025 echo "$as_me:17025: \$? = $ac_status" >&5
17026 if (exit $ac_status) && test -s "$ac_outfile"; then
17027 # The compiler can only warn and ignore the option if not recognized
17028 # So say no if there are warnings
17029 if test ! -s conftest.err; then
17030 lt_cv_prog_compiler_rtti_exceptions=yes
17036 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17037 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17039 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17040 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17047 lt_prog_compiler_wl_GCJ=
17048 lt_prog_compiler_pic_GCJ=
17049 lt_prog_compiler_static_GCJ=
17051 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17052 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17054 if test "$GCC" = yes; then
17055 lt_prog_compiler_wl_GCJ='-Wl,'
17056 lt_prog_compiler_static_GCJ='-static'
17060 # All AIX code is PIC.
17061 if test "$host_cpu" = ia64; then
17062 # AIX 5 now supports IA64 processor
17063 lt_prog_compiler_static_GCJ='-Bstatic'
17068 # FIXME: we need at least 68020 code to build shared libraries, but
17069 # adding the `-m68020' flag to GCC prevents building anything better,
17071 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17074 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17075 # PIC is the default for these OSes.
17078 mingw* | pw32* | os2*)
17079 # This hack is so that the source file can tell whether it is being
17080 # built for inclusion in a dll (and should export symbols for example).
17081 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17084 darwin* | rhapsody*)
17085 # PIC is the default on this platform
17086 # Common symbols not allowed in MH_DYLIB files
17087 lt_prog_compiler_pic_GCJ='-fno-common'
17091 # Just because we use GCC doesn't mean we suddenly get shared libraries
17092 # on systems that don't support them.
17093 lt_prog_compiler_can_build_shared_GCJ=no
17098 if test -d /usr/nec; then
17099 lt_prog_compiler_pic_GCJ=-Kconform_pic
17104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17105 # not for PA HP-UX.
17106 case "$host_cpu" in
17111 lt_prog_compiler_pic_GCJ='-fPIC'
17117 lt_prog_compiler_pic_GCJ='-fPIC'
17121 # PORTME Check for flag to pass linker flags through the system compiler.
17124 lt_prog_compiler_wl_GCJ='-Wl,'
17125 if test "$host_cpu" = ia64; then
17126 # AIX 5 now supports IA64 processor
17127 lt_prog_compiler_static_GCJ='-Bstatic'
17129 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17133 # PIC is the default on this platform
17134 # Common symbols not allowed in MH_DYLIB files
17135 case "$cc_basename" in
17137 lt_prog_compiler_pic_GCJ='-qnocommon'
17138 lt_prog_compiler_wl_GCJ='-Wl,'
17143 mingw* | pw32* | os2*)
17144 # This hack is so that the source file can tell whether it is being
17145 # built for inclusion in a dll (and should export symbols for example).
17146 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17149 hpux9* | hpux10* | hpux11*)
17150 lt_prog_compiler_wl_GCJ='-Wl,'
17151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17152 # not for PA HP-UX.
17153 case "$host_cpu" in
17158 lt_prog_compiler_pic_GCJ='+Z'
17161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17162 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17165 irix5* | irix6* | nonstopux*)
17166 lt_prog_compiler_wl_GCJ='-Wl,'
17167 # PIC (with -KPIC) is the default.
17168 lt_prog_compiler_static_GCJ='-non_shared'
17172 lt_prog_compiler_pic_GCJ='-KPIC'
17173 lt_prog_compiler_static_GCJ='-Bstatic'
17179 lt_prog_compiler_wl_GCJ='-Wl,'
17180 lt_prog_compiler_pic_GCJ='-KPIC'
17181 lt_prog_compiler_static_GCJ='-static'
17184 lt_prog_compiler_wl_GCJ='-Wl,'
17185 # All Alpha code is PIC.
17186 lt_prog_compiler_static_GCJ='-non_shared'
17191 osf3* | osf4* | osf5*)
17192 lt_prog_compiler_wl_GCJ='-Wl,'
17193 # All OSF/1 code is PIC.
17194 lt_prog_compiler_static_GCJ='-non_shared'
17198 lt_prog_compiler_pic_GCJ='-Kpic'
17199 lt_prog_compiler_static_GCJ='-dn'
17203 lt_prog_compiler_wl_GCJ='-Wl,'
17204 lt_prog_compiler_pic_GCJ='-KPIC'
17205 lt_prog_compiler_static_GCJ='-Bstatic'
17209 lt_prog_compiler_wl_GCJ='-Qoption ld '
17210 lt_prog_compiler_pic_GCJ='-PIC'
17211 lt_prog_compiler_static_GCJ='-Bstatic'
17214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17215 lt_prog_compiler_wl_GCJ='-Wl,'
17216 lt_prog_compiler_pic_GCJ='-KPIC'
17217 lt_prog_compiler_static_GCJ='-Bstatic'
17221 if test -d /usr/nec ;then
17222 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17223 lt_prog_compiler_static_GCJ='-Bstatic'
17228 lt_prog_compiler_pic_GCJ='-pic'
17229 lt_prog_compiler_static_GCJ='-Bstatic'
17233 lt_prog_compiler_can_build_shared_GCJ=no
17238 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17239 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17242 # Check to make sure the PIC flag actually works.
17244 if test -n "$lt_prog_compiler_pic_GCJ"; then
17246 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17248 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 lt_prog_compiler_pic_works_GCJ=no
17252 ac_outfile=conftest.$ac_objext
17253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17254 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17255 # Insert the option either (1) after the last *FLAGS variable, or
17256 # (2) before a word containing "conftest.", or (3) at the end.
17257 # Note that $ac_compile itself does not contain backslashes and begins
17258 # with a dollar sign (not a hyphen), so the echo should work correctly.
17259 # The option is referenced via a variable to avoid confusing sed.
17260 lt_compile=`echo "$ac_compile" | $SED \
17261 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17263 -e 's:$: $lt_compiler_flag:'`
17264 (eval echo "\"\$as_me:17264: $lt_compile\"" >&5)
17265 (eval "$lt_compile" 2>conftest.err)
17267 cat conftest.err >&5
17268 echo "$as_me:17268: \$? = $ac_status" >&5
17269 if (exit $ac_status) && test -s "$ac_outfile"; then
17270 # The compiler can only warn and ignore the option if not recognized
17271 # So say no if there are warnings
17272 if test ! -s conftest.err; then
17273 lt_prog_compiler_pic_works_GCJ=yes
17279 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17280 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17282 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17283 case $lt_prog_compiler_pic_GCJ in
17285 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17288 lt_prog_compiler_pic_GCJ=
17289 lt_prog_compiler_can_build_shared_GCJ=no
17294 # For platforms which do not support PIC, -DPIC is meaningless:
17296 lt_prog_compiler_pic_GCJ=
17299 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17303 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17304 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17305 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 lt_cv_prog_compiler_c_o_GCJ=no
17309 $rm -r conftest 2>/dev/null
17313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17315 lt_compiler_flag="-o out/conftest2.$ac_objext"
17316 # Insert the option either (1) after the last *FLAGS variable, or
17317 # (2) before a word containing "conftest.", or (3) at the end.
17318 # Note that $ac_compile itself does not contain backslashes and begins
17319 # with a dollar sign (not a hyphen), so the echo should work correctly.
17320 lt_compile=`echo "$ac_compile" | $SED \
17321 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17323 -e 's:$: $lt_compiler_flag:'`
17324 (eval echo "\"\$as_me:17324: $lt_compile\"" >&5)
17325 (eval "$lt_compile" 2>out/conftest.err)
17327 cat out/conftest.err >&5
17328 echo "$as_me:17328: \$? = $ac_status" >&5
17329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17331 # The compiler can only warn and ignore the option if not recognized
17332 # So say no if there are warnings
17333 if test ! -s out/conftest.err; then
17334 lt_cv_prog_compiler_c_o_GCJ=yes
17339 # SGI C++ compiler will create directory out/ii_files/ for
17340 # template instantiation
17341 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17342 $rm out/* && rmdir out
17348 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17349 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17352 hard_links="nottested"
17353 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17354 # do not overwrite the value of need_locks provided by the user
17355 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17356 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17361 ln conftest.a conftest.b 2>&5 || hard_links=no
17362 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17363 echo "$as_me:$LINENO: result: $hard_links" >&5
17364 echo "${ECHO_T}$hard_links" >&6
17365 if test "$hard_links" = no; then
17366 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17367 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17374 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17375 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17378 allow_undefined_flag_GCJ=
17379 enable_shared_with_static_runtimes_GCJ=no
17381 archive_expsym_cmds_GCJ=
17382 old_archive_From_new_cmds_GCJ=
17383 old_archive_from_expsyms_cmds_GCJ=
17384 export_dynamic_flag_spec_GCJ=
17385 whole_archive_flag_spec_GCJ=
17386 thread_safe_flag_spec_GCJ=
17387 hardcode_libdir_flag_spec_GCJ=
17388 hardcode_libdir_flag_spec_ld_GCJ=
17389 hardcode_libdir_separator_GCJ=
17390 hardcode_direct_GCJ=no
17391 hardcode_minus_L_GCJ=no
17392 hardcode_shlibpath_var_GCJ=unsupported
17393 link_all_deplibs_GCJ=unknown
17394 hardcode_automatic_GCJ=no
17396 module_expsym_cmds_GCJ=
17397 always_export_symbols_GCJ=no
17398 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17399 # include_expsyms should be a list of space-separated symbols to be *always*
17400 # included in the symbol list
17401 include_expsyms_GCJ=
17402 # exclude_expsyms can be an extended regexp of symbols to exclude
17403 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17404 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17405 # as well as any symbol that contains `d'.
17406 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17407 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17408 # platforms (ab)use it in PIC code, but their linkers get confused if
17409 # the symbol is explicitly referenced. Since portable code cannot
17410 # rely on this symbol name, it's probably fine to never include it in
17411 # preloaded symbol tables.
17412 extract_expsyms_cmds=
17415 cygwin* | mingw* | pw32*)
17416 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17417 # When not using gcc, we currently assume that we are using
17418 # Microsoft Visual C++.
17419 if test "$GCC" != yes; then
17429 if test "$with_gnu_ld" = yes; then
17430 # If archive_cmds runs LD, not CC, wlarc should be empty
17433 # See if GNU ld supports shared libraries.
17435 aix3* | aix4* | aix5*)
17436 # On AIX/PPC, the GNU linker is very broken
17437 if test "$host_cpu" != ia64; then
17441 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17442 *** to be unable to reliably create shared libraries on AIX.
17443 *** Therefore, libtool is disabling shared libraries support. If you
17444 *** really care for shared libraries, you may want to modify your PATH
17445 *** so that a non-GNU linker is found, and then restart.
17452 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)'
17453 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454 hardcode_minus_L_GCJ=yes
17456 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17457 # that the semantics of dynamic libraries on AmigaOS, at least up
17458 # to version 4, is to share data among multiple programs linked
17459 # with the same dynamic library. Since this doesn't match the
17460 # behavior of shared libraries on other platforms, we can't use
17466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17467 allow_undefined_flag_GCJ=unsupported
17468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17469 # support --undefined. This deserves some investigation. FIXME
17470 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17476 cygwin* | mingw* | pw32*)
17477 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17478 # as there is no search path for DLLs.
17479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17480 allow_undefined_flag_GCJ=unsupported
17481 always_export_symbols_GCJ=no
17482 enable_shared_with_static_runtimes_GCJ=yes
17483 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17485 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17487 # If the export-symbols file already is a .def file (1st line
17488 # is EXPORTS), use it as is; otherwise, prepend...
17489 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17490 cp $export_symbols $output_objdir/$soname.def;
17492 echo EXPORTS > $output_objdir/$soname.def;
17493 cat $export_symbols >> $output_objdir/$soname.def;
17494 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17502 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17505 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17506 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17511 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17515 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17516 *** create shared libraries on Solaris systems. Therefore, libtool
17517 *** is disabling shared libraries support. We urge you to upgrade GNU
17518 *** binutils to release 2.9.1 or newer. Another option is to modify
17519 *** your PATH or compiler configuration so that the native linker is
17520 *** used, and then restart.
17523 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17524 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17532 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17534 hardcode_direct_GCJ=yes
17535 hardcode_shlibpath_var_GCJ=no
17539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17540 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17541 archive_cmds_GCJ="$tmp_archive_cmds"
17542 supports_anon_versioning=no
17543 case `$LD -v 2>/dev/null` in
17544 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17547 *\ 2.11.*) ;; # other 2.11 versions
17548 *) supports_anon_versioning=yes ;;
17550 if test $supports_anon_versioning = yes; then
17551 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
17552 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17554 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17563 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17564 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17571 if test "$ld_shlibs_GCJ" = yes; then
17572 runpath_var=LD_RUN_PATH
17573 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17574 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17575 # ancient GNU ld didn't support --whole-archive et. al.
17576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17577 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17579 whole_archive_flag_spec_GCJ=
17583 # PORTME fill in a description of your system's linker (not GNU ld)
17586 allow_undefined_flag_GCJ=unsupported
17587 always_export_symbols_GCJ=yes
17588 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'
17589 # Note: this linker hardcodes the directories in LIBPATH if there
17590 # are no directories specified by -L.
17591 hardcode_minus_L_GCJ=yes
17592 if test "$GCC" = yes && test -z "$link_static_flag"; then
17593 # Neither direct hardcoding nor static linking is supported with a
17595 hardcode_direct_GCJ=unsupported
17600 if test "$host_cpu" = ia64; then
17601 # On IA64, the linker does run time linking by default, so we don't
17602 # have to do anything special.
17603 aix_use_runtimelinking=no
17604 exp_sym_flag='-Bexport'
17607 # If we're using GNU nm, then we don't want the "-C" option.
17608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17609 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17610 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'
17612 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'
17614 aix_use_runtimelinking=no
17616 # Test if we are trying to use run time linking or normal
17617 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17618 # need to do runtime linking.
17619 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17620 for ld_flag in $LDFLAGS; do
17621 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17622 aix_use_runtimelinking=yes
17628 exp_sym_flag='-bexport'
17629 no_entry_flag='-bnoentry'
17632 # When large executables or shared objects are built, AIX ld can
17633 # have problems creating the table of contents. If linking a library
17634 # or program results in "error TOC overflow" add -mminimal-toc to
17635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17638 archive_cmds_GCJ=''
17639 hardcode_direct_GCJ=yes
17640 hardcode_libdir_separator_GCJ=':'
17641 link_all_deplibs_GCJ=yes
17643 if test "$GCC" = yes; then
17644 case $host_os in aix4.012|aix4.012.*)
17645 # We only want to do this on AIX 4.2 and lower, the check
17646 # below for broken collect2 doesn't work under 4.3+
17647 collect2name=`${CC} -print-prog-name=collect2`
17648 if test -f "$collect2name" && \
17649 strings "$collect2name" | grep resolve_lib_name >/dev/null
17651 # We have reworked collect2
17652 hardcode_direct_GCJ=yes
17654 # We have old collect2
17655 hardcode_direct_GCJ=unsupported
17656 # It fails to find uninstalled libraries when the uninstalled
17657 # path is not listed in the libpath. Setting hardcode_minus_L
17658 # to unsupported forces relinking
17659 hardcode_minus_L_GCJ=yes
17660 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17661 hardcode_libdir_separator_GCJ=
17664 shared_flag='-shared'
17667 if test "$host_cpu" = ia64; then
17668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17669 # chokes on -Wl,-G. The following line is correct:
17672 if test "$aix_use_runtimelinking" = yes; then
17673 shared_flag='${wl}-G'
17675 shared_flag='${wl}-bM:SRE'
17680 # It seems that -bexpall does not export symbols beginning with
17681 # underscore (_), so it is better to generate a list of symbols to export.
17682 always_export_symbols_GCJ=yes
17683 if test "$aix_use_runtimelinking" = yes; then
17684 # Warning - without using the other runtime loading flags (-brtl),
17685 # -berok will link without error, but may produce a broken library.
17686 allow_undefined_flag_GCJ='-berok'
17687 # Determine the default libpath from the value encoded in an empty executable.
17688 cat >conftest.$ac_ext <<_ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705 (eval $ac_link) 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17728 # Check for a 64-bit object if we didn't find anything.
17729 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; }
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17736 rm -f conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
17738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17740 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17741 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"
17743 if test "$host_cpu" = ia64; then
17744 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17745 allow_undefined_flag_GCJ="-z nodefs"
17746 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"
17748 # Determine the default libpath from the value encoded in an empty executable.
17749 cat >conftest.$ac_ext <<_ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17764 rm -f conftest.$ac_objext conftest$ac_exeext
17765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766 (eval $ac_link) 2>conftest.er1
17768 grep -v '^ *+' conftest.er1 >conftest.err
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17789 # Check for a 64-bit object if we didn't find anything.
17790 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; }
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17797 rm -f conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17801 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17802 # Warning - without using the other run time loading flags,
17803 # -berok will link without error, but may produce a broken library.
17804 no_undefined_flag_GCJ=' ${wl}-bernotok'
17805 allow_undefined_flag_GCJ=' ${wl}-berok'
17806 # -bexpall does not export symbols beginning with underscore (_)
17807 always_export_symbols_GCJ=yes
17808 # Exported symbols can be pulled into shared objects from archives
17809 whole_archive_flag_spec_GCJ=' '
17810 archive_cmds_need_lc_GCJ=yes
17811 # This is similar to how AIX traditionally builds it's shared libraries.
17812 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'
17818 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)'
17819 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17820 hardcode_minus_L_GCJ=yes
17821 # see comment about different semantics on the GNU ld section
17826 export_dynamic_flag_spec_GCJ=-rdynamic
17829 cygwin* | mingw* | pw32*)
17830 # When not using gcc, we currently assume that we are using
17831 # Microsoft Visual C++.
17832 # hardcode_libdir_flag_spec is actually meaningless, as there is
17833 # no search path for DLLs.
17834 hardcode_libdir_flag_spec_GCJ=' '
17835 allow_undefined_flag_GCJ=unsupported
17836 # Tell ltmain to make .lib files, not .a files.
17838 # Tell ltmain to make .dll files, not .so files.
17840 # FIXME: Setting linknames here is a bad hack.
17841 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
17842 # The linker will automatically build a .lib file if we build a DLL.
17843 old_archive_From_new_cmds_GCJ='true'
17844 # FIXME: Should let the user specify the lib program.
17845 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17846 fix_srcfile_path='`cygpath -w "$srcfile"`'
17847 enable_shared_with_static_runtimes_GCJ=yes
17850 darwin* | rhapsody*)
17852 rhapsody* | darwin1.[012])
17853 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17856 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17857 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17859 case ${MACOSX_DEPLOYMENT_TARGET} in
17861 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17864 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17870 archive_cmds_need_lc_GCJ=no
17871 hardcode_direct_GCJ=no
17872 hardcode_automatic_GCJ=yes
17873 hardcode_shlibpath_var_GCJ=unsupported
17874 whole_archive_flag_spec_GCJ=''
17875 link_all_deplibs_GCJ=yes
17876 if test "$GCC" = yes ; then
17877 output_verbose_link_cmd='echo'
17878 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17879 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17880 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17881 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}'
17882 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}'
17884 case "$cc_basename" in
17886 output_verbose_link_cmd='echo'
17887 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17888 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17889 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17890 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}'
17891 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}'
17901 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17902 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17903 hardcode_shlibpath_var_GCJ=no
17910 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17911 # support. Future versions do this automatically, but an explicit c++rt0.o
17912 # does not break anything, and helps significantly (at the cost of a little
17915 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17916 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17917 hardcode_direct_GCJ=yes
17918 hardcode_shlibpath_var_GCJ=no
17921 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17923 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17924 hardcode_direct_GCJ=yes
17925 hardcode_minus_L_GCJ=yes
17926 hardcode_shlibpath_var_GCJ=no
17929 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17930 freebsd* | kfreebsd*-gnu)
17931 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17932 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17933 hardcode_direct_GCJ=yes
17934 hardcode_shlibpath_var_GCJ=no
17938 if test "$GCC" = yes; then
17939 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'
17941 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'
17943 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17944 hardcode_libdir_separator_GCJ=:
17945 hardcode_direct_GCJ=yes
17947 # hardcode_minus_L: Not really in the search PATH,
17948 # but as the default location of the library.
17949 hardcode_minus_L_GCJ=yes
17950 export_dynamic_flag_spec_GCJ='${wl}-E'
17954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17955 case "$host_cpu" in
17957 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17960 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17964 case "$host_cpu" in
17966 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17969 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17973 if test "$with_gnu_ld" = no; then
17974 case "$host_cpu" in
17976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17977 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17978 hardcode_libdir_separator_GCJ=:
17979 hardcode_direct_GCJ=no
17980 hardcode_shlibpath_var_GCJ=no
17983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984 hardcode_direct_GCJ=no
17985 hardcode_shlibpath_var_GCJ=no
17987 # hardcode_minus_L: Not really in the search PATH,
17988 # but as the default location of the library.
17989 hardcode_minus_L_GCJ=yes
17992 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17993 hardcode_libdir_separator_GCJ=:
17994 hardcode_direct_GCJ=yes
17995 export_dynamic_flag_spec_GCJ='${wl}-E'
17997 # hardcode_minus_L: Not really in the search PATH,
17998 # but as the default location of the library.
17999 hardcode_minus_L_GCJ=yes
18005 irix5* | irix6* | nonstopux*)
18006 if test "$GCC" = yes; then
18007 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'
18009 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'
18010 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18013 hardcode_libdir_separator_GCJ=:
18014 link_all_deplibs_GCJ=yes
18018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18019 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18021 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18024 hardcode_direct_GCJ=yes
18025 hardcode_shlibpath_var_GCJ=no
18029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 hardcode_direct_GCJ=yes
18031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18032 hardcode_libdir_separator_GCJ=:
18033 hardcode_shlibpath_var_GCJ=no
18037 hardcode_direct_GCJ=yes
18038 hardcode_shlibpath_var_GCJ=no
18039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18040 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18041 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18042 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18043 export_dynamic_flag_spec_GCJ='${wl}-E'
18046 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18047 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18048 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18051 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060 hardcode_minus_L_GCJ=yes
18061 allow_undefined_flag_GCJ=unsupported
18062 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'
18063 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18067 if test "$GCC" = yes; then
18068 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18069 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'
18071 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18072 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'
18074 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18075 hardcode_libdir_separator_GCJ=:
18078 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18084 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18085 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'
18086 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; $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'
18087 # Both c and cxx compiler support -rpath directly
18088 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18090 hardcode_libdir_separator_GCJ=:
18094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095 hardcode_shlibpath_var_GCJ=no
18096 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18097 runpath_var=LD_RUN_PATH
18098 hardcode_runpath_var=yes
18102 no_undefined_flag_GCJ=' -z text'
18103 if test "$GCC" = yes; then
18104 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
18107 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18108 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
18110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18111 hardcode_shlibpath_var_GCJ=no
18113 solaris2.[0-5] | solaris2.[0-5].*) ;;
18114 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18115 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18117 link_all_deplibs_GCJ=yes
18121 if test "x$host_vendor" = xsequent; then
18122 # Use $CC to link under sequent, because it throws in some extra .o
18123 # files that make .init and .fini sections work.
18124 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18126 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18128 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18129 hardcode_direct_GCJ=yes
18130 hardcode_minus_L_GCJ=yes
18131 hardcode_shlibpath_var_GCJ=no
18135 case $host_vendor in
18137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138 hardcode_direct_GCJ=yes # is this really true???
18141 ## LD is ld it makes a PLAMLIB
18142 ## CC just makes a GrossModule.
18143 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18144 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18145 hardcode_direct_GCJ=no
18148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18149 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18152 runpath_var='LD_RUN_PATH'
18153 hardcode_shlibpath_var_GCJ=no
18157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18158 hardcode_shlibpath_var_GCJ=no
18159 export_dynamic_flag_spec_GCJ='-Bexport'
18163 if test -d /usr/nec; then
18164 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165 hardcode_shlibpath_var_GCJ=no
18166 runpath_var=LD_RUN_PATH
18167 hardcode_runpath_var=yes
18173 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18174 hardcode_direct_GCJ=yes
18175 hardcode_minus_L_GCJ=no
18176 hardcode_shlibpath_var_GCJ=no
18177 hardcode_runpath_var=yes
18178 runpath_var=LD_RUN_PATH
18181 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18182 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18183 if test "$GCC" = yes; then
18184 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18186 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18188 runpath_var='LD_RUN_PATH'
18189 hardcode_shlibpath_var_GCJ=no
18193 no_undefined_flag_GCJ=' -z text'
18194 # $CC -shared without GNU ld will not create a library from C++
18195 # object files and a static libstdc++, better avoid it by now
18196 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18197 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
18198 hardcode_libdir_flag_spec_GCJ=
18199 hardcode_shlibpath_var_GCJ=no
18200 runpath_var='LD_RUN_PATH'
18204 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18206 hardcode_shlibpath_var_GCJ=no
18215 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18216 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18217 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18220 if test "$GCC" = yes; then
18221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18225 # Do we need to explicitly link libc?
18227 case "x$archive_cmds_need_lc_GCJ" in
18229 # Assume -lc should be added
18230 archive_cmds_need_lc_GCJ=yes
18232 if test "$enable_shared" = yes && test "$GCC" = yes; then
18233 case $archive_cmds_GCJ in
18235 # FIXME: we may have to deal with multi-command sequences.
18238 # Test whether the compiler implicitly links with -lc since on some
18239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18240 # to ld, don't add -lc before -lgcc.
18241 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18242 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } 2>conftest.err; then
18253 libobjs=conftest.$ac_objext
18255 wl=$lt_prog_compiler_wl_GCJ
18261 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18262 allow_undefined_flag_GCJ=
18263 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18264 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }
18269 archive_cmds_need_lc_GCJ=no
18271 archive_cmds_need_lc_GCJ=yes
18273 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18275 cat conftest.err 1>&5
18278 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18279 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18286 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18288 library_names_spec=
18289 libname_spec='lib$name'
18293 postuninstall_cmds=
18297 shlibpath_overrides_runpath=unknown
18299 dynamic_linker="$host_os ld.so"
18300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18301 if test "$GCC" = yes; then
18302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18303 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18304 # if the path contains ";" then we assume it to be the separator
18305 # otherwise default to the standard path separator (i.e. ":") - it is
18306 # assumed that no part of a normal pathname contains ";" but that should
18307 # okay in the real world where ";" in dirpaths is itself problematic.
18308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18315 need_lib_prefix=unknown
18316 hardcode_into_libs=no
18318 # when you set need_version to no, make sure it does not cause -set_version
18319 # flags to be left without arguments
18320 need_version=unknown
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18326 shlibpath_var=LIBPATH
18328 # AIX 3 has no versioning support, so we append a major version to the name.
18329 soname_spec='${libname}${release}${shared_ext}$major'
18336 hardcode_into_libs=yes
18337 if test "$host_cpu" = ia64; then
18338 # AIX 5 supports IA64
18339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18340 shlibpath_var=LD_LIBRARY_PATH
18342 # With GCC up to 2.95.x, collect2 would create an import file
18343 # for dependence libraries. The import file would start with
18344 # the line `#! .'. This would cause the generated library to
18345 # depend on `.', always an invalid library. This was fixed in
18346 # development snapshots of GCC prior to 3.0.
18348 aix4 | aix4.[01] | aix4.[01].*)
18349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18354 can_build_shared=no
18358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18359 # soname into executable. Probably we can add versioning support to
18360 # collect2, so additional links can be useful in future.
18361 if test "$aix_use_runtimelinking" = yes; then
18362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18363 # instead of lib<name>.a to let people know that these are not
18364 # typical AIX shared libraries.
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367 # We preserve .a as extension for shared libraries through AIX4.2
18368 # and later when we are not doing run time linking.
18369 library_names_spec='${libname}${release}.a $libname.a'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18372 shlibpath_var=LIBPATH
18377 library_names_spec='$libname.ixlibrary $libname.a'
18378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18379 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'
18383 library_names_spec='${libname}${shared_ext}'
18384 dynamic_linker="$host_os ld.so"
18385 shlibpath_var=LIBRARY_PATH
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18397 # the default ld.so.conf also contains /usr/contrib/lib and
18398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18399 # libtool to hard-code these into programs
18402 cygwin* | mingw* | pw32*)
18403 version_type=windows
18408 case $GCC,$host_os in
18409 yes,cygwin* | yes,mingw* | yes,pw32*)
18410 library_names_spec='$libname.dll.a'
18411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18412 postinstall_cmds='base_file=`basename \${file}`;
18413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
18414 dldir=$destdir/`dirname \$dlpath`;
18415 test -d \$dldir || mkdir -p \$dldir;
18416 $install_prog $dir/$dlname \$dldir/$dlname'
18417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
18418 dlpath=$dir/\$dldll;
18420 shlibpath_overrides_runpath=yes
18424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18426 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18429 # MinGW DLLs use traditional 'lib' prefix
18430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18431 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18432 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18433 # It is most probably a Windows format PATH printed by
18434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18435 # path with ; separators, and with drive letters. We can handle the
18436 # drive letters (cygwin fileutils understands them), so leave them,
18437 # especially as we might pass files found there to a mingw objdump,
18438 # which wouldn't understand a cygwinified path. Ahh.
18439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18445 # pw32 DLLs use 'pw' prefix rather than 'lib'
18446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18455 dynamic_linker='Win32 ld.exe'
18456 # FIXME: first we should search . and the directory the executable is in
18460 darwin* | rhapsody*)
18461 dynamic_linker="$host_os dyld"
18462 version_type=darwin
18465 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18466 soname_spec='${libname}${release}${major}$shared_ext'
18467 shlibpath_overrides_runpath=yes
18468 shlibpath_var=DYLD_LIBRARY_PATH
18469 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18470 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18471 if test "$GCC" = yes; then
18472 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"`
18474 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18484 soname_spec='${libname}${release}${shared_ext}$major'
18485 shlibpath_var=LD_LIBRARY_PATH
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18497 soname_spec='${libname}${release}${shared_ext}$major'
18498 shlibpath_var=LD_LIBRARY_PATH
18499 shlibpath_overrides_runpath=no
18500 hardcode_into_libs=yes
18501 dynamic_linker='GNU ld.so'
18505 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18506 version_type=freebsd-$objformat
18507 case $version_type in
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18518 shlibpath_var=LD_LIBRARY_PATH
18521 shlibpath_overrides_runpath=yes
18523 freebsd3.01* | freebsdelf3.01*)
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18528 shlibpath_overrides_runpath=no
18529 hardcode_into_libs=yes
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18539 soname_spec='${libname}${release}${shared_ext}$major'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 hardcode_into_libs=yes
18544 hpux9* | hpux10* | hpux11*)
18545 # Give a soname corresponding to the major version so that dld.sl refuses to
18546 # link against other versions.
18550 case "$host_cpu" in
18553 hardcode_into_libs=yes
18554 dynamic_linker="$host_os dld.so"
18555 shlibpath_var=LD_LIBRARY_PATH
18556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558 soname_spec='${libname}${release}${shared_ext}$major'
18559 if test "X$HPUX_IA64_MODE" = X32; then
18560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18568 hardcode_into_libs=yes
18569 dynamic_linker="$host_os dld.sl"
18570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18579 dynamic_linker="$host_os dld.sl"
18580 shlibpath_var=SHLIB_PATH
18581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583 soname_spec='${libname}${release}${shared_ext}$major'
18586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18587 postinstall_cmds='chmod 555 $lib'
18590 irix5* | irix6* | nonstopux*)
18592 nonstopux*) version_type=nonstopux ;;
18594 if test "$lt_cv_prog_gnu_ld" = yes; then
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18605 irix5* | nonstopux*)
18606 libsuff= shlibsuff=
18609 case $LD in # libtool.m4 will add one of these switches to LD
18610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18611 libsuff= shlibsuff= libmagic=32-bit;;
18612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18613 libsuff=32 shlibsuff=N32 libmagic=N32;;
18614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18615 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18616 *) libsuff= shlibsuff= libmagic=never-match;;
18620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18621 shlibpath_overrides_runpath=no
18622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18624 hardcode_into_libs=yes
18627 # No shared lib support for Linux oldld, aout, or coff.
18628 linux*oldld* | linux*aout* | linux*coff*)
18632 # This must be Linux ELF.
18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath=no
18642 # This implies no fast_install, which is unacceptable.
18643 # Some rework will be needed to allow for fast_install
18644 # before this can be enabled.
18645 hardcode_into_libs=yes
18647 # Append ld.so.conf contents to the search path
18648 if test -f /etc/ld.so.conf; then
18649 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18650 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18653 # We used to test for /lib/ld.so.1 and disable shared libraries on
18654 # powerpc, because MkLinux only supported shared libraries with the
18655 # GNU dynamic linker. Since this was broken with cross compilers,
18656 # most powerpc-linux boxes support dynamic linking these days and
18657 # people can always --disable-shared, the test was removed, and we
18658 # assume the GNU/Linux dynamic linker is in use.
18659 dynamic_linker='GNU/Linux ld.so'
18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18667 soname_spec='${libname}${release}${shared_ext}$major'
18668 shlibpath_var=LD_LIBRARY_PATH
18669 shlibpath_overrides_runpath=no
18670 hardcode_into_libs=yes
18671 dynamic_linker='GNU ld.so'
18678 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18681 dynamic_linker='NetBSD (a.out) 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 dynamic_linker='NetBSD ld.elf_so'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=yes
18689 hardcode_into_libs=yes
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695 shlibpath_var=LD_LIBRARY_PATH
18696 shlibpath_overrides_runpath=yes
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704 soname_spec='${libname}${release}${shared_ext}$major'
18705 shlibpath_var=LD_LIBRARY_PATH
18706 shlibpath_overrides_runpath=yes
18713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18715 shlibpath_var=LD_LIBRARY_PATH
18716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18718 openbsd2.[89] | openbsd2.[89].*)
18719 shlibpath_overrides_runpath=no
18722 shlibpath_overrides_runpath=yes
18726 shlibpath_overrides_runpath=yes
18731 libname_spec='$name'
18734 library_names_spec='$libname${shared_ext} $libname.a'
18735 dynamic_linker='OS/2 ld.exe'
18736 shlibpath_var=LIBPATH
18739 osf3* | osf4* | osf5*)
18743 soname_spec='${libname}${release}${shared_ext}$major'
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 shlibpath_var=LD_LIBRARY_PATH
18746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754 shlibpath_var=LD_LIBRARY_PATH
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762 soname_spec='${libname}${release}${shared_ext}$major'
18763 shlibpath_var=LD_LIBRARY_PATH
18764 shlibpath_overrides_runpath=yes
18765 hardcode_into_libs=yes
18766 # ldd complains unless libraries are executable
18767 postinstall_cmds='chmod +x $lib'
18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18774 shlibpath_var=LD_LIBRARY_PATH
18775 shlibpath_overrides_runpath=yes
18776 if test "$with_gnu_ld" = yes; then
18782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785 soname_spec='${libname}${release}${shared_ext}$major'
18786 shlibpath_var=LD_LIBRARY_PATH
18787 case $host_vendor in
18789 shlibpath_overrides_runpath=no
18791 export_dynamic_flag_spec='${wl}-Blargedynsym'
18792 runpath_var=LD_RUN_PATH
18800 shlibpath_overrides_runpath=no
18801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18807 if test -d /usr/nec ;then
18809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18810 soname_spec='$libname${shared_ext}.$major'
18811 shlibpath_var=LD_LIBRARY_PATH
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 shlibpath_var=LD_LIBRARY_PATH
18826 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18827 echo "${ECHO_T}$dynamic_linker" >&6
18828 test "$dynamic_linker" = no && can_build_shared=no
18830 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18832 hardcode_action_GCJ=
18833 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18834 test -n "$runpath_var_GCJ" || \
18835 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18837 # We can hardcode non-existant directories.
18838 if test "$hardcode_direct_GCJ" != no &&
18839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18840 # have to relink, otherwise we might link with an installed library
18841 # when we should be linking with a yet-to-be-installed one
18842 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18843 test "$hardcode_minus_L_GCJ" != no; then
18844 # Linking always hardcodes the temporary library directory.
18845 hardcode_action_GCJ=relink
18847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18848 hardcode_action_GCJ=immediate
18851 # We cannot hardcode anything, or else we can only hardcode existing
18853 hardcode_action_GCJ=unsupported
18855 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18856 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18858 if test "$hardcode_action_GCJ" = relink; then
18859 # Fast installation is not supported
18860 enable_fast_install=no
18861 elif test "$shlibpath_overrides_runpath" = yes ||
18862 test "$enable_shared" = no; then
18863 # Fast installation is not necessary
18864 enable_fast_install=needless
18869 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18870 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18871 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18872 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18873 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18874 echo "$as_me:$LINENO: result: yes" >&5
18875 echo "${ECHO_T}yes" >&6
18877 # FIXME - insert some real tests, host_os isn't really good enough
18880 if test -n "$STRIP" ; then
18881 striplib="$STRIP -x"
18882 echo "$as_me:$LINENO: result: yes" >&5
18883 echo "${ECHO_T}yes" >&6
18885 echo "$as_me:$LINENO: result: no" >&5
18886 echo "${ECHO_T}no" >&6
18890 echo "$as_me:$LINENO: result: no" >&5
18891 echo "${ECHO_T}no" >&6
18896 if test "x$enable_dlopen" != xyes; then
18897 enable_dlopen=unknown
18898 enable_dlopen_self=unknown
18899 enable_dlopen_self_static=unknown
18906 lt_cv_dlopen="load_add_on"
18908 lt_cv_dlopen_self=yes
18912 lt_cv_dlopen="LoadLibrary"
18917 lt_cv_dlopen="dlopen"
18922 # if libdl is installed we need to link against it
18923 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 ac_check_lib_save_LIBS=$LIBS
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18937 /* Override any gcc2 internal prototype to avoid an error. */
18941 /* We use char because int might match the return type of a gcc2
18942 builtin and then its argument prototype would still apply. */
18952 rm -f conftest.$ac_objext conftest$ac_exeext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18954 (eval $ac_link) 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_c_werror_flag"
18962 || test ! -s conftest.err'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try='test -s conftest$ac_exeext'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_cv_lib_dl_dlopen=yes
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18979 ac_cv_lib_dl_dlopen=no
18981 rm -f conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18985 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18987 if test $ac_cv_lib_dl_dlopen = yes; then
18988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18991 lt_cv_dlopen="dyld"
18993 lt_cv_dlopen_self=yes
19000 echo "$as_me:$LINENO: checking for shl_load" >&5
19001 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19002 if test "${ac_cv_func_shl_load+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 cat >conftest.$ac_ext <<_ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19013 #define shl_load innocuous_shl_load
19015 /* System header to define __stub macros and hopefully few prototypes,
19016 which can conflict with char shl_load (); below.
19017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19018 <limits.h> exists even on freestanding compilers. */
19021 # include <limits.h>
19023 # include <assert.h>
19028 /* Override any gcc2 internal prototype to avoid an error. */
19033 /* We use char because int might match the return type of a gcc2
19034 builtin and then its argument prototype would still apply. */
19036 /* The GNU C library defines this for functions which it implements
19037 to always fail with ENOSYS. Some functions are actually named
19038 something starting with __ and the normal name is an alias. */
19039 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19042 char (*f) () = shl_load;
19051 return f != shl_load;
19056 rm -f conftest.$ac_objext conftest$ac_exeext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058 (eval $ac_link) 2>conftest.er1
19060 grep -v '^ *+' conftest.er1 >conftest.err
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -z "$ac_c_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest$ac_exeext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 ac_cv_func_shl_load=yes
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 ac_cv_func_shl_load=no
19085 rm -f conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19088 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19089 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19090 if test $ac_cv_func_shl_load = yes; then
19091 lt_cv_dlopen="shl_load"
19093 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19094 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19095 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 ac_check_lib_save_LIBS=$LIBS
19100 cat >conftest.$ac_ext <<_ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h. */
19107 /* Override any gcc2 internal prototype to avoid an error. */
19111 /* We use char because int might match the return type of a gcc2
19112 builtin and then its argument prototype would still apply. */
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124 (eval $ac_link) 2>conftest.er1
19126 grep -v '^ *+' conftest.er1 >conftest.err
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -z "$ac_c_werror_flag"
19132 || test ! -s conftest.err'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 ac_cv_lib_dld_shl_load=yes
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19149 ac_cv_lib_dld_shl_load=no
19151 rm -f conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153 LIBS=$ac_check_lib_save_LIBS
19155 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19156 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19157 if test $ac_cv_lib_dld_shl_load = yes; then
19158 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19160 echo "$as_me:$LINENO: checking for dlopen" >&5
19161 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19162 if test "${ac_cv_func_dlopen+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19173 #define dlopen innocuous_dlopen
19175 /* System header to define __stub macros and hopefully few prototypes,
19176 which can conflict with char dlopen (); below.
19177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19178 <limits.h> exists even on freestanding compilers. */
19181 # include <limits.h>
19183 # include <assert.h>
19188 /* Override any gcc2 internal prototype to avoid an error. */
19193 /* We use char because int might match the return type of a gcc2
19194 builtin and then its argument prototype would still apply. */
19196 /* The GNU C library defines this for functions which it implements
19197 to always fail with ENOSYS. Some functions are actually named
19198 something starting with __ and the normal name is an alias. */
19199 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19202 char (*f) () = dlopen;
19211 return f != dlopen;
19216 rm -f conftest.$ac_objext conftest$ac_exeext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19218 (eval $ac_link) 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag"
19226 || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_func_dlopen=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_func_dlopen=no
19245 rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19248 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19249 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19250 if test $ac_cv_func_dlopen = yes; then
19251 lt_cv_dlopen="dlopen"
19253 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19254 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19258 ac_check_lib_save_LIBS=$LIBS
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any gcc2 internal prototype to avoid an error. */
19271 /* We use char because int might match the return type of a gcc2
19272 builtin and then its argument prototype would still apply. */
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>conftest.er1
19286 grep -v '^ *+' conftest.er1 >conftest.err
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest$ac_exeext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_lib_dl_dlopen=yes
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_lib_dl_dlopen=no
19311 rm -f conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
19313 LIBS=$ac_check_lib_save_LIBS
19315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19317 if test $ac_cv_lib_dl_dlopen = yes; then
19318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19320 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 ac_check_lib_save_LIBS=$LIBS
19326 LIBS="-lsvld $LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19334 /* Override any gcc2 internal prototype to avoid an error. */
19338 /* We use char because int might match the return type of a gcc2
19339 builtin and then its argument prototype would still apply. */
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19351 (eval $ac_link) 2>conftest.er1
19353 grep -v '^ *+' conftest.er1 >conftest.err
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } &&
19358 { ac_try='test -z "$ac_c_werror_flag"
19359 || test ! -s conftest.err'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_cv_lib_svld_dlopen=yes
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19376 ac_cv_lib_svld_dlopen=no
19378 rm -f conftest.err conftest.$ac_objext \
19379 conftest$ac_exeext conftest.$ac_ext
19380 LIBS=$ac_check_lib_save_LIBS
19382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19384 if test $ac_cv_lib_svld_dlopen = yes; then
19385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19387 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 ac_check_lib_save_LIBS=$LIBS
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19401 /* Override any gcc2 internal prototype to avoid an error. */
19405 /* We use char because int might match the return type of a gcc2
19406 builtin and then its argument prototype would still apply. */
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>conftest.er1
19420 grep -v '^ *+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_lib_dld_dld_link=yes
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_lib_dld_dld_link=no
19445 rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19450 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19451 if test $ac_cv_lib_dld_dld_link = yes; then
19452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19473 if test "x$lt_cv_dlopen" != xno; then
19479 case $lt_cv_dlopen in
19481 save_CPPFLAGS="$CPPFLAGS"
19482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19484 save_LDFLAGS="$LDFLAGS"
19485 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19488 LIBS="$lt_cv_dlopen_libs $LIBS"
19490 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19491 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19492 if test "${lt_cv_dlopen_self+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 if test "$cross_compiling" = yes; then :
19496 lt_cv_dlopen_self=cross
19498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19499 lt_status=$lt_dlunknown
19500 cat > conftest.$ac_ext <<EOF
19501 #line 19501 "configure"
19502 #include "confdefs.h"
19511 # define LT_DLGLOBAL RTLD_GLOBAL
19514 # define LT_DLGLOBAL DL_GLOBAL
19516 # define LT_DLGLOBAL 0
19520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19521 find out it does not work in some platform. */
19522 #ifndef LT_DLLAZY_OR_NOW
19524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19527 # define LT_DLLAZY_OR_NOW DL_LAZY
19530 # define LT_DLLAZY_OR_NOW RTLD_NOW
19533 # define LT_DLLAZY_OR_NOW DL_NOW
19535 # define LT_DLLAZY_OR_NOW 0
19543 extern "C" void exit (int);
19546 void fnord() { int i=42;}
19549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19550 int status = $lt_dlunknown;
19554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19556 /* dlclose (self); */
19562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19563 (eval $ac_link) 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19567 (./conftest; exit; ) 2>/dev/null
19569 case x$lt_status in
19570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19572 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19575 # compilation failed
19576 lt_cv_dlopen_self=no
19583 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19584 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19586 if test "x$lt_cv_dlopen_self" = xyes; then
19587 LDFLAGS="$LDFLAGS $link_static_flag"
19588 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19589 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19590 if test "${lt_cv_dlopen_self_static+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 if test "$cross_compiling" = yes; then :
19594 lt_cv_dlopen_self_static=cross
19596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19597 lt_status=$lt_dlunknown
19598 cat > conftest.$ac_ext <<EOF
19599 #line 19599 "configure"
19600 #include "confdefs.h"
19609 # define LT_DLGLOBAL RTLD_GLOBAL
19612 # define LT_DLGLOBAL DL_GLOBAL
19614 # define LT_DLGLOBAL 0
19618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19619 find out it does not work in some platform. */
19620 #ifndef LT_DLLAZY_OR_NOW
19622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19625 # define LT_DLLAZY_OR_NOW DL_LAZY
19628 # define LT_DLLAZY_OR_NOW RTLD_NOW
19631 # define LT_DLLAZY_OR_NOW DL_NOW
19633 # define LT_DLLAZY_OR_NOW 0
19641 extern "C" void exit (int);
19644 void fnord() { int i=42;}
19647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19648 int status = $lt_dlunknown;
19652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19654 /* dlclose (self); */
19660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661 (eval $ac_link) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19665 (./conftest; exit; ) 2>/dev/null
19667 case x$lt_status in
19668 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19669 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19670 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19673 # compilation failed
19674 lt_cv_dlopen_self_static=no
19681 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19682 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19685 CPPFLAGS="$save_CPPFLAGS"
19686 LDFLAGS="$save_LDFLAGS"
19691 case $lt_cv_dlopen_self in
19692 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19693 *) enable_dlopen_self=unknown ;;
19696 case $lt_cv_dlopen_self_static in
19697 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19698 *) enable_dlopen_self_static=unknown ;;
19703 # The else clause should only fire when bootstrapping the
19704 # libtool distribution, otherwise you forgot to ship ltmain.sh
19705 # with your package, and you will get complaints that there are
19706 # no rules to generate ltmain.sh.
19707 if test -f "$ltmain"; then
19708 # See if we are running on zsh, and set the options which allow our commands through
19709 # without removal of \ escapes.
19710 if test -n "${ZSH_VERSION+set}" ; then
19711 setopt NO_GLOB_SUBST
19713 # Now quote all the things that may contain metacharacters while being
19714 # careful not to overquote the AC_SUBSTed values. We take copies of the
19715 # variables and quote the copies for generation of the libtool script.
19716 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19720 deplibs_check_method reload_flag reload_cmds need_locks \
19721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19722 lt_cv_sys_global_symbol_to_c_name_address \
19723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19724 old_postinstall_cmds old_postuninstall_cmds \
19728 lt_prog_compiler_wl_GCJ \
19729 lt_prog_compiler_pic_GCJ \
19730 lt_prog_compiler_static_GCJ \
19731 lt_prog_compiler_no_builtin_flag_GCJ \
19732 export_dynamic_flag_spec_GCJ \
19733 thread_safe_flag_spec_GCJ \
19734 whole_archive_flag_spec_GCJ \
19735 enable_shared_with_static_runtimes_GCJ \
19736 old_archive_cmds_GCJ \
19737 old_archive_from_new_cmds_GCJ \
19738 predep_objects_GCJ \
19739 postdep_objects_GCJ \
19742 compiler_lib_search_path_GCJ \
19744 archive_expsym_cmds_GCJ \
19745 postinstall_cmds_GCJ \
19746 postuninstall_cmds_GCJ \
19747 old_archive_from_expsyms_cmds_GCJ \
19748 allow_undefined_flag_GCJ \
19749 no_undefined_flag_GCJ \
19750 export_symbols_cmds_GCJ \
19751 hardcode_libdir_flag_spec_GCJ \
19752 hardcode_libdir_flag_spec_ld_GCJ \
19753 hardcode_libdir_separator_GCJ \
19754 hardcode_automatic_GCJ \
19756 module_expsym_cmds_GCJ \
19757 lt_cv_prog_compiler_c_o_GCJ \
19758 exclude_expsyms_GCJ \
19759 include_expsyms_GCJ; do
19762 old_archive_cmds_GCJ | \
19763 old_archive_from_new_cmds_GCJ | \
19764 archive_cmds_GCJ | \
19765 archive_expsym_cmds_GCJ | \
19766 module_cmds_GCJ | \
19767 module_expsym_cmds_GCJ | \
19768 old_archive_from_expsyms_cmds_GCJ | \
19769 export_symbols_cmds_GCJ | \
19770 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19771 postinstall_cmds | postuninstall_cmds | \
19772 old_postinstall_cmds | old_postuninstall_cmds | \
19773 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19774 # Double-quote double-evaled strings.
19775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19784 *'\$0 --fallback-echo"')
19785 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19791 cat <<__EOF__ >> "$cfgfile"
19792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19796 # Shell to use when invoking shell scripts.
19799 # Whether or not to build shared libraries.
19800 build_libtool_libs=$enable_shared
19802 # Whether or not to build static libraries.
19803 build_old_libs=$enable_static
19805 # Whether or not to add -lc for building shared libraries.
19806 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19808 # Whether or not to disallow shared libs when runtime libs are static
19809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19811 # Whether or not to optimize for fast installation.
19812 fast_install=$enable_fast_install
19815 host_alias=$host_alias
19818 # An echo program that does not interpret backslashes.
19823 AR_FLAGS=$lt_AR_FLAGS
19828 # A language-specific compiler.
19829 CC=$lt_compiler_GCJ
19831 # Is the compiler the GNU C compiler?
19837 # The linker used to build libraries.
19840 # Whether we need hard or soft links.
19843 # A BSD-compatible nm program.
19846 # A symbol stripping program
19849 # Used to examine libraries when file_magic_cmd begins "file"
19850 MAGIC_CMD=$MAGIC_CMD
19852 # Used on cygwin: DLL creation program.
19855 # Used on cygwin: object dumper.
19858 # Used on cygwin: assembler.
19861 # The name of the directory that contains temporary libtool files.
19864 # How to create reloadable object files.
19865 reload_flag=$lt_reload_flag
19866 reload_cmds=$lt_reload_cmds
19868 # How to pass a linker flag through the compiler.
19869 wl=$lt_lt_prog_compiler_wl_GCJ
19871 # Object file suffix (normally "o").
19872 objext="$ac_objext"
19874 # Old archive suffix (normally "a").
19877 # Shared library suffix (normally ".so").
19878 shrext_cmds='$shrext_cmds'
19880 # Executable file suffix (normally "").
19883 # Additional compiler flags for building library objects.
19884 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19887 # What is the maximum length of a command?
19888 max_cmd_len=$lt_cv_sys_max_cmd_len
19890 # Does compiler simultaneously support -c and -o options?
19891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19893 # Must we lock files when doing compilation ?
19894 need_locks=$lt_need_locks
19896 # Do we need the lib prefix for modules?
19897 need_lib_prefix=$need_lib_prefix
19899 # Do we need a version for libraries?
19900 need_version=$need_version
19902 # Whether dlopen is supported.
19903 dlopen_support=$enable_dlopen
19905 # Whether dlopen of programs is supported.
19906 dlopen_self=$enable_dlopen_self
19908 # Whether dlopen of statically linked programs is supported.
19909 dlopen_self_static=$enable_dlopen_self_static
19911 # Compiler flag to prevent dynamic linking.
19912 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19914 # Compiler flag to turn off builtin functions.
19915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19917 # Compiler flag to allow reflexive dlopens.
19918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19920 # Compiler flag to generate shared objects directly from archives.
19921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19923 # Compiler flag to generate thread-safe objects.
19924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19926 # Library versioning type.
19927 version_type=$version_type
19929 # Format of library name prefix.
19930 libname_spec=$lt_libname_spec
19932 # List of archive names. First name is the real one, the rest are links.
19933 # The last name is the one that the linker finds with -lNAME.
19934 library_names_spec=$lt_library_names_spec
19936 # The coded name of the library, if different from the real name.
19937 soname_spec=$lt_soname_spec
19939 # Commands used to build and install an old-style archive.
19941 old_archive_cmds=$lt_old_archive_cmds_GCJ
19942 old_postinstall_cmds=$lt_old_postinstall_cmds
19943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19945 # Create an old-style archive from a shared archive.
19946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19948 # Create a temporary old-style archive to link instead of a shared archive.
19949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19951 # Commands used to build and install a shared archive.
19952 archive_cmds=$lt_archive_cmds_GCJ
19953 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19954 postinstall_cmds=$lt_postinstall_cmds
19955 postuninstall_cmds=$lt_postuninstall_cmds
19957 # Commands used to build a loadable module (assumed same as above if empty)
19958 module_cmds=$lt_module_cmds_GCJ
19959 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19961 # Commands to strip libraries.
19962 old_striplib=$lt_old_striplib
19963 striplib=$lt_striplib
19965 # Dependencies to place before the objects being linked to create a
19967 predep_objects=$lt_predep_objects_GCJ
19969 # Dependencies to place after the objects being linked to create a
19971 postdep_objects=$lt_postdep_objects_GCJ
19973 # Dependencies to place before the objects being linked to create a
19975 predeps=$lt_predeps_GCJ
19977 # Dependencies to place after the objects being linked to create a
19979 postdeps=$lt_postdeps_GCJ
19981 # The library search path used internally by the compiler when linking
19982 # a shared library.
19983 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19985 # Method to check whether dependent libraries are shared objects.
19986 deplibs_check_method=$lt_deplibs_check_method
19988 # Command to use when deplibs_check_method == file_magic.
19989 file_magic_cmd=$lt_file_magic_cmd
19991 # Flag that allows shared libraries with undefined symbols to be built.
19992 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19994 # Flag that forces no undefined symbols.
19995 no_undefined_flag=$lt_no_undefined_flag_GCJ
19997 # Commands used to finish a libtool library installation in a directory.
19998 finish_cmds=$lt_finish_cmds
20000 # Same as above, but a single script fragment to be evaled but not shown.
20001 finish_eval=$lt_finish_eval
20003 # Take the output of nm and produce a listing of raw symbols and C names.
20004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20006 # Transform the output of nm in a proper C declaration
20007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20009 # Transform the output of nm in a C name address pair
20010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20012 # This is the shared library runtime path variable.
20013 runpath_var=$runpath_var
20015 # This is the shared library path variable.
20016 shlibpath_var=$shlibpath_var
20018 # Is shlibpath searched before the hard-coded library search path?
20019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20021 # How to hardcode a shared library path into an executable.
20022 hardcode_action=$hardcode_action_GCJ
20024 # Whether we should hardcode library paths into libraries.
20025 hardcode_into_libs=$hardcode_into_libs
20027 # Flag to hardcode \$libdir into a binary during linking.
20028 # This must work even if \$libdir does not exist.
20029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20031 # If ld is used when linking, flag to hardcode \$libdir into
20032 # a binary during linking. This must work even if \$libdir does
20034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20036 # Whether we need a single -rpath flag with a separated argument.
20037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20040 # resulting binary.
20041 hardcode_direct=$hardcode_direct_GCJ
20043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20044 # resulting binary.
20045 hardcode_minus_L=$hardcode_minus_L_GCJ
20047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20048 # the resulting binary.
20049 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20051 # Set to yes if building a shared library automatically hardcodes DIR into the library
20052 # and all subsequent libraries and executables linked against it.
20053 hardcode_automatic=$hardcode_automatic_GCJ
20055 # Variables whose values should be saved in libtool wrapper scripts and
20056 # restored at relink time.
20057 variables_saved_for_relink="$variables_saved_for_relink"
20059 # Whether libtool must link a program against all its dependency libraries.
20060 link_all_deplibs=$link_all_deplibs_GCJ
20062 # Compile-time system search path for libraries
20063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20065 # Run-time system search path for libraries
20066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20068 # Fix the shell variable \$srcfile for the compiler.
20069 fix_srcfile_path="$fix_srcfile_path_GCJ"
20071 # Set to yes if exported symbols are required.
20072 always_export_symbols=$always_export_symbols_GCJ
20074 # The commands to list exported symbols.
20075 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20077 # The commands to extract the exported symbol list from a shared archive.
20078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20080 # Symbols that should not be listed in the preloaded symbols.
20081 exclude_expsyms=$lt_exclude_expsyms_GCJ
20083 # Symbols that must always be exported.
20084 include_expsyms=$lt_include_expsyms_GCJ
20086 # ### END LIBTOOL TAG CONFIG: $tagname
20092 # If there is no Makefile yet, we rely on a make rule to execute
20093 # `config.status --recheck' to rerun these tests and create the
20094 # libtool script then.
20095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20096 if test -f "$ltmain_in"; then
20097 test -f Makefile && make "$ltmain"
20103 ac_cpp='$CPP $CPPFLAGS'
20104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20117 ac_cpp='$CPP $CPPFLAGS'
20118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20123 # Source file extension for RC test sources.
20126 # Object file extension for compiled RC test sources.
20130 # Code to be used in simple compile tests
20131 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20133 # Code to be used in simple link tests
20134 lt_simple_link_test_code="$lt_simple_compile_test_code"
20136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20138 # If no C compiler was specified, use CC.
20141 # Allow CC to be a program name with arguments.
20145 # Allow CC to be a program name with arguments.
20150 lt_cv_prog_compiler_c_o_RC=yes
20152 # The else clause should only fire when bootstrapping the
20153 # libtool distribution, otherwise you forgot to ship ltmain.sh
20154 # with your package, and you will get complaints that there are
20155 # no rules to generate ltmain.sh.
20156 if test -f "$ltmain"; then
20157 # See if we are running on zsh, and set the options which allow our commands through
20158 # without removal of \ escapes.
20159 if test -n "${ZSH_VERSION+set}" ; then
20160 setopt NO_GLOB_SUBST
20162 # Now quote all the things that may contain metacharacters while being
20163 # careful not to overquote the AC_SUBSTed values. We take copies of the
20164 # variables and quote the copies for generation of the libtool script.
20165 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20167 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20168 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20169 deplibs_check_method reload_flag reload_cmds need_locks \
20170 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20171 lt_cv_sys_global_symbol_to_c_name_address \
20172 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20173 old_postinstall_cmds old_postuninstall_cmds \
20177 lt_prog_compiler_wl_RC \
20178 lt_prog_compiler_pic_RC \
20179 lt_prog_compiler_static_RC \
20180 lt_prog_compiler_no_builtin_flag_RC \
20181 export_dynamic_flag_spec_RC \
20182 thread_safe_flag_spec_RC \
20183 whole_archive_flag_spec_RC \
20184 enable_shared_with_static_runtimes_RC \
20185 old_archive_cmds_RC \
20186 old_archive_from_new_cmds_RC \
20187 predep_objects_RC \
20188 postdep_objects_RC \
20191 compiler_lib_search_path_RC \
20193 archive_expsym_cmds_RC \
20194 postinstall_cmds_RC \
20195 postuninstall_cmds_RC \
20196 old_archive_from_expsyms_cmds_RC \
20197 allow_undefined_flag_RC \
20198 no_undefined_flag_RC \
20199 export_symbols_cmds_RC \
20200 hardcode_libdir_flag_spec_RC \
20201 hardcode_libdir_flag_spec_ld_RC \
20202 hardcode_libdir_separator_RC \
20203 hardcode_automatic_RC \
20205 module_expsym_cmds_RC \
20206 lt_cv_prog_compiler_c_o_RC \
20207 exclude_expsyms_RC \
20208 include_expsyms_RC; do
20211 old_archive_cmds_RC | \
20212 old_archive_from_new_cmds_RC | \
20213 archive_cmds_RC | \
20214 archive_expsym_cmds_RC | \
20216 module_expsym_cmds_RC | \
20217 old_archive_from_expsyms_cmds_RC | \
20218 export_symbols_cmds_RC | \
20219 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20220 postinstall_cmds | postuninstall_cmds | \
20221 old_postinstall_cmds | old_postuninstall_cmds | \
20222 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20223 # Double-quote double-evaled strings.
20224 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20233 *'\$0 --fallback-echo"')
20234 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20240 cat <<__EOF__ >> "$cfgfile"
20241 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20245 # Shell to use when invoking shell scripts.
20248 # Whether or not to build shared libraries.
20249 build_libtool_libs=$enable_shared
20251 # Whether or not to build static libraries.
20252 build_old_libs=$enable_static
20254 # Whether or not to add -lc for building shared libraries.
20255 build_libtool_need_lc=$archive_cmds_need_lc_RC
20257 # Whether or not to disallow shared libs when runtime libs are static
20258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20260 # Whether or not to optimize for fast installation.
20261 fast_install=$enable_fast_install
20264 host_alias=$host_alias
20267 # An echo program that does not interpret backslashes.
20272 AR_FLAGS=$lt_AR_FLAGS
20277 # A language-specific compiler.
20280 # Is the compiler the GNU C compiler?
20286 # The linker used to build libraries.
20289 # Whether we need hard or soft links.
20292 # A BSD-compatible nm program.
20295 # A symbol stripping program
20298 # Used to examine libraries when file_magic_cmd begins "file"
20299 MAGIC_CMD=$MAGIC_CMD
20301 # Used on cygwin: DLL creation program.
20304 # Used on cygwin: object dumper.
20307 # Used on cygwin: assembler.
20310 # The name of the directory that contains temporary libtool files.
20313 # How to create reloadable object files.
20314 reload_flag=$lt_reload_flag
20315 reload_cmds=$lt_reload_cmds
20317 # How to pass a linker flag through the compiler.
20318 wl=$lt_lt_prog_compiler_wl_RC
20320 # Object file suffix (normally "o").
20321 objext="$ac_objext"
20323 # Old archive suffix (normally "a").
20326 # Shared library suffix (normally ".so").
20327 shrext_cmds='$shrext_cmds'
20329 # Executable file suffix (normally "").
20332 # Additional compiler flags for building library objects.
20333 pic_flag=$lt_lt_prog_compiler_pic_RC
20336 # What is the maximum length of a command?
20337 max_cmd_len=$lt_cv_sys_max_cmd_len
20339 # Does compiler simultaneously support -c and -o options?
20340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20342 # Must we lock files when doing compilation ?
20343 need_locks=$lt_need_locks
20345 # Do we need the lib prefix for modules?
20346 need_lib_prefix=$need_lib_prefix
20348 # Do we need a version for libraries?
20349 need_version=$need_version
20351 # Whether dlopen is supported.
20352 dlopen_support=$enable_dlopen
20354 # Whether dlopen of programs is supported.
20355 dlopen_self=$enable_dlopen_self
20357 # Whether dlopen of statically linked programs is supported.
20358 dlopen_self_static=$enable_dlopen_self_static
20360 # Compiler flag to prevent dynamic linking.
20361 link_static_flag=$lt_lt_prog_compiler_static_RC
20363 # Compiler flag to turn off builtin functions.
20364 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20366 # Compiler flag to allow reflexive dlopens.
20367 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20369 # Compiler flag to generate shared objects directly from archives.
20370 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20372 # Compiler flag to generate thread-safe objects.
20373 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20375 # Library versioning type.
20376 version_type=$version_type
20378 # Format of library name prefix.
20379 libname_spec=$lt_libname_spec
20381 # List of archive names. First name is the real one, the rest are links.
20382 # The last name is the one that the linker finds with -lNAME.
20383 library_names_spec=$lt_library_names_spec
20385 # The coded name of the library, if different from the real name.
20386 soname_spec=$lt_soname_spec
20388 # Commands used to build and install an old-style archive.
20390 old_archive_cmds=$lt_old_archive_cmds_RC
20391 old_postinstall_cmds=$lt_old_postinstall_cmds
20392 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20394 # Create an old-style archive from a shared archive.
20395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20397 # Create a temporary old-style archive to link instead of a shared archive.
20398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20400 # Commands used to build and install a shared archive.
20401 archive_cmds=$lt_archive_cmds_RC
20402 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20403 postinstall_cmds=$lt_postinstall_cmds
20404 postuninstall_cmds=$lt_postuninstall_cmds
20406 # Commands used to build a loadable module (assumed same as above if empty)
20407 module_cmds=$lt_module_cmds_RC
20408 module_expsym_cmds=$lt_module_expsym_cmds_RC
20410 # Commands to strip libraries.
20411 old_striplib=$lt_old_striplib
20412 striplib=$lt_striplib
20414 # Dependencies to place before the objects being linked to create a
20416 predep_objects=$lt_predep_objects_RC
20418 # Dependencies to place after the objects being linked to create a
20420 postdep_objects=$lt_postdep_objects_RC
20422 # Dependencies to place before the objects being linked to create a
20424 predeps=$lt_predeps_RC
20426 # Dependencies to place after the objects being linked to create a
20428 postdeps=$lt_postdeps_RC
20430 # The library search path used internally by the compiler when linking
20431 # a shared library.
20432 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20434 # Method to check whether dependent libraries are shared objects.
20435 deplibs_check_method=$lt_deplibs_check_method
20437 # Command to use when deplibs_check_method == file_magic.
20438 file_magic_cmd=$lt_file_magic_cmd
20440 # Flag that allows shared libraries with undefined symbols to be built.
20441 allow_undefined_flag=$lt_allow_undefined_flag_RC
20443 # Flag that forces no undefined symbols.
20444 no_undefined_flag=$lt_no_undefined_flag_RC
20446 # Commands used to finish a libtool library installation in a directory.
20447 finish_cmds=$lt_finish_cmds
20449 # Same as above, but a single script fragment to be evaled but not shown.
20450 finish_eval=$lt_finish_eval
20452 # Take the output of nm and produce a listing of raw symbols and C names.
20453 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20455 # Transform the output of nm in a proper C declaration
20456 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20458 # Transform the output of nm in a C name address pair
20459 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20461 # This is the shared library runtime path variable.
20462 runpath_var=$runpath_var
20464 # This is the shared library path variable.
20465 shlibpath_var=$shlibpath_var
20467 # Is shlibpath searched before the hard-coded library search path?
20468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20470 # How to hardcode a shared library path into an executable.
20471 hardcode_action=$hardcode_action_RC
20473 # Whether we should hardcode library paths into libraries.
20474 hardcode_into_libs=$hardcode_into_libs
20476 # Flag to hardcode \$libdir into a binary during linking.
20477 # This must work even if \$libdir does not exist.
20478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20480 # If ld is used when linking, flag to hardcode \$libdir into
20481 # a binary during linking. This must work even if \$libdir does
20483 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20485 # Whether we need a single -rpath flag with a separated argument.
20486 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20488 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20489 # resulting binary.
20490 hardcode_direct=$hardcode_direct_RC
20492 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20493 # resulting binary.
20494 hardcode_minus_L=$hardcode_minus_L_RC
20496 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20497 # the resulting binary.
20498 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20500 # Set to yes if building a shared library automatically hardcodes DIR into the library
20501 # and all subsequent libraries and executables linked against it.
20502 hardcode_automatic=$hardcode_automatic_RC
20504 # Variables whose values should be saved in libtool wrapper scripts and
20505 # restored at relink time.
20506 variables_saved_for_relink="$variables_saved_for_relink"
20508 # Whether libtool must link a program against all its dependency libraries.
20509 link_all_deplibs=$link_all_deplibs_RC
20511 # Compile-time system search path for libraries
20512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20514 # Run-time system search path for libraries
20515 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20517 # Fix the shell variable \$srcfile for the compiler.
20518 fix_srcfile_path="$fix_srcfile_path_RC"
20520 # Set to yes if exported symbols are required.
20521 always_export_symbols=$always_export_symbols_RC
20523 # The commands to list exported symbols.
20524 export_symbols_cmds=$lt_export_symbols_cmds_RC
20526 # The commands to extract the exported symbol list from a shared archive.
20527 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20529 # Symbols that should not be listed in the preloaded symbols.
20530 exclude_expsyms=$lt_exclude_expsyms_RC
20532 # Symbols that must always be exported.
20533 include_expsyms=$lt_include_expsyms_RC
20535 # ### END LIBTOOL TAG CONFIG: $tagname
20541 # If there is no Makefile yet, we rely on a make rule to execute
20542 # `config.status --recheck' to rerun these tests and create the
20543 # libtool script then.
20544 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20545 if test -f "$ltmain_in"; then
20546 test -f Makefile && make "$ltmain"
20552 ac_cpp='$CPP $CPPFLAGS'
20553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20563 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20564 { (exit 1); exit 1; }; }
20568 # Append the new tag name to the list of available tags.
20569 if test -n "$tagname" ; then
20570 available_tags="$available_tags $tagname"
20576 # Now substitute the updated list of available tags.
20577 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20578 mv "${ofile}T" "$ofile"
20582 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20583 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20584 { (exit 1); exit 1; }; }
20590 # This can be used to rebuild libtool when needed
20591 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20593 # Always use our own libtool.
20594 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
20596 # Prevent multiple expansion
20618 # Extract the first word of "dot", so it can be a program name with args.
20619 set dummy dot; ac_word=$2
20620 echo "$as_me:$LINENO: checking for $ac_word" >&5
20621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20622 if test "${ac_cv_path_DOT+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20631 for as_dir in $PATH
20634 test -z "$as_dir" && as_dir=.
20635 for ac_exec_ext in '' $ac_executable_extensions; do
20636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20637 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20644 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20648 DOT=$ac_cv_path_DOT
20650 if test -n "$DOT"; then
20651 echo "$as_me:$LINENO: result: $DOT" >&5
20652 echo "${ECHO_T}$DOT" >&6
20654 echo "$as_me:$LINENO: result: no" >&5
20655 echo "${ECHO_T}no" >&6
20658 # Extract the first word of "etags", so it can be a program name with args.
20659 set dummy etags; ac_word=$2
20660 echo "$as_me:$LINENO: checking for $ac_word" >&5
20661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20662 if test "${ac_cv_path_ETAGS+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20671 for as_dir in $PATH
20674 test -z "$as_dir" && as_dir=.
20675 for ac_exec_ext in '' $ac_executable_extensions; do
20676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20677 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20684 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20688 ETAGS=$ac_cv_path_ETAGS
20690 if test -n "$ETAGS"; then
20691 echo "$as_me:$LINENO: result: $ETAGS" >&5
20692 echo "${ECHO_T}$ETAGS" >&6
20694 echo "$as_me:$LINENO: result: no" >&5
20695 echo "${ECHO_T}no" >&6
20698 # Extract the first word of "python", so it can be a program name with args.
20699 set dummy python; ac_word=$2
20700 echo "$as_me:$LINENO: checking for $ac_word" >&5
20701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20702 if test "${ac_cv_path_PYTHON+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20711 for as_dir in $PATH
20714 test -z "$as_dir" && as_dir=.
20715 for ac_exec_ext in '' $ac_executable_extensions; do
20716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20717 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20724 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20728 PYTHON=$ac_cv_path_PYTHON
20730 if test -n "$PYTHON"; then
20731 echo "$as_me:$LINENO: result: $PYTHON" >&5
20732 echo "${ECHO_T}$PYTHON" >&6
20734 echo "$as_me:$LINENO: result: no" >&5
20735 echo "${ECHO_T}no" >&6
20738 # Extract the first word of "qmtest", so it can be a program name with args.
20739 set dummy qmtest; ac_word=$2
20740 echo "$as_me:$LINENO: checking for $ac_word" >&5
20741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20742 if test "${ac_cv_path_QMTEST+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20751 for as_dir in $PATH
20754 test -z "$as_dir" && as_dir=.
20755 for ac_exec_ext in '' $ac_executable_extensions; do
20756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20757 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20764 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20768 QMTEST=$ac_cv_path_QMTEST
20770 if test -n "$QMTEST"; then
20771 echo "$as_me:$LINENO: result: $QMTEST" >&5
20772 echo "${ECHO_T}$QMTEST" >&6
20774 echo "$as_me:$LINENO: result: no" >&5
20775 echo "${ECHO_T}no" >&6
20780 if test "$GCC" != "yes"
20782 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20783 echo "$as_me: error: gcc required but not found" >&2;}
20784 { (exit 1); exit 1; }; }
20787 if test "$GXX" != "yes"
20789 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20790 echo "$as_me: error: g++ required but not found" >&2;}
20791 { (exit 1); exit 1; }; }
20794 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20795 if test "$gccmajor" -lt "3"
20797 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20798 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20799 { (exit 1); exit 1; }; }
20802 echo "$as_me:$LINENO: checking for GNU make" >&5
20803 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
20804 if test "${_cv_gnu_make_command+set}" = set; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20807 _cv_gnu_make_command='' ;
20808 for a in "$MAKE" make gmake gnumake ; do
20809 if test -z "$a" ; then continue ; fi ;
20810 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
20811 _cv_gnu_make_command=$a ;
20817 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
20818 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
20819 if test "x$_cv_gnu_make_command" != "x" ; then
20823 echo "$as_me:$LINENO: result: \"Not found\"" >&5
20824 echo "${ECHO_T}\"Not found\"" >&6;
20828 if test -z "$_cv_gnu_make_command"
20830 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20831 echo "$as_me: error: GNU Make required but not found" >&2;}
20832 { (exit 1); exit 1; }; }
20835 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
20836 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
20838 if test -d "$LLVMGCCDIR"
20840 if test -x "$LLVMGCCDIR/bin/gcc"
20842 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
20846 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
20847 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
20848 if test "$LLVM_GCC_CHECK" = "no"
20853 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20854 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
20856 if test -x "$LLVM_GCC_CHECK"
20858 cp /dev/null conftest.c
20859 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
20865 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
20866 LLVMCC1=$llvmcc1path
20868 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
20869 LLVMCC1PLUS=$llvmcc1pluspath
20872 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
20873 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
20874 if test "$LLVM_GCC_SANE" = "no"
20879 etags_version=`$ETAGS --version 2>&1`
20880 case "$etags_version" in
20881 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20882 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20883 *) ETAGSFLAGS="" ;;
20885 ETAGSFLAGS=$ETAGSFLAGS
20888 if test "$PYTHON" = "false"
20890 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20891 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20893 if test "$QMTEST" = "false"
20895 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20896 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20899 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
20900 pymajor=`echo $pyversion | cut -d. -f1`
20901 pyminor=`echo $pyversion | cut -d. -f2`
20903 if test "$pymajor" -ge "2"
20905 if test "$pymajor" -eq "2"
20907 if test "$pyminor" -lt "2"
20909 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20910 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20915 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20920 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20921 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20922 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20923 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 ac_check_lib_save_LIBS=$LIBS
20927 cat >conftest.$ac_ext <<_ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20934 /* Override any gcc2 internal prototype to avoid an error. */
20938 /* We use char because int might match the return type of a gcc2
20939 builtin and then its argument prototype would still apply. */
20949 rm -f conftest.$ac_objext conftest$ac_exeext
20950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20951 (eval $ac_link) 2>conftest.er1
20953 grep -v '^ *+' conftest.er1 >conftest.err
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_c_werror_flag"
20959 || test ! -s conftest.err'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest$ac_exeext'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20971 ac_cv_lib_elf_elf_begin=yes
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_cv_lib_elf_elf_begin=no
20978 rm -f conftest.err conftest.$ac_objext \
20979 conftest$ac_exeext conftest.$ac_ext
20980 LIBS=$ac_check_lib_save_LIBS
20982 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
20983 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
20984 if test $ac_cv_lib_elf_elf_begin = yes; then
20985 cat >>confdefs.h <<_ACEOF
20986 #define HAVE_LIBELF 1
20994 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
20995 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
20996 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 ac_check_lib_save_LIBS=$LIBS
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21008 /* Override any gcc2 internal prototype to avoid an error. */
21012 /* We use char because int might match the return type of a gcc2
21013 builtin and then its argument prototype would still apply. */
21014 char BZ2_bzCompressInit ();
21018 BZ2_bzCompressInit ();
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025 (eval $ac_link) 2>conftest.er1
21027 grep -v '^ *+' conftest.er1 >conftest.err
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
21032 { ac_try='test -z "$ac_c_werror_flag"
21033 || test ! -s conftest.err'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_lib_bz2_BZ2_bzCompressInit=no
21052 rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21054 LIBS=$ac_check_lib_save_LIBS
21056 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
21057 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
21058 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
21064 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
21065 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
21066 if test "${ac_cv_lib_z_gzopen+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 ac_check_lib_save_LIBS=$LIBS
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21078 /* Override any gcc2 internal prototype to avoid an error. */
21082 /* We use char because int might match the return type of a gcc2
21083 builtin and then its argument prototype would still apply. */
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21095 (eval $ac_link) 2>conftest.er1
21097 grep -v '^ *+' conftest.er1 >conftest.err
21099 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
21102 { ac_try='test -z "$ac_c_werror_flag"
21103 || test ! -s conftest.err'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; } &&
21109 { ac_try='test -s conftest$ac_exeext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_cv_lib_z_gzopen=yes
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21120 ac_cv_lib_z_gzopen=no
21122 rm -f conftest.err conftest.$ac_objext \
21123 conftest$ac_exeext conftest.$ac_ext
21124 LIBS=$ac_check_lib_save_LIBS
21126 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
21127 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
21128 if test $ac_cv_lib_z_gzopen = yes; then
21135 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21136 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21137 if test "${ac_cv_search_dlopen+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 ac_func_search_save_LIBS=$LIBS
21141 ac_cv_search_dlopen=no
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21149 /* Override any gcc2 internal prototype to avoid an error. */
21153 /* We use char because int might match the return type of a gcc2
21154 builtin and then its argument prototype would still apply. */
21164 rm -f conftest.$ac_objext conftest$ac_exeext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21166 (eval $ac_link) 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -z "$ac_c_werror_flag"
21174 || test ! -s conftest.err'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try='test -s conftest$ac_exeext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_search_dlopen="none required"
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21192 rm -f conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21194 if test "$ac_cv_search_dlopen" = no; then
21195 for ac_lib in dl; do
21196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21204 /* Override any gcc2 internal prototype to avoid an error. */
21208 /* We use char because int might match the return type of a gcc2
21209 builtin and then its argument prototype would still apply. */
21219 rm -f conftest.$ac_objext conftest$ac_exeext
21220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21221 (eval $ac_link) 2>conftest.er1
21223 grep -v '^ *+' conftest.er1 >conftest.err
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
21228 { ac_try='test -z "$ac_c_werror_flag"
21229 || test ! -s conftest.err'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest$ac_exeext'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_search_dlopen="-l$ac_lib"
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21248 rm -f conftest.err conftest.$ac_objext \
21249 conftest$ac_exeext conftest.$ac_ext
21252 LIBS=$ac_func_search_save_LIBS
21254 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21255 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21256 if test "$ac_cv_search_dlopen" != no; then
21257 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21259 cat >>confdefs.h <<\_ACEOF
21260 #define HAVE_DLOPEN 1
21264 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21265 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21269 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21270 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21271 if test "${ac_cv_search_mallinfo+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 ac_func_search_save_LIBS=$LIBS
21275 ac_cv_search_mallinfo=no
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21283 /* Override any gcc2 internal prototype to avoid an error. */
21287 /* We use char because int might match the return type of a gcc2
21288 builtin and then its argument prototype would still apply. */
21298 rm -f conftest.$ac_objext conftest$ac_exeext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300 (eval $ac_link) 2>conftest.er1
21302 grep -v '^ *+' conftest.er1 >conftest.err
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try='test -z "$ac_c_werror_flag"
21308 || test ! -s conftest.err'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try='test -s conftest$ac_exeext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 ac_cv_search_mallinfo="none required"
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21326 rm -f conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
21328 if test "$ac_cv_search_mallinfo" = no; then
21329 for ac_lib in malloc; do
21330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21338 /* Override any gcc2 internal prototype to avoid an error. */
21342 /* We use char because int might match the return type of a gcc2
21343 builtin and then its argument prototype would still apply. */
21353 rm -f conftest.$ac_objext conftest$ac_exeext
21354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21355 (eval $ac_link) 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -z "$ac_c_werror_flag"
21363 || test ! -s conftest.err'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; } &&
21369 { ac_try='test -s conftest$ac_exeext'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_cv_search_mallinfo="-l$ac_lib"
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21382 rm -f conftest.err conftest.$ac_objext \
21383 conftest$ac_exeext conftest.$ac_ext
21386 LIBS=$ac_func_search_save_LIBS
21388 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21389 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21390 if test "$ac_cv_search_mallinfo" != no; then
21391 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_MALLINFO 1
21400 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21401 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21402 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 ac_func_search_save_LIBS=$LIBS
21406 ac_cv_search_pthread_mutex_lock=no
21407 cat >conftest.$ac_ext <<_ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21414 /* Override any gcc2 internal prototype to avoid an error. */
21418 /* We use char because int might match the return type of a gcc2
21419 builtin and then its argument prototype would still apply. */
21420 char pthread_mutex_lock ();
21424 pthread_mutex_lock ();
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21431 (eval $ac_link) 2>conftest.er1
21433 grep -v '^ *+' conftest.er1 >conftest.err
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
21438 { ac_try='test -z "$ac_c_werror_flag"
21439 || test ! -s conftest.err'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } &&
21445 { ac_try='test -s conftest$ac_exeext'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 ac_cv_search_pthread_mutex_lock="none required"
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21457 rm -f conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
21459 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21460 for ac_lib in pthread; do
21461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21469 /* Override any gcc2 internal prototype to avoid an error. */
21473 /* We use char because int might match the return type of a gcc2
21474 builtin and then its argument prototype would still apply. */
21475 char pthread_mutex_lock ();
21479 pthread_mutex_lock ();
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21486 (eval $ac_link) 2>conftest.er1
21488 grep -v '^ *+' conftest.er1 >conftest.err
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -z "$ac_c_werror_flag"
21494 || test ! -s conftest.err'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; } &&
21500 { ac_try='test -s conftest$ac_exeext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21513 rm -f conftest.err conftest.$ac_objext \
21514 conftest$ac_exeext conftest.$ac_ext
21517 LIBS=$ac_func_search_save_LIBS
21519 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21520 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21521 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21522 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21524 cat >>confdefs.h <<\_ACEOF
21525 #define HAVE_PTHREAD_MUTEX_LOCK 1
21533 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21534 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21535 if test "${ac_cv_header_stdc+set}" = set; then
21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 #include <stdlib.h>
21545 #include <stdarg.h>
21546 #include <string.h>
21557 rm -f conftest.$ac_objext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_header_stdc=yes
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ac_cv_header_stdc=no
21586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588 if test $ac_cv_header_stdc = yes; then
21589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 #include <string.h>
21599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21600 $EGREP "memchr" >/dev/null 2>&1; then
21603 ac_cv_header_stdc=no
21609 if test $ac_cv_header_stdc = yes; then
21610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21611 cat >conftest.$ac_ext <<_ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h. */
21617 #include <stdlib.h>
21620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21621 $EGREP "free" >/dev/null 2>&1; then
21624 ac_cv_header_stdc=no
21630 if test $ac_cv_header_stdc = yes; then
21631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21632 if test "$cross_compiling" = yes; then
21635 cat >conftest.$ac_ext <<_ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21642 #if ((' ' & 0x0FF) == 0x020)
21643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21646 # define ISLOWER(c) \
21647 (('a' <= (c) && (c) <= 'i') \
21648 || ('j' <= (c) && (c) <= 'r') \
21649 || ('s' <= (c) && (c) <= 'z'))
21650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21658 for (i = 0; i < 256; i++)
21659 if (XOR (islower (i), ISLOWER (i))
21660 || toupper (i) != TOUPPER (i))
21665 rm -f conftest$ac_exeext
21666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21667 (eval $ac_link) 2>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21678 echo "$as_me: program exited with status $ac_status" >&5
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ( exit $ac_status )
21683 ac_cv_header_stdc=no
21685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21689 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21690 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21691 if test $ac_cv_header_stdc = yes; then
21693 cat >>confdefs.h <<\_ACEOF
21694 #define STDC_HEADERS 1
21699 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21700 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21701 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 cat >conftest.$ac_ext <<_ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 #include <sys/types.h>
21711 #include <sys/wait.h>
21712 #ifndef WEXITSTATUS
21713 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21716 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21724 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21733 grep -v '^ *+' conftest.er1 >conftest.err
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_header_sys_wait_h=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_cv_header_sys_wait_h=no
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21760 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21761 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21762 if test $ac_cv_header_sys_wait_h = yes; then
21764 cat >>confdefs.h <<\_ACEOF
21765 #define HAVE_SYS_WAIT_H 1
21770 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21771 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21772 if test "${ac_cv_header_time+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 #include <sys/types.h>
21782 #include <sys/time.h>
21788 if ((struct tm *) 0)
21794 rm -f conftest.$ac_objext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21796 (eval $ac_compile) 2>conftest.er1
21798 grep -v '^ *+' conftest.er1 >conftest.err
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } &&
21803 { ac_try='test -z "$ac_c_werror_flag"
21804 || test ! -s conftest.err'
21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; } &&
21810 { ac_try='test -s conftest.$ac_objext'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21816 ac_cv_header_time=yes
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_cv_header_time=no
21823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21825 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21826 echo "${ECHO_T}$ac_cv_header_time" >&6
21827 if test $ac_cv_header_time = yes; then
21829 cat >>confdefs.h <<\_ACEOF
21830 #define TIME_WITH_SYS_TIME 1
21835 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21836 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21837 if test "${ac_cv_header_mmap_anon+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 ac_cpp='$CPP $CPPFLAGS'
21842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21846 cat >conftest.$ac_ext <<_ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 #include <sys/mman.h>
21853 #include <unistd.h>
21858 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21863 rm -f conftest.$ac_objext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21865 (eval $ac_compile) 2>conftest.er1
21867 grep -v '^ *+' conftest.er1 >conftest.err
21869 cat conftest.err >&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try='test -z "$ac_c_werror_flag"
21873 || test ! -s conftest.err'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try='test -s conftest.$ac_objext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_header_mmap_anon=yes
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ac_cv_header_mmap_anon=no
21892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21894 ac_cpp='$CPP $CPPFLAGS'
21895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21901 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21902 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21903 if test "$ac_cv_header_mmap_anon" = yes; then
21905 cat >>confdefs.h <<\_ACEOF
21906 #define HAVE_MMAP_ANONYMOUS
21918 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h
21920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21922 echo "$as_me:$LINENO: checking for $ac_header" >&5
21923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21930 # Is the header compilable?
21931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21933 cat >conftest.$ac_ext <<_ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 $ac_includes_default
21940 #include <$ac_header>
21942 rm -f conftest.$ac_objext
21943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21944 (eval $ac_compile) 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } &&
21951 { ac_try='test -z "$ac_c_werror_flag"
21952 || test ! -s conftest.err'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; } &&
21958 { ac_try='test -s conftest.$ac_objext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ac_header_compiler=yes
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 ac_header_compiler=no
21971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21973 echo "${ECHO_T}$ac_header_compiler" >&6
21975 # Is the header present?
21976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 #include <$ac_header>
21986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } >/dev/null; then
21994 if test -s conftest.err; then
21995 ac_cpp_err=$ac_c_preproc_warn_flag
21996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22003 if test -z "$ac_cpp_err"; then
22004 ac_header_preproc=yes
22006 echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 ac_header_preproc=no
22011 rm -f conftest.err conftest.$ac_ext
22012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22013 echo "${ECHO_T}$ac_header_preproc" >&6
22015 # So? What about this header?
22016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22022 ac_header_preproc=yes
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22039 ## ----------------------------------- ##
22040 ## Report this to llvmbugs@cs.uiuc.edu ##
22041 ## ----------------------------------- ##
22044 sed "s/^/$as_me: WARNING: /" >&2
22047 echo "$as_me:$LINENO: checking for $ac_header" >&5
22048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 eval "$as_ac_Header=\$ac_header_preproc"
22054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22059 cat >>confdefs.h <<_ACEOF
22060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22072 for ac_header in sys/resource.h dlfcn.h link.h execinfo.h windows.h
22074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22076 echo "$as_me:$LINENO: checking for $ac_header" >&5
22077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22084 # Is the header compilable?
22085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22087 cat >conftest.$ac_ext <<_ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h. */
22093 $ac_includes_default
22094 #include <$ac_header>
22096 rm -f conftest.$ac_objext
22097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22098 (eval $ac_compile) 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_c_werror_flag"
22106 || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest.$ac_objext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_header_compiler=yes
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_header_compiler=no
22125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22127 echo "${ECHO_T}$ac_header_compiler" >&6
22129 # Is the header present?
22130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22132 cat >conftest.$ac_ext <<_ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 #include <$ac_header>
22140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22143 grep -v '^ *+' conftest.er1 >conftest.err
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } >/dev/null; then
22148 if test -s conftest.err; then
22149 ac_cpp_err=$ac_c_preproc_warn_flag
22150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22157 if test -z "$ac_cpp_err"; then
22158 ac_header_preproc=yes
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22163 ac_header_preproc=no
22165 rm -f conftest.err conftest.$ac_ext
22166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22167 echo "${ECHO_T}$ac_header_preproc" >&6
22169 # So? What about this header?
22170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22176 ac_header_preproc=yes
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22193 ## ----------------------------------- ##
22194 ## Report this to llvmbugs@cs.uiuc.edu ##
22195 ## ----------------------------------- ##
22198 sed "s/^/$as_me: WARNING: /" >&2
22201 echo "$as_me:$LINENO: checking for $ac_header" >&5
22202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 eval "$as_ac_Header=\$ac_header_preproc"
22208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22213 cat >>confdefs.h <<_ACEOF
22214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22222 if test "${ac_cv_header_sys_types_h+set}" = set; then
22223 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22224 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22225 if test "${ac_cv_header_sys_types_h+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22229 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22231 # Is the header compilable?
22232 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
22233 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 $ac_includes_default
22241 #include <sys/types.h>
22243 rm -f conftest.$ac_objext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22245 (eval $ac_compile) 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -z "$ac_c_werror_flag"
22253 || test ! -s conftest.err'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest.$ac_objext'
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
22265 ac_header_compiler=yes
22267 echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22270 ac_header_compiler=no
22272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22274 echo "${ECHO_T}$ac_header_compiler" >&6
22276 # Is the header present?
22277 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
22278 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
22279 cat >conftest.$ac_ext <<_ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22285 #include <sys/types.h>
22287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22290 grep -v '^ *+' conftest.er1 >conftest.err
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } >/dev/null; then
22295 if test -s conftest.err; then
22296 ac_cpp_err=$ac_c_preproc_warn_flag
22297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22304 if test -z "$ac_cpp_err"; then
22305 ac_header_preproc=yes
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22310 ac_header_preproc=no
22312 rm -f conftest.err conftest.$ac_ext
22313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22314 echo "${ECHO_T}$ac_header_preproc" >&6
22316 # So? What about this header?
22317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22319 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
22320 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22321 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
22322 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
22323 ac_header_preproc=yes
22326 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
22327 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
22328 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
22329 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
22331 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
22333 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
22335 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
22337 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
22340 ## ----------------------------------- ##
22341 ## Report this to llvmbugs@cs.uiuc.edu ##
22342 ## ----------------------------------- ##
22345 sed "s/^/$as_me: WARNING: /" >&2
22348 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22349 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22350 if test "${ac_cv_header_sys_types_h+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22353 ac_cv_header_sys_types_h=$ac_header_preproc
22355 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22356 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22361 if test "${ac_cv_header_inttypes_h+set}" = set; then
22362 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22363 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22364 if test "${ac_cv_header_inttypes_h+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22368 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22370 # Is the header compilable?
22371 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
22372 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
22373 cat >conftest.$ac_ext <<_ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 $ac_includes_default
22380 #include <inttypes.h>
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -z "$ac_c_werror_flag"
22392 || test ! -s conftest.err'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; } &&
22398 { ac_try='test -s conftest.$ac_objext'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22404 ac_header_compiler=yes
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22409 ac_header_compiler=no
22411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22413 echo "${ECHO_T}$ac_header_compiler" >&6
22415 # Is the header present?
22416 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
22417 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 #include <inttypes.h>
22426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22429 grep -v '^ *+' conftest.er1 >conftest.err
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } >/dev/null; then
22434 if test -s conftest.err; then
22435 ac_cpp_err=$ac_c_preproc_warn_flag
22436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22443 if test -z "$ac_cpp_err"; then
22444 ac_header_preproc=yes
22446 echo "$as_me: failed program was:" >&5
22447 sed 's/^/| /' conftest.$ac_ext >&5
22449 ac_header_preproc=no
22451 rm -f conftest.err conftest.$ac_ext
22452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22453 echo "${ECHO_T}$ac_header_preproc" >&6
22455 # So? What about this header?
22456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22458 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
22459 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22460 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
22461 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
22462 ac_header_preproc=yes
22465 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
22466 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
22468 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
22469 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
22470 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
22471 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
22472 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
22473 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
22474 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
22475 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
22476 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
22479 ## ----------------------------------- ##
22480 ## Report this to llvmbugs@cs.uiuc.edu ##
22481 ## ----------------------------------- ##
22484 sed "s/^/$as_me: WARNING: /" >&2
22487 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22488 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22489 if test "${ac_cv_header_inttypes_h+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 ac_cv_header_inttypes_h=$ac_header_preproc
22494 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22495 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22500 if test "${ac_cv_header_stdint_h+set}" = set; then
22501 echo "$as_me:$LINENO: checking for stdint.h" >&5
22502 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22503 if test "${ac_cv_header_stdint_h+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22506 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22507 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22509 # Is the header compilable?
22510 echo "$as_me:$LINENO: checking stdint.h usability" >&5
22511 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
22512 cat >conftest.$ac_ext <<_ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22518 $ac_includes_default
22519 #include <stdint.h>
22521 rm -f conftest.$ac_objext
22522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22523 (eval $ac_compile) 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -z "$ac_c_werror_flag"
22531 || test ! -s conftest.err'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } &&
22537 { ac_try='test -s conftest.$ac_objext'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 ac_header_compiler=yes
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_header_compiler=no
22550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22552 echo "${ECHO_T}$ac_header_compiler" >&6
22554 # Is the header present?
22555 echo "$as_me:$LINENO: checking stdint.h presence" >&5
22556 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 #include <stdint.h>
22565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } >/dev/null; then
22573 if test -s conftest.err; then
22574 ac_cpp_err=$ac_c_preproc_warn_flag
22575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22582 if test -z "$ac_cpp_err"; then
22583 ac_header_preproc=yes
22585 echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22588 ac_header_preproc=no
22590 rm -f conftest.err conftest.$ac_ext
22591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22592 echo "${ECHO_T}$ac_header_preproc" >&6
22594 # So? What about this header?
22595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22597 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
22598 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22599 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
22600 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
22601 ac_header_preproc=yes
22604 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
22605 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
22606 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
22607 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
22609 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
22611 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
22613 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
22615 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
22618 ## ----------------------------------- ##
22619 ## Report this to llvmbugs@cs.uiuc.edu ##
22620 ## ----------------------------------- ##
22623 sed "s/^/$as_me: WARNING: /" >&2
22626 echo "$as_me:$LINENO: checking for stdint.h" >&5
22627 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22628 if test "${ac_cv_header_stdint_h+set}" = set; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 ac_cv_header_stdint_h=$ac_header_preproc
22633 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22634 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22641 for ac_header in bzlib.h
22643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22645 echo "$as_me:$LINENO: checking for $ac_header" >&5
22646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22653 # Is the header compilable?
22654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 $ac_includes_default
22663 #include <$ac_header>
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667 (eval $ac_compile) 2>conftest.er1
22669 grep -v '^ *+' conftest.er1 >conftest.err
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
22674 { ac_try='test -z "$ac_c_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest.$ac_objext'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 ac_header_compiler=yes
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 ac_header_compiler=no
22694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22696 echo "${ECHO_T}$ac_header_compiler" >&6
22698 # Is the header present?
22699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22701 cat >conftest.$ac_ext <<_ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <$ac_header>
22709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22712 grep -v '^ *+' conftest.er1 >conftest.err
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } >/dev/null; then
22717 if test -s conftest.err; then
22718 ac_cpp_err=$ac_c_preproc_warn_flag
22719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22726 if test -z "$ac_cpp_err"; then
22727 ac_header_preproc=yes
22729 echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 ac_header_preproc=no
22734 rm -f conftest.err conftest.$ac_ext
22735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22736 echo "${ECHO_T}$ac_header_preproc" >&6
22738 # So? What about this header?
22739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22745 ac_header_preproc=yes
22748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22762 ## ----------------------------------- ##
22763 ## Report this to llvmbugs@cs.uiuc.edu ##
22764 ## ----------------------------------- ##
22767 sed "s/^/$as_me: WARNING: /" >&2
22770 echo "$as_me:$LINENO: checking for $ac_header" >&5
22771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22773 echo $ECHO_N "(cached) $ECHO_C" >&6
22775 eval "$as_ac_Header=\$ac_header_preproc"
22777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22782 cat >>confdefs.h <<_ACEOF
22783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22793 for ac_header in zlib.h
22795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22797 echo "$as_me:$LINENO: checking for $ac_header" >&5
22798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22805 # Is the header compilable?
22806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22808 cat >conftest.$ac_ext <<_ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h. */
22814 $ac_includes_default
22815 #include <$ac_header>
22817 rm -f conftest.$ac_objext
22818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22819 (eval $ac_compile) 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } &&
22826 { ac_try='test -z "$ac_c_werror_flag"
22827 || test ! -s conftest.err'
22828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829 (eval $ac_try) 2>&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; } &&
22833 { ac_try='test -s conftest.$ac_objext'
22834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835 (eval $ac_try) 2>&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); }; }; then
22839 ac_header_compiler=yes
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 ac_header_compiler=no
22846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22848 echo "${ECHO_T}$ac_header_compiler" >&6
22850 # Is the header present?
22851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22853 cat >conftest.$ac_ext <<_ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h. */
22859 #include <$ac_header>
22861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22864 grep -v '^ *+' conftest.er1 >conftest.err
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } >/dev/null; then
22869 if test -s conftest.err; then
22870 ac_cpp_err=$ac_c_preproc_warn_flag
22871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22878 if test -z "$ac_cpp_err"; then
22879 ac_header_preproc=yes
22881 echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 ac_header_preproc=no
22886 rm -f conftest.err conftest.$ac_ext
22887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22888 echo "${ECHO_T}$ac_header_preproc" >&6
22890 # So? What about this header?
22891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22897 ac_header_preproc=yes
22900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22914 ## ----------------------------------- ##
22915 ## Report this to llvmbugs@cs.uiuc.edu ##
22916 ## ----------------------------------- ##
22919 sed "s/^/$as_me: WARNING: /" >&2
22922 echo "$as_me:$LINENO: checking for $ac_header" >&5
22923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 eval "$as_ac_Header=\$ac_header_preproc"
22929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22934 cat >>confdefs.h <<_ACEOF
22935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22946 echo "$as_me:$LINENO: checking for pid_t" >&5
22947 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22948 if test "${ac_cv_type_pid_t+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 cat >conftest.$ac_ext <<_ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 $ac_includes_default
22963 if (sizeof (pid_t))
22969 rm -f conftest.$ac_objext
22970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22971 (eval $ac_compile) 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } &&
22978 { ac_try='test -z "$ac_c_werror_flag"
22979 || test ! -s conftest.err'
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; } &&
22985 { ac_try='test -s conftest.$ac_objext'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 ac_cv_type_pid_t=yes
22993 echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22996 ac_cv_type_pid_t=no
22998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23000 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23001 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23002 if test $ac_cv_type_pid_t = yes; then
23006 cat >>confdefs.h <<_ACEOF
23012 echo "$as_me:$LINENO: checking for size_t" >&5
23013 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23014 if test "${ac_cv_type_size_t+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 cat >conftest.$ac_ext <<_ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23023 $ac_includes_default
23029 if (sizeof (size_t))
23035 rm -f conftest.$ac_objext
23036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23037 (eval $ac_compile) 2>conftest.er1
23039 grep -v '^ *+' conftest.er1 >conftest.err
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } &&
23044 { ac_try='test -z "$ac_c_werror_flag"
23045 || test ! -s conftest.err'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; } &&
23051 { ac_try='test -s conftest.$ac_objext'
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; }; then
23057 ac_cv_type_size_t=yes
23059 echo "$as_me: failed program was:" >&5
23060 sed 's/^/| /' conftest.$ac_ext >&5
23062 ac_cv_type_size_t=no
23064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23066 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23067 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23068 if test $ac_cv_type_size_t = yes; then
23072 cat >>confdefs.h <<_ACEOF
23073 #define size_t unsigned
23078 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23079 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23080 if test "${ac_cv_type_signal+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 #include <sys/types.h>
23090 #include <signal.h>
23095 extern "C" void (*signal (int, void (*)(int)))(int);
23097 void (*signal ()) ();
23108 rm -f conftest.$ac_objext
23109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23110 (eval $ac_compile) 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
23117 { ac_try='test -z "$ac_c_werror_flag"
23118 || test ! -s conftest.err'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; } &&
23124 { ac_try='test -s conftest.$ac_objext'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; }; then
23130 ac_cv_type_signal=void
23132 echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23135 ac_cv_type_signal=int
23137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23139 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23140 echo "${ECHO_T}$ac_cv_type_signal" >&6
23142 cat >>confdefs.h <<_ACEOF
23143 #define RETSIGTYPE $ac_cv_type_signal
23147 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23148 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23149 if test "${ac_cv_struct_tm+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23158 #include <sys/types.h>
23164 struct tm *tp; tp->tm_sec;
23169 rm -f conftest.$ac_objext
23170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171 (eval $ac_compile) 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
23178 { ac_try='test -z "$ac_c_werror_flag"
23179 || test ! -s conftest.err'
23180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181 (eval $ac_try) 2>&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); }; } &&
23185 { ac_try='test -s conftest.$ac_objext'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; }; then
23191 ac_cv_struct_tm=time.h
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ac_cv_struct_tm=sys/time.h
23198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23200 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23201 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23202 if test $ac_cv_struct_tm = sys/time.h; then
23204 cat >>confdefs.h <<\_ACEOF
23205 #define TM_IN_SYS_TIME 1
23210 echo "$as_me:$LINENO: checking for int64_t" >&5
23211 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
23212 if test "${ac_cv_type_int64_t+set}" = set; then
23213 echo $ECHO_N "(cached) $ECHO_C" >&6
23215 cat >conftest.$ac_ext <<_ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23221 $ac_includes_default
23227 if (sizeof (int64_t))
23233 rm -f conftest.$ac_objext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23235 (eval $ac_compile) 2>conftest.er1
23237 grep -v '^ *+' conftest.er1 >conftest.err
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
23242 { ac_try='test -z "$ac_c_werror_flag"
23243 || test ! -s conftest.err'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest.$ac_objext'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 ac_cv_type_int64_t=yes
23257 echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23260 ac_cv_type_int64_t=no
23262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23264 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23265 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
23266 if test $ac_cv_type_int64_t = yes; then
23268 cat >>confdefs.h <<_ACEOF
23269 #define HAVE_INT64_T 1
23274 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
23275 echo "$as_me: error: Type int64_t required but not found" >&2;}
23276 { (exit 1); exit 1; }; }
23279 echo "$as_me:$LINENO: checking for uint64_t" >&5
23280 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
23281 if test "${ac_cv_type_uint64_t+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23284 cat >conftest.$ac_ext <<_ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h. */
23290 $ac_includes_default
23294 if ((uint64_t *) 0)
23296 if (sizeof (uint64_t))
23302 rm -f conftest.$ac_objext
23303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23304 (eval $ac_compile) 2>conftest.er1
23306 grep -v '^ *+' conftest.er1 >conftest.err
23308 cat conftest.err >&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } &&
23311 { ac_try='test -z "$ac_c_werror_flag"
23312 || test ! -s conftest.err'
23313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; } &&
23318 { ac_try='test -s conftest.$ac_objext'
23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320 (eval $ac_try) 2>&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); }; }; then
23324 ac_cv_type_uint64_t=yes
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23329 ac_cv_type_uint64_t=no
23331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23333 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23334 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
23335 if test $ac_cv_type_uint64_t = yes; then
23337 cat >>confdefs.h <<_ACEOF
23338 #define HAVE_UINT64_T 1
23343 echo "$as_me:$LINENO: checking for u_int64_t" >&5
23344 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
23345 if test "${ac_cv_type_u_int64_t+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23348 cat >conftest.$ac_ext <<_ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 $ac_includes_default
23358 if ((u_int64_t *) 0)
23360 if (sizeof (u_int64_t))
23366 rm -f conftest.$ac_objext
23367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23368 (eval $ac_compile) 2>conftest.er1
23370 grep -v '^ *+' conftest.er1 >conftest.err
23372 cat conftest.err >&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } &&
23375 { ac_try='test -z "$ac_c_werror_flag"
23376 || test ! -s conftest.err'
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; } &&
23382 { ac_try='test -s conftest.$ac_objext'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; }; then
23388 ac_cv_type_u_int64_t=yes
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 ac_cv_type_u_int64_t=no
23395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23397 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23398 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23399 if test $ac_cv_type_u_int64_t = yes; then
23401 cat >>confdefs.h <<_ACEOF
23402 #define HAVE_U_INT64_T 1
23407 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23408 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23409 { (exit 1); exit 1; }; }
23416 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
23417 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
23419 ac_cpp='$CPP $CPPFLAGS'
23420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23424 if test "$cross_compiling" = yes; then
23427 cat >conftest.$ac_ext <<_ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23436 #include <stdlib.h>
23442 volatile double A, B;
23446 sprintf(Buffer, "%a", A);
23450 if (A != 0x1.999999999999ap-4)
23457 rm -f conftest$ac_exeext
23458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23459 (eval $ac_link) 2>&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; }; then
23470 echo "$as_me: program exited with status $ac_status" >&5
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23474 ( exit $ac_status )
23477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23480 ac_cpp='$CPP $CPPFLAGS'
23481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23485 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
23486 echo "${ECHO_T}$ac_c_printf_a" >&6
23487 if test "$ac_c_printf_a" = "yes"; then
23489 cat >>confdefs.h <<\_ACEOF
23490 #define HAVE_PRINTF_A 1
23496 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
23497 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
23498 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23502 ac_cpp='$CXXCPP $CPPFLAGS'
23503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23514 int foo(float f) {return isnan(f);}
23516 rm -f conftest.$ac_objext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23518 (eval $ac_compile) 2>conftest.er1
23520 grep -v '^ *+' conftest.er1 >conftest.err
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
23525 { ac_try='test -z "$ac_cxx_werror_flag"
23526 || test ! -s conftest.err'
23527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; } &&
23532 { ac_try='test -s conftest.$ac_objext'
23533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534 (eval $ac_try) 2>&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; }; then
23538 ac_cv_func_isnan_in_math_h=yes
23540 echo "$as_me: failed program was:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23543 ac_cv_func_isnan_in_math_h=no
23545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23547 ac_cpp='$CPP $CPPFLAGS'
23548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23553 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
23554 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
23555 if test "$ac_cv_func_isnan_in_math_h" = "yes"
23558 cat >>confdefs.h <<\_ACEOF
23559 #define HAVE_ISNAN_IN_MATH_H 1
23563 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
23564 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
23565 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 ac_cpp='$CXXCPP $CPPFLAGS'
23570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23581 int foo(float f) {return isnan(f);}
23583 rm -f conftest.$ac_objext
23584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23585 (eval $ac_compile) 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } &&
23592 { ac_try='test -z "$ac_cxx_werror_flag"
23593 || test ! -s conftest.err'
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; } &&
23599 { ac_try='test -s conftest.$ac_objext'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_func_isnan_in_cmath=yes
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ac_cv_func_isnan_in_cmath=no
23612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23614 ac_cpp='$CPP $CPPFLAGS'
23615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23620 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
23621 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
23622 if test "$ac_cv_func_isnan_in_cmath" = "yes"
23625 cat >>confdefs.h <<\_ACEOF
23626 #define HAVE_ISNAN_IN_CMATH 1
23630 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
23631 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
23632 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23636 ac_cpp='$CXXCPP $CPPFLAGS'
23637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23648 using std::isnan; int foo(float f) {return isnan(f);}
23650 rm -f conftest.$ac_objext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23652 (eval $ac_compile) 2>conftest.er1
23654 grep -v '^ *+' conftest.er1 >conftest.err
23656 cat conftest.err >&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -z "$ac_cxx_werror_flag"
23660 || test ! -s conftest.err'
23661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 (eval $ac_try) 2>&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; } &&
23666 { ac_try='test -s conftest.$ac_objext'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; }; then
23672 ac_cv_func_std_isnan_in_cmath=yes
23674 echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23677 ac_cv_func_std_isnan_in_cmath=no
23679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23681 ac_cpp='$CPP $CPPFLAGS'
23682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23687 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
23688 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
23689 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
23692 cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_STD_ISNAN_IN_CMATH 1
23699 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
23700 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
23701 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23705 ac_cpp='$CXXCPP $CPPFLAGS'
23706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23710 cat >conftest.$ac_ext <<_ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23717 int foo(float f) {return isinf(f);}
23719 rm -f conftest.$ac_objext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23721 (eval $ac_compile) 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
23728 { ac_try='test -z "$ac_cxx_werror_flag"
23729 || test ! -s conftest.err'
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; } &&
23735 { ac_try='test -s conftest.$ac_objext'
23736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737 (eval $ac_try) 2>&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; }; then
23741 ac_cv_func_isinf_in_math_h=yes
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23746 ac_cv_func_isinf_in_math_h=no
23748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23750 ac_cpp='$CPP $CPPFLAGS'
23751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23756 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
23757 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
23758 if test "$ac_cv_func_isinf_in_math_h" = "yes"
23761 cat >>confdefs.h <<\_ACEOF
23762 #define HAVE_ISINF_IN_MATH_H 1
23766 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
23767 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
23768 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
23769 echo $ECHO_N "(cached) $ECHO_C" >&6
23772 ac_cpp='$CXXCPP $CPPFLAGS'
23773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23784 int foo(float f) {return isinf(f);}
23786 rm -f conftest.$ac_objext
23787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23788 (eval $ac_compile) 2>conftest.er1
23790 grep -v '^ *+' conftest.er1 >conftest.err
23792 cat conftest.err >&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } &&
23795 { ac_try='test -z "$ac_cxx_werror_flag"
23796 || test ! -s conftest.err'
23797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798 (eval $ac_try) 2>&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; } &&
23802 { ac_try='test -s conftest.$ac_objext'
23803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804 (eval $ac_try) 2>&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); }; }; then
23808 ac_cv_func_isinf_in_cmath=yes
23810 echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23813 ac_cv_func_isinf_in_cmath=no
23815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23817 ac_cpp='$CPP $CPPFLAGS'
23818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23823 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
23824 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
23825 if test "$ac_cv_func_isinf_in_cmath" = "yes"
23828 cat >>confdefs.h <<\_ACEOF
23829 #define HAVE_ISINF_IN_CMATH 1
23833 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
23834 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
23835 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23839 ac_cpp='$CXXCPP $CPPFLAGS'
23840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23844 cat >conftest.$ac_ext <<_ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23851 using std::isinf; int foo(float f) {return isinf(f);}
23853 rm -f conftest.$ac_objext
23854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23855 (eval $ac_compile) 2>conftest.er1
23857 grep -v '^ *+' conftest.er1 >conftest.err
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } &&
23862 { ac_try='test -z "$ac_cxx_werror_flag"
23863 || test ! -s conftest.err'
23864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; } &&
23869 { ac_try='test -s conftest.$ac_objext'
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 ac_cv_func_std_isinf_in_cmath=yes
23877 echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23880 ac_cv_func_std_isinf_in_cmath=no
23882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23884 ac_cpp='$CPP $CPPFLAGS'
23885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23890 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
23891 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
23892 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
23895 cat >>confdefs.h <<\_ACEOF
23896 #define HAVE_STD_ISINF_IN_CMATH 1
23900 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23901 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23902 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 ac_cpp='$CXXCPP $CPPFLAGS'
23907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23911 cat >conftest.$ac_ext <<_ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23917 #include <ieeefp.h>
23918 int foo(float f) {return finite(f);}
23920 rm -f conftest.$ac_objext
23921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23922 (eval $ac_compile) 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
23929 { ac_try='test -z "$ac_cxx_werror_flag"
23930 || test ! -s conftest.err'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; } &&
23936 { ac_try='test -s conftest.$ac_objext'
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942 ac_cv_func_finite_in_ieeefp_h=yes
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23947 ac_cv_func_finite_in_ieeefp_h=no
23949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23951 ac_cpp='$CPP $CPPFLAGS'
23952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23957 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23958 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
23959 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
23962 cat >>confdefs.h <<\_ACEOF
23963 #define HAVE_FINITE_IN_IEEEFP_H 1
23968 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23969 # for constant arguments. Useless!
23970 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23971 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23972 if test "${ac_cv_working_alloca_h+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23975 cat >conftest.$ac_ext <<_ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23981 #include <alloca.h>
23985 char *p = (char *) alloca (2 * sizeof (int));
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992 (eval $ac_link) 2>conftest.er1
23994 grep -v '^ *+' conftest.er1 >conftest.err
23996 cat conftest.err >&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } &&
23999 { ac_try='test -z "$ac_c_werror_flag"
24000 || test ! -s conftest.err'
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; } &&
24006 { ac_try='test -s conftest$ac_exeext'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ac_cv_working_alloca_h=yes
24014 echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24017 ac_cv_working_alloca_h=no
24019 rm -f conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext conftest.$ac_ext
24022 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24023 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24024 if test $ac_cv_working_alloca_h = yes; then
24026 cat >>confdefs.h <<\_ACEOF
24027 #define HAVE_ALLOCA_H 1
24032 echo "$as_me:$LINENO: checking for alloca" >&5
24033 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24034 if test "${ac_cv_func_alloca_works+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24037 cat >conftest.$ac_ext <<_ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24044 # define alloca __builtin_alloca
24047 # include <malloc.h>
24048 # define alloca _alloca
24051 # include <alloca.h>
24056 # ifndef alloca /* predefined by HP cc +Olibcalls */
24067 char *p = (char *) alloca (1);
24072 rm -f conftest.$ac_objext conftest$ac_exeext
24073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24074 (eval $ac_link) 2>conftest.er1
24076 grep -v '^ *+' conftest.er1 >conftest.err
24078 cat conftest.err >&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } &&
24081 { ac_try='test -z "$ac_c_werror_flag"
24082 || test ! -s conftest.err'
24083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084 (eval $ac_try) 2>&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); }; } &&
24088 { ac_try='test -s conftest$ac_exeext'
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; }; then
24094 ac_cv_func_alloca_works=yes
24096 echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24099 ac_cv_func_alloca_works=no
24101 rm -f conftest.err conftest.$ac_objext \
24102 conftest$ac_exeext conftest.$ac_ext
24104 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24105 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24107 if test $ac_cv_func_alloca_works = yes; then
24109 cat >>confdefs.h <<\_ACEOF
24110 #define HAVE_ALLOCA 1
24114 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24115 # that cause trouble. Some versions do not even contain alloca or
24116 # contain a buggy version. If you still want to use their alloca,
24117 # use ar to extract alloca.o from them instead of compiling alloca.c.
24119 ALLOCA=alloca.$ac_objext
24121 cat >>confdefs.h <<\_ACEOF
24126 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24127 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24128 if test "${ac_cv_os_cray+set}" = set; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24131 cat >conftest.$ac_ext <<_ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 #if defined(CRAY) && ! defined(CRAY2)
24144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24145 $EGREP "webecray" >/dev/null 2>&1; then
24153 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24154 echo "${ECHO_T}$ac_cv_os_cray" >&6
24155 if test $ac_cv_os_cray = yes; then
24156 for ac_func in _getb67 GETB67 getb67; do
24157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24158 echo "$as_me:$LINENO: checking for $ac_func" >&5
24159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24160 if eval "test \"\${$as_ac_var+set}\" = set"; then
24161 echo $ECHO_N "(cached) $ECHO_C" >&6
24163 cat >conftest.$ac_ext <<_ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24171 #define $ac_func innocuous_$ac_func
24173 /* System header to define __stub macros and hopefully few prototypes,
24174 which can conflict with char $ac_func (); below.
24175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24176 <limits.h> exists even on freestanding compilers. */
24179 # include <limits.h>
24181 # include <assert.h>
24186 /* Override any gcc2 internal prototype to avoid an error. */
24191 /* We use char because int might match the return type of a gcc2
24192 builtin and then its argument prototype would still apply. */
24194 /* The GNU C library defines this for functions which it implements
24195 to always fail with ENOSYS. Some functions are actually named
24196 something starting with __ and the normal name is an alias. */
24197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24200 char (*f) () = $ac_func;
24209 return f != $ac_func;
24214 rm -f conftest.$ac_objext conftest$ac_exeext
24215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24216 (eval $ac_link) 2>conftest.er1
24218 grep -v '^ *+' conftest.er1 >conftest.err
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } &&
24223 { ac_try='test -z "$ac_c_werror_flag"
24224 || test ! -s conftest.err'
24225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226 (eval $ac_try) 2>&5
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); }; } &&
24230 { ac_try='test -s conftest$ac_exeext'
24231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24232 (eval $ac_try) 2>&5
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; }; then
24236 eval "$as_ac_var=yes"
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 eval "$as_ac_var=no"
24243 rm -f conftest.err conftest.$ac_objext \
24244 conftest$ac_exeext conftest.$ac_ext
24246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24248 if test `eval echo '${'$as_ac_var'}'` = yes; then
24250 cat >>confdefs.h <<_ACEOF
24251 #define CRAY_STACKSEG_END $ac_func
24260 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24261 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24262 if test "${ac_cv_c_stack_direction+set}" = set; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24265 if test "$cross_compiling" = yes; then
24266 ac_cv_c_stack_direction=0
24268 cat >conftest.$ac_ext <<_ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24275 find_stack_direction ()
24277 static char *addr = 0;
24282 return find_stack_direction ();
24285 return (&dummy > addr) ? 1 : -1;
24291 exit (find_stack_direction () < 0);
24294 rm -f conftest$ac_exeext
24295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24296 (eval $ac_link) 2>&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305 ac_cv_c_stack_direction=1
24307 echo "$as_me: program exited with status $ac_status" >&5
24308 echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24311 ( exit $ac_status )
24312 ac_cv_c_stack_direction=-1
24314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24317 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24318 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24320 cat >>confdefs.h <<_ACEOF
24321 #define STACK_DIRECTION $ac_cv_c_stack_direction
24329 for ac_header in stdlib.h unistd.h
24331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24333 echo "$as_me:$LINENO: checking for $ac_header" >&5
24334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24341 # Is the header compilable?
24342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24344 cat >conftest.$ac_ext <<_ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 $ac_includes_default
24351 #include <$ac_header>
24353 rm -f conftest.$ac_objext
24354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24355 (eval $ac_compile) 2>conftest.er1
24357 grep -v '^ *+' conftest.er1 >conftest.err
24359 cat conftest.err >&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
24362 { ac_try='test -z "$ac_c_werror_flag"
24363 || test ! -s conftest.err'
24364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; } &&
24369 { ac_try='test -s conftest.$ac_objext'
24370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371 (eval $ac_try) 2>&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; }; then
24375 ac_header_compiler=yes
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_header_compiler=no
24382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24384 echo "${ECHO_T}$ac_header_compiler" >&6
24386 # Is the header present?
24387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24389 cat >conftest.$ac_ext <<_ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h. */
24395 #include <$ac_header>
24397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24400 grep -v '^ *+' conftest.er1 >conftest.err
24402 cat conftest.err >&5
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } >/dev/null; then
24405 if test -s conftest.err; then
24406 ac_cpp_err=$ac_c_preproc_warn_flag
24407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24414 if test -z "$ac_cpp_err"; then
24415 ac_header_preproc=yes
24417 echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24420 ac_header_preproc=no
24422 rm -f conftest.err conftest.$ac_ext
24423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24424 echo "${ECHO_T}$ac_header_preproc" >&6
24426 # So? What about this header?
24427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24433 ac_header_preproc=yes
24436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24450 ## ----------------------------------- ##
24451 ## Report this to llvmbugs@cs.uiuc.edu ##
24452 ## ----------------------------------- ##
24455 sed "s/^/$as_me: WARNING: /" >&2
24458 echo "$as_me:$LINENO: checking for $ac_header" >&5
24459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24463 eval "$as_ac_Header=\$ac_header_preproc"
24465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24479 for ac_func in getpagesize
24481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24482 echo "$as_me:$LINENO: checking for $ac_func" >&5
24483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24484 if eval "test \"\${$as_ac_var+set}\" = set"; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24487 cat >conftest.$ac_ext <<_ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24495 #define $ac_func innocuous_$ac_func
24497 /* System header to define __stub macros and hopefully few prototypes,
24498 which can conflict with char $ac_func (); below.
24499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24500 <limits.h> exists even on freestanding compilers. */
24503 # include <limits.h>
24505 # include <assert.h>
24510 /* Override any gcc2 internal prototype to avoid an error. */
24515 /* We use char because int might match the return type of a gcc2
24516 builtin and then its argument prototype would still apply. */
24518 /* The GNU C library defines this for functions which it implements
24519 to always fail with ENOSYS. Some functions are actually named
24520 something starting with __ and the normal name is an alias. */
24521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24524 char (*f) () = $ac_func;
24533 return f != $ac_func;
24538 rm -f conftest.$ac_objext conftest$ac_exeext
24539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24540 (eval $ac_link) 2>conftest.er1
24542 grep -v '^ *+' conftest.er1 >conftest.err
24544 cat conftest.err >&5
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); } &&
24547 { ac_try='test -z "$ac_c_werror_flag"
24548 || test ! -s conftest.err'
24549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550 (eval $ac_try) 2>&5
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); }; } &&
24554 { ac_try='test -s conftest$ac_exeext'
24555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556 (eval $ac_try) 2>&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; }; then
24560 eval "$as_ac_var=yes"
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24565 eval "$as_ac_var=no"
24567 rm -f conftest.err conftest.$ac_objext \
24568 conftest$ac_exeext conftest.$ac_ext
24570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24572 if test `eval echo '${'$as_ac_var'}'` = yes; then
24573 cat >>confdefs.h <<_ACEOF
24574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24580 echo "$as_me:$LINENO: checking for working mmap" >&5
24581 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24582 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24585 if test "$cross_compiling" = yes; then
24586 ac_cv_func_mmap_fixed_mapped=no
24588 cat >conftest.$ac_ext <<_ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 $ac_includes_default
24595 /* malloc might have been renamed as rpl_malloc. */
24598 /* Thanks to Mike Haertel and Jim Avera for this test.
24599 Here is a matrix of mmap possibilities:
24600 mmap private not fixed
24601 mmap private fixed at somewhere currently unmapped
24602 mmap private fixed at somewhere already mapped
24603 mmap shared not fixed
24604 mmap shared fixed at somewhere currently unmapped
24605 mmap shared fixed at somewhere already mapped
24606 For private mappings, we should verify that changes cannot be read()
24607 back from the file, nor mmap's back from the file at a different
24608 address. (There have been systems where private was not correctly
24609 implemented like the infamous i386 svr4.0, and systems where the
24610 VM page cache was not coherent with the file system buffer cache
24611 like early versions of FreeBSD and possibly contemporary NetBSD.)
24612 For shared mappings, we should conversely verify that changes get
24613 propagated back to all the places they're supposed to be.
24615 Grep wants private fixed already mapped.
24616 The main things grep needs to know about mmap are:
24617 * does it exist and is it safe to write into the mmap'd area
24618 * how to use it (BSD variants) */
24621 #include <sys/mman.h>
24623 #if !STDC_HEADERS && !HAVE_STDLIB_H
24627 /* This mess was copied from the GNU getpagesize.h. */
24628 #if !HAVE_GETPAGESIZE
24629 /* Assume that all systems that can run configure have sys/param.h. */
24630 # if !HAVE_SYS_PARAM_H
24631 # define HAVE_SYS_PARAM_H 1
24634 # ifdef _SC_PAGESIZE
24635 # define getpagesize() sysconf(_SC_PAGESIZE)
24636 # else /* no _SC_PAGESIZE */
24637 # if HAVE_SYS_PARAM_H
24638 # include <sys/param.h>
24639 # ifdef EXEC_PAGESIZE
24640 # define getpagesize() EXEC_PAGESIZE
24641 # else /* no EXEC_PAGESIZE */
24643 # define getpagesize() NBPG * CLSIZE
24646 # endif /* no CLSIZE */
24647 # else /* no NBPG */
24649 # define getpagesize() NBPC
24650 # else /* no NBPC */
24652 # define getpagesize() PAGESIZE
24653 # endif /* PAGESIZE */
24654 # endif /* no NBPC */
24655 # endif /* no NBPG */
24656 # endif /* no EXEC_PAGESIZE */
24657 # else /* no HAVE_SYS_PARAM_H */
24658 # define getpagesize() 8192 /* punt totally */
24659 # endif /* no HAVE_SYS_PARAM_H */
24660 # endif /* no _SC_PAGESIZE */
24662 #endif /* no HAVE_GETPAGESIZE */
24667 char *data, *data2, *data3;
24671 pagesize = getpagesize ();
24673 /* First, make a file with some known garbage in it. */
24674 data = (char *) malloc (pagesize);
24677 for (i = 0; i < pagesize; ++i)
24678 *(data + i) = rand ();
24680 fd = creat ("conftest.mmap", 0600);
24683 if (write (fd, data, pagesize) != pagesize)
24687 /* Next, try to mmap the file at a fixed address which already has
24688 something else allocated at it. If we can, also make sure that
24689 we see the same garbage. */
24690 fd = open ("conftest.mmap", O_RDWR);
24693 data2 = (char *) malloc (2 * pagesize);
24696 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24697 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24698 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24700 for (i = 0; i < pagesize; ++i)
24701 if (*(data + i) != *(data2 + i))
24704 /* Finally, make sure that changes to the mapped area do not
24705 percolate back to the file as seen by read(). (This is a bug on
24706 some variants of i386 svr4.0.) */
24707 for (i = 0; i < pagesize; ++i)
24708 *(data2 + i) = *(data2 + i) + 1;
24709 data3 = (char *) malloc (pagesize);
24712 if (read (fd, data3, pagesize) != pagesize)
24714 for (i = 0; i < pagesize; ++i)
24715 if (*(data + i) != *(data3 + i))
24721 rm -f conftest$ac_exeext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723 (eval $ac_link) 2>&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728 (eval $ac_try) 2>&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; }; then
24732 ac_cv_func_mmap_fixed_mapped=yes
24734 echo "$as_me: program exited with status $ac_status" >&5
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 ( exit $ac_status )
24739 ac_cv_func_mmap_fixed_mapped=no
24741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24744 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24745 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24746 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24748 cat >>confdefs.h <<\_ACEOF
24749 #define HAVE_MMAP 1
24753 rm -f conftest.mmap
24755 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
24757 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
24758 echo "$as_me: WARNING: mmap() required but not found" >&2;}
24760 echo "$as_me:$LINENO: checking for mmap of files" >&5
24761 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
24762 if test "${ac_cv_func_mmap_file+set}" = set; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24766 ac_cpp='$CPP $CPPFLAGS'
24767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24771 if test "$cross_compiling" = yes; then
24772 ac_cv_func_mmap_file=no
24774 cat >conftest.$ac_ext <<_ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24782 #include <sys/types.h>
24783 #include <sys/mman.h>
24791 fd = creat ("foo",0777);
24792 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
24794 return (fd != (int) MAP_FAILED);
24799 rm -f conftest$ac_exeext
24800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24801 (eval $ac_link) 2>&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806 (eval $ac_try) 2>&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; }; then
24810 ac_cv_func_mmap_file=yes
24812 echo "$as_me: program exited with status $ac_status" >&5
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 ( exit $ac_status )
24817 ac_cv_func_mmap_file=no
24819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24822 ac_cpp='$CPP $CPPFLAGS'
24823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24829 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24830 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24831 if test "$ac_cv_func_mmap_file" = yes; then
24833 cat >>confdefs.h <<\_ACEOF
24834 #define HAVE_MMAP_FILE
24841 if test "$ac_cv_func_mmap_file" = "no"
24843 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24844 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
24853 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
24855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24856 echo "$as_me:$LINENO: checking for $ac_func" >&5
24857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24858 if eval "test \"\${$as_ac_var+set}\" = set"; then
24859 echo $ECHO_N "(cached) $ECHO_C" >&6
24861 cat >conftest.$ac_ext <<_ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24869 #define $ac_func innocuous_$ac_func
24871 /* System header to define __stub macros and hopefully few prototypes,
24872 which can conflict with char $ac_func (); below.
24873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24874 <limits.h> exists even on freestanding compilers. */
24877 # include <limits.h>
24879 # include <assert.h>
24884 /* Override any gcc2 internal prototype to avoid an error. */
24889 /* We use char because int might match the return type of a gcc2
24890 builtin and then its argument prototype would still apply. */
24892 /* The GNU C library defines this for functions which it implements
24893 to always fail with ENOSYS. Some functions are actually named
24894 something starting with __ and the normal name is an alias. */
24895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24898 char (*f) () = $ac_func;
24907 return f != $ac_func;
24912 rm -f conftest.$ac_objext conftest$ac_exeext
24913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24914 (eval $ac_link) 2>conftest.er1
24916 grep -v '^ *+' conftest.er1 >conftest.err
24918 cat conftest.err >&5
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } &&
24921 { ac_try='test -z "$ac_c_werror_flag"
24922 || test ! -s conftest.err'
24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; } &&
24928 { ac_try='test -s conftest$ac_exeext'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; }; then
24934 eval "$as_ac_var=yes"
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24939 eval "$as_ac_var=no"
24941 rm -f conftest.err conftest.$ac_objext \
24942 conftest$ac_exeext conftest.$ac_ext
24944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24946 if test `eval echo '${'$as_ac_var'}'` = yes; then
24947 cat >>confdefs.h <<_ACEOF
24948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24956 for ac_func in mkstemp getrusage
24958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24959 echo "$as_me:$LINENO: checking for $ac_func" >&5
24960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24961 if eval "test \"\${$as_ac_var+set}\" = set"; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24964 cat >conftest.$ac_ext <<_ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24972 #define $ac_func innocuous_$ac_func
24974 /* System header to define __stub macros and hopefully few prototypes,
24975 which can conflict with char $ac_func (); below.
24976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24977 <limits.h> exists even on freestanding compilers. */
24980 # include <limits.h>
24982 # include <assert.h>
24987 /* Override any gcc2 internal prototype to avoid an error. */
24992 /* We use char because int might match the return type of a gcc2
24993 builtin and then its argument prototype would still apply. */
24995 /* The GNU C library defines this for functions which it implements
24996 to always fail with ENOSYS. Some functions are actually named
24997 something starting with __ and the normal name is an alias. */
24998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25001 char (*f) () = $ac_func;
25010 return f != $ac_func;
25015 rm -f conftest.$ac_objext conftest$ac_exeext
25016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25017 (eval $ac_link) 2>conftest.er1
25019 grep -v '^ *+' conftest.er1 >conftest.err
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } &&
25024 { ac_try='test -z "$ac_c_werror_flag"
25025 || test ! -s conftest.err'
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; } &&
25031 { ac_try='test -s conftest$ac_exeext'
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
25037 eval "$as_ac_var=yes"
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 eval "$as_ac_var=no"
25044 rm -f conftest.err conftest.$ac_objext \
25045 conftest$ac_exeext conftest.$ac_ext
25047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25049 if test `eval echo '${'$as_ac_var'}'` = yes; then
25050 cat >>confdefs.h <<_ACEOF
25051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25057 echo "$as_me:$LINENO: checking for mprotect" >&5
25058 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25059 if test "${ac_cv_func_mprotect+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
25062 cat >conftest.$ac_ext <<_ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h. */
25068 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25070 #define mprotect innocuous_mprotect
25072 /* System header to define __stub macros and hopefully few prototypes,
25073 which can conflict with char mprotect (); below.
25074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25075 <limits.h> exists even on freestanding compilers. */
25078 # include <limits.h>
25080 # include <assert.h>
25085 /* Override any gcc2 internal prototype to avoid an error. */
25090 /* We use char because int might match the return type of a gcc2
25091 builtin and then its argument prototype would still apply. */
25093 /* The GNU C library defines this for functions which it implements
25094 to always fail with ENOSYS. Some functions are actually named
25095 something starting with __ and the normal name is an alias. */
25096 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25099 char (*f) () = mprotect;
25108 return f != mprotect;
25113 rm -f conftest.$ac_objext conftest$ac_exeext
25114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25115 (eval $ac_link) 2>conftest.er1
25117 grep -v '^ *+' conftest.er1 >conftest.err
25119 cat conftest.err >&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } &&
25122 { ac_try='test -z "$ac_c_werror_flag"
25123 || test ! -s conftest.err'
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; } &&
25129 { ac_try='test -s conftest$ac_exeext'
25130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131 (eval $ac_try) 2>&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 ac_cv_func_mprotect=yes
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25140 ac_cv_func_mprotect=no
25142 rm -f conftest.err conftest.$ac_objext \
25143 conftest$ac_exeext conftest.$ac_ext
25145 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25146 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25147 if test $ac_cv_func_mprotect = yes; then
25150 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25151 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25152 { (exit 1); exit 1; }; }
25156 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
25157 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
25158 if test "${ac_cv_cxx_namespaces+set}" = set; then
25159 echo $ECHO_N "(cached) $ECHO_C" >&6
25162 ac_cpp='$CXXCPP $CPPFLAGS'
25163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25167 cat >conftest.$ac_ext <<_ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h. */
25173 namespace Outer { namespace Inner { int i = 0; }}
25177 using namespace Outer::Inner; return i;
25182 rm -f conftest.$ac_objext
25183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25184 (eval $ac_compile) 2>conftest.er1
25186 grep -v '^ *+' conftest.er1 >conftest.err
25188 cat conftest.err >&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } &&
25191 { ac_try='test -z "$ac_cxx_werror_flag"
25192 || test ! -s conftest.err'
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; } &&
25198 { ac_try='test -s conftest.$ac_objext'
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; }; then
25204 ac_cv_cxx_namespaces=yes
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25209 ac_cv_cxx_namespaces=no
25211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25213 ac_cpp='$CPP $CPPFLAGS'
25214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25220 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
25221 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
25222 if test "$ac_cv_cxx_namespaces" = yes; then
25224 cat >>confdefs.h <<\_ACEOF
25225 #define HAVE_NAMESPACES
25230 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
25231 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
25232 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
25233 echo $ECHO_N "(cached) $ECHO_C" >&6
25237 ac_cpp='$CXXCPP $CPPFLAGS'
25238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25242 cat >conftest.$ac_ext <<_ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h. */
25248 #include <ext/hash_map>
25249 #ifdef HAVE_NAMESPACES
25250 using namespace std;
25255 hash_map<int, int> t;
25260 rm -f conftest.$ac_objext
25261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25262 (eval $ac_compile) 2>conftest.er1
25264 grep -v '^ *+' conftest.er1 >conftest.err
25266 cat conftest.err >&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } &&
25269 { ac_try='test -z "$ac_cxx_werror_flag"
25270 || test ! -s conftest.err'
25271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272 (eval $ac_try) 2>&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; } &&
25276 { ac_try='test -s conftest.$ac_objext'
25277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278 (eval $ac_try) 2>&5
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); }; }; then
25282 ac_cv_cxx_have_std_ext_hash_map=yes
25284 echo "$as_me: failed program was:" >&5
25285 sed 's/^/| /' conftest.$ac_ext >&5
25287 ac_cv_cxx_have_std_ext_hash_map=no
25289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25291 ac_cpp='$CPP $CPPFLAGS'
25292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25297 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
25298 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
25299 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
25302 cat >>confdefs.h <<\_ACEOF
25303 #define HAVE_STD_EXT_HASH_MAP 1
25308 cat >>confdefs.h <<\_ACEOF
25309 #define HAVE_STD_EXT_HASH_MAP 0
25314 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
25315 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
25316 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
25317 echo $ECHO_N "(cached) $ECHO_C" >&6
25321 ac_cpp='$CXXCPP $CPPFLAGS'
25322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25326 cat >conftest.$ac_ext <<_ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 #include <ext/hash_map>
25333 #ifdef HAVE_NAMESPACES
25334 using namespace __gnu_cxx;
25339 hash_map<int,int> t;
25344 rm -f conftest.$ac_objext
25345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25346 (eval $ac_compile) 2>conftest.er1
25348 grep -v '^ *+' conftest.er1 >conftest.err
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } &&
25353 { ac_try='test -z "$ac_cxx_werror_flag"
25354 || test ! -s conftest.err'
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest.$ac_objext'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
25366 ac_cv_cxx_have_gnu_ext_hash_map=yes
25368 echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25371 ac_cv_cxx_have_gnu_ext_hash_map=no
25373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25375 ac_cpp='$CPP $CPPFLAGS'
25376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25381 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
25382 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
25383 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
25386 cat >>confdefs.h <<\_ACEOF
25387 #define HAVE_GNU_EXT_HASH_MAP 1
25392 cat >>confdefs.h <<\_ACEOF
25393 #define HAVE_GNU_EXT_HASH_MAP 0
25398 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
25399 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
25400 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25405 ac_cpp='$CXXCPP $CPPFLAGS'
25406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25410 cat >conftest.$ac_ext <<_ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 #include <hash_map>
25420 hash_map<int,int> t;
25425 rm -f conftest.$ac_objext
25426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25427 (eval $ac_compile) 2>conftest.er1
25429 grep -v '^ *+' conftest.er1 >conftest.err
25431 cat conftest.err >&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
25434 { ac_try='test -z "$ac_cxx_werror_flag"
25435 || test ! -s conftest.err'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; } &&
25441 { ac_try='test -s conftest.$ac_objext'
25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; }; then
25447 ac_cv_cxx_have_global_hash_map=yes
25449 echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25452 ac_cv_cxx_have_global_hash_map=no
25454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25456 ac_cpp='$CPP $CPPFLAGS'
25457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25462 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
25463 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
25464 if test "$ac_cv_cxx_have_global_hash_map" = yes
25467 cat >>confdefs.h <<\_ACEOF
25468 #define HAVE_GLOBAL_HASH_MAP 1
25473 cat >>confdefs.h <<\_ACEOF
25474 #define HAVE_GLOBAL_HASH_MAP 0
25479 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
25480 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
25481 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
25482 echo $ECHO_N "(cached) $ECHO_C" >&6
25486 ac_cpp='$CXXCPP $CPPFLAGS'
25487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25491 cat >conftest.$ac_ext <<_ACEOF
25494 cat confdefs.h >>conftest.$ac_ext
25495 cat >>conftest.$ac_ext <<_ACEOF
25496 /* end confdefs.h. */
25497 #include <ext/hash_set>
25498 #ifdef HAVE_NAMESPACES
25499 using namespace std;
25509 rm -f conftest.$ac_objext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511 (eval $ac_compile) 2>conftest.er1
25513 grep -v '^ *+' conftest.er1 >conftest.err
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
25518 { ac_try='test -z "$ac_cxx_werror_flag"
25519 || test ! -s conftest.err'
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; } &&
25525 { ac_try='test -s conftest.$ac_objext'
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
25531 ac_cv_cxx_have_std_ext_hash_set=yes
25533 echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25536 ac_cv_cxx_have_std_ext_hash_set=no
25538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25540 ac_cpp='$CPP $CPPFLAGS'
25541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25546 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
25547 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
25548 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
25551 cat >>confdefs.h <<\_ACEOF
25552 #define HAVE_STD_EXT_HASH_SET 1
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_STD_EXT_HASH_SET 0
25563 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
25564 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
25565 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25570 ac_cpp='$CXXCPP $CPPFLAGS'
25571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25575 cat >conftest.$ac_ext <<_ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 #include <ext/hash_set>
25582 #ifdef HAVE_NAMESPACES
25583 using namespace __gnu_cxx;
25593 rm -f conftest.$ac_objext
25594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25595 (eval $ac_compile) 2>conftest.er1
25597 grep -v '^ *+' conftest.er1 >conftest.err
25599 cat conftest.err >&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } &&
25602 { ac_try='test -z "$ac_cxx_werror_flag"
25603 || test ! -s conftest.err'
25604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25605 (eval $ac_try) 2>&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); }; } &&
25609 { ac_try='test -s conftest.$ac_objext'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; }; then
25615 ac_cv_cxx_have_gnu_ext_hash_set=yes
25617 echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25620 ac_cv_cxx_have_gnu_ext_hash_set=no
25622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25624 ac_cpp='$CPP $CPPFLAGS'
25625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25630 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
25631 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
25632 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
25635 cat >>confdefs.h <<\_ACEOF
25636 #define HAVE_GNU_EXT_HASH_SET 1
25641 cat >>confdefs.h <<\_ACEOF
25642 #define HAVE_GNU_EXT_HASH_SET 0
25647 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
25648 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
25649 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
25650 echo $ECHO_N "(cached) $ECHO_C" >&6
25654 ac_cpp='$CXXCPP $CPPFLAGS'
25655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25659 cat >conftest.$ac_ext <<_ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h. */
25665 #include <hash_set>
25669 hash_set<int> t; return 0;
25674 rm -f conftest.$ac_objext
25675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25676 (eval $ac_compile) 2>conftest.er1
25678 grep -v '^ *+' conftest.er1 >conftest.err
25680 cat conftest.err >&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); } &&
25683 { ac_try='test -z "$ac_cxx_werror_flag"
25684 || test ! -s conftest.err'
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; } &&
25690 { ac_try='test -s conftest.$ac_objext'
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 ac_cv_cxx_have_global_hash_set=yes
25698 echo "$as_me: failed program was:" >&5
25699 sed 's/^/| /' conftest.$ac_ext >&5
25701 ac_cv_cxx_have_global_hash_set=no
25703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25705 ac_cpp='$CPP $CPPFLAGS'
25706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25711 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
25712 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
25713 if test "$ac_cv_cxx_have_global_hash_set" = yes
25716 cat >>confdefs.h <<\_ACEOF
25717 #define HAVE_GLOBAL_HASH_SET 1
25722 cat >>confdefs.h <<\_ACEOF
25723 #define HAVE_GLOBAL_HASH_SET 0
25728 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
25729 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
25730 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
25735 ac_cpp='$CXXCPP $CPPFLAGS'
25736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25740 cat >conftest.$ac_ext <<_ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 #include <iterator>
25747 #ifdef HAVE_NAMESPACES
25748 using namespace std;
25753 iterator<int,int,int> t; return 0;
25758 rm -f conftest.$ac_objext
25759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25760 (eval $ac_compile) 2>conftest.er1
25762 grep -v '^ *+' conftest.er1 >conftest.err
25764 cat conftest.err >&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
25767 { ac_try='test -z "$ac_cxx_werror_flag"
25768 || test ! -s conftest.err'
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; } &&
25774 { ac_try='test -s conftest.$ac_objext'
25775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25776 (eval $ac_try) 2>&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); }; }; then
25780 ac_cv_cxx_have_std_iterator=yes
25782 echo "$as_me: failed program was:" >&5
25783 sed 's/^/| /' conftest.$ac_ext >&5
25785 ac_cv_cxx_have_std_iterator=no
25787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25789 ac_cpp='$CPP $CPPFLAGS'
25790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25796 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
25797 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
25798 if test "$ac_cv_cxx_have_std_iterator" = yes
25801 cat >>confdefs.h <<\_ACEOF
25802 #define HAVE_STD_ITERATOR 1
25807 cat >>confdefs.h <<\_ACEOF
25808 #define HAVE_STD_ITERATOR 0
25813 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
25814 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
25815 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
25816 echo $ECHO_N "(cached) $ECHO_C" >&6
25820 ac_cpp='$CXXCPP $CPPFLAGS'
25821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25825 cat >conftest.$ac_ext <<_ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h. */
25831 #include <iterator>
25832 #ifdef HAVE_NAMESPACES
25833 using namespace std;
25838 bidirectional_iterator<int,int> t; return 0;
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845 (eval $ac_compile) 2>conftest.er1
25847 grep -v '^ *+' conftest.er1 >conftest.err
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -z "$ac_cxx_werror_flag"
25853 || test ! -s conftest.err'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
25859 { ac_try='test -s conftest.$ac_objext'
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865 ac_cv_cxx_have_bi_iterator=yes
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_cv_cxx_have_bi_iterator=no
25872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25874 ac_cpp='$CPP $CPPFLAGS'
25875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25881 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
25882 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
25883 if test "$ac_cv_cxx_have_bi_iterator" = yes
25886 cat >>confdefs.h <<\_ACEOF
25887 #define HAVE_BI_ITERATOR 1
25892 cat >>confdefs.h <<\_ACEOF
25893 #define HAVE_BI_ITERATOR 0
25898 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
25899 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
25900 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25905 ac_cpp='$CXXCPP $CPPFLAGS'
25906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25910 cat >conftest.$ac_ext <<_ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25916 #include <iterator>
25917 #ifdef HAVE_NAMESPACES
25918 using namespace std;
25923 forward_iterator<int,int> t; return 0;
25928 rm -f conftest.$ac_objext
25929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25930 (eval $ac_compile) 2>conftest.er1
25932 grep -v '^ *+' conftest.er1 >conftest.err
25934 cat conftest.err >&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } &&
25937 { ac_try='test -z "$ac_cxx_werror_flag"
25938 || test ! -s conftest.err'
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; } &&
25944 { ac_try='test -s conftest.$ac_objext'
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; }; then
25950 ac_cv_cxx_have_fwd_iterator=yes
25952 echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25955 ac_cv_cxx_have_fwd_iterator=no
25957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25959 ac_cpp='$CPP $CPPFLAGS'
25960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25966 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
25967 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
25968 if test "$ac_cv_cxx_have_fwd_iterator" = yes
25971 cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_FWD_ITERATOR 1
25977 cat >>confdefs.h <<\_ACEOF
25978 #define HAVE_FWD_ITERATOR 0
25985 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
25986 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
25988 ac_cpp='$CPP $CPPFLAGS'
25989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25993 oldcflags="$CFLAGS"
25994 CFLAGS="$CFLAGS -Wl,-R."
25995 cat >conftest.$ac_ext <<_ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26005 int main() { return 0; }
26010 rm -f conftest.$ac_objext conftest$ac_exeext
26011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26012 (eval $ac_link) 2>conftest.er1
26014 grep -v '^ *+' conftest.er1 >conftest.err
26016 cat conftest.err >&5
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
26019 { ac_try='test -z "$ac_c_werror_flag"
26020 || test ! -s conftest.err'
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; } &&
26026 { ac_try='test -s conftest$ac_exeext'
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; }; then
26032 ac_cv_link_use_r=yes
26034 echo "$as_me: failed program was:" >&5
26035 sed 's/^/| /' conftest.$ac_ext >&5
26037 ac_cv_link_use_r=no
26039 rm -f conftest.err conftest.$ac_objext \
26040 conftest$ac_exeext conftest.$ac_ext
26041 CFLAGS="$oldcflags"
26043 ac_cpp='$CPP $CPPFLAGS'
26044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26048 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
26049 echo "${ECHO_T}$ac_cv_link_use_r" >&6
26050 if test "$ac_cv_link_use_r" = yes
26053 cat >>confdefs.h <<\_ACEOF
26054 #define HAVE_LINK_R 1
26061 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
26063 cat >>confdefs.h <<\_ACEOF
26064 #define HAVE_ZLIB 1
26073 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
26075 cat >>confdefs.h <<\_ACEOF
26076 #define HAVE_BZIP2 1
26086 echo "$as_me:$LINENO: checking for shared library suffix" >&5
26087 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
26088 eval "SHLIBEXT=$shrext_cmds"
26089 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
26090 echo "${ECHO_T}$SHLIBEXT" >&6
26095 cat >>confdefs.h <<_ACEOF
26096 #define SHLIBEXT "$SHLIBEXT"
26100 # Translate the various configuration directories and other basic
26101 # information into substitutions that will end up in config.h.in so
26102 # that these configured values can be hard-wired into a program.
26103 eval LLVM_PREFIX="${prefix}";
26104 eval LLVM_BINDIR="${prefix}/bin";
26105 eval LLVM_LIBDIR="${prefix}/lib";
26106 eval LLVM_DATADIR="${prefix}/data";
26107 eval LLVM_DOCSDIR="${prefix}/docs";
26108 eval LLVM_ETCDIR="${prefix}/etc";
26109 eval LLVM_INCLUDEDIR="${prefix}/include";
26110 eval LLVM_INFODIR="${prefix}/info";
26111 eval LLVM_MANDIR="${prefix}/man";
26112 LLVM_CONFIGTIME=`date`
26126 cat >>confdefs.h <<_ACEOF
26127 #define LLVM_PREFIX "$LLVM_PREFIX"
26131 cat >>confdefs.h <<_ACEOF
26132 #define LLVM_BINDIR "$LLVM_BINDIR"
26136 cat >>confdefs.h <<_ACEOF
26137 #define LLVM_LIBDIR "$LLVM_LIBDIR"
26141 cat >>confdefs.h <<_ACEOF
26142 #define LLVM_DATADIR "$LLVM_DATADIR"
26146 cat >>confdefs.h <<_ACEOF
26147 #define LLVM_DATADIR "$LLVM_DOCSDIR"
26151 cat >>confdefs.h <<_ACEOF
26152 #define LLVM_ETCDIR "$LLVM_ETCDIR"
26156 cat >>confdefs.h <<_ACEOF
26157 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
26161 cat >>confdefs.h <<_ACEOF
26162 #define LLVM_INFODIR "$LLVM_INFODIR"
26166 cat >>confdefs.h <<_ACEOF
26167 #define LLVM_MANDIR "$LLVM_MANDIR"
26171 cat >>confdefs.h <<_ACEOF
26172 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
26177 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
26179 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
26181 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
26183 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
26185 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
26187 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
26190 ac_config_files="$ac_config_files Makefile"
26192 ac_config_files="$ac_config_files Makefile.rules"
26194 ac_config_files="$ac_config_files lib/Makefile"
26196 ac_config_files="$ac_config_files lib/Analysis/IPA/Makefile"
26198 ac_config_files="$ac_config_files lib/Analysis/Makefile"
26200 ac_config_files="$ac_config_files lib/Analysis/DataStructure/Makefile"
26202 ac_config_files="$ac_config_files lib/AsmParser/Makefile"
26204 ac_config_files="$ac_config_files lib/System/Makefile"
26206 ac_config_files="$ac_config_files lib/Bytecode/Reader/Makefile"
26208 ac_config_files="$ac_config_files lib/Bytecode/Makefile"
26210 ac_config_files="$ac_config_files lib/Bytecode/Writer/Makefile"
26212 ac_config_files="$ac_config_files lib/Bytecode/Archive/Makefile"
26214 ac_config_files="$ac_config_files lib/CodeGen/Makefile"
26216 ac_config_files="$ac_config_files lib/CodeGen/ModuloScheduling/Makefile"
26218 ac_config_files="$ac_config_files lib/CodeGen/SelectionDAG/Makefile"
26220 ac_config_files="$ac_config_files lib/Debugger/Makefile"
26222 ac_config_files="$ac_config_files lib/ExecutionEngine/Interpreter/Makefile"
26224 ac_config_files="$ac_config_files lib/ExecutionEngine/Makefile"
26226 ac_config_files="$ac_config_files lib/ExecutionEngine/JIT/Makefile"
26228 ac_config_files="$ac_config_files lib/Support/Makefile"
26230 ac_config_files="$ac_config_files lib/Target/CBackend/Makefile"
26232 ac_config_files="$ac_config_files lib/Target/Makefile"
26234 ac_config_files="$ac_config_files lib/Target/Skeleton/Makefile"
26236 ac_config_files="$ac_config_files lib/Target/PowerPC/Makefile"
26238 ac_config_files="$ac_config_files lib/Target/SparcV9/Makefile"
26240 ac_config_files="$ac_config_files lib/Target/SparcV9/InstrSched/Makefile"
26242 ac_config_files="$ac_config_files lib/Target/SparcV9/LiveVar/Makefile"
26244 ac_config_files="$ac_config_files lib/Target/SparcV9/RegAlloc/Makefile"
26246 ac_config_files="$ac_config_files lib/Target/X86/Makefile"
26248 ac_config_files="$ac_config_files lib/Transforms/Hello/Makefile"
26250 ac_config_files="$ac_config_files lib/Transforms/Makefile"
26252 ac_config_files="$ac_config_files lib/Transforms/IPO/Makefile"
26254 ac_config_files="$ac_config_files lib/Transforms/Instrumentation/ProfilePaths/Makefile"
26256 ac_config_files="$ac_config_files lib/Transforms/Instrumentation/Makefile"
26258 ac_config_files="$ac_config_files lib/Transforms/Scalar/Makefile"
26260 ac_config_files="$ac_config_files lib/Transforms/Utils/Makefile"
26262 ac_config_files="$ac_config_files lib/VMCore/Makefile"
26264 ac_config_files="$ac_config_files utils/Makefile"
26266 ac_config_files="$ac_config_files utils/Burg/Makefile"
26268 ac_config_files="$ac_config_files utils/fpcmp/Makefile"
26270 ac_config_files="$ac_config_files utils/TableGen/Makefile"
26272 ac_config_files="$ac_config_files tools/Makefile"
26274 ac_config_files="$ac_config_files tools/analyze/Makefile"
26276 ac_config_files="$ac_config_files tools/llvmc/Makefile"
26278 ac_config_files="$ac_config_files tools/bugpoint/Makefile"
26280 ac_config_files="$ac_config_files tools/extract/Makefile"
26282 ac_config_files="$ac_config_files tools/gccas/Makefile"
26284 ac_config_files="$ac_config_files tools/gccld/Makefile"
26286 ac_config_files="$ac_config_files tools/llvm-bcanalyzer/Makefile"
26288 ac_config_files="$ac_config_files tools/llc/Makefile"
26290 ac_config_files="$ac_config_files tools/llee/Makefile"
26292 ac_config_files="$ac_config_files tools/lli/Makefile"
26294 ac_config_files="$ac_config_files tools/llvm-ar/Makefile"
26296 ac_config_files="$ac_config_files tools/llvm-as/Makefile"
26298 ac_config_files="$ac_config_files tools/llvm-db/Makefile"
26300 ac_config_files="$ac_config_files tools/llvm-dis/Makefile"
26302 ac_config_files="$ac_config_files tools/llvm-link/Makefile"
26304 ac_config_files="$ac_config_files tools/llvm-nm/Makefile"
26306 ac_config_files="$ac_config_files tools/llvm-prof/Makefile"
26308 ac_config_files="$ac_config_files tools/opt/Makefile"
26310 ac_config_files="$ac_config_files tools/llvm-ld/Makefile"
26312 ac_config_files="$ac_config_files tools/llvm-stub/Makefile"
26315 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_platform_type"
26318 for i in `ls ${srcdir}/projects`
26320 if test -d ${srcdir}/projects/${i} ; then
26325 subdirs="$subdirs projects/sample"
26329 subdirs="$subdirs projects/Stacker"
26333 subdirs="$subdirs projects/llvm-test"
26337 subdirs="$subdirs projects/llvm-reopt"
26341 subdirs="$subdirs projects/llvm-gcc"
26345 subdirs="$subdirs projects/Java"
26349 subdirs="$subdirs projects/llvm-tv"
26353 subdirs="$subdirs projects/llvm-fefw"
26356 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
26357 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
26362 cat >confcache <<\_ACEOF
26363 # This file is a shell script that caches the results of configure
26364 # tests run on this system so they can be shared between configure
26365 # scripts and configure runs, see configure's option --config-cache.
26366 # It is not useful on other systems. If it contains results you don't
26367 # want to keep, you may remove or edit it.
26369 # config.status only pays attention to the cache file if you give it
26370 # the --recheck option to rerun configure.
26372 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26373 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26374 # following values.
26378 # The following way of writing the cache mishandles newlines in values,
26379 # but we know of no workaround that is simple, portable, and efficient.
26380 # So, don't put newlines in cache variables' values.
26381 # Ultrix sh set writes to stderr and can't be redirected directly,
26382 # and sets the high bit in the cache file unless we assign to the vars.
26385 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26387 # `set' does not quote correctly, so add quotes (double-quote
26388 # substitution turns \\\\ into \\, and sed turns \\ into \).
26391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26394 # `set' quotes correctly as required by POSIX, so do not add quotes.
26396 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26405 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26407 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26408 if test -w $cache_file; then
26409 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26410 cat confcache >$cache_file
26412 echo "not updating unwritable cache $cache_file"
26417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26418 # Let make expand exec_prefix.
26419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26423 # trailing colons and then remove the whole line if VPATH becomes empty
26424 # (actually we leave an empty line to preserve line numbers).
26425 if test "x$srcdir" = x.; then
26426 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26427 s/:*\$(srcdir):*/:/;
26428 s/:*\${srcdir}:*/:/;
26430 s/^\([^=]*=[ ]*\):*/\1/;
26436 DEFS=-DHAVE_CONFIG_H
26440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26441 # 1. Remove the extension, and $U if already installed.
26442 ac_i=`echo "$ac_i" |
26443 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26445 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26446 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26448 LIBOBJS=$ac_libobjs
26450 LTLIBOBJS=$ac_ltlibobjs
26453 if test -z "${ENABLE_OPTIMIZED_TRUE}" && test -z "${ENABLE_OPTIMIZED_FALSE}"; then
26454 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_OPTIMIZED\" was never defined.
26455 Usually this means the macro was only invoked conditionally." >&5
26456 echo "$as_me: error: conditional \"ENABLE_OPTIMIZED\" was never defined.
26457 Usually this means the macro was only invoked conditionally." >&2;}
26458 { (exit 1); exit 1; }; }
26460 if test -z "${ENABLE_PROFILED_TRUE}" && test -z "${ENABLE_PROFILED_FALSE}"; then
26461 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PROFILED\" was never defined.
26462 Usually this means the macro was only invoked conditionally." >&5
26463 echo "$as_me: error: conditional \"ENABLE_PROFILED\" was never defined.
26464 Usually this means the macro was only invoked conditionally." >&2;}
26465 { (exit 1); exit 1; }; }
26467 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
26468 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
26469 Usually this means the macro was only invoked conditionally." >&5
26470 echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
26471 Usually this means the macro was only invoked conditionally." >&2;}
26472 { (exit 1); exit 1; }; }
26474 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
26475 { { echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
26476 Usually this means the macro was only invoked conditionally." >&5
26477 echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
26478 Usually this means the macro was only invoked conditionally." >&2;}
26479 { (exit 1); exit 1; }; }
26481 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
26482 { { echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
26483 Usually this means the macro was only invoked conditionally." >&5
26484 echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
26485 Usually this means the macro was only invoked conditionally." >&2;}
26486 { (exit 1); exit 1; }; }
26488 if test -z "${ARCH_UNKNOWN_TRUE}" && test -z "${ARCH_UNKNOWN_FALSE}"; then
26489 { { echo "$as_me:$LINENO: error: conditional \"ARCH_UNKNOWN\" was never defined.
26490 Usually this means the macro was only invoked conditionally." >&5
26491 echo "$as_me: error: conditional \"ARCH_UNKNOWN\" was never defined.
26492 Usually this means the macro was only invoked conditionally." >&2;}
26493 { (exit 1); exit 1; }; }
26495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26496 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26497 Usually this means the macro was only invoked conditionally." >&5
26498 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26499 Usually this means the macro was only invoked conditionally." >&2;}
26500 { (exit 1); exit 1; }; }
26502 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26503 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26504 Usually this means the macro was only invoked conditionally." >&5
26505 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26506 Usually this means the macro was only invoked conditionally." >&2;}
26507 { (exit 1); exit 1; }; }
26509 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26510 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26511 Usually this means the macro was only invoked conditionally." >&5
26512 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26513 Usually this means the macro was only invoked conditionally." >&2;}
26514 { (exit 1); exit 1; }; }
26516 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26517 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26518 Usually this means the macro was only invoked conditionally." >&5
26519 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26520 Usually this means the macro was only invoked conditionally." >&2;}
26521 { (exit 1); exit 1; }; }
26524 : ${CONFIG_STATUS=./config.status}
26525 ac_clean_files_save=$ac_clean_files
26526 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26527 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26528 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26529 cat >$CONFIG_STATUS <<_ACEOF
26531 # Generated by $as_me.
26532 # Run this file to recreate the current configuration.
26533 # Compiler output produced by configure, useful for debugging
26534 # configure, is in config.log if it exists.
26537 ac_cs_recheck=false
26539 SHELL=\${CONFIG_SHELL-$SHELL}
26542 cat >>$CONFIG_STATUS <<\_ACEOF
26543 ## --------------------- ##
26544 ## M4sh Initialization. ##
26545 ## --------------------- ##
26547 # Be Bourne compatible
26548 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26551 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26552 # is contrary to our usage. Disable this feature.
26553 alias -g '${1+"$@"}'='"$@"'
26554 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26557 DUALCASE=1; export DUALCASE # for MKS sh
26559 # Support unset when possible.
26560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26567 # Work around bugs in pre-3.0 UWIN ksh.
26568 $as_unset ENV MAIL MAILPATH
26575 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26576 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26577 LC_TELEPHONE LC_TIME
26579 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26580 eval $as_var=C; export $as_var
26586 # Required to use basename.
26587 if expr a : '\(a\)' >/dev/null 2>&1; then
26593 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26594 as_basename=basename
26600 # Name of the executable.
26601 as_me=`$as_basename "$0" ||
26602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26603 X"$0" : 'X\(//\)$' \| \
26604 X"$0" : 'X\(/\)$' \| \
26605 . : '\(.\)' 2>/dev/null ||
26607 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26608 /^X\/\(\/\/\)$/{ s//\1/; q; }
26609 /^X\/\(\/\).*/{ s//\1/; q; }
26613 # PATH needs CR, and LINENO needs CR and PATH.
26614 # Avoid depending upon Character Ranges.
26615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26618 as_cr_digits='0123456789'
26619 as_cr_alnum=$as_cr_Letters$as_cr_digits
26621 # The user is always right.
26622 if test "${PATH_SEPARATOR+set}" != set; then
26623 echo "#! /bin/sh" >conf$$.sh
26624 echo "exit 0" >>conf$$.sh
26626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26635 as_lineno_1=$LINENO
26636 as_lineno_2=$LINENO
26637 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26638 test "x$as_lineno_1" != "x$as_lineno_2" &&
26639 test "x$as_lineno_3" = "x$as_lineno_2" || {
26640 # Find who we are. Look in the path if we contain no path at all
26643 *[\\/]* ) as_myself=$0 ;;
26644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26645 for as_dir in $PATH
26648 test -z "$as_dir" && as_dir=.
26649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26654 # We did not find ourselves, most probably we were run as `sh COMMAND'
26655 # in which case we are not to be found in the path.
26656 if test "x$as_myself" = x; then
26659 if test ! -f "$as_myself"; then
26660 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26661 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26662 { (exit 1); exit 1; }; }
26664 case $CONFIG_SHELL in
26666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26667 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26670 test -z "$as_dir" && as_dir=.
26671 for as_base in sh bash ksh sh5; do
26674 if ("$as_dir/$as_base" -c '
26675 as_lineno_1=$LINENO
26676 as_lineno_2=$LINENO
26677 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26678 test "x$as_lineno_1" != "x$as_lineno_2" &&
26679 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26680 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26681 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26682 CONFIG_SHELL=$as_dir/$as_base
26683 export CONFIG_SHELL
26684 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26692 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26693 # uniformly replaced by the line number. The first 'sed' inserts a
26694 # line-number line before each line; the second 'sed' does the real
26695 # work. The second script uses 'N' to pair each line-number line
26696 # with the numbered line, and appends trailing '-' during
26697 # substitution so that $LINENO is not a special case at line end.
26698 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26699 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26700 sed '=' <$as_myself |
26705 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26708 s,^['$as_cr_digits']*\n,,
26709 ' >$as_me.lineno &&
26710 chmod +x $as_me.lineno ||
26711 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26712 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26713 { (exit 1); exit 1; }; }
26715 # Don't try to exec as it changes $[0], causing all sort of problems
26716 # (the dirname of $[0] is not the place where we might find the
26717 # original and so on. Autoconf is especially sensible to this).
26719 # Exit status is that of the last command.
26724 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26725 *c*,-n*) ECHO_N= ECHO_C='
26727 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26728 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26731 if expr a : '\(a\)' >/dev/null 2>&1; then
26737 rm -f conf$$ conf$$.exe conf$$.file
26739 if ln -s conf$$.file conf$$ 2>/dev/null; then
26740 # We could just check for DJGPP; but this test a) works b) is more generic
26741 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26742 if test -f conf$$.exe; then
26743 # Don't use ln at all; we don't have any links
26748 elif ln conf$$.file conf$$ 2>/dev/null; then
26753 rm -f conf$$ conf$$.exe conf$$.file
26755 if mkdir -p . 2>/dev/null; then
26758 test -d ./-p && rmdir ./-p
26762 as_executable_p="test -f"
26764 # Sed expression to map a string onto a valid CPP name.
26765 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26767 # Sed expression to map a string onto a valid variable name.
26768 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26772 # We need space, tab and new line, in precisely that order.
26782 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26783 # report actual input values of CONFIG_FILES etc. instead of their
26784 # values after options handling. Logging --version etc. is OK.
26788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26789 ## Running $as_me. ##
26794 This file was extended by LLVM $as_me 1.4, which was
26795 generated by GNU Autoconf 2.59. Invocation command line was
26797 CONFIG_FILES = $CONFIG_FILES
26798 CONFIG_HEADERS = $CONFIG_HEADERS
26799 CONFIG_LINKS = $CONFIG_LINKS
26800 CONFIG_COMMANDS = $CONFIG_COMMANDS
26804 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26808 # Files that config.status was made for.
26809 if test -n "$ac_config_files"; then
26810 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26813 if test -n "$ac_config_headers"; then
26814 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26817 if test -n "$ac_config_links"; then
26818 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26821 if test -n "$ac_config_commands"; then
26822 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26825 cat >>$CONFIG_STATUS <<\_ACEOF
26828 \`$as_me' instantiates files from templates according to the
26829 current configuration.
26831 Usage: $0 [OPTIONS] [FILE]...
26833 -h, --help print this help, then exit
26834 -V, --version print version number, then exit
26835 -q, --quiet do not print progress messages
26836 -d, --debug don't remove temporary files
26837 --recheck update $as_me by reconfiguring in the same conditions
26838 --file=FILE[:TEMPLATE]
26839 instantiate the configuration file FILE
26840 --header=FILE[:TEMPLATE]
26841 instantiate the configuration header FILE
26843 Configuration files:
26846 Configuration headers:
26849 Configuration links:
26852 Configuration commands:
26855 Report bugs to <bug-autoconf@gnu.org>."
26858 cat >>$CONFIG_STATUS <<_ACEOF
26860 LLVM config.status 1.4
26861 configured by $0, generated by GNU Autoconf 2.59,
26862 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26864 Copyright (C) 2003 Free Software Foundation, Inc.
26865 This config.status script is free software; the Free Software Foundation
26866 gives unlimited permission to copy, distribute and modify it."
26871 cat >>$CONFIG_STATUS <<\_ACEOF
26872 # If no file are specified by the user, then we need to provide default
26873 # value. By we need to know if files were specified by the user.
26879 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26880 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26888 *) # This is not an option, so the user has probably given explicit
26891 ac_need_defaults=false;;
26895 # Handling of the options.
26897 cat >>$CONFIG_STATUS <<\_ACEOF
26898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26900 --version | --vers* | -V )
26901 echo "$ac_cs_version"; exit 0 ;;
26903 # Conflict between --help and --header
26904 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26905 Try \`$0 --help' for more information." >&5
26906 echo "$as_me: error: ambiguous option: $1
26907 Try \`$0 --help' for more information." >&2;}
26908 { (exit 1); exit 1; }; };;
26909 --help | --hel | -h )
26910 echo "$ac_cs_usage"; exit 0 ;;
26911 --debug | --d* | -d )
26913 --file | --fil | --fi | --f )
26915 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26916 ac_need_defaults=false;;
26917 --header | --heade | --head | --hea )
26919 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26920 ac_need_defaults=false;;
26921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26922 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26925 # This is an error.
26926 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26927 Try \`$0 --help' for more information." >&5
26928 echo "$as_me: error: unrecognized option: $1
26929 Try \`$0 --help' for more information." >&2;}
26930 { (exit 1); exit 1; }; } ;;
26932 *) ac_config_targets="$ac_config_targets $1" ;;
26938 ac_configure_extra_args=
26940 if $ac_cs_silent; then
26942 ac_configure_extra_args="$ac_configure_extra_args --silent"
26946 cat >>$CONFIG_STATUS <<_ACEOF
26947 if \$ac_cs_recheck; then
26948 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26949 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26954 cat >>$CONFIG_STATUS <<_ACEOF
26956 # INIT-COMMANDS section.
26959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26965 cat >>$CONFIG_STATUS <<\_ACEOF
26966 for ac_config_target in $ac_config_targets
26968 case "$ac_config_target" in
26969 # Handling of arguments.
26970 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26971 "Makefile.rules" ) CONFIG_FILES="$CONFIG_FILES Makefile.rules" ;;
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_OPTIMIZED_TRUE@,$ENABLE_OPTIMIZED_TRUE,;t t
27163 s,@ENABLE_OPTIMIZED_FALSE@,$ENABLE_OPTIMIZED_FALSE,;t t
27164 s,@ENABLE_PROFILED@,$ENABLE_PROFILED,;t t
27165 s,@ENABLE_PROFILED_TRUE@,$ENABLE_PROFILED_TRUE,;t t
27166 s,@ENABLE_PROFILED_FALSE@,$ENABLE_PROFILED_FALSE,;t t
27169 s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
27170 s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
27171 s,@ARCH_SPARC_TRUE@,$ARCH_SPARC_TRUE,;t t
27172 s,@ARCH_SPARC_FALSE@,$ARCH_SPARC_FALSE,;t t
27173 s,@ARCH_PPC_TRUE@,$ARCH_PPC_TRUE,;t t
27174 s,@ARCH_PPC_FALSE@,$ARCH_PPC_FALSE,;t t
27175 s,@ARCH_UNKNOWN_TRUE@,$ARCH_UNKNOWN_TRUE,;t t
27176 s,@ARCH_UNKNOWN_FALSE@,$ARCH_UNKNOWN_FALSE,;t t
27177 s,@ARCH@,$ARCH,;t t
27178 s,@ENDIAN@,$ENDIAN,;t t
27180 s,@CFLAGS@,$CFLAGS,;t t
27181 s,@LDFLAGS@,$LDFLAGS,;t t
27182 s,@CPPFLAGS@,$CPPFLAGS,;t t
27183 s,@ac_ct_CC@,$ac_ct_CC,;t t
27184 s,@EXEEXT@,$EXEEXT,;t t
27185 s,@OBJEXT@,$OBJEXT,;t t
27186 s,@DEPDIR@,$DEPDIR,;t t
27187 s,@am__include@,$am__include,;t t
27188 s,@am__quote@,$am__quote,;t t
27189 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27190 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27191 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27192 s,@CCDEPMODE@,$CCDEPMODE,;t t
27193 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27194 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27196 s,@CXXFLAGS@,$CXXFLAGS,;t t
27197 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27198 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27199 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27200 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27203 s,@LEXLIB@,$LEXLIB,;t t
27204 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27205 s,@FLEX@,$FLEX,;t t
27206 s,@YACC@,$YACC,;t t
27207 s,@BISON@,$BISON,;t t
27208 s,@EGREP@,$EGREP,;t t
27209 s,@LN_S@,$LN_S,;t t
27210 s,@ECHO@,$ECHO,;t t
27212 s,@ac_ct_AR@,$ac_ct_AR,;t t
27213 s,@RANLIB@,$RANLIB,;t t
27214 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27215 s,@CXXCPP@,$CXXCPP,;t t
27217 s,@FFLAGS@,$FFLAGS,;t t
27218 s,@ac_ct_F77@,$ac_ct_F77,;t t
27219 s,@LIBTOOL@,$LIBTOOL,;t t
27221 s,@ETAGS@,$ETAGS,;t t
27222 s,@PYTHON@,$PYTHON,;t t
27223 s,@QMTEST@,$QMTEST,;t t
27224 s,@ifGNUmake@,$ifGNUmake,;t t
27225 s,@LLVMCC1@,$LLVMCC1,;t t
27226 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
27227 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
27228 s,@ALLOCA@,$ALLOCA,;t t
27229 s,@MMAP_FILE@,$MMAP_FILE,;t t
27230 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
27231 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
27232 s,@SHLIBEXT@,$SHLIBEXT,;t t
27233 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
27234 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
27235 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
27236 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
27237 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
27238 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
27239 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
27240 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
27241 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
27242 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
27243 s,@subdirs@,$subdirs,;t t
27244 s,@LIBOBJS@,$LIBOBJS,;t t
27245 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27250 cat >>$CONFIG_STATUS <<\_ACEOF
27251 # Split the substitutions into bite-sized pieces for seds with
27252 # small command number limits, like on Digital OSF/1 and HP-UX.
27253 ac_max_sed_lines=48
27254 ac_sed_frag=1 # Number of current file.
27255 ac_beg=1 # First line for current file.
27256 ac_end=$ac_max_sed_lines # Line after last line for current file.
27259 while $ac_more_lines; do
27260 if test $ac_beg -gt 1; then
27261 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27263 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27265 if test ! -s $tmp/subs.frag; then
27266 ac_more_lines=false
27268 # The purpose of the label and of the branching condition is to
27269 # speed up the sed processing (if there are no `@' at all, there
27270 # is no need to browse any of the substitutions).
27271 # These are the two extra sed commands mentioned above.
27273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27274 if test -z "$ac_sed_cmds"; then
27275 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27277 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27279 ac_sed_frag=`expr $ac_sed_frag + 1`
27281 ac_end=`expr $ac_end + $ac_max_sed_lines`
27284 if test -z "$ac_sed_cmds"; then
27287 fi # test -n "$CONFIG_FILES"
27290 cat >>$CONFIG_STATUS <<\_ACEOF
27291 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27294 - | *:- | *:-:* ) # input from stdin
27296 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27298 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27300 * ) ac_file_in=$ac_file.in ;;
27303 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27304 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27306 X"$ac_file" : 'X\(//\)[^/]' \| \
27307 X"$ac_file" : 'X\(//\)$' \| \
27308 X"$ac_file" : 'X\(/\)' \| \
27309 . : '\(.\)' 2>/dev/null ||
27311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27313 /^X\(\/\/\)$/{ s//\1/; q; }
27314 /^X\(\/\).*/{ s//\1/; q; }
27316 { if $as_mkdir_p; then
27321 while test ! -d "$as_dir"; do
27322 as_dirs="$as_dir $as_dirs"
27323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27325 X"$as_dir" : 'X\(//\)[^/]' \| \
27326 X"$as_dir" : 'X\(//\)$' \| \
27327 X"$as_dir" : 'X\(/\)' \| \
27328 . : '\(.\)' 2>/dev/null ||
27330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27332 /^X\(\/\/\)$/{ s//\1/; q; }
27333 /^X\(\/\).*/{ s//\1/; q; }
27336 test ! -n "$as_dirs" || mkdir $as_dirs
27337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27338 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27339 { (exit 1); exit 1; }; }; }
27343 if test "$ac_dir" != .; then
27344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27345 # A "../" for each directory in $ac_dir_suffix.
27346 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27348 ac_dir_suffix= ac_top_builddir=
27352 .) # No --srcdir option. We are building in place.
27354 if test -z "$ac_top_builddir"; then
27357 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27359 [\\/]* | ?:[\\/]* ) # Absolute path.
27360 ac_srcdir=$srcdir$ac_dir_suffix;
27361 ac_top_srcdir=$srcdir ;;
27362 *) # Relative path.
27363 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27364 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27367 # Do not use `cd foo && pwd` to compute absolute paths, because
27368 # the directories may not exist.
27370 .) ac_abs_builddir="$ac_dir";;
27373 .) ac_abs_builddir=`pwd`;;
27374 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27375 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27378 case $ac_abs_builddir in
27379 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27381 case ${ac_top_builddir}. in
27382 .) ac_abs_top_builddir=$ac_abs_builddir;;
27383 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27384 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27387 case $ac_abs_builddir in
27388 .) ac_abs_srcdir=$ac_srcdir;;
27391 .) ac_abs_srcdir=$ac_abs_builddir;;
27392 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27393 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27396 case $ac_abs_builddir in
27397 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27399 case $ac_top_srcdir in
27400 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27401 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27402 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27409 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27412 if test x"$ac_file" != x-; then
27413 { echo "$as_me:$LINENO: creating $ac_file" >&5
27414 echo "$as_me: creating $ac_file" >&6;}
27417 # Let's still pretend it is `configure' which instantiates (i.e., don't
27418 # use $as_me), people would be surprised to read:
27419 # /* config.h. Generated by config.status. */
27420 if test x"$ac_file" = x-; then
27423 configure_input="$ac_file. "
27425 configure_input=$configure_input"Generated from `echo $ac_file_in |
27426 sed 's,.*/,,'` by configure."
27428 # First look for the input files in the build tree, otherwise in the
27430 ac_file_inputs=`IFS=:
27431 for f in $ac_file_in; do
27433 -) echo $tmp/stdin ;;
27435 # Absolute (can't be DOS-style, as IFS=:)
27436 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27437 echo "$as_me: error: cannot find input file: $f" >&2;}
27438 { (exit 1); exit 1; }; }
27441 if test -f "$f"; then
27444 elif test -f "$srcdir/$f"; then
27449 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27450 echo "$as_me: error: cannot find input file: $f" >&2;}
27451 { (exit 1); exit 1; }; }
27454 done` || { (exit 1); exit 1; }
27456 cat >>$CONFIG_STATUS <<_ACEOF
27460 cat >>$CONFIG_STATUS <<\_ACEOF
27462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27463 s,@configure_input@,$configure_input,;t t
27464 s,@srcdir@,$ac_srcdir,;t t
27465 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27466 s,@top_srcdir@,$ac_top_srcdir,;t t
27467 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27468 s,@builddir@,$ac_builddir,;t t
27469 s,@abs_builddir@,$ac_abs_builddir,;t t
27470 s,@top_builddir@,$ac_top_builddir,;t t
27471 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27472 s,@INSTALL@,$ac_INSTALL,;t t
27473 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27475 if test x"$ac_file" != x-; then
27476 mv $tmp/out $ac_file
27484 cat >>$CONFIG_STATUS <<\_ACEOF
27487 # CONFIG_HEADER section.
27490 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27491 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27493 # ac_d sets the value in "#define NAME VALUE" lines.
27494 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27495 ac_dB='[ ].*$,\1#\2'
27498 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27499 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27500 ac_uB='$,\1#\2define\3'
27504 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27507 - | *:- | *:-:* ) # input from stdin
27509 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27510 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27511 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27512 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27513 * ) ac_file_in=$ac_file.in ;;
27516 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27517 echo "$as_me: creating $ac_file" >&6;}
27519 # First look for the input files in the build tree, otherwise in the
27521 ac_file_inputs=`IFS=:
27522 for f in $ac_file_in; do
27524 -) echo $tmp/stdin ;;
27526 # Absolute (can't be DOS-style, as IFS=:)
27527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27528 echo "$as_me: error: cannot find input file: $f" >&2;}
27529 { (exit 1); exit 1; }; }
27530 # Do quote $f, to prevent DOS paths from being IFS'd.
27533 if test -f "$f"; then
27536 elif test -f "$srcdir/$f"; then
27541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27542 echo "$as_me: error: cannot find input file: $f" >&2;}
27543 { (exit 1); exit 1; }; }
27546 done` || { (exit 1); exit 1; }
27547 # Remove the trailing spaces.
27548 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27552 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27553 # `conftest.undefs', that substitutes the proper values into
27554 # config.h.in to produce config.h. The first handles `#define'
27555 # templates, and the second `#undef' templates.
27556 # And first: Protect against being on the right side of a sed subst in
27557 # config.status. Protect against being in an unquoted here document
27558 # in config.status.
27559 rm -f conftest.defines conftest.undefs
27560 # Using a here document instead of a string reduces the quoting nightmare.
27561 # Putting comments in sed scripts is not portable.
27563 # `end' is used to avoid that the second main sed command (meant for
27564 # 0-ary CPP macros) applies to n-ary macro definitions.
27565 # See the Autoconf documentation for `clear'.
27566 cat >confdef2sed.sed <<\_ACEOF
27571 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27573 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27576 # If some macros were called several times there might be several times
27577 # the same #defines, which is useless. Nevertheless, we may not want to
27578 # sort them, since we want the *last* AC-DEFINE to be honored.
27579 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27580 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27581 rm -f confdef2sed.sed
27583 # This sed command replaces #undef with comments. This is necessary, for
27584 # example, in the case of _POSIX_SOURCE, which is predefined and required
27585 # on some systems where configure will not decide to define it.
27586 cat >>conftest.undefs <<\_ACEOF
27587 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27590 # Break up conftest.defines because some shells have a limit on the size
27591 # of here documents, and old seds have small limits too (100 cmds).
27592 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27593 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27594 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27595 echo ' :' >>$CONFIG_STATUS
27596 rm -f conftest.tail
27597 while grep . conftest.defines >/dev/null
27599 # Write a limited-size here document to $tmp/defines.sed.
27600 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27601 # Speed up: don't consider the non `#define' lines.
27602 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27603 # Work around the forget-to-reset-the-flag bug.
27604 echo 't clr' >>$CONFIG_STATUS
27605 echo ': clr' >>$CONFIG_STATUS
27606 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27608 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27610 mv $tmp/out $tmp/in
27612 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27613 rm -f conftest.defines
27614 mv conftest.tail conftest.defines
27616 rm -f conftest.defines
27617 echo ' fi # grep' >>$CONFIG_STATUS
27618 echo >>$CONFIG_STATUS
27620 # Break up conftest.undefs because some shells have a limit on the size
27621 # of here documents, and old seds have small limits too (100 cmds).
27622 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27623 rm -f conftest.tail
27624 while grep . conftest.undefs >/dev/null
27626 # Write a limited-size here document to $tmp/undefs.sed.
27627 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27628 # Speed up: don't consider the non `#undef'
27629 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27630 # Work around the forget-to-reset-the-flag bug.
27631 echo 't clr' >>$CONFIG_STATUS
27632 echo ': clr' >>$CONFIG_STATUS
27633 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27635 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27637 mv $tmp/out $tmp/in
27639 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27640 rm -f conftest.undefs
27641 mv conftest.tail conftest.undefs
27643 rm -f conftest.undefs
27645 cat >>$CONFIG_STATUS <<\_ACEOF
27646 # Let's still pretend it is `configure' which instantiates (i.e., don't
27647 # use $as_me), people would be surprised to read:
27648 # /* config.h. Generated by config.status. */
27649 if test x"$ac_file" = x-; then
27650 echo "/* Generated by configure. */" >$tmp/config.h
27652 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27654 cat $tmp/in >>$tmp/config.h
27656 if test x"$ac_file" != x-; then
27657 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27658 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27659 echo "$as_me: $ac_file is unchanged" >&6;}
27661 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27663 X"$ac_file" : 'X\(//\)[^/]' \| \
27664 X"$ac_file" : 'X\(//\)$' \| \
27665 X"$ac_file" : 'X\(/\)' \| \
27666 . : '\(.\)' 2>/dev/null ||
27668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27670 /^X\(\/\/\)$/{ s//\1/; q; }
27671 /^X\(\/\).*/{ s//\1/; q; }
27673 { if $as_mkdir_p; then
27678 while test ! -d "$as_dir"; do
27679 as_dirs="$as_dir $as_dirs"
27680 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27682 X"$as_dir" : 'X\(//\)[^/]' \| \
27683 X"$as_dir" : 'X\(//\)$' \| \
27684 X"$as_dir" : 'X\(/\)' \| \
27685 . : '\(.\)' 2>/dev/null ||
27687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27689 /^X\(\/\/\)$/{ s//\1/; q; }
27690 /^X\(\/\).*/{ s//\1/; q; }
27693 test ! -n "$as_dirs" || mkdir $as_dirs
27694 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27695 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27696 { (exit 1); exit 1; }; }; }
27699 mv $tmp/config.h $ac_file
27703 rm -f $tmp/config.h
27705 # Compute $ac_file's index in $config_headers.
27707 for _am_header in $config_headers :; do
27708 case $_am_header in
27709 $ac_file | $ac_file:* )
27712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27715 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27716 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27717 X$ac_file : 'X\(//\)[^/]' \| \
27718 X$ac_file : 'X\(//\)$' \| \
27719 X$ac_file : 'X\(/\)' \| \
27720 . : '\(.\)' 2>/dev/null ||
27722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27724 /^X\(\/\/\)$/{ s//\1/; q; }
27725 /^X\(\/\).*/{ s//\1/; q; }
27726 s/.*/./; q'`/stamp-h$_am_stamp_count
27729 cat >>$CONFIG_STATUS <<\_ACEOF
27732 # CONFIG_LINKS section.
27735 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27736 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27737 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27739 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27740 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27742 if test ! -r $srcdir/$ac_source; then
27743 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27744 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27745 { (exit 1); exit 1; }; }
27749 # Make relative symlinks.
27750 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27751 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27752 X"$ac_dest" : 'X\(//\)[^/]' \| \
27753 X"$ac_dest" : 'X\(//\)$' \| \
27754 X"$ac_dest" : 'X\(/\)' \| \
27755 . : '\(.\)' 2>/dev/null ||
27757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27759 /^X\(\/\/\)$/{ s//\1/; q; }
27760 /^X\(\/\).*/{ s//\1/; q; }
27762 { if $as_mkdir_p; then
27763 mkdir -p "$ac_dest_dir"
27765 as_dir="$ac_dest_dir"
27767 while test ! -d "$as_dir"; do
27768 as_dirs="$as_dir $as_dirs"
27769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27771 X"$as_dir" : 'X\(//\)[^/]' \| \
27772 X"$as_dir" : 'X\(//\)$' \| \
27773 X"$as_dir" : 'X\(/\)' \| \
27774 . : '\(.\)' 2>/dev/null ||
27776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27778 /^X\(\/\/\)$/{ s//\1/; q; }
27779 /^X\(\/\).*/{ s//\1/; q; }
27782 test ! -n "$as_dirs" || mkdir $as_dirs
27783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27784 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27785 { (exit 1); exit 1; }; }; }
27789 if test "$ac_dest_dir" != .; then
27790 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27791 # A "../" for each directory in $ac_dir_suffix.
27792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27794 ac_dir_suffix= ac_top_builddir=
27798 .) # No --srcdir option. We are building in place.
27800 if test -z "$ac_top_builddir"; then
27803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27805 [\\/]* | ?:[\\/]* ) # Absolute path.
27806 ac_srcdir=$srcdir$ac_dir_suffix;
27807 ac_top_srcdir=$srcdir ;;
27808 *) # Relative path.
27809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27813 # Do not use `cd foo && pwd` to compute absolute paths, because
27814 # the directories may not exist.
27816 .) ac_abs_builddir="$ac_dest_dir";;
27818 case "$ac_dest_dir" in
27819 .) ac_abs_builddir=`pwd`;;
27820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27821 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27824 case $ac_abs_builddir in
27825 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27827 case ${ac_top_builddir}. in
27828 .) ac_abs_top_builddir=$ac_abs_builddir;;
27829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27833 case $ac_abs_builddir in
27834 .) ac_abs_srcdir=$ac_srcdir;;
27837 .) ac_abs_srcdir=$ac_abs_builddir;;
27838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27842 case $ac_abs_builddir in
27843 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27845 case $ac_top_srcdir in
27846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27854 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27855 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27858 # Try a symlink, then a hard link, then a copy.
27859 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27860 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27861 cp -p $srcdir/$ac_source $ac_dest ||
27862 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27863 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27864 { (exit 1); exit 1; }; }
27867 cat >>$CONFIG_STATUS <<\_ACEOF
27870 # CONFIG_COMMANDS section.
27872 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27873 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27874 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27875 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27876 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27877 X"$ac_dest" : 'X\(//\)[^/]' \| \
27878 X"$ac_dest" : 'X\(//\)$' \| \
27879 X"$ac_dest" : 'X\(/\)' \| \
27880 . : '\(.\)' 2>/dev/null ||
27882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27884 /^X\(\/\/\)$/{ s//\1/; q; }
27885 /^X\(\/\).*/{ s//\1/; q; }
27887 { if $as_mkdir_p; then
27892 while test ! -d "$as_dir"; do
27893 as_dirs="$as_dir $as_dirs"
27894 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27896 X"$as_dir" : 'X\(//\)[^/]' \| \
27897 X"$as_dir" : 'X\(//\)$' \| \
27898 X"$as_dir" : 'X\(/\)' \| \
27899 . : '\(.\)' 2>/dev/null ||
27901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27903 /^X\(\/\/\)$/{ s//\1/; q; }
27904 /^X\(\/\).*/{ s//\1/; q; }
27907 test ! -n "$as_dirs" || mkdir $as_dirs
27908 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27909 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27910 { (exit 1); exit 1; }; }; }
27914 if test "$ac_dir" != .; then
27915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27916 # A "../" for each directory in $ac_dir_suffix.
27917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27919 ac_dir_suffix= ac_top_builddir=
27923 .) # No --srcdir option. We are building in place.
27925 if test -z "$ac_top_builddir"; then
27928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27930 [\\/]* | ?:[\\/]* ) # Absolute path.
27931 ac_srcdir=$srcdir$ac_dir_suffix;
27932 ac_top_srcdir=$srcdir ;;
27933 *) # Relative path.
27934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27938 # Do not use `cd foo && pwd` to compute absolute paths, because
27939 # the directories may not exist.
27941 .) ac_abs_builddir="$ac_dir";;
27944 .) ac_abs_builddir=`pwd`;;
27945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27949 case $ac_abs_builddir in
27950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27952 case ${ac_top_builddir}. in
27953 .) ac_abs_top_builddir=$ac_abs_builddir;;
27954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27958 case $ac_abs_builddir in
27959 .) ac_abs_srcdir=$ac_srcdir;;
27962 .) ac_abs_srcdir=$ac_abs_builddir;;
27963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27967 case $ac_abs_builddir in
27968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27970 case $ac_top_srcdir in
27971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27978 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27979 echo "$as_me: executing $ac_dest commands" >&6;}
27981 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27982 # Strip MF so we end up with the name of the file.
27983 mf=`echo "$mf" | sed -e 's/:.*$//'`
27984 # Check whether this is an Automake generated Makefile or not.
27985 # We used to match only the files named `Makefile.in', but
27986 # some people rename them; so instead we look at the file content.
27987 # Grep'ing the first line is not enough: some people post-process
27988 # each Makefile.in and add a new line on top of each file to say so.
27989 # So let's grep whole file.
27990 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27991 dirpart=`(dirname "$mf") 2>/dev/null ||
27992 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27993 X"$mf" : 'X\(//\)[^/]' \| \
27994 X"$mf" : 'X\(//\)$' \| \
27995 X"$mf" : 'X\(/\)' \| \
27996 . : '\(.\)' 2>/dev/null ||
27998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28000 /^X\(\/\/\)$/{ s//\1/; q; }
28001 /^X\(\/\).*/{ s//\1/; q; }
28006 # Extract the definition of DEPDIR, am__include, and am__quote
28007 # from the Makefile without running `make'.
28008 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28009 test -z "$DEPDIR" && continue
28010 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28011 test -z "am__include" && continue
28012 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28013 # When using ansi2knr, U may be empty or an underscore; expand it
28014 U=`sed -n 's/^U = //p' < "$mf"`
28015 # Find all dependency output files, they are included files with
28016 # $(DEPDIR) in their names. We invoke sed twice because it is the
28017 # simplest approach to changing $(DEPDIR) to its actual value in the
28019 for file in `sed -n "
28020 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28021 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28022 # Make sure the directory exists.
28023 test -f "$dirpart/$file" && continue
28024 fdir=`(dirname "$file") 2>/dev/null ||
28025 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28026 X"$file" : 'X\(//\)[^/]' \| \
28027 X"$file" : 'X\(//\)$' \| \
28028 X"$file" : 'X\(/\)' \| \
28029 . : '\(.\)' 2>/dev/null ||
28031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28033 /^X\(\/\/\)$/{ s//\1/; q; }
28034 /^X\(\/\).*/{ s//\1/; q; }
28036 { if $as_mkdir_p; then
28037 mkdir -p $dirpart/$fdir
28039 as_dir=$dirpart/$fdir
28041 while test ! -d "$as_dir"; do
28042 as_dirs="$as_dir $as_dirs"
28043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28045 X"$as_dir" : 'X\(//\)[^/]' \| \
28046 X"$as_dir" : 'X\(//\)$' \| \
28047 X"$as_dir" : 'X\(/\)' \| \
28048 . : '\(.\)' 2>/dev/null ||
28050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28052 /^X\(\/\/\)$/{ s//\1/; q; }
28053 /^X\(\/\).*/{ s//\1/; q; }
28056 test ! -n "$as_dirs" || mkdir $as_dirs
28057 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28058 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28059 { (exit 1); exit 1; }; }; }
28061 # echo "creating $dirpart/$file"
28062 echo '# dummy' > "$dirpart/$file"
28070 cat >>$CONFIG_STATUS <<\_ACEOF
28072 { (exit 0); exit 0; }
28074 chmod +x $CONFIG_STATUS
28075 ac_clean_files=$ac_clean_files_save
28078 # configure is writing to config.log, and then calls config.status.
28079 # config.status does its own redirection, appending to config.log.
28080 # Unfortunately, on DOS this fails, as config.log is still kept open
28081 # by configure, so config.status won't be able to write to it; its
28082 # output is simply discarded. So we exec the FD to /dev/null,
28083 # effectively closing config.log, so it can be properly (re)opened and
28084 # appended to by config.status. When coming back to configure, we
28085 # need to make the FD available again.
28086 if test "$no_create" != yes; then
28088 ac_config_status_args=
28089 test "$silent" = yes &&
28090 ac_config_status_args="$ac_config_status_args --quiet"
28092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28095 # would make configure fail if this is the last instruction.
28096 $ac_cs_success || { (exit 1); exit 1; }
28100 # CONFIG_SUBDIRS section.
28102 if test "$no_recursion" != yes; then
28104 # Remove --cache-file and --srcdir arguments so they do not pile up.
28105 ac_sub_configure_args=
28107 for ac_arg in $ac_configure_args; do
28108 if test -n "$ac_prev"; then
28113 -cache-file | --cache-file | --cache-fil | --cache-fi \
28114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28115 ac_prev=cache_file ;;
28116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28120 --config-cache | -C)
28122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28130 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
28134 # Always prepend --prefix to ensure using the same prefix
28135 # in subdir configurations.
28136 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
28139 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28141 # Do not complain, so a configure script can configure whichever
28142 # parts of a large source tree are present.
28143 test -d $srcdir/$ac_dir || continue
28145 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
28146 echo "$as_me: configuring in $ac_dir" >&6;}
28147 { if $as_mkdir_p; then
28152 while test ! -d "$as_dir"; do
28153 as_dirs="$as_dir $as_dirs"
28154 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28156 X"$as_dir" : 'X\(//\)[^/]' \| \
28157 X"$as_dir" : 'X\(//\)$' \| \
28158 X"$as_dir" : 'X\(/\)' \| \
28159 . : '\(.\)' 2>/dev/null ||
28161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28163 /^X\(\/\/\)$/{ s//\1/; q; }
28164 /^X\(\/\).*/{ s//\1/; q; }
28167 test ! -n "$as_dirs" || mkdir $as_dirs
28168 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28169 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28170 { (exit 1); exit 1; }; }; }
28174 if test "$ac_dir" != .; then
28175 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28176 # A "../" for each directory in $ac_dir_suffix.
28177 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28179 ac_dir_suffix= ac_top_builddir=
28183 .) # No --srcdir option. We are building in place.
28185 if test -z "$ac_top_builddir"; then
28188 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28190 [\\/]* | ?:[\\/]* ) # Absolute path.
28191 ac_srcdir=$srcdir$ac_dir_suffix;
28192 ac_top_srcdir=$srcdir ;;
28193 *) # Relative path.
28194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28198 # Do not use `cd foo && pwd` to compute absolute paths, because
28199 # the directories may not exist.
28201 .) ac_abs_builddir="$ac_dir";;
28204 .) ac_abs_builddir=`pwd`;;
28205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28209 case $ac_abs_builddir in
28210 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28212 case ${ac_top_builddir}. in
28213 .) ac_abs_top_builddir=$ac_abs_builddir;;
28214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28218 case $ac_abs_builddir in
28219 .) ac_abs_srcdir=$ac_srcdir;;
28222 .) ac_abs_srcdir=$ac_abs_builddir;;
28223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28227 case $ac_abs_builddir in
28228 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28230 case $ac_top_srcdir in
28231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28240 # Check for guested configure; otherwise get Cygnus style configure.
28241 if test -f $ac_srcdir/configure.gnu; then
28242 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
28243 elif test -f $ac_srcdir/configure; then
28244 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
28245 elif test -f $ac_srcdir/configure.in; then
28246 ac_sub_configure=$ac_configure
28248 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28249 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28253 # The recursion is here.
28254 if test -n "$ac_sub_configure"; then
28255 # Make the cache file name correct relative to the subdirectory.
28256 case $cache_file in
28257 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28258 *) # Relative path.
28259 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
28262 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28263 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28264 # The eval makes quoting arguments work.
28265 eval $ac_sub_configure $ac_sub_configure_args \
28266 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
28267 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28268 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28269 { (exit 1); exit 1; }; }
28278 if test $bzip2_found -ne 1 ; then
28279 if test $zlib_found -ne 1 ; then
28280 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
28281 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
28282 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
28283 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
28284 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and re-run configure." >&5
28285 echo "$as_me: WARNING: *** To correct, install the libraries and re-run configure." >&2;}
28289 if test $llvmgccwarn = yes
28291 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
28292 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
28293 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
28294 echo "$as_me: WARNING: ***** appear to be working." >&2;}
28295 { echo "$as_me:$LINENO: WARNING: ***** " >&5
28296 echo "$as_me: WARNING: ***** " >&2;}
28297 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
28298 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
28299 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
28300 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
28301 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
28302 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}