2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
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.
11 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/privbracket"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
443 # Factoring default headers for most tests.
444 ac_includes_default="\
447 # include <sys/types.h>
450 # include <sys/stat.h>
461 # if !STDC_HEADERS && HAVE_MEMORY_H
467 # include <strings.h>
470 # include <inttypes.h>
480 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
483 # Initialize some variables set by options.
485 ac_init_version=false
486 # The variables have the same names as the options, with
487 # dashes changed to underlines.
495 program_transform_name=s,x,x,
503 # Installation directory options.
504 # These are left unexpanded so users can "make install exec_prefix=/foo"
505 # and all the variables that are supposed to be based on exec_prefix
506 # by default will actually change.
507 # Use braces instead of parens because sh, perl, etc. also accept them.
508 bindir='${exec_prefix}/bin'
509 sbindir='${exec_prefix}/sbin'
510 libexecdir='${exec_prefix}/libexec'
511 datadir='${prefix}/share'
512 sysconfdir='${prefix}/etc'
513 sharedstatedir='${prefix}/com'
514 localstatedir='${prefix}/var'
515 libdir='${exec_prefix}/lib'
516 includedir='${prefix}/include'
517 oldincludedir='/usr/include'
518 infodir='${prefix}/info'
519 mandir='${prefix}/man'
524 # If the previous option needs an argument, assign it.
525 if test -n "$ac_prev"; then
526 eval "$ac_prev=\$ac_option"
531 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
533 # Accept the important Cygnus configure options, so we can diagnose typos.
537 -bindir | --bindir | --bindi | --bind | --bin | --bi)
539 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
542 -build | --build | --buil | --bui | --bu)
543 ac_prev=build_alias ;;
544 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545 build_alias=$ac_optarg ;;
547 -cache-file | --cache-file | --cache-fil | --cache-fi \
548 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549 ac_prev=cache_file ;;
550 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552 cache_file=$ac_optarg ;;
555 cache_file=config.cache ;;
557 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
559 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
561 datadir=$ac_optarg ;;
563 -disable-* | --disable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 eval "enable_$ac_feature=no" ;;
572 -enable-* | --enable-*)
573 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577 { (exit 1); exit 1; }; }
578 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "enable_$ac_feature='$ac_optarg'" ;;
585 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587 | --exec | --exe | --ex)
588 ac_prev=exec_prefix ;;
589 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591 | --exec=* | --exe=* | --ex=*)
592 exec_prefix=$ac_optarg ;;
594 -gas | --gas | --ga | --g)
595 # Obsolete; use --with-gas.
598 -help | --help | --hel | --he | -h)
600 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601 ac_init_help=recursive ;;
602 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603 ac_init_help=short ;;
605 -host | --host | --hos | --ho)
606 ac_prev=host_alias ;;
607 -host=* | --host=* | --hos=* | --ho=*)
608 host_alias=$ac_optarg ;;
610 -includedir | --includedir | --includedi | --included | --include \
611 | --includ | --inclu | --incl | --inc)
612 ac_prev=includedir ;;
613 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614 | --includ=* | --inclu=* | --incl=* | --inc=*)
615 includedir=$ac_optarg ;;
617 -infodir | --infodir | --infodi | --infod | --info | --inf)
619 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620 infodir=$ac_optarg ;;
622 -libdir | --libdir | --libdi | --libd)
624 -libdir=* | --libdir=* | --libdi=* | --libd=*)
627 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628 | --libexe | --libex | --libe)
629 ac_prev=libexecdir ;;
630 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631 | --libexe=* | --libex=* | --libe=*)
632 libexecdir=$ac_optarg ;;
634 -localstatedir | --localstatedir | --localstatedi | --localstated \
635 | --localstate | --localstat | --localsta | --localst \
636 | --locals | --local | --loca | --loc | --lo)
637 ac_prev=localstatedir ;;
638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641 localstatedir=$ac_optarg ;;
643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
649 # Obsolete; use --without-fp.
652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653 | --no-cr | --no-c | -n)
656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662 | --oldin | --oldi | --old | --ol | --o)
663 ac_prev=oldincludedir ;;
664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667 oldincludedir=$ac_optarg ;;
669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
675 | --program-pre | --program-pr | --program-p)
676 ac_prev=program_prefix ;;
677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679 program_prefix=$ac_optarg ;;
681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
682 | --program-suf | --program-su | --program-s)
683 ac_prev=program_suffix ;;
684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686 program_suffix=$ac_optarg ;;
688 -program-transform-name | --program-transform-name \
689 | --program-transform-nam | --program-transform-na \
690 | --program-transform-n | --program-transform- \
691 | --program-transform | --program-transfor \
692 | --program-transfo | --program-transf \
693 | --program-trans | --program-tran \
694 | --progr-tra | --program-tr | --program-t)
695 ac_prev=program_transform_name ;;
696 -program-transform-name=* | --program-transform-name=* \
697 | --program-transform-nam=* | --program-transform-na=* \
698 | --program-transform-n=* | --program-transform-=* \
699 | --program-transform=* | --program-transfor=* \
700 | --program-transfo=* | --program-transf=* \
701 | --program-trans=* | --program-tran=* \
702 | --progr-tra=* | --program-tr=* | --program-t=*)
703 program_transform_name=$ac_optarg ;;
705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706 | -silent | --silent | --silen | --sile | --sil)
709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
713 sbindir=$ac_optarg ;;
715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717 | --sharedst | --shareds | --shared | --share | --shar \
719 ac_prev=sharedstatedir ;;
720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
724 sharedstatedir=$ac_optarg ;;
726 -site | --site | --sit)
728 -site=* | --site=* | --sit=*)
731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737 | --syscon | --sysco | --sysc | --sys | --sy)
738 ac_prev=sysconfdir ;;
739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741 sysconfdir=$ac_optarg ;;
743 -target | --target | --targe | --targ | --tar | --ta | --t)
744 ac_prev=target_alias ;;
745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746 target_alias=$ac_optarg ;;
748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
751 -version | --version | --versio | --versi | --vers | -V)
755 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package| sed 's/-/_/g'`
762 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
765 eval "with_$ac_package='$ac_optarg'" ;;
767 -without-* | --without-*)
768 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771 { echo "$as_me: error: invalid package name: $ac_package" >&2
772 { (exit 1); exit 1; }; }
773 ac_package=`echo $ac_package | sed 's/-/_/g'`
774 eval "with_$ac_package=no" ;;
777 # Obsolete; use --with-x.
780 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781 | --x-incl | --x-inc | --x-in | --x-i)
782 ac_prev=x_includes ;;
783 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785 x_includes=$ac_optarg ;;
787 -x-libraries | --x-libraries | --x-librarie | --x-librari \
788 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789 ac_prev=x_libraries ;;
790 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792 x_libraries=$ac_optarg ;;
794 -*) { echo "$as_me: error: unrecognized option: $ac_option
795 Try \`$0 --help' for more information." >&2
796 { (exit 1); exit 1; }; }
800 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804 { (exit 1); exit 1; }; }
805 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806 eval "$ac_envvar='$ac_optarg'"
810 # FIXME: should be removed in autoconf 3.0.
811 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
820 if test -n "$ac_prev"; then
821 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822 { echo "$as_me: error: missing argument to $ac_option" >&2
823 { (exit 1); exit 1; }; }
826 # Be sure to have absolute paths.
827 for ac_var in exec_prefix prefix
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # Be sure to have absolute paths.
838 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839 localstatedir libdir includedir oldincludedir infodir mandir
841 eval ac_val=$`echo $ac_var`
843 [\\/$]* | ?:[\\/]* ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
849 # There might be people who depend on the old broken behavior: `$host'
850 # used to hold the argument of --host etc.
851 # FIXME: To remove some day.
856 # FIXME: To remove some day.
857 if test "x$host_alias" != x; then
858 if test "x$build_alias" = x; then
859 cross_compiling=maybe
860 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861 If a cross compiler is detected then cross compile mode will be used." >&2
862 elif test "x$build_alias" != "x$host_alias"; then
868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
870 test "$silent" = yes && exec 6>/dev/null
873 # Find the source files, if location was not specified.
874 if test -z "$srcdir"; then
875 ac_srcdir_defaulted=yes
876 # Try the directory containing this script, then its parent.
877 ac_confdir=`(dirname "$0") 2>/dev/null ||
878 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879 X"$0" : 'X\(//\)[^/]' \| \
880 X"$0" : 'X\(//\)$' \| \
881 X"$0" : 'X\(/\)' \| \
882 . : '\(.\)' 2>/dev/null ||
884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886 /^X\(\/\/\)$/{ s//\1/; q; }
887 /^X\(\/\).*/{ s//\1/; q; }
890 if test ! -r $srcdir/$ac_unique_file; then
894 ac_srcdir_defaulted=no
896 if test ! -r $srcdir/$ac_unique_file; then
897 if test "$ac_srcdir_defaulted" = yes; then
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899 { (exit 1); exit 1; }; }
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902 { (exit 1); exit 1; }; }
905 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907 { (exit 1); exit 1; }; }
908 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909 ac_env_build_alias_set=${build_alias+set}
910 ac_env_build_alias_value=$build_alias
911 ac_cv_env_build_alias_set=${build_alias+set}
912 ac_cv_env_build_alias_value=$build_alias
913 ac_env_host_alias_set=${host_alias+set}
914 ac_env_host_alias_value=$host_alias
915 ac_cv_env_host_alias_set=${host_alias+set}
916 ac_cv_env_host_alias_value=$host_alias
917 ac_env_target_alias_set=${target_alias+set}
918 ac_env_target_alias_value=$target_alias
919 ac_cv_env_target_alias_set=${target_alias+set}
920 ac_cv_env_target_alias_value=$target_alias
921 ac_env_CC_set=${CC+set}
923 ac_cv_env_CC_set=${CC+set}
924 ac_cv_env_CC_value=$CC
925 ac_env_CFLAGS_set=${CFLAGS+set}
926 ac_env_CFLAGS_value=$CFLAGS
927 ac_cv_env_CFLAGS_set=${CFLAGS+set}
928 ac_cv_env_CFLAGS_value=$CFLAGS
929 ac_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_env_LDFLAGS_value=$LDFLAGS
931 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932 ac_cv_env_LDFLAGS_value=$LDFLAGS
933 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_env_CPPFLAGS_value=$CPPFLAGS
935 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937 ac_env_CPP_set=${CPP+set}
938 ac_env_CPP_value=$CPP
939 ac_cv_env_CPP_set=${CPP+set}
940 ac_cv_env_CPP_value=$CPP
941 ac_env_CXX_set=${CXX+set}
942 ac_env_CXX_value=$CXX
943 ac_cv_env_CXX_set=${CXX+set}
944 ac_cv_env_CXX_value=$CXX
945 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_env_CXXFLAGS_value=$CXXFLAGS
947 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949 ac_env_CXXCPP_set=${CXXCPP+set}
950 ac_env_CXXCPP_value=$CXXCPP
951 ac_cv_env_CXXCPP_set=${CXXCPP+set}
952 ac_cv_env_CXXCPP_value=$CXXCPP
953 ac_env_F77_set=${F77+set}
954 ac_env_F77_value=$F77
955 ac_cv_env_F77_set=${F77+set}
956 ac_cv_env_F77_value=$F77
957 ac_env_FFLAGS_set=${FFLAGS+set}
958 ac_env_FFLAGS_value=$FFLAGS
959 ac_cv_env_FFLAGS_set=${FFLAGS+set}
960 ac_cv_env_FFLAGS_value=$FFLAGS
963 # Report the --help message.
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
969 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
971 Usage: $0 [OPTION]... [VAR=VALUE]...
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
976 Defaults for the options are specified in brackets.
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1003 For better control, use the options below.
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1023 --build=BUILD configure for building on BUILD [guessed]
1024 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1025 --target=TARGET configure for building compilers for TARGET [HOST]
1029 if test -n "$ac_init_help"; then
1030 case $ac_init_help in
1031 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1040 --enable-debug-runtime
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --enable-doxygen Build doxygen documentation (default is NO)
1043 --enable-threads Use threads if available (default is YES)
1044 --enable-target Build specific host targets:
1045 all,host-only,{target-name} (default=all)
1046 --enable-ltdl-install install libltdl
1047 --enable-shared[=PKGS]
1048 build shared libraries [default=yes]
1049 --enable-static[=PKGS]
1050 build static libraries [default=yes]
1051 --enable-fast-install[=PKGS]
1052 optimize for fast installation [default=yes]
1053 --disable-libtool-lock avoid locking (might break parallel builds)
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1058 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1060 --with-tclinclude directory where tcl headers are
1061 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1062 --with-pic try to use only PIC/non-PIC objects [default=use
1065 include additional configurations [automatic]
1067 Some influential environment variables:
1068 CC C compiler command
1069 CFLAGS C compiler flags
1070 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1071 nonstandard directory <lib dir>
1072 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073 headers in a nonstandard directory <include dir>
1075 CXX C++ compiler command
1076 CXXFLAGS C++ compiler flags
1077 CXXCPP C++ preprocessor
1078 F77 Fortran 77 compiler command
1079 FFLAGS Fortran 77 compiler flags
1081 Use these variables to override the choices made by `configure' or to help
1082 it to find libraries and programs with nonstandard names/locations.
1084 Report bugs to <llvmbugs@cs.uiuc.edu>.
1088 if test "$ac_init_help" = "recursive"; then
1089 # If there are subdirs, report their specific --help.
1091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092 test -d $ac_dir || continue
1095 if test "$ac_dir" != .; then
1096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097 # A "../" for each directory in $ac_dir_suffix.
1098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 ac_dir_suffix= ac_top_builddir=
1104 .) # No --srcdir option. We are building in place.
1106 if test -z "$ac_top_builddir"; then
1109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 [\\/]* | ?:[\\/]* ) # Absolute path.
1112 ac_srcdir=$srcdir$ac_dir_suffix;
1113 ac_top_srcdir=$srcdir ;;
1115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1119 # Do not use `cd foo && pwd` to compute absolute paths, because
1120 # the directories may not exist.
1122 .) ac_abs_builddir="$ac_dir";;
1125 .) ac_abs_builddir=`pwd`;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1127 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 case ${ac_top_builddir}. in
1134 .) ac_abs_top_builddir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1139 case $ac_abs_builddir in
1140 .) ac_abs_srcdir=$ac_srcdir;;
1143 .) ac_abs_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1148 case $ac_abs_builddir in
1149 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 case $ac_top_srcdir in
1152 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159 # Check for guested configure; otherwise get Cygnus style configure.
1160 if test -f $ac_srcdir/configure.gnu; then
1162 $SHELL $ac_srcdir/configure.gnu --help=recursive
1163 elif test -f $ac_srcdir/configure; then
1165 $SHELL $ac_srcdir/configure --help=recursive
1166 elif test -f $ac_srcdir/configure.ac ||
1167 test -f $ac_srcdir/configure.in; then
1169 $ac_configure --help
1171 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1177 test -n "$ac_init_help" && exit 0
1178 if $ac_init_version; then
1180 llvm configure 1.8cvs
1181 generated by GNU Autoconf 2.59
1183 Copyright (C) 2003 Free Software Foundation, Inc.
1184 This configure script is free software; the Free Software Foundation
1185 gives unlimited permission to copy, distribute and modify it.
1187 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1193 This file contains any messages produced by compilers while
1194 running configure, to aid debugging if configure makes a mistake.
1196 It was created by llvm $as_me 1.8cvs, which was
1197 generated by GNU Autoconf 2.59. Invocation command line was
1208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1215 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1217 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1218 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1220 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1221 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1222 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1223 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231 test -z "$as_dir" && as_dir=.
1232 echo "PATH: $as_dir"
1247 # Keep a trace of the command line.
1248 # Strip out --no-create and --no-recursion so they do not pile up.
1249 # Strip out --silent because we don't want to record it for future runs.
1250 # Also quote any args containing shell meta-characters.
1251 # Make two passes to allow for proper duplicate-argument suppression.
1256 ac_must_keep_next=false
1262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1273 if test $ac_must_keep_next = true; then
1274 ac_must_keep_next=false # Got value, back to normal.
1277 *=* | --config-cache | -C | -disable-* | --disable-* \
1278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1280 | -with-* | --with-* | -without-* | --without-* | --x)
1281 case "$ac_configure_args0 " in
1282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285 -* ) ac_must_keep_next=true ;;
1288 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1289 # Get rid of the leading space.
1295 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1296 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298 # When interrupted or exit'd, cleanup temporary files, and complete
1299 # config.log. We remove comments because anyway the quotes in there
1300 # would cause problems or look ugly.
1301 # WARNING: Be sure not to use single quotes in there, as some shells,
1302 # such as our DU 5.0 friend, will then `close' the trap.
1303 trap 'exit_status=$?
1304 # Save into config.log some information that might help in debugging.
1309 ## ---------------- ##
1310 ## Cache variables. ##
1311 ## ---------------- ##
1314 # The following way of writing the cache mishandles newlines in values,
1317 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1332 ## ----------------- ##
1333 ## Output variables. ##
1334 ## ----------------- ##
1337 for ac_var in $ac_subst_vars
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1344 if test -n "$ac_subst_files"; then
1351 for ac_var in $ac_subst_files
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1359 if test -s confdefs.h; then
1366 sed "/^$/d" confdefs.h | sort
1369 test "$ac_signal" != 0 &&
1370 echo "$as_me: caught signal $ac_signal"
1371 echo "$as_me: exit $exit_status"
1373 rm -f core *.core &&
1374 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377 for ac_signal in 1 2 13 15; do
1378 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1383 rm -rf conftest* confdefs.h
1384 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387 # Predefined preprocessor variables.
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_NAME "$PACKAGE_NAME"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_STRING "$PACKAGE_STRING"
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414 # Let the site file select an alternate cache file if it wants to.
1415 # Prefer explicitly selected file to automatically selected ones.
1416 if test -z "$CONFIG_SITE"; then
1417 if test "x$prefix" != xNONE; then
1418 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423 for ac_site_file in $CONFIG_SITE; do
1424 if test -r "$ac_site_file"; then
1425 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1426 echo "$as_me: loading site script $ac_site_file" >&6;}
1427 sed 's/^/| /' "$ac_site_file" >&5
1432 if test -r "$cache_file"; then
1433 # Some versions of bash will fail to source /dev/null (special
1434 # files actually), so we avoid doing that.
1435 if test -f "$cache_file"; then
1436 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1437 echo "$as_me: loading cache $cache_file" >&6;}
1439 [\\/]* | ?:[\\/]* ) . $cache_file;;
1440 *) . ./$cache_file;;
1444 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1445 echo "$as_me: creating cache $cache_file" >&6;}
1449 # Check that the precious variables saved in the cache have kept the same
1451 ac_cache_corrupted=false
1452 for ac_var in `(set) 2>&1 |
1453 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1455 eval ac_new_set=\$ac_env_${ac_var}_set
1456 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1457 eval ac_new_val="\$ac_env_${ac_var}_value"
1458 case $ac_old_set,$ac_new_set in
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1469 if test "x$ac_old_val" != "x$ac_new_val"; then
1470 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1471 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1472 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1473 echo "$as_me: former value: $ac_old_val" >&2;}
1474 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1475 echo "$as_me: current value: $ac_new_val" >&2;}
1476 ac_cache_corrupted=:
1479 # Pass precious variables to config.status.
1480 if test "$ac_new_set" = set; then
1482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1483 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1484 *) ac_arg=$ac_var=$ac_new_val ;;
1486 case " $ac_configure_args " in
1487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492 if $ac_cache_corrupted; then
1493 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1494 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1495 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1496 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1497 { (exit 1); exit 1; }; }
1501 ac_cpp='$CPP $CPPFLAGS'
1502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1542 for ac_dir in autoconf $srcdir/autoconf; do
1543 if test -f $ac_dir/install-sh; then
1545 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 elif test -f $ac_dir/install.sh; then
1549 ac_install_sh="$ac_aux_dir/install.sh -c"
1551 elif test -f $ac_dir/shtool; then
1553 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 if test -z "$ac_aux_dir"; then
1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1559 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1560 { (exit 1); exit 1; }; }
1562 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567 if test ${srcdir} != "." ; then
1568 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1569 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1570 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1571 { (exit 1); exit 1; }; }
1575 for i in `ls ${srcdir}/projects`
1577 if test -d ${srcdir}/projects/${i} ; then
1582 subdirs="$subdirs projects/sample"
1586 subdirs="$subdirs projects/Stacker"
1590 subdirs="$subdirs projects/privbracket"
1594 subdirs="$subdirs projects/llvm-test"
1598 subdirs="$subdirs projects/llvm-reopt"
1602 subdirs="$subdirs projects/llvm-gcc"
1606 subdirs="$subdirs projects/llvm-java"
1610 subdirs="$subdirs projects/llvm-tv"
1614 subdirs="$subdirs projects/llvm-poolalloc"
1618 subdirs="$subdirs projects/llvm-kernel"
1621 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1622 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1629 # Make sure we can run config.sub.
1630 $ac_config_sub sun4 >/dev/null 2>&1 ||
1631 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1632 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1633 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: checking build system type" >&5
1636 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1637 if test "${ac_cv_build+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 ac_cv_build_alias=$build_alias
1641 test -z "$ac_cv_build_alias" &&
1642 ac_cv_build_alias=`$ac_config_guess`
1643 test -z "$ac_cv_build_alias" &&
1644 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1645 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1646 { (exit 1); exit 1; }; }
1647 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1648 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1649 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1650 { (exit 1); exit 1; }; }
1653 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1654 echo "${ECHO_T}$ac_cv_build" >&6
1656 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661 echo "$as_me:$LINENO: checking host system type" >&5
1662 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1663 if test "${ac_cv_host+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 ac_cv_host_alias=$host_alias
1667 test -z "$ac_cv_host_alias" &&
1668 ac_cv_host_alias=$ac_cv_build_alias
1669 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1670 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1671 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1672 { (exit 1); exit 1; }; }
1675 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1676 echo "${ECHO_T}$ac_cv_host" >&6
1678 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683 echo "$as_me:$LINENO: checking target system type" >&5
1684 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1685 if test "${ac_cv_target+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 ac_cv_target_alias=$target_alias
1689 test "x$ac_cv_target_alias" = "x" &&
1690 ac_cv_target_alias=$ac_cv_host_alias
1691 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1692 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1693 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1694 { (exit 1); exit 1; }; }
1697 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1698 echo "${ECHO_T}$ac_cv_target" >&6
1699 target=$ac_cv_target
1700 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1701 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1702 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705 # The aliases save the names the user supplied, while $host etc.
1706 # will get canonicalized.
1707 test -n "$target_alias" &&
1708 test "$program_prefix$program_suffix$program_transform_name" = \
1710 program_prefix=${target_alias}-
1712 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1713 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1714 if test "${llvm_cv_os_type+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 llvm_cv_os_type="AIX"
1720 llvm_cv_platform_type="Unix" ;;
1722 llvm_cv_os_type="Cygwin"
1723 llvm_cv_platform_type="Unix" ;;
1725 llvm_cv_os_type="Darwin"
1726 llvm_cv_platform_type="Unix" ;;
1728 llvm_cv_os_type="FreeBSD"
1729 llvm_cv_platform_type="Unix" ;;
1731 llvm_cv_os_type="OpenBSD"
1732 llvm_cv_platform_type="Unix" ;;
1734 llvm_cv_os_type="HP-UX"
1735 llvm_cv_platform_type="Unix" ;;
1737 llvm_cv_os_type="Interix"
1738 llvm_cv_platform_type="Unix" ;;
1740 llvm_cv_os_type="Linux"
1741 llvm_cv_platform_type="Unix" ;;
1743 llvm_cv_os_type="SunOS"
1744 llvm_cv_platform_type="Unix" ;;
1746 llvm_cv_os_type="Win32"
1747 llvm_cv_platform_type="Win32" ;;
1749 llvm_cv_os_type="MingW"
1750 llvm_cv_platform_type="Win32" ;;
1752 llvm_cv_os_type="Unknown"
1753 llvm_cv_platform_type="Unknown" ;;
1756 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1757 echo "${ECHO_T}$llvm_cv_os_type" >&6
1759 if test "$llvm_cv_os_type" = "Unknown" ; then
1760 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1761 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1762 { (exit 1); exit 1; }; }
1768 case $llvm_cv_platform_type in
1771 cat >>confdefs.h <<\_ACEOF
1772 #define LLVM_ON_UNIX 1
1782 cat >>confdefs.h <<\_ACEOF
1783 #define LLVM_ON_WIN32 1
1793 echo "$as_me:$LINENO: checking target architecture" >&5
1794 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1795 if test "${llvm_cv_target_arch+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 i?86-*) llvm_cv_target_arch="x86" ;;
1800 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1801 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1802 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1803 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1804 ia64-*) llvm_cv_target_arch="IA64" ;;
1805 *) llvm_cv_target_arch="Unknown" ;;
1808 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1809 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1811 if test "$llvm_cv_target_arch" = "Unknown" ; then
1812 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1813 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1816 ARCH=$llvm_cv_target_arch
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824 if test -n "$ac_tool_prefix"; then
1825 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1826 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1861 if test -z "$ac_cv_prog_CC"; then
1863 # Extract the first word of "gcc", so it can be a program name with args.
1864 set dummy gcc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="gcc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1903 if test -z "$CC"; then
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_CC="${ac_tool_prefix}cc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 if test -n "$CC"; then
1933 echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_CC"; then
1943 # Extract the first word of "cc", so it can be a program name with args.
1944 set dummy cc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="cc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1984 if test -z "$CC"; then
1985 # Extract the first word of "cc", so it can be a program name with args.
1986 set dummy cc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2004 ac_prog_rejected=yes
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 if test $ac_prog_rejected = yes; then
2015 # We found a bogon in the path, so make sure we never use it.
2016 set dummy $ac_cv_prog_CC
2018 if test $# != 0; then
2019 # We chose a different compiler from the bogus one.
2020 # However, it has the same basename, so the bogon will be chosen
2021 # first if we set CC to just the basename; use the full file name.
2023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2029 if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$CC"; then
2039 if test -n "$ac_tool_prefix"; then
2042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 if test -n "$CC"; then
2070 echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2077 test -n "$CC" && break
2080 if test -z "$CC"; then
2084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_ac_ct_CC="$ac_prog"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111 if test -n "$ac_ct_CC"; then
2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113 echo "${ECHO_T}$ac_ct_CC" >&6
2115 echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2119 test -n "$ac_ct_CC" && break
2128 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&2;}
2132 { (exit 1); exit 1; }; }
2134 # Provide some information about the compiler.
2135 echo "$as_me:$LINENO:" \
2136 "checking for C compiler version" >&5
2137 ac_compiler=`set X $ac_compile; echo $2`
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139 (eval $ac_compiler --version </dev/null >&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144 (eval $ac_compiler -v </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149 (eval $ac_compiler -V </dev/null >&5) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2154 cat >conftest.$ac_ext <<_ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2169 ac_clean_files_save=$ac_clean_files
2170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2171 # Try to create an executable without -o first, disregard a.out.
2172 # It will help us diagnose broken compilers, and finding out an intuition
2174 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2178 (eval $ac_link_default) 2>&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; then
2182 # Find the output, starting from the most likely. This scheme is
2183 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2186 # Be careful to initialize this variable, since it used to be cached.
2187 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2189 # b.out is created by i960 compilers.
2190 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192 test -f "$ac_file" || continue
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2197 # This is the source file.
2200 # We found the default executable, but exeext='' is most
2204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 # FIXME: I believe we export ac_cv_exeext for Libtool,
2206 # but it would be cool to find out if it's true. Does anybody
2207 # maintain Libtool? --akim.
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2218 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&2;}
2222 { (exit 77); exit 77; }; }
2225 ac_exeext=$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_file" >&5
2227 echo "${ECHO_T}$ac_file" >&6
2229 # Check the compiler produces executables we can run. If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2232 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2233 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2234 # If not cross compiling, check that we can run a simple program.
2235 if test "$cross_compiling" != yes; then
2236 if { ac_try='./$ac_file'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 if test "$cross_compiling" = maybe; then
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2257 echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2266 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6
2269 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2272 (eval $ac_link) 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
2276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
2280 for ac_file in conftest.exe conftest conftest.*; do
2281 test -f "$ac_file" || continue
2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2298 rm -f conftest$ac_cv_exeext
2299 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300 echo "${ECHO_T}$ac_cv_exeext" >&6
2302 rm -f conftest.$ac_ext
2303 EXEEXT=$ac_cv_exeext
2305 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2307 if test "${ac_cv_objext+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 cat >conftest.$ac_ext <<_ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2325 rm -f conftest.o conftest.obj
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6
2353 OBJEXT=$ac_cv_objext
2355 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cat >conftest.$ac_ext <<_ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag"
2388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2411 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2412 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2413 GCC=`test $ac_compiler_gnu = yes && echo yes`
2414 ac_test_CFLAGS=${CFLAGS+set}
2415 ac_save_CFLAGS=$CFLAGS
2417 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 cat >conftest.$ac_ext <<_ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439 (eval $ac_compile) 2>conftest.er1
2441 grep -v '^ *+' conftest.er1 >conftest.err
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_c_werror_flag"
2447 || test ! -s conftest.err'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; } &&
2453 { ac_try='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2469 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2470 if test "$ac_test_CFLAGS" = set; then
2471 CFLAGS=$ac_save_CFLAGS
2472 elif test $ac_cv_prog_cc_g = yes; then
2473 if test "$GCC" = yes; then
2479 if test "$GCC" = yes; then
2485 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2486 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2487 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 ac_cv_prog_cc_stdc=no
2492 cat >conftest.$ac_ext <<_ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2500 #include <sys/types.h>
2501 #include <sys/stat.h>
2502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2503 struct buf { int x; };
2504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2505 static char *e (p, i)
2511 static char *f (char * (*g) (char **, int), char **p, ...)
2516 s = g (p, va_arg (v,int));
2521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2522 function prototypes and stuff, but not '\xHH' hex character constants.
2523 These don't provoke an error unfortunately, instead are silently treated
2524 as 'x'. The following induces an error, until -std1 is added to get
2525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2526 array size at least. It's necessary to write '\x00'==0 to get something
2527 that's true only with -std1. */
2528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2530 int test (int i, double x);
2531 struct s1 {int (*f) (int a);};
2532 struct s2 {int (*f) (double a);};
2533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2539 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2544 # Don't try gcc -ansi; that turns off useful extensions and
2545 # breaks some systems' header files.
2546 # AIX -qlanglvl=ansi
2547 # Ultrix and OSF/1 -std1
2548 # HP-UX 10.20 and later -Ae
2549 # HP-UX older versions -Aa -D_HPUX_SOURCE
2550 # SVR4 -Xc -D__EXTENSIONS__
2551 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2553 CC="$ac_save_CC $ac_arg"
2554 rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>conftest.er1
2558 grep -v '^ *+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 ac_cv_prog_cc_stdc=$ac_arg
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f conftest.err conftest.$ac_objext
2585 rm -f conftest.$ac_ext conftest.$ac_objext
2590 case "x$ac_cv_prog_cc_stdc" in
2592 echo "$as_me:$LINENO: result: none needed" >&5
2593 echo "${ECHO_T}none needed" >&6 ;;
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2597 CC="$CC $ac_cv_prog_cc_stdc" ;;
2600 # Some people use a C++ compiler to compile C. Since we use `exit',
2601 # in C++ we need to declare it. In case someone uses the same compiler
2602 # for both compiling C and C++ we need to have the C++ compiler decide
2603 # the declaration of exit, since it's the most demanding environment.
2604 cat >conftest.$ac_ext <<_ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>conftest.er1
2613 grep -v '^ *+' conftest.er1 >conftest.err
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
2618 { ac_try='test -z "$ac_c_werror_flag"
2619 || test ! -s conftest.err'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 for ac_declaration in \
2633 'extern "C" void std::exit (int) throw (); using std::exit;' \
2634 'extern "C" void std::exit (int); using std::exit;' \
2635 'extern "C" void exit (int) throw ();' \
2636 'extern "C" void exit (int);' \
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 if test -n "$ac_declaration"; then
2732 echo '#ifdef __cplusplus' >>confdefs.h
2733 echo $ac_declaration >>confdefs.h
2734 echo '#endif' >>confdefs.h
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2751 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2752 if test "${ac_cv_c_bigendian+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 # See if sys/param.h defines the BYTE_ORDER macro.
2756 cat >conftest.$ac_ext <<_ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2762 #include <sys/types.h>
2763 #include <sys/param.h>
2768 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_c_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 # It does; now see whether it defined to BIG_ENDIAN or not.
2799 cat >conftest.$ac_ext <<_ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2805 #include <sys/types.h>
2806 #include <sys/param.h>
2811 #if BYTE_ORDER != BIG_ENDIAN
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 ac_cv_c_bigendian=yes
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 ac_cv_c_bigendian=no
2848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # It does not; compile a test program.
2854 if test "$cross_compiling" = yes; then
2855 # try to guess the endianness by grepping values into an object file
2856 ac_cv_c_bigendian=unknown
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2863 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2864 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2865 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2866 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2867 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2868 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2872 _ascii (); _ebcdic ();
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879 (eval $ac_compile) 2>conftest.er1
2881 grep -v '^ *+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -z "$ac_c_werror_flag"
2887 || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2900 ac_cv_c_bigendian=yes
2902 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2903 if test "$ac_cv_c_bigendian" = unknown; then
2904 ac_cv_c_bigendian=no
2906 # finding both strings is unlikely to happen, but who knows?
2907 ac_cv_c_bigendian=unknown
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2926 /* Are we little or big endian? From Harbison&Steele. */
2930 char c[sizeof (long)];
2933 exit (u.c[sizeof (long) - 1] == 1);
2936 rm -f conftest$ac_exeext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2938 (eval $ac_link) 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 ac_cv_c_bigendian=no
2949 echo "$as_me: program exited with status $ac_status" >&5
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2954 ac_cv_c_bigendian=yes
2956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2962 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2963 case $ac_cv_c_bigendian in
2971 { { echo "$as_me:$LINENO: error: unknown endianness
2972 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2973 echo "$as_me: error: unknown endianness
2974 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2975 { (exit 1); exit 1; }; } ;;
2979 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2990 # Check whether --enable-optimized or --disable-optimized was given.
2991 if test "${enable_optimized+set}" = set; then
2992 enableval="$enable_optimized"
2997 if test ${enableval} = "no" ; then
3001 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3005 # Check whether --enable-assertions or --disable-assertions was given.
3006 if test "${enable_assertions+set}" = set; then
3007 enableval="$enable_assertions"
3012 if test ${enableval} = "yes" ; then
3016 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3020 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3021 if test "${enable_debug_runtime+set}" = set; then
3022 enableval="$enable_debug_runtime"
3027 if test ${enableval} = "no" ; then
3031 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3035 # Check whether --enable-jit or --disable-jit was given.
3036 if test "${enable_jit+set}" = set; then
3037 enableval="$enable_jit"
3042 if test ${enableval} = "no"
3047 case "$llvm_cv_target_arch" in
3048 x86) TARGET_HAS_JIT=1
3050 Sparc) TARGET_HAS_JIT=1
3052 PowerPC) TARGET_HAS_JIT=1
3054 x86_64) TARGET_HAS_JIT=0
3056 Alpha) TARGET_HAS_JIT=1
3058 IA64) TARGET_HAS_JIT=0
3065 # Check whether --enable-doxygen or --disable-doxygen was given.
3066 if test "${enable_doxygen+set}" = set; then
3067 enableval="$enable_doxygen"
3072 case "$enableval" in
3073 yes) ENABLE_DOXYGEN=1
3075 no) ENABLE_DOXYGEN=0
3077 default) ENABLE_DOXYGEN=0
3079 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3080 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3081 { (exit 1); exit 1; }; } ;;
3084 # Check whether --enable-threads or --disable-threads was given.
3085 if test "${enable_threads+set}" = set; then
3086 enableval="$enable_threads"
3091 case "$enableval" in
3092 yes) ENABLE_THREADS=1
3094 no) ENABLE_THREADS=0
3096 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3097 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3098 { (exit 1); exit 1; }; } ;;
3101 cat >>confdefs.h <<_ACEOF
3102 #define ENABLE_THREADS $ENABLE_THREADS
3107 # Check whether --enable-targets or --disable-targets was given.
3108 if test "${enable_targets+set}" = set; then
3109 enableval="$enable_targets"
3114 case "$enableval" in
3115 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3117 case "$llvm_cv_target_arch" in
3118 x86) TARGETS_TO_BUILD="X86" ;;
3119 x86_64) TARGETS_TO_BUILD="X86" ;;
3120 Sparc) TARGETS_TO_BUILD="Sparc" ;;
3121 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3122 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3123 IA64) TARGETS_TO_BUILD="IA64" ;;
3124 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3125 echo "$as_me: error: Can not set target to build" >&2;}
3126 { (exit 1); exit 1; }; } ;;
3129 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3131 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3132 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3133 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3134 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3135 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3136 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3137 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3138 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3139 { (exit 1); exit 1; }; } ;;
3144 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3145 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3149 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3150 if test "${with_llvmgccdir+set}" = set; then
3151 withval="$with_llvmgccdir"
3157 default) WITH_LLVMGCCDIR=default ;;
3158 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
3159 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3160 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3161 { (exit 1); exit 1; }; } ;;
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3172 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3173 # On Suns, sometimes $CPP names a directory.
3174 if test -n "$CPP" && test -d "$CPP"; then
3177 if test -z "$CPP"; then
3178 if test "${ac_cv_prog_CPP+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 # Double quotes because CPP needs to be expanded
3182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3185 for ac_c_preproc_warn_flag in '' yes
3187 # Use a header file that comes with gcc, so configuring glibc
3188 # with a fresh cross-compiler works.
3189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190 # <limits.h> exists even on freestanding compilers.
3191 # On the NeXT, cc -E runs the code through the compiler's parser,
3192 # not just through cpp. "Syntax error" is here to catch this case.
3193 cat >conftest.$ac_ext <<_ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3200 # include <limits.h>
3202 # include <assert.h>
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3209 grep -v '^ *+' conftest.er1 >conftest.err
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null; then
3214 if test -s conftest.err; then
3215 ac_cpp_err=$ac_c_preproc_warn_flag
3216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3223 if test -z "$ac_cpp_err"; then
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 # Broken: fails on valid input.
3232 rm -f conftest.err conftest.$ac_ext
3234 # OK, works on sane cases. Now check whether non-existent headers
3235 # can be detected and how.
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <ac_nonexistent.h>
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261 if test -z "$ac_cpp_err"; then
3262 # Broken: success on invalid input.
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 # Passes both tests.
3272 rm -f conftest.err conftest.$ac_ext
3275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3276 rm -f conftest.err conftest.$ac_ext
3277 if $ac_preproc_ok; then
3289 echo "$as_me:$LINENO: result: $CPP" >&5
3290 echo "${ECHO_T}$CPP" >&6
3292 for ac_c_preproc_warn_flag in '' yes
3294 # Use a header file that comes with gcc, so configuring glibc
3295 # with a fresh cross-compiler works.
3296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3297 # <limits.h> exists even on freestanding compilers.
3298 # On the NeXT, cc -E runs the code through the compiler's parser,
3299 # not just through cpp. "Syntax error" is here to catch this case.
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3307 # include <limits.h>
3309 # include <assert.h>
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null; then
3321 if test -s conftest.err; then
3322 ac_cpp_err=$ac_c_preproc_warn_flag
3323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3330 if test -z "$ac_cpp_err"; then
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 # Broken: fails on valid input.
3339 rm -f conftest.err conftest.$ac_ext
3341 # OK, works on sane cases. Now check whether non-existent headers
3342 # can be detected and how.
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <ac_nonexistent.h>
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368 if test -z "$ac_cpp_err"; then
3369 # Broken: success on invalid input.
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 # Passes both tests.
3379 rm -f conftest.err conftest.$ac_ext
3382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3383 rm -f conftest.err conftest.$ac_ext
3384 if $ac_preproc_ok; then
3387 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3388 See \`config.log' for more details." >&5
3389 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3390 See \`config.log' for more details." >&2;}
3391 { (exit 1); exit 1; }; }
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3412 if test "${ac_cv_prog_CC+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 if test -n "$CC"; then
3436 echo "$as_me:$LINENO: result: $CC" >&5
3437 echo "${ECHO_T}$CC" >&6
3439 echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3443 test -n "$CC" && break
3446 if test -z "$CC"; then
3450 # Extract the first word of "$ac_prog", so it can be a program name with args.
3451 set dummy $ac_prog; ac_word=$2
3452 echo "$as_me:$LINENO: checking for $ac_word" >&5
3453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_ac_ct_CC="$ac_prog"
3468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3479 echo "${ECHO_T}$ac_ct_CC" >&6
3481 echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3485 test -n "$ac_ct_CC" && break
3492 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3493 See \`config.log' for more details." >&5
3494 echo "$as_me: error: no acceptable C compiler found in \$PATH
3495 See \`config.log' for more details." >&2;}
3496 { (exit 1); exit 1; }; }
3498 # Provide some information about the compiler.
3499 echo "$as_me:$LINENO:" \
3500 "checking for C compiler version" >&5
3501 ac_compiler=`set X $ac_compile; echo $2`
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3503 (eval $ac_compiler --version </dev/null >&5) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3508 (eval $ac_compiler -v </dev/null >&5) 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3513 (eval $ac_compiler -V </dev/null >&5) 2>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }
3518 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3519 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3520 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3574 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3575 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3576 GCC=`test $ac_compiler_gnu = yes && echo yes`
3577 ac_test_CFLAGS=${CFLAGS+set}
3578 ac_save_CFLAGS=$CFLAGS
3580 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3581 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3582 if test "${ac_cv_prog_cc_g+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3600 rm -f conftest.$ac_objext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602 (eval $ac_compile) 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -z "$ac_c_werror_flag"
3610 || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3633 if test "$ac_test_CFLAGS" = set; then
3634 CFLAGS=$ac_save_CFLAGS
3635 elif test $ac_cv_prog_cc_g = yes; then
3636 if test "$GCC" = yes; then
3642 if test "$GCC" = yes; then
3648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 ac_cv_prog_cc_stdc=no
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3663 #include <sys/types.h>
3664 #include <sys/stat.h>
3665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3666 struct buf { int x; };
3667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668 static char *e (p, i)
3674 static char *f (char * (*g) (char **, int), char **p, ...)
3679 s = g (p, va_arg (v,int));
3684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3685 function prototypes and stuff, but not '\xHH' hex character constants.
3686 These don't provoke an error unfortunately, instead are silently treated
3687 as 'x'. The following induces an error, until -std1 is added to get
3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3689 array size at least. It's necessary to write '\x00'==0 to get something
3690 that's true only with -std1. */
3691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3707 # Don't try gcc -ansi; that turns off useful extensions and
3708 # breaks some systems' header files.
3709 # AIX -qlanglvl=ansi
3710 # Ultrix and OSF/1 -std1
3711 # HP-UX 10.20 and later -Ae
3712 # HP-UX older versions -Aa -D_HPUX_SOURCE
3713 # SVR4 -Xc -D__EXTENSIONS__
3714 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 CC="$ac_save_CC $ac_arg"
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_cv_prog_cc_stdc=$ac_arg
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3746 rm -f conftest.err conftest.$ac_objext
3748 rm -f conftest.$ac_ext conftest.$ac_objext
3753 case "x$ac_cv_prog_cc_stdc" in
3755 echo "$as_me:$LINENO: result: none needed" >&5
3756 echo "${ECHO_T}none needed" >&6 ;;
3758 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3759 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3760 CC="$CC $ac_cv_prog_cc_stdc" ;;
3763 # Some people use a C++ compiler to compile C. Since we use `exit',
3764 # in C++ we need to declare it. In case someone uses the same compiler
3765 # for both compiling C and C++ we need to have the C++ compiler decide
3766 # the declaration of exit, since it's the most demanding environment.
3767 cat >conftest.$ac_ext <<_ACEOF
3772 rm -f conftest.$ac_objext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -z "$ac_c_werror_flag"
3782 || test ! -s conftest.err'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; } &&
3788 { ac_try='test -s conftest.$ac_objext'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 for ac_declaration in \
3796 'extern "C" void std::exit (int) throw (); using std::exit;' \
3797 'extern "C" void std::exit (int); using std::exit;' \
3798 'extern "C" void exit (int) throw ();' \
3799 'extern "C" void exit (int);' \
3802 cat >conftest.$ac_ext <<_ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3818 rm -f conftest.$ac_objext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820 (eval $ac_compile) 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } &&
3827 { ac_try='test -z "$ac_c_werror_flag"
3828 || test ! -s conftest.err'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; } &&
3834 { ac_try='test -s conftest.$ac_objext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>conftest.er1
3867 grep -v '^ *+' conftest.er1 >conftest.err
3869 cat conftest.err >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -z "$ac_c_werror_flag"
3873 || test ! -s conftest.err'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; } &&
3879 { ac_try='test -s conftest.$ac_objext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894 if test -n "$ac_declaration"; then
3895 echo '#ifdef __cplusplus' >>confdefs.h
3896 echo $ac_declaration >>confdefs.h
3897 echo '#endif' >>confdefs.h
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 ac_cpp='$CXXCPP $CPPFLAGS'
3914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3917 if test -n "$ac_tool_prefix"; then
3918 for ac_prog in $CCC g++
3920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_CXX+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$CXX"; then
3928 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 if test -n "$CXX"; then
3948 echo "$as_me:$LINENO: result: $CXX" >&5
3949 echo "${ECHO_T}$CXX" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 test -n "$CXX" && break
3958 if test -z "$CXX"; then
3960 for ac_prog in $CCC g++
3962 # Extract the first word of "$ac_prog", so it can be a program name with args.
3963 set dummy $ac_prog; ac_word=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 if test -n "$ac_ct_CXX"; then
3970 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_CXX="$ac_prog"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3989 if test -n "$ac_ct_CXX"; then
3990 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3991 echo "${ECHO_T}$ac_ct_CXX" >&6
3993 echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3997 test -n "$ac_ct_CXX" && break
3999 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4005 # Provide some information about the compiler.
4006 echo "$as_me:$LINENO:" \
4007 "checking for C++ compiler version" >&5
4008 ac_compiler=`set X $ac_compile; echo $2`
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4010 (eval $ac_compiler --version </dev/null >&5) 2>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4015 (eval $ac_compiler -v </dev/null >&5) 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4019 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4020 (eval $ac_compiler -V </dev/null >&5) 2>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }
4025 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4026 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4027 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4048 rm -f conftest.$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>conftest.er1
4052 grep -v '^ *+' conftest.er1 >conftest.err
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } &&
4057 { ac_try='test -z "$ac_cxx_werror_flag"
4058 || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4081 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4083 GXX=`test $ac_compiler_gnu = yes && echo yes`
4084 ac_test_CXXFLAGS=${CXXFLAGS+set}
4085 ac_save_CXXFLAGS=$CXXFLAGS
4087 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4088 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4089 if test "${ac_cv_prog_cxx_g+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_cxx_werror_flag"
4117 || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_prog_cxx_g=yes
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4139 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4140 if test "$ac_test_CXXFLAGS" = set; then
4141 CXXFLAGS=$ac_save_CXXFLAGS
4142 elif test $ac_cv_prog_cxx_g = yes; then
4143 if test "$GXX" = yes; then
4149 if test "$GXX" = yes; then
4155 for ac_declaration in \
4157 'extern "C" void std::exit (int) throw (); using std::exit;' \
4158 'extern "C" void std::exit (int); using std::exit;' \
4159 'extern "C" void exit (int) throw ();' \
4160 'extern "C" void exit (int);' \
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_cxx_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_cxx_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 if test -n "$ac_declaration"; then
4256 echo '#ifdef __cplusplus' >>confdefs.h
4257 echo $ac_declaration >>confdefs.h
4258 echo '#endif' >>confdefs.h
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267 echo "$as_me:$LINENO: checking " >&5
4268 echo $ECHO_N "checking ... $ECHO_C" >&6
4269 if test "${ac_cv_has_flex+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 for ac_prog in flex lex
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_LEX+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 if test -n "$LEX"; then
4282 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_LEX="$ac_prog"
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 if test -n "$LEX"; then
4302 echo "$as_me:$LINENO: result: $LEX" >&5
4303 echo "${ECHO_T}$LEX" >&6
4305 echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4309 test -n "$LEX" && break
4311 test -n "$LEX" || LEX=":"
4313 if test -z "$LEXLIB"
4315 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4316 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4317 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 ac_check_lib_save_LIBS=$LIBS
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4329 /* Override any gcc2 internal prototype to avoid an error. */
4333 /* We use char because int might match the return type of a gcc2
4334 builtin and then its argument prototype would still apply. */
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_lib_fl_yywrap=yes
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 ac_cv_lib_fl_yywrap=no
4373 rm -f conftest.err conftest.$ac_objext \
4374 conftest$ac_exeext conftest.$ac_ext
4375 LIBS=$ac_check_lib_save_LIBS
4377 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4378 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4379 if test $ac_cv_lib_fl_yywrap = yes; then
4382 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4383 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4384 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 ac_check_lib_save_LIBS=$LIBS
4389 cat >conftest.$ac_ext <<_ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4396 /* Override any gcc2 internal prototype to avoid an error. */
4400 /* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4413 (eval $ac_link) 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -z "$ac_c_werror_flag"
4421 || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest$ac_exeext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_lib_l_yywrap=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_cv_lib_l_yywrap=no
4440 rm -f conftest.err conftest.$ac_objext \
4441 conftest$ac_exeext conftest.$ac_ext
4442 LIBS=$ac_check_lib_save_LIBS
4444 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4445 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4446 if test $ac_cv_lib_l_yywrap = yes; then
4454 if test "x$LEX" != "x:"; then
4455 echo "$as_me:$LINENO: checking lex output file root" >&5
4456 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4457 if test "${ac_cv_prog_lex_root+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 # The minimal lex program is just a single line: %%. But some broken lexes
4461 # (Solaris, I think it was) want two %% lines, so accommodate them.
4462 cat >conftest.l <<_ACEOF
4466 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4467 (eval $LEX conftest.l) 2>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }
4471 if test -f lex.yy.c; then
4472 ac_cv_prog_lex_root=lex.yy
4473 elif test -f lexyy.c; then
4474 ac_cv_prog_lex_root=lexyy
4476 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4477 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4478 { (exit 1); exit 1; }; }
4481 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4482 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4484 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4486 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4487 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4488 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 # POSIX says lex can declare yytext either as a pointer or an array; the
4492 # default is implementation-dependent. Figure out which it is, since
4493 # not all implementations provide the %pointer and %array declarations.
4494 ac_cv_prog_lex_yytext_pointer=no
4495 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4497 LIBS="$LIBS $LEXLIB"
4498 cat >conftest.$ac_ext <<_ACEOF
4499 `cat $LEX_OUTPUT_ROOT.c`
4501 rm -f conftest.$ac_objext conftest$ac_exeext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4503 (eval $ac_link) 2>conftest.er1
4505 grep -v '^ *+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -z "$ac_c_werror_flag"
4511 || test ! -s conftest.err'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; } &&
4517 { ac_try='test -s conftest$ac_exeext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 ac_cv_prog_lex_yytext_pointer=yes
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4529 rm -f conftest.err conftest.$ac_objext \
4530 conftest$ac_exeext conftest.$ac_ext
4532 rm -f "${LEX_OUTPUT_ROOT}.c"
4535 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4536 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4537 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4539 cat >>confdefs.h <<\_ACEOF
4540 #define YYTEXT_POINTER 1
4548 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4549 echo "${ECHO_T}$ac_cv_has_flex" >&6
4550 if test "$LEX" != "flex"; then
4551 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4552 echo "$as_me: error: flex not found but required" >&2;}
4553 { (exit 1); exit 1; }; }
4559 echo "$as_me:$LINENO: checking " >&5
4560 echo $ECHO_N "checking ... $ECHO_C" >&6
4561 if test "${llvm_cv_has_bison+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 for ac_prog in 'bison -y' byacc
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy $ac_prog; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_YACC+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 if test -n "$YACC"; then
4574 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_YACC="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 YACC=$ac_cv_prog_YACC
4593 if test -n "$YACC"; then
4594 echo "$as_me:$LINENO: result: $YACC" >&5
4595 echo "${ECHO_T}$YACC" >&6
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$YACC" && break
4603 test -n "$YACC" || YACC="yacc"
4606 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4607 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4608 if test "$YACC" != "bison -y"; then
4609 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4610 echo "$as_me: error: bison not found but required" >&2;}
4611 { (exit 1); exit 1; }; }
4617 echo "$as_me:$LINENO: checking for GNU make" >&5
4618 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4619 if test "${llvm_cv_gnu_make_command+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 llvm_cv_gnu_make_command=''
4623 for a in "$MAKE" make gmake gnumake ; do
4624 if test -z "$a" ; then continue ; fi ;
4625 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4627 llvm_cv_gnu_make_command=$a ;
4632 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4633 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4634 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4638 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4639 echo "${ECHO_T}\"Not found\"" >&6;
4643 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4646 if test "$LN_S" = "ln -s"; then
4647 echo "$as_me:$LINENO: result: yes" >&5
4648 echo "${ECHO_T}yes" >&6
4650 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4651 echo "${ECHO_T}no, using $LN_S" >&6
4654 # Extract the first word of "cmp", so it can be a program name with args.
4655 set dummy cmp; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_path_CMP+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4686 if test -n "$CMP"; then
4687 echo "$as_me:$LINENO: result: $CMP" >&5
4688 echo "${ECHO_T}$CMP" >&6
4690 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4694 # Extract the first word of "cp", so it can be a program name with args.
4695 set dummy cp; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_path_CP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4726 if test -n "$CP"; then
4727 echo "$as_me:$LINENO: result: $CP" >&5
4728 echo "${ECHO_T}$CP" >&6
4730 echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4734 # Extract the first word of "date", so it can be a program name with args.
4735 set dummy date; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_path_DATE+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4764 DATE=$ac_cv_path_DATE
4766 if test -n "$DATE"; then
4767 echo "$as_me:$LINENO: result: $DATE" >&5
4768 echo "${ECHO_T}$DATE" >&6
4770 echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4774 # Extract the first word of "find", so it can be a program name with args.
4775 set dummy find; ac_word=$2
4776 echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_path_FIND+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4804 FIND=$ac_cv_path_FIND
4806 if test -n "$FIND"; then
4807 echo "$as_me:$LINENO: result: $FIND" >&5
4808 echo "${ECHO_T}$FIND" >&6
4810 echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4814 # Extract the first word of "grep", so it can be a program name with args.
4815 set dummy grep; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_path_GREP+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4844 GREP=$ac_cv_path_GREP
4846 if test -n "$GREP"; then
4847 echo "$as_me:$LINENO: result: $GREP" >&5
4848 echo "${ECHO_T}$GREP" >&6
4850 echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6
4854 # Extract the first word of "mkdir", so it can be a program name with args.
4855 set dummy mkdir; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_path_MKDIR+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4884 MKDIR=$ac_cv_path_MKDIR
4886 if test -n "$MKDIR"; then
4887 echo "$as_me:$LINENO: result: $MKDIR" >&5
4888 echo "${ECHO_T}$MKDIR" >&6
4890 echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6
4894 # Extract the first word of "mv", so it can be a program name with args.
4895 set dummy mv; ac_word=$2
4896 echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4898 if test "${ac_cv_path_MV+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4926 if test -n "$MV"; then
4927 echo "$as_me:$LINENO: result: $MV" >&5
4928 echo "${ECHO_T}$MV" >&6
4930 echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4937 echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939 if test "${ac_cv_prog_RANLIB+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 if test -n "$RANLIB"; then
4943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 RANLIB=$ac_cv_prog_RANLIB
4962 if test -n "$RANLIB"; then
4963 echo "$as_me:$LINENO: result: $RANLIB" >&5
4964 echo "${ECHO_T}$RANLIB" >&6
4966 echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4971 if test -z "$ac_cv_prog_RANLIB"; then
4972 ac_ct_RANLIB=$RANLIB
4973 # Extract the first word of "ranlib", so it can be a program name with args.
4974 set dummy ranlib; ac_word=$2
4975 echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test -n "$ac_ct_RANLIB"; then
4981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990 ac_cv_prog_ac_ct_RANLIB="ranlib"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5001 if test -n "$ac_ct_RANLIB"; then
5002 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5003 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5005 echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5009 RANLIB=$ac_ct_RANLIB
5011 RANLIB="$ac_cv_prog_RANLIB"
5014 # Extract the first word of "rm", so it can be a program name with args.
5015 set dummy rm; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_path_RM+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5046 if test -n "$RM"; then
5047 echo "$as_me:$LINENO: result: $RM" >&5
5048 echo "${ECHO_T}$RM" >&6
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5054 # Extract the first word of "sed", so it can be a program name with args.
5055 set dummy sed; ac_word=$2
5056 echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058 if test "${ac_cv_path_SED+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5086 if test -n "$SED"; then
5087 echo "$as_me:$LINENO: result: $SED" >&5
5088 echo "${ECHO_T}$SED" >&6
5090 echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6
5094 # Extract the first word of "tar", so it can be a program name with args.
5095 set dummy tar; ac_word=$2
5096 echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5098 if test "${ac_cv_path_TAR+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5126 if test -n "$TAR"; then
5127 echo "$as_me:$LINENO: result: $TAR" >&5
5128 echo "${ECHO_T}$TAR" >&6
5130 echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5135 # Extract the first word of "Graphviz", so it can be a program name with args.
5136 set dummy Graphviz; ac_word=$2
5137 echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5165 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5167 if test -n "$GRAPHVIZ"; then
5168 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5169 echo "${ECHO_T}$GRAPHVIZ" >&6
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5175 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5177 cat >>confdefs.h <<\_ACEOF
5178 #define HAVE_GRAPHVIZ 1
5181 if test "$llvm_cv_os_type" == "MingW" ; then
5182 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5185 cat >>confdefs.h <<_ACEOF
5186 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5190 # Extract the first word of "dot", so it can be a program name with args.
5191 set dummy dot; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_path_DOT+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5222 if test -n "$DOT"; then
5223 echo "$as_me:$LINENO: result: $DOT" >&5
5224 echo "${ECHO_T}$DOT" >&6
5226 echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6
5230 if test "$DOT" != "echo dot" ; then
5232 cat >>confdefs.h <<\_ACEOF
5236 if test "$llvm_cv_os_type" == "MingW" ; then
5237 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5240 cat >>confdefs.h <<_ACEOF
5241 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5245 for ac_prog in gv gsview32
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251 if test "${ac_cv_path_GV+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 if test -n "$GV"; then
5279 echo "$as_me:$LINENO: result: $GV" >&5
5280 echo "${ECHO_T}$GV" >&6
5282 echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5286 test -n "$GV" && break
5288 test -n "$GV" || GV="echo gv"
5290 if test "$GV" != "echo gv" ; then
5292 cat >>confdefs.h <<\_ACEOF
5296 if test "$llvm_cv_os_type" == "MingW" ; then
5297 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5300 cat >>confdefs.h <<_ACEOF
5301 #define LLVM_PATH_GV "$GV${EXEEXT}"
5305 # Extract the first word of "dotty", so it can be a program name with args.
5306 set dummy dotty; ac_word=$2
5307 echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309 if test "${ac_cv_path_DOTTY+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5335 DOTTY=$ac_cv_path_DOTTY
5337 if test -n "$DOTTY"; then
5338 echo "$as_me:$LINENO: result: $DOTTY" >&5
5339 echo "${ECHO_T}$DOTTY" >&6
5341 echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5345 if test "$DOTTY" != "echo dotty" ; then
5347 cat >>confdefs.h <<\_ACEOF
5348 #define HAVE_DOTTY 1
5351 if test "$llvm_cv_os_type" == "MingW" ; then
5352 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5362 # Extract the first word of "perl", so it can be a program name with args.
5363 set dummy perl; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_path_PERL+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5392 PERL=$ac_cv_path_PERL
5394 if test -n "$PERL"; then
5395 echo "$as_me:$LINENO: result: $PERL" >&5
5396 echo "${ECHO_T}$PERL" >&6
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5402 if test "$PERL" != "none"; then
5403 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5404 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5405 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5406 echo "$as_me:$LINENO: result: yes" >&5
5407 echo "${ECHO_T}yes" >&6
5410 echo "$as_me:$LINENO: result: not found" >&5
5411 echo "${ECHO_T}not found" >&6
5416 if test x"$PERL" = xnone; then
5424 # Find a good install program. We prefer a C program (faster),
5425 # so one script is as good as another. But avoid the broken or
5426 # incompatible versions:
5427 # SysV /etc/install, /usr/sbin/install
5428 # SunOS /usr/etc/install
5429 # IRIX /sbin/install
5431 # AmigaOS /C/install, which installs bootblocks on floppy discs
5432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5435 # OS/2's system install, which has a completely different semantic
5436 # ./install, which can be erroneously created by make from ./install.sh.
5437 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5438 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5439 if test -z "$INSTALL"; then
5440 if test "${ac_cv_path_install+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 # Account for people who put trailing slashes in PATH elements.
5450 ./ | .// | /cC/* | \
5451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5452 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5455 # OSF1 and SCO ODT 3.0 have their own names for install.
5456 # Don't use installbsd from OSF since it installs stuff as root
5458 for ac_prog in ginstall scoinst install; do
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5461 if test $ac_prog = install &&
5462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5463 # AIX install. It has an incompatible calling convention.
5465 elif test $ac_prog = install &&
5466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5467 # program-specific install script used by HP pwplus--don't use.
5470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5482 if test "${ac_cv_path_install+set}" = set; then
5483 INSTALL=$ac_cv_path_install
5485 # As a last resort, use the slow shell script. We don't cache a
5486 # path for INSTALL within a source directory, because that will
5487 # break other packages using the cache if that directory is
5488 # removed, or if the path is relative.
5489 INSTALL=$ac_install_sh
5492 echo "$as_me:$LINENO: result: $INSTALL" >&5
5493 echo "${ECHO_T}$INSTALL" >&6
5495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5496 # It thinks the first close brace ends the variable substitution.
5497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5504 # Extract the first word of "bzip2", so it can be a program name with args.
5505 set dummy bzip2; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_path_BZIP2+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5534 BZIP2=$ac_cv_path_BZIP2
5536 if test -n "$BZIP2"; then
5537 echo "$as_me:$LINENO: result: $BZIP2" >&5
5538 echo "${ECHO_T}$BZIP2" >&6
5540 echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6
5544 # Extract the first word of "doxygen", so it can be a program name with args.
5545 set dummy doxygen; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5574 DOXYGEN=$ac_cv_path_DOXYGEN
5576 if test -n "$DOXYGEN"; then
5577 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5578 echo "${ECHO_T}$DOXYGEN" >&6
5580 echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5584 # Extract the first word of "etags", so it can be a program name with args.
5585 set dummy etags; ac_word=$2
5586 echo "$as_me:$LINENO: checking for $ac_word" >&5
5587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588 if test "${ac_cv_path_ETAGS+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5614 ETAGS=$ac_cv_path_ETAGS
5616 if test -n "$ETAGS"; then
5617 echo "$as_me:$LINENO: result: $ETAGS" >&5
5618 echo "${ECHO_T}$ETAGS" >&6
5620 echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5624 # Extract the first word of "groff", so it can be a program name with args.
5625 set dummy groff; ac_word=$2
5626 echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_path_GROFF+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5654 GROFF=$ac_cv_path_GROFF
5656 if test -n "$GROFF"; then
5657 echo "$as_me:$LINENO: result: $GROFF" >&5
5658 echo "${ECHO_T}$GROFF" >&6
5660 echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5664 # Extract the first word of "gzip", so it can be a program name with args.
5665 set dummy gzip; ac_word=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_path_GZIP+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5694 GZIP=$ac_cv_path_GZIP
5696 if test -n "$GZIP"; then
5697 echo "$as_me:$LINENO: result: $GZIP" >&5
5698 echo "${ECHO_T}$GZIP" >&6
5700 echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5704 # Extract the first word of "pod2html", so it can be a program name with args.
5705 set dummy pod2html; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_path_POD2HTML+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5734 POD2HTML=$ac_cv_path_POD2HTML
5736 if test -n "$POD2HTML"; then
5737 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5738 echo "${ECHO_T}$POD2HTML" >&6
5740 echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5744 # Extract the first word of "pod2man", so it can be a program name with args.
5745 set dummy pod2man; ac_word=$2
5746 echo "$as_me:$LINENO: checking for $ac_word" >&5
5747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5748 if test "${ac_cv_path_POD2MAN+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5774 POD2MAN=$ac_cv_path_POD2MAN
5776 if test -n "$POD2MAN"; then
5777 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5778 echo "${ECHO_T}$POD2MAN" >&6
5780 echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6
5784 # Extract the first word of "runtest", so it can be a program name with args.
5785 set dummy runtest; ac_word=$2
5786 echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788 if test "${ac_cv_path_RUNTEST+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5814 RUNTEST=$ac_cv_path_RUNTEST
5816 if test -n "$RUNTEST"; then
5817 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5818 echo "${ECHO_T}$RUNTEST" >&6
5820 echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5826 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5827 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5829 # Check whether --with-tclinclude or --without-tclinclude was given.
5830 if test "${with_tclinclude+set}" = set; then
5831 withval="$with_tclinclude"
5832 with_tclinclude=${withval}
5836 if test "${ac_cv_path_tclsh+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 if test x"${with_tclinclude}" != x ; then
5841 if test -f ${with_tclinclude}/tclsh ; then
5842 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5843 elif test -f ${with_tclinclude}/src/tclsh ; then
5844 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5846 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5847 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5848 { (exit 1); exit 1; }; }
5852 if test x"${ac_cv_path_tclsh}" = x ; then
5853 echo "$as_me:$LINENO: result: none" >&5
5854 echo "${ECHO_T}none" >&6
5855 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5857 # Extract the first word of "$ac_prog", so it can be a program name with args.
5858 set dummy $ac_prog; ac_word=$2
5859 echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861 if test "${ac_cv_path_TCLSH+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 TCLSH=$ac_cv_path_TCLSH
5888 if test -n "$TCLSH"; then
5889 echo "$as_me:$LINENO: result: $TCLSH" >&5
5890 echo "${ECHO_T}$TCLSH" >&6
5892 echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5896 test -n "$TCLSH" && break
5899 if test x"${TCLSH}" = x ; then
5900 ac_cv_path_tclsh='';
5902 ac_cv_path_tclsh="${TCLSH}";
5905 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5906 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5907 TCLSH="${ac_cv_path_tclsh}"
5913 # Extract the first word of "zip", so it can be a program name with args.
5914 set dummy zip; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_path_ZIP+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5945 if test -n "$ZIP"; then
5946 echo "$as_me:$LINENO: result: $ZIP" >&5
5947 echo "${ECHO_T}$ZIP" >&6
5949 echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5954 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5955 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5956 if test "${llvm_cv_link_use_r+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5966 CFLAGS="$CFLAGS -Wl,-R."
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5977 int main() { return 0; }
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest$ac_exeext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 llvm_cv_link_use_r=yes
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 llvm_cv_link_use_r=no
6011 rm -f conftest.err conftest.$ac_objext \
6012 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
6022 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6023 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6024 if test "$llvm_cv_link_use_r" = yes ; then
6026 cat >>confdefs.h <<\_ACEOF
6027 #define HAVE_LINK_R 1
6035 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6036 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6037 if test "${ac_cv_c_const+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. */
6050 /* FIXME: Include the comments suggested by Paul. */
6052 /* Ultrix mips cc rejects this. */
6053 typedef int charset[2];
6055 /* SunOS 4.1.1 cc rejects this. */
6056 char const *const *ccp;
6058 /* NEC SVR4.0.2 mips cc rejects this. */
6059 struct point {int x, y;};
6060 static struct point const zero = {0,0};
6061 /* AIX XL C 1.02.0.0 rejects this.
6062 It does not let you subtract one const X* pointer from another in
6063 an arm of an if-expression whose if-part is not a constant
6065 const char *g = "string";
6066 ccp = &g + (g ? g-g : 0);
6067 /* HPUX 7.0 cc rejects these. */
6070 ccp = (char const *const *) p;
6071 { /* SCO 3.2v4 cc rejects this. */
6073 char const *s = 0 ? (char *) 0 : (char const *) 0;
6077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6079 const int *foo = &x[0];
6082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6083 typedef const int *iptr;
6087 { /* AIX XL C 1.02.0.0 rejects this saying
6088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6089 struct s { int j; const int *ap[3]; };
6090 struct s *b; b->j = 5;
6092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6101 rm -f conftest.$ac_objext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>conftest.er1
6105 grep -v '^ *+' conftest.er1 >conftest.err
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -z "$ac_c_werror_flag"
6111 || test ! -s conftest.err'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6132 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6133 echo "${ECHO_T}$ac_cv_c_const" >&6
6134 if test $ac_cv_c_const = no; then
6136 cat >>confdefs.h <<\_ACEOF
6143 echo "$as_me:$LINENO: checking for egrep" >&5
6144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6145 if test "${ac_cv_prog_egrep+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6149 then ac_cv_prog_egrep='grep -E'
6150 else ac_cv_prog_egrep='egrep'
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6155 EGREP=$ac_cv_prog_egrep
6158 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6160 if test "${ac_cv_header_stdc+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6182 rm -f conftest.$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184 (eval $ac_compile) 2>conftest.er1
6186 grep -v '^ *+' conftest.er1 >conftest.err
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_c_werror_flag"
6192 || test ! -s conftest.err'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; } &&
6198 { ac_try='test -s conftest.$ac_objext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_header_stdc=yes
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 ac_cv_header_stdc=no
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 if test $ac_cv_header_stdc = yes; then
6214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6215 cat >conftest.$ac_ext <<_ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6225 $EGREP "memchr" >/dev/null 2>&1; then
6228 ac_cv_header_stdc=no
6234 if test $ac_cv_header_stdc = yes; then
6235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246 $EGREP "free" >/dev/null 2>&1; then
6249 ac_cv_header_stdc=no
6255 if test $ac_cv_header_stdc = yes; then
6256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6257 if test "$cross_compiling" = yes; then
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6267 #if ((' ' & 0x0FF) == 0x020)
6268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6271 # define ISLOWER(c) \
6272 (('a' <= (c) && (c) <= 'i') \
6273 || ('j' <= (c) && (c) <= 'r') \
6274 || ('s' <= (c) && (c) <= 'z'))
6275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6283 for (i = 0; i < 256; i++)
6284 if (XOR (islower (i), ISLOWER (i))
6285 || toupper (i) != TOUPPER (i))
6290 rm -f conftest$ac_exeext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6303 echo "$as_me: program exited with status $ac_status" >&5
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6308 ac_cv_header_stdc=no
6310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6314 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6315 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6316 if test $ac_cv_header_stdc = yes; then
6318 cat >>confdefs.h <<\_ACEOF
6319 #define STDC_HEADERS 1
6330 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6331 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6332 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6333 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 cat >conftest.$ac_ext <<_ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #include <sys/types.h>
6355 rm -f conftest.$ac_objext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>conftest.er1
6359 grep -v '^ *+' conftest.er1 >conftest.err
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag"
6365 || test ! -s conftest.err'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest.$ac_objext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 eval "$as_ac_Header=yes"
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 eval "$as_ac_Header=no"
6384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6393 ac_header_dirent=$ac_hdr; break
6397 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6398 if test $ac_header_dirent = dirent.h; then
6399 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6401 if test "${ac_cv_search_opendir+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 ac_func_search_save_LIBS=$LIBS
6405 ac_cv_search_opendir=no
6406 cat >conftest.$ac_ext <<_ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6413 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6428 rm -f conftest.$ac_objext conftest$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_search_opendir="none required"
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6456 rm -f conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458 if test "$ac_cv_search_opendir" = no; then
6459 for ac_lib in dir; do
6460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6468 /* Override any gcc2 internal prototype to avoid an error. */
6472 /* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6483 rm -f conftest.$ac_objext conftest$ac_exeext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485 (eval $ac_link) 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_c_werror_flag"
6493 || test ! -s conftest.err'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest$ac_exeext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_cv_search_opendir="-l$ac_lib"
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6512 rm -f conftest.err conftest.$ac_objext \
6513 conftest$ac_exeext conftest.$ac_ext
6516 LIBS=$ac_func_search_save_LIBS
6518 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6519 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6520 if test "$ac_cv_search_opendir" != no; then
6521 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6526 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6528 if test "${ac_cv_search_opendir+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_func_search_save_LIBS=$LIBS
6532 ac_cv_search_opendir=no
6533 cat >conftest.$ac_ext <<_ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6540 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag"
6565 || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s conftest$ac_exeext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 ac_cv_search_opendir="none required"
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6583 rm -f conftest.err conftest.$ac_objext \
6584 conftest$ac_exeext conftest.$ac_ext
6585 if test "$ac_cv_search_opendir" = no; then
6587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6588 cat >conftest.$ac_ext <<_ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6595 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6610 rm -f conftest.$ac_objext conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>conftest.er1
6614 grep -v '^ *+' conftest.er1 >conftest.err
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -z "$ac_c_werror_flag"
6620 || test ! -s conftest.err'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest$ac_exeext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 ac_cv_search_opendir="-l$ac_lib"
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6639 rm -f conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6643 LIBS=$ac_func_search_save_LIBS
6645 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6646 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6647 if test "$ac_cv_search_opendir" != no; then
6648 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6654 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6665 inttypes.h stdint.h unistd.h
6667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6668 echo "$as_me:$LINENO: checking for $ac_header" >&5
6669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 $ac_includes_default
6681 #include <$ac_header>
6683 rm -f conftest.$ac_objext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6685 (eval $ac_compile) 2>conftest.er1
6687 grep -v '^ *+' conftest.er1 >conftest.err
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } &&
6692 { ac_try='test -z "$ac_c_werror_flag"
6693 || test ! -s conftest.err'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; } &&
6699 { ac_try='test -s conftest.$ac_objext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 eval "$as_ac_Header=yes"
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 eval "$as_ac_Header=no"
6712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6717 cat >>confdefs.h <<_ACEOF
6718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 for ac_header in dlfcn.h
6729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6731 echo "$as_me:$LINENO: checking for $ac_header" >&5
6732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6739 # Is the header compilable?
6740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 $ac_includes_default
6749 #include <$ac_header>
6751 rm -f conftest.$ac_objext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6753 (eval $ac_compile) 2>conftest.er1
6755 grep -v '^ *+' conftest.er1 >conftest.err
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
6760 { ac_try='test -z "$ac_c_werror_flag"
6761 || test ! -s conftest.err'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest.$ac_objext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 ac_header_compiler=yes
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 ac_header_compiler=no
6780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6782 echo "${ECHO_T}$ac_header_compiler" >&6
6784 # Is the header present?
6785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 #include <$ac_header>
6795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6798 grep -v '^ *+' conftest.er1 >conftest.err
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } >/dev/null; then
6803 if test -s conftest.err; then
6804 ac_cpp_err=$ac_c_preproc_warn_flag
6805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6812 if test -z "$ac_cpp_err"; then
6813 ac_header_preproc=yes
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 ac_header_preproc=no
6820 rm -f conftest.err conftest.$ac_ext
6821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6822 echo "${ECHO_T}$ac_header_preproc" >&6
6824 # So? What about this header?
6825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6831 ac_header_preproc=yes
6834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6848 ## ----------------------------------- ##
6849 ## Report this to llvmbugs@cs.uiuc.edu ##
6850 ## ----------------------------------- ##
6853 sed "s/^/$as_me: WARNING: /" >&2
6856 echo "$as_me:$LINENO: checking for $ac_header" >&5
6857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 eval "$as_ac_Header=\$ac_header_preproc"
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6868 cat >>confdefs.h <<_ACEOF
6869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6876 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6877 if test "${enable_ltdl_install+set}" = set; then
6878 enableval="$enable_ltdl_install"
6884 if test x"${enable_ltdl_install-no}" != xno; then
6886 INSTALL_LTDL_FALSE='#'
6888 INSTALL_LTDL_TRUE='#'
6894 if test x"${enable_ltdl_convenience-no}" != xno; then
6895 CONVENIENCE_LTDL_TRUE=
6896 CONVENIENCE_LTDL_FALSE='#'
6898 CONVENIENCE_LTDL_TRUE='#'
6899 CONVENIENCE_LTDL_FALSE=
6903 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6904 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6906 libname_spec='lib$name'
6914 shlibpath_overrides_runpath=unknown
6916 dynamic_linker="$host_os ld.so"
6917 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6918 if test "$GCC" = yes; then
6919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6920 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6921 # if the path contains ";" then we assume it to be the separator
6922 # otherwise default to the standard path separator (i.e. ":") - it is
6923 # assumed that no part of a normal pathname contains ";" but that should
6924 # okay in the real world where ";" in dirpaths is itself problematic.
6925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6930 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6932 need_lib_prefix=unknown
6933 hardcode_into_libs=no
6935 # when you set need_version to no, make sure it does not cause -set_version
6936 # flags to be left without arguments
6937 need_version=unknown
6942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6943 shlibpath_var=LIBPATH
6945 # AIX 3 has no versioning support, so we append a major version to the name.
6946 soname_spec='${libname}${release}${shared_ext}$major'
6953 hardcode_into_libs=yes
6954 if test "$host_cpu" = ia64; then
6955 # AIX 5 supports IA64
6956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6957 shlibpath_var=LD_LIBRARY_PATH
6959 # With GCC up to 2.95.x, collect2 would create an import file
6960 # for dependence libraries. The import file would start with
6961 # the line `#! .'. This would cause the generated library to
6962 # depend on `.', always an invalid library. This was fixed in
6963 # development snapshots of GCC prior to 3.0.
6965 aix4 | aix4.[01] | aix4.[01].*)
6966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6968 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6976 # soname into executable. Probably we can add versioning support to
6977 # collect2, so additional links can be useful in future.
6978 if test "$aix_use_runtimelinking" = yes; then
6979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6980 # instead of lib<name>.a to let people know that these are not
6981 # typical AIX shared libraries.
6982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6984 # We preserve .a as extension for shared libraries through AIX4.2
6985 # and later when we are not doing run time linking.
6986 library_names_spec='${libname}${release}.a $libname.a'
6987 soname_spec='${libname}${release}${shared_ext}$major'
6989 shlibpath_var=LIBPATH
6994 library_names_spec='$libname.ixlibrary $libname.a'
6995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6996 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'
7000 library_names_spec='${libname}${shared_ext}'
7001 dynamic_linker="$host_os ld.so"
7002 shlibpath_var=LIBRARY_PATH
7008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7009 soname_spec='${libname}${release}${shared_ext}$major'
7010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7011 shlibpath_var=LD_LIBRARY_PATH
7012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7014 # the default ld.so.conf also contains /usr/contrib/lib and
7015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7016 # libtool to hard-code these into programs
7019 cygwin* | mingw* | pw32*)
7020 version_type=windows
7025 case $GCC,$host_os in
7026 yes,cygwin* | yes,mingw* | yes,pw32*)
7027 library_names_spec='$libname.dll.a'
7028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7029 postinstall_cmds='base_file=`basename \${file}`~
7030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7031 dldir=$destdir/`dirname \$dlpath`~
7032 test -d \$dldir || mkdir -p \$dldir~
7033 $install_prog $dir/$dlname \$dldir/$dlname'
7034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7035 dlpath=$dir/\$dldll~
7037 shlibpath_overrides_runpath=yes
7041 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7042 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7043 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7046 # MinGW DLLs use traditional 'lib' prefix
7047 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7048 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7049 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7050 # It is most probably a Windows format PATH printed by
7051 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7052 # path with ; separators, and with drive letters. We can handle the
7053 # drive letters (cygwin fileutils understands them), so leave them,
7054 # especially as we might pass files found there to a mingw objdump,
7055 # which wouldn't understand a cygwinified path. Ahh.
7056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7062 # pw32 DLLs use 'pw' prefix rather than 'lib'
7063 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7069 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7072 dynamic_linker='Win32 ld.exe'
7073 # FIXME: first we should search . and the directory the executable is in
7077 darwin* | rhapsody*)
7078 dynamic_linker="$host_os dyld"
7082 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7083 soname_spec='${libname}${release}${major}$shared_ext'
7084 shlibpath_overrides_runpath=yes
7085 shlibpath_var=DYLD_LIBRARY_PATH
7086 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7087 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7088 if test "$GCC" = yes; then
7089 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"`
7091 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7101 soname_spec='${libname}${release}${shared_ext}$major'
7102 shlibpath_var=LD_LIBRARY_PATH
7113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7114 soname_spec='${libname}${release}${shared_ext}$major'
7115 shlibpath_var=LD_LIBRARY_PATH
7116 shlibpath_overrides_runpath=no
7117 hardcode_into_libs=yes
7118 dynamic_linker='GNU ld.so'
7122 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7123 version_type=freebsd-$objformat
7124 case $version_type in
7126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7135 shlibpath_var=LD_LIBRARY_PATH
7138 shlibpath_overrides_runpath=yes
7140 freebsd3.01* | freebsdelf3.01*)
7141 shlibpath_overrides_runpath=yes
7142 hardcode_into_libs=yes
7145 shlibpath_overrides_runpath=no
7146 hardcode_into_libs=yes
7155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7156 soname_spec='${libname}${release}${shared_ext}$major'
7157 shlibpath_var=LD_LIBRARY_PATH
7158 hardcode_into_libs=yes
7161 hpux9* | hpux10* | hpux11*)
7162 # Give a soname corresponding to the major version so that dld.sl refuses to
7163 # link against other versions.
7170 hardcode_into_libs=yes
7171 dynamic_linker="$host_os dld.so"
7172 shlibpath_var=LD_LIBRARY_PATH
7173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7175 soname_spec='${libname}${release}${shared_ext}$major'
7176 if test "X$HPUX_IA64_MODE" = X32; then
7177 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7185 hardcode_into_libs=yes
7186 dynamic_linker="$host_os dld.sl"
7187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7190 soname_spec='${libname}${release}${shared_ext}$major'
7191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7196 dynamic_linker="$host_os dld.sl"
7197 shlibpath_var=SHLIB_PATH
7198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7200 soname_spec='${libname}${release}${shared_ext}$major'
7203 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7204 postinstall_cmds='chmod 555 $lib'
7207 irix5* | irix6* | nonstopux*)
7209 nonstopux*) version_type=nonstopux ;;
7211 if test "$lt_cv_prog_gnu_ld" = yes; then
7219 soname_spec='${libname}${release}${shared_ext}$major'
7220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7222 irix5* | nonstopux*)
7226 case $LD in # libtool.m4 will add one of these switches to LD
7227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7228 libsuff= shlibsuff= libmagic=32-bit;;
7229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7230 libsuff=32 shlibsuff=N32 libmagic=N32;;
7231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7233 *) libsuff= shlibsuff= libmagic=never-match;;
7237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7238 shlibpath_overrides_runpath=no
7239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7241 hardcode_into_libs=yes
7244 # No shared lib support for Linux oldld, aout, or coff.
7245 linux*oldld* | linux*aout* | linux*coff*)
7249 # This must be Linux ELF.
7254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255 soname_spec='${libname}${release}${shared_ext}$major'
7256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7257 shlibpath_var=LD_LIBRARY_PATH
7258 shlibpath_overrides_runpath=no
7259 # This implies no fast_install, which is unacceptable.
7260 # Some rework will be needed to allow for fast_install
7261 # before this can be enabled.
7262 hardcode_into_libs=yes
7264 # Append ld.so.conf contents to the search path
7265 if test -f /etc/ld.so.conf; then
7266 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7270 # We used to test for /lib/ld.so.1 and disable shared libraries on
7271 # powerpc, because MkLinux only supported shared libraries with the
7272 # GNU dynamic linker. Since this was broken with cross compilers,
7273 # most powerpc-linux boxes support dynamic linking these days and
7274 # people can always --disable-shared, the test was removed, and we
7275 # assume the GNU/Linux dynamic linker is in use.
7276 dynamic_linker='GNU/Linux ld.so'
7283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7284 soname_spec='${libname}${release}${shared_ext}$major'
7285 shlibpath_var=LD_LIBRARY_PATH
7286 shlibpath_overrides_runpath=no
7287 hardcode_into_libs=yes
7288 dynamic_linker='GNU ld.so'
7295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7298 dynamic_linker='NetBSD (a.out) ld.so'
7300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7301 soname_spec='${libname}${release}${shared_ext}$major'
7302 dynamic_linker='NetBSD ld.elf_so'
7304 shlibpath_var=LD_LIBRARY_PATH
7305 shlibpath_overrides_runpath=yes
7306 hardcode_into_libs=yes
7311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7312 shlibpath_var=LD_LIBRARY_PATH
7313 shlibpath_overrides_runpath=yes
7320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7321 soname_spec='${libname}${release}${shared_ext}$major'
7322 shlibpath_var=LD_LIBRARY_PATH
7323 shlibpath_overrides_runpath=yes
7330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7332 shlibpath_var=LD_LIBRARY_PATH
7333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7335 openbsd2.[89] | openbsd2.[89].*)
7336 shlibpath_overrides_runpath=no
7339 shlibpath_overrides_runpath=yes
7343 shlibpath_overrides_runpath=yes
7348 libname_spec='$name'
7351 library_names_spec='$libname${shared_ext} $libname.a'
7352 dynamic_linker='OS/2 ld.exe'
7353 shlibpath_var=LIBPATH
7356 osf3* | osf4* | osf5*)
7360 soname_spec='${libname}${release}${shared_ext}$major'
7361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7362 shlibpath_var=LD_LIBRARY_PATH
7363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7369 soname_spec='${libname}${release}${shared_ext}$major'
7370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7371 shlibpath_var=LD_LIBRARY_PATH
7378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379 soname_spec='${libname}${release}${shared_ext}$major'
7380 shlibpath_var=LD_LIBRARY_PATH
7381 shlibpath_overrides_runpath=yes
7382 hardcode_into_libs=yes
7383 # ldd complains unless libraries are executable
7384 postinstall_cmds='chmod +x $lib'
7389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7391 shlibpath_var=LD_LIBRARY_PATH
7392 shlibpath_overrides_runpath=yes
7393 if test "$with_gnu_ld" = yes; then
7399 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7402 soname_spec='${libname}${release}${shared_ext}$major'
7403 shlibpath_var=LD_LIBRARY_PATH
7404 case $host_vendor in
7406 shlibpath_overrides_runpath=no
7408 export_dynamic_flag_spec='${wl}-Blargedynsym'
7409 runpath_var=LD_RUN_PATH
7417 shlibpath_overrides_runpath=no
7418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7424 if test -d /usr/nec ;then
7426 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7427 soname_spec='$libname${shared_ext}.$major'
7428 shlibpath_var=LD_LIBRARY_PATH
7434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435 soname_spec='${libname}${release}${shared_ext}$major'
7436 shlibpath_var=LD_LIBRARY_PATH
7443 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7444 echo "${ECHO_T}$dynamic_linker" >&6
7445 test "$dynamic_linker" = no && can_build_shared=no
7448 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7449 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7450 if test "${libltdl_cv_shlibext+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 eval libltdl_cv_shlibext=$shrext_cmds
7458 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7459 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7460 if test -n "$libltdl_cv_shlibext"; then
7462 cat >>confdefs.h <<_ACEOF
7463 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7469 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7470 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7471 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 libltdl_cv_shlibpath_var="$shlibpath_var"
7476 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7477 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7478 if test -n "$libltdl_cv_shlibpath_var"; then
7480 cat >>confdefs.h <<_ACEOF
7481 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7487 echo "$as_me:$LINENO: checking for the default library search path" >&5
7488 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7489 if test "${libltdl_cv_sys_search_path+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7494 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7495 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7496 if test -n "$libltdl_cv_sys_search_path"; then
7498 for dir in $libltdl_cv_sys_search_path; do
7499 if test -z "$sys_search_path"; then
7500 sys_search_path="$dir"
7502 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7506 cat >>confdefs.h <<_ACEOF
7507 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7512 echo "$as_me:$LINENO: checking for objdir" >&5
7513 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7514 if test "${libltdl_cv_objdir+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 libltdl_cv_objdir="$objdir"
7518 if test -n "$objdir"; then
7521 rm -f .libs 2>/dev/null
7522 mkdir .libs 2>/dev/null
7523 if test -d .libs; then
7524 libltdl_cv_objdir=.libs
7526 # MS-DOS does not allow filenames that begin with a dot.
7527 libltdl_cv_objdir=_libs
7529 rmdir .libs 2>/dev/null
7533 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7534 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7536 cat >>confdefs.h <<_ACEOF
7537 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7541 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7542 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7543 if test "${lt_cv_path_NM+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 if test -n "$NM"; then
7547 # Let the user override the test.
7550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7551 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7553 test -z "$ac_dir" && ac_dir=.
7554 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7555 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7556 # Check to see if the nm accepts a BSD-compat flag.
7557 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7558 # nm: unknown option "B" ignored
7559 # Tru64's nm complains that /dev/null is an invalid object file
7560 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7561 */dev/null* | *'Invalid file or object type'*)
7562 lt_cv_path_NM="$tmp_nm -B"
7566 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7568 lt_cv_path_NM="$tmp_nm -p"
7572 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7573 continue # so that we can try to find one that supports BSD flags
7580 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7583 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7584 echo "${ECHO_T}$lt_cv_path_NM" >&6
7591 # Check for command to grab the raw symbol name followed by C symbol from nm.
7592 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7593 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7594 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 # These are sane defaults that work on at least a few old systems.
7599 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7601 # Character class describing NM global symbol codes.
7602 symcode='[BCDEGRST]'
7604 # Regexp to match symbols that can be accessed directly from C.
7605 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7607 # Transform the above into a raw symbol and a C symbol.
7608 symxfrm='\1 \2\3 \3'
7610 # Transform an extracted symbol line into a proper C declaration
7611 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7613 # Transform an extracted symbol line into symbol name and symbol address
7614 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'"
7616 # Define system-specific variables.
7621 cygwin* | mingw* | pw32*)
7622 symcode='[ABCDGISTW]'
7624 hpux*) # Its linker distinguishes data from code symbols
7625 if test "$host_cpu" = ia64; then
7626 symcode='[ABCDEGRST]'
7628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7629 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'"
7632 if test "$host_cpu" = ia64; then
7633 symcode='[ABCDGIRSTW]'
7634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7635 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'"
7639 symcode='[BCDEGRST]'
7642 symcode='[BCDEGQRST]'
7652 # Handle CRLF in mingw tool chain
7656 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7660 # If we're using GNU nm, then use its standard symbol codes.
7661 case `$NM -V 2>&1` in
7662 *GNU* | *'with BFD'*)
7663 symcode='[ABCDGIRSTW]' ;;
7666 # Try without a prefix undercore, then with it.
7667 for ac_symprfx in "" "_"; do
7669 # Write the raw and C identifiers.
7670 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7672 # Check to see that the pipe works correctly.
7676 cat > conftest.$ac_ext <<EOF
7681 void nm_test_func(){}
7685 int main(){nm_test_var='a';nm_test_func();return(0);}
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689 (eval $ac_compile) 2>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; then
7693 # Now try to grab the symbols.
7695 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7696 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && test -s "$nlist"; then
7700 # Try sorting and uniquifying the output.
7701 if sort "$nlist" | uniq > "$nlist"T; then
7702 mv -f "$nlist"T "$nlist"
7707 # Make sure that we snagged all the symbols we need.
7708 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7709 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7710 cat <<EOF > conftest.$ac_ext
7716 # Now generate the symbol file.
7717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7719 cat <<EOF >> conftest.$ac_ext
7720 #if defined (__STDC__) && __STDC__
7721 # define lt_ptr_t void *
7723 # define lt_ptr_t char *
7727 /* The mapping between symbol names and symbols. */
7732 lt_preloaded_symbols[] =
7735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7736 cat <<\EOF >> conftest.$ac_ext
7744 # Now try linking the two files.
7745 mv conftest.$ac_objext conftstm.$ac_objext
7746 lt_save_LIBS="$LIBS"
7747 lt_save_CFLAGS="$CFLAGS"
7748 LIBS="conftstm.$ac_objext"
7749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7757 LIBS="$lt_save_LIBS"
7758 CFLAGS="$lt_save_CFLAGS"
7760 echo "cannot find nm_test_func in $nlist" >&5
7763 echo "cannot find nm_test_var in $nlist" >&5
7766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7769 echo "$progname: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7772 rm -f conftest* conftst*
7774 # Do not use the global_symbol_pipe unless it works.
7775 if test "$pipe_works" = yes; then
7778 lt_cv_sys_global_symbol_pipe=
7784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7785 lt_cv_sys_global_symbol_to_cdecl=
7787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7788 echo "$as_me:$LINENO: result: failed" >&5
7789 echo "${ECHO_T}failed" >&6
7791 echo "$as_me:$LINENO: result: ok" >&5
7792 echo "${ECHO_T}ok" >&6
7796 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7797 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7798 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7802 libltdl_cv_preloaded_symbols=yes
7804 libltdl_cv_preloaded_symbols=no
7808 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7809 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7810 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_PRELOADED_SYMBOLS 1
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 echo "$as_me:$LINENO: checking for shl_load" >&5
7828 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7829 if test "${ac_cv_func_shl_load+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 cat >conftest.$ac_ext <<_ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7840 #define shl_load innocuous_shl_load
7842 /* System header to define __stub macros and hopefully few prototypes,
7843 which can conflict with char shl_load (); below.
7844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845 <limits.h> exists even on freestanding compilers. */
7848 # include <limits.h>
7850 # include <assert.h>
7855 /* Override any gcc2 internal prototype to avoid an error. */
7860 /* We use char because int might match the return type of a gcc2
7861 builtin and then its argument prototype would still apply. */
7863 /* The GNU C library defines this for functions which it implements
7864 to always fail with ENOSYS. Some functions are actually named
7865 something starting with __ and the normal name is an alias. */
7866 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7869 char (*f) () = shl_load;
7878 return f != shl_load;
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>conftest.er1
7887 grep -v '^ *+' conftest.er1 >conftest.err
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -z "$ac_c_werror_flag"
7893 || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_func_shl_load=yes
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_cv_func_shl_load=no
7912 rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7915 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7916 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7917 if test $ac_cv_func_shl_load = yes; then
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_SHL_LOAD 1
7924 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7925 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7926 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 ac_check_lib_save_LIBS=$LIBS
7931 cat >conftest.$ac_ext <<_ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7938 /* Override any gcc2 internal prototype to avoid an error. */
7942 /* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_lib_dld_shl_load=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_cv_lib_dld_shl_load=no
7982 rm -f conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 LIBS=$ac_check_lib_save_LIBS
7986 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7987 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7988 if test $ac_cv_lib_dld_shl_load = yes; then
7990 cat >>confdefs.h <<\_ACEOF
7991 #define HAVE_SHL_LOAD 1
7994 LIBADD_DL="$LIBADD_DL -ldld"
7996 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7997 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 ac_check_lib_save_LIBS=$LIBS
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8010 /* Override any gcc2 internal prototype to avoid an error. */
8014 /* We use char because int might match the return type of a gcc2
8015 builtin and then its argument prototype would still apply. */
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027 (eval $ac_link) 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag"
8035 || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_lib_dl_dlopen=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_cv_lib_dl_dlopen=no
8054 rm -f conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8060 if test $ac_cv_lib_dl_dlopen = yes; then
8062 cat >>confdefs.h <<\_ACEOF
8063 #define HAVE_LIBDL 1
8066 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8109 cat >>confdefs.h <<\_ACEOF
8110 #define HAVE_LIBDL 1
8112 libltdl_cv_func_dlopen="yes"
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8118 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8119 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 ac_check_lib_save_LIBS=$LIBS
8124 cat >conftest.$ac_ext <<_ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8131 /* Override any gcc2 internal prototype to avoid an error. */
8135 /* We use char because int might match the return type of a gcc2
8136 builtin and then its argument prototype would still apply. */
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>conftest.er1
8150 grep -v '^ *+' conftest.er1 >conftest.err
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -z "$ac_c_werror_flag"
8156 || test ! -s conftest.err'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest$ac_exeext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_cv_lib_svld_dlopen=yes
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_cv_lib_svld_dlopen=no
8175 rm -f conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177 LIBS=$ac_check_lib_save_LIBS
8179 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8180 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8181 if test $ac_cv_lib_svld_dlopen = yes; then
8183 cat >>confdefs.h <<\_ACEOF
8184 #define HAVE_LIBDL 1
8187 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8189 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8190 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_check_lib_save_LIBS=$LIBS
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>conftest.er1
8222 grep -v '^ *+' conftest.er1 >conftest.err
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_lib_dld_dld_link=yes
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_cv_lib_dld_dld_link=no
8247 rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8251 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8252 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8253 if test $ac_cv_lib_dld_dld_link = yes; then
8255 cat >>confdefs.h <<\_ACEOF
8259 LIBADD_DL="$LIBADD_DL -ldld"
8261 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8262 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8263 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8274 #define _dyld_func_lookup innocuous__dyld_func_lookup
8276 /* System header to define __stub macros and hopefully few prototypes,
8277 which can conflict with char _dyld_func_lookup (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
8282 # include <limits.h>
8284 # include <assert.h>
8287 #undef _dyld_func_lookup
8289 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296 char _dyld_func_lookup ();
8297 /* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8303 char (*f) () = _dyld_func_lookup;
8312 return f != _dyld_func_lookup;
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_func__dyld_func_lookup=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_func__dyld_func_lookup=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8350 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8351 if test $ac_cv_func__dyld_func_lookup = yes; then
8353 cat >>confdefs.h <<\_ACEOF
8367 rm -f conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8379 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8381 lt_save_LIBS="$LIBS"
8382 LIBS="$LIBS $LIBADD_DL"
8384 for ac_func in dlerror
8386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8387 echo "$as_me:$LINENO: checking for $ac_func" >&5
8388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8389 if eval "test \"\${$as_ac_var+set}\" = set"; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8400 #define $ac_func innocuous_$ac_func
8402 /* System header to define __stub macros and hopefully few prototypes,
8403 which can conflict with char $ac_func (); below.
8404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8405 <limits.h> exists even on freestanding compilers. */
8408 # include <limits.h>
8410 # include <assert.h>
8415 /* Override any gcc2 internal prototype to avoid an error. */
8420 /* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8423 /* The GNU C library defines this for functions which it implements
8424 to always fail with ENOSYS. Some functions are actually named
8425 something starting with __ and the normal name is an alias. */
8426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8429 char (*f) () = $ac_func;
8438 return f != $ac_func;
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445 (eval $ac_link) 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag"
8453 || test ! -s conftest.err'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; } &&
8459 { ac_try='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 eval "$as_ac_var=yes"
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 eval "$as_ac_var=no"
8472 rm -f conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8477 if test `eval echo '${'$as_ac_var'}'` = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8485 LIBS="$lt_save_LIBS"
8488 ac_cpp='$CPP $CPPFLAGS'
8489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8496 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8497 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 ac_cv_sys_symbol_underscore=no
8501 cat > conftest.$ac_ext <<EOF
8502 void nm_test_func(){}
8503 int main(){nm_test_func;return 0;}
8505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506 (eval $ac_compile) 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; then
8510 # Now try to grab the symbols.
8511 ac_nlist=conftest.nm
8512 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8513 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && test -s "$ac_nlist"; then
8517 # See whether the symbols have a leading underscore.
8518 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8519 ac_cv_sys_symbol_underscore=yes
8521 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8524 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8528 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8531 echo "configure: failed program was:" >&5
8537 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8538 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8541 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8542 if test x"$libltdl_cv_func_dlopen" = xyes ||
8543 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8544 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8545 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8546 if test "${libltdl_cv_need_uscore+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 libltdl_cv_need_uscore=unknown
8551 LIBS="$LIBS $LIBADD_DL"
8552 if test "$cross_compiling" = yes; then :
8553 libltdl_cv_need_uscore=cross
8555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8556 lt_status=$lt_dlunknown
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8558 "configure"
8559 #include "confdefs.h"
8568 # define LT_DLGLOBAL RTLD_GLOBAL
8571 # define LT_DLGLOBAL DL_GLOBAL
8573 # define LT_DLGLOBAL 0
8577 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8578 find out it does not work in some platform. */
8579 #ifndef LT_DLLAZY_OR_NOW
8581 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8584 # define LT_DLLAZY_OR_NOW DL_LAZY
8587 # define LT_DLLAZY_OR_NOW RTLD_NOW
8590 # define LT_DLLAZY_OR_NOW DL_NOW
8592 # define LT_DLLAZY_OR_NOW 0
8600 extern "C" void exit (int);
8603 void fnord() { int i=42;}
8606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8607 int status = $lt_dlunknown;
8611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8612 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8613 /* dlclose (self); */
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8624 (./conftest; exit; ) 2>/dev/null
8627 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8628 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8632 # compilation failed
8641 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8642 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8646 if test x"$libltdl_cv_need_uscore" = xyes; then
8648 cat >>confdefs.h <<\_ACEOF
8649 #define NEED_USCORE 1
8655 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8656 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8657 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 # PORTME does your system automatically load deplibs for dlopen?
8661 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8662 # For now, we just catch OSes we know something about -- in the
8663 # future, we'll try test this programmatically.
8664 libltdl_cv_sys_dlopen_deplibs=unknown
8666 aix3*|aix4.1.*|aix4.2.*)
8667 # Unknown whether this is true for these versions of AIX, but
8668 # we want this `case' here to explicitly catch those versions.
8669 libltdl_cv_sys_dlopen_deplibs=unknown
8672 libltdl_cv_sys_dlopen_deplibs=yes
8675 # Assuming the user has installed a libdl from somewhere, this is true
8676 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8677 libltdl_cv_sys_dlopen_deplibs=yes
8679 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8680 # GNU and its variants, using gnu ld.so (Glibc)
8681 libltdl_cv_sys_dlopen_deplibs=yes
8684 libltdl_cv_sys_dlopen_deplibs=yes
8686 irix[12345]*|irix6.[01]*)
8687 # Catch all versions of IRIX before 6.2, and indicate that we don't
8688 # know how it worked for any of those versions.
8689 libltdl_cv_sys_dlopen_deplibs=unknown
8692 # The case above catches anything before 6.2, and it's known that
8693 # at 6.2 and later dlopen does load deplibs.
8694 libltdl_cv_sys_dlopen_deplibs=yes
8697 libltdl_cv_sys_dlopen_deplibs=yes
8700 libltdl_cv_sys_dlopen_deplibs=yes
8703 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8704 # it did *not* use an RPATH in a shared library to find objects the
8705 # library depends on, so we explictly say `no'.
8706 libltdl_cv_sys_dlopen_deplibs=no
8708 osf5.0|osf5.0a|osf5.1)
8709 # dlopen *does* load deplibs and with the right loader patch applied
8710 # it even uses RPATH in a shared library to search for shared objects
8711 # that the library depends on, but there's no easy way to know if that
8712 # patch is installed. Since this is the case, all we can really
8713 # say is unknown -- it depends on the patch being installed. If
8714 # it is, this changes to `yes'. Without it, it would be `no'.
8715 libltdl_cv_sys_dlopen_deplibs=unknown
8718 # the two cases above should catch all versions of osf <= 5.1. Read
8719 # the comments above for what we know about them.
8720 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8721 # is used to find them so we can finally say `yes'.
8722 libltdl_cv_sys_dlopen_deplibs=yes
8725 libltdl_cv_sys_dlopen_deplibs=yes
8730 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8731 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8732 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8734 cat >>confdefs.h <<\_ACEOF
8735 #define LTDL_DLOPEN_DEPLIBS 1
8741 for ac_header in argz.h
8743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo "$as_me:$LINENO: checking for $ac_header" >&5
8746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8753 # Is the header compilable?
8754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8763 #include <$ac_header>
8765 rm -f conftest.$ac_objext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>conftest.er1
8769 grep -v '^ *+' conftest.er1 >conftest.err
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag"
8775 || test ! -s conftest.err'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_header_compiler=yes
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_header_compiler=no
8794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8796 echo "${ECHO_T}$ac_header_compiler" >&6
8798 # Is the header present?
8799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 #include <$ac_header>
8809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8812 grep -v '^ *+' conftest.er1 >conftest.err
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } >/dev/null; then
8817 if test -s conftest.err; then
8818 ac_cpp_err=$ac_c_preproc_warn_flag
8819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8826 if test -z "$ac_cpp_err"; then
8827 ac_header_preproc=yes
8829 echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8832 ac_header_preproc=no
8834 rm -f conftest.err conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836 echo "${ECHO_T}$ac_header_preproc" >&6
8838 # So? What about this header?
8839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8845 ac_header_preproc=yes
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8862 ## ----------------------------------- ##
8863 ## Report this to llvmbugs@cs.uiuc.edu ##
8864 ## ----------------------------------- ##
8867 sed "s/^/$as_me: WARNING: /" >&2
8870 echo "$as_me:$LINENO: checking for $ac_header" >&5
8871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 eval "$as_ac_Header=\$ac_header_preproc"
8877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8882 cat >>confdefs.h <<_ACEOF
8883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8891 echo "$as_me:$LINENO: checking for error_t" >&5
8892 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8893 if test "${ac_cv_type_error_t+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 cat >conftest.$ac_ext <<_ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8911 if (sizeof (error_t))
8917 rm -f conftest.$ac_objext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919 (eval $ac_compile) 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag"
8927 || test ! -s conftest.err'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; } &&
8933 { ac_try='test -s conftest.$ac_objext'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; }; then
8939 ac_cv_type_error_t=yes
8941 echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8944 ac_cv_type_error_t=no
8946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8948 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8949 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8950 if test $ac_cv_type_error_t = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_ERROR_T 1
8959 cat >>confdefs.h <<\_ACEOF
8971 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8974 echo "$as_me:$LINENO: checking for $ac_func" >&5
8975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8976 if eval "test \"\${$as_ac_var+set}\" = set"; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8987 #define $ac_func innocuous_$ac_func
8989 /* System header to define __stub macros and hopefully few prototypes,
8990 which can conflict with char $ac_func (); below.
8991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8992 <limits.h> exists even on freestanding compilers. */
8995 # include <limits.h>
8997 # include <assert.h>
9002 /* Override any gcc2 internal prototype to avoid an error. */
9007 /* We use char because int might match the return type of a gcc2
9008 builtin and then its argument prototype would still apply. */
9010 /* The GNU C library defines this for functions which it implements
9011 to always fail with ENOSYS. Some functions are actually named
9012 something starting with __ and the normal name is an alias. */
9013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9016 char (*f) () = $ac_func;
9025 return f != $ac_func;
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>conftest.er1
9034 grep -v '^ *+' conftest.er1 >conftest.err
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 eval "$as_ac_var=yes"
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 eval "$as_ac_var=no"
9059 rm -f conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9064 if test `eval echo '${'$as_ac_var'}'` = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9099 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104 echo "$as_me:$LINENO: checking for $ac_header" >&5
9105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9112 # Is the header compilable?
9113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9115 cat >conftest.$ac_ext <<_ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121 $ac_includes_default
9122 #include <$ac_header>
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag"
9134 || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_header_compiler=yes
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_header_compiler=no
9153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9155 echo "${ECHO_T}$ac_header_compiler" >&6
9157 # Is the header present?
9158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9160 cat >conftest.$ac_ext <<_ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166 #include <$ac_header>
9168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9171 grep -v '^ *+' conftest.er1 >conftest.err
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } >/dev/null; then
9176 if test -s conftest.err; then
9177 ac_cpp_err=$ac_c_preproc_warn_flag
9178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9185 if test -z "$ac_cpp_err"; then
9186 ac_header_preproc=yes
9188 echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9191 ac_header_preproc=no
9193 rm -f conftest.err conftest.$ac_ext
9194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9195 echo "${ECHO_T}$ac_header_preproc" >&6
9197 # So? What about this header?
9198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9204 ac_header_preproc=yes
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9221 ## ----------------------------------- ##
9222 ## Report this to llvmbugs@cs.uiuc.edu ##
9223 ## ----------------------------------- ##
9226 sed "s/^/$as_me: WARNING: /" >&2
9229 echo "$as_me:$LINENO: checking for $ac_header" >&5
9230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 eval "$as_ac_Header=\$ac_header_preproc"
9236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9241 cat >>confdefs.h <<_ACEOF
9242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9253 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9257 echo "$as_me:$LINENO: checking for $ac_header" >&5
9258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9265 # Is the header compilable?
9266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 $ac_includes_default
9275 #include <$ac_header>
9277 rm -f conftest.$ac_objext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9279 (eval $ac_compile) 2>conftest.er1
9281 grep -v '^ *+' conftest.er1 >conftest.err
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag"
9287 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try='test -s conftest.$ac_objext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_header_compiler=yes
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 ac_header_compiler=no
9306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9308 echo "${ECHO_T}$ac_header_compiler" >&6
9310 # Is the header present?
9311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9313 cat >conftest.$ac_ext <<_ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 #include <$ac_header>
9321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9324 grep -v '^ *+' conftest.er1 >conftest.err
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } >/dev/null; then
9329 if test -s conftest.err; then
9330 ac_cpp_err=$ac_c_preproc_warn_flag
9331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9338 if test -z "$ac_cpp_err"; then
9339 ac_header_preproc=yes
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9344 ac_header_preproc=no
9346 rm -f conftest.err conftest.$ac_ext
9347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9348 echo "${ECHO_T}$ac_header_preproc" >&6
9350 # So? What about this header?
9351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9357 ac_header_preproc=yes
9360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9374 ## ----------------------------------- ##
9375 ## Report this to llvmbugs@cs.uiuc.edu ##
9376 ## ----------------------------------- ##
9379 sed "s/^/$as_me: WARNING: /" >&2
9382 echo "$as_me:$LINENO: checking for $ac_header" >&5
9383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 eval "$as_ac_Header=\$ac_header_preproc"
9389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9404 for ac_header in string.h strings.h
9406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9408 echo "$as_me:$LINENO: checking for $ac_header" >&5
9409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9416 # Is the header compilable?
9417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 $ac_includes_default
9426 #include <$ac_header>
9428 rm -f conftest.$ac_objext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430 (eval $ac_compile) 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try='test -z "$ac_c_werror_flag"
9438 || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try='test -s conftest.$ac_objext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_header_compiler=yes
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 ac_header_compiler=no
9457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9459 echo "${ECHO_T}$ac_header_compiler" >&6
9461 # Is the header present?
9462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9464 cat >conftest.$ac_ext <<_ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 #include <$ac_header>
9472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9475 grep -v '^ *+' conftest.er1 >conftest.err
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } >/dev/null; then
9480 if test -s conftest.err; then
9481 ac_cpp_err=$ac_c_preproc_warn_flag
9482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9489 if test -z "$ac_cpp_err"; then
9490 ac_header_preproc=yes
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_header_preproc=no
9497 rm -f conftest.err conftest.$ac_ext
9498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9499 echo "${ECHO_T}$ac_header_preproc" >&6
9501 # So? What about this header?
9502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9508 ac_header_preproc=yes
9511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9525 ## ----------------------------------- ##
9526 ## Report this to llvmbugs@cs.uiuc.edu ##
9527 ## ----------------------------------- ##
9530 sed "s/^/$as_me: WARNING: /" >&2
9533 echo "$as_me:$LINENO: checking for $ac_header" >&5
9534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 eval "$as_ac_Header=\$ac_header_preproc"
9540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9545 cat >>confdefs.h <<_ACEOF
9546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9556 for ac_func in strchr index
9558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9559 echo "$as_me:$LINENO: checking for $ac_func" >&5
9560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9561 if eval "test \"\${$as_ac_var+set}\" = set"; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9572 #define $ac_func innocuous_$ac_func
9574 /* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char $ac_func (); below.
9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577 <limits.h> exists even on freestanding compilers. */
9580 # include <limits.h>
9582 # include <assert.h>
9587 /* Override any gcc2 internal prototype to avoid an error. */
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9595 /* The GNU C library defines this for functions which it implements
9596 to always fail with ENOSYS. Some functions are actually named
9597 something starting with __ and the normal name is an alias. */
9598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9601 char (*f) () = $ac_func;
9610 return f != $ac_func;
9615 rm -f conftest.$ac_objext conftest$ac_exeext
9616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617 (eval $ac_link) 2>conftest.er1
9619 grep -v '^ *+' conftest.er1 >conftest.err
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -z "$ac_c_werror_flag"
9625 || test ! -s conftest.err'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 eval "$as_ac_var=yes"
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 eval "$as_ac_var=no"
9644 rm -f conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9649 if test `eval echo '${'$as_ac_var'}'` = yes; then
9650 cat >>confdefs.h <<_ACEOF
9651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9659 for ac_func in strrchr rindex
9661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9662 echo "$as_me:$LINENO: checking for $ac_func" >&5
9663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9664 if eval "test \"\${$as_ac_var+set}\" = set"; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 cat >conftest.$ac_ext <<_ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9675 #define $ac_func innocuous_$ac_func
9677 /* System header to define __stub macros and hopefully few prototypes,
9678 which can conflict with char $ac_func (); below.
9679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9680 <limits.h> exists even on freestanding compilers. */
9683 # include <limits.h>
9685 # include <assert.h>
9690 /* Override any gcc2 internal prototype to avoid an error. */
9695 /* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9698 /* The GNU C library defines this for functions which it implements
9699 to always fail with ENOSYS. Some functions are actually named
9700 something starting with __ and the normal name is an alias. */
9701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9704 char (*f) () = $ac_func;
9713 return f != $ac_func;
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 eval "$as_ac_var=yes"
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 eval "$as_ac_var=no"
9747 rm -f conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9752 if test `eval echo '${'$as_ac_var'}'` = yes; then
9753 cat >>confdefs.h <<_ACEOF
9754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9762 for ac_func in memcpy bcopy
9764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9765 echo "$as_me:$LINENO: checking for $ac_func" >&5
9766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9767 if eval "test \"\${$as_ac_var+set}\" = set"; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 cat >conftest.$ac_ext <<_ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9778 #define $ac_func innocuous_$ac_func
9780 /* System header to define __stub macros and hopefully few prototypes,
9781 which can conflict with char $ac_func (); below.
9782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783 <limits.h> exists even on freestanding compilers. */
9786 # include <limits.h>
9788 # include <assert.h>
9793 /* Override any gcc2 internal prototype to avoid an error. */
9798 /* We use char because int might match the return type of a gcc2
9799 builtin and then its argument prototype would still apply. */
9801 /* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
9804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9807 char (*f) () = $ac_func;
9816 return f != $ac_func;
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag"
9831 || test ! -s conftest.err'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 eval "$as_ac_var=yes"
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 eval "$as_ac_var=no"
9850 rm -f conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9855 if test `eval echo '${'$as_ac_var'}'` = yes; then
9856 cat >>confdefs.h <<_ACEOF
9857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9865 for ac_func in memmove strcmp
9867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868 echo "$as_me:$LINENO: checking for $ac_func" >&5
9869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9870 if eval "test \"\${$as_ac_var+set}\" = set"; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9881 #define $ac_func innocuous_$ac_func
9883 /* System header to define __stub macros and hopefully few prototypes,
9884 which can conflict with char $ac_func (); below.
9885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9886 <limits.h> exists even on freestanding compilers. */
9889 # include <limits.h>
9891 # include <assert.h>
9896 /* Override any gcc2 internal prototype to avoid an error. */
9901 /* We use char because int might match the return type of a gcc2
9902 builtin and then its argument prototype would still apply. */
9904 /* The GNU C library defines this for functions which it implements
9905 to always fail with ENOSYS. Some functions are actually named
9906 something starting with __ and the normal name is an alias. */
9907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9910 char (*f) () = $ac_func;
9919 return f != $ac_func;
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 (eval $ac_link) 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 eval "$as_ac_var=yes"
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 eval "$as_ac_var=no"
9953 rm -f conftest.err conftest.$ac_objext \
9954 conftest$ac_exeext conftest.$ac_ext
9956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9958 if test `eval echo '${'$as_ac_var'}'` = yes; then
9959 cat >>confdefs.h <<_ACEOF
9960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9969 for ac_func in closedir opendir readdir
9971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972 echo "$as_me:$LINENO: checking for $ac_func" >&5
9973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_var+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9985 #define $ac_func innocuous_$ac_func
9987 /* System header to define __stub macros and hopefully few prototypes,
9988 which can conflict with char $ac_func (); below.
9989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9990 <limits.h> exists even on freestanding compilers. */
9993 # include <limits.h>
9995 # include <assert.h>
10000 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10014 char (*f) () = $ac_func;
10023 return f != $ac_func;
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag"
10038 || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 eval "$as_ac_var=yes"
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 eval "$as_ac_var=no"
10057 rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10071 # Check whether --enable-shared or --disable-shared was given.
10072 if test "${enable_shared+set}" = set; then
10073 enableval="$enable_shared"
10074 p=${PACKAGE-default}
10076 yes) enable_shared=yes ;;
10077 no) enable_shared=no ;;
10080 # Look at the argument we got. We use all the common list separators.
10081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10082 for pkg in $enableval; do
10084 if test "X$pkg" = "X$p"; then
10095 # Check whether --enable-static or --disable-static was given.
10096 if test "${enable_static+set}" = set; then
10097 enableval="$enable_static"
10098 p=${PACKAGE-default}
10100 yes) enable_static=yes ;;
10101 no) enable_static=no ;;
10104 # Look at the argument we got. We use all the common list separators.
10105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10106 for pkg in $enableval; do
10108 if test "X$pkg" = "X$p"; then
10119 # Check whether --enable-fast-install or --disable-fast-install was given.
10120 if test "${enable_fast_install+set}" = set; then
10121 enableval="$enable_fast_install"
10122 p=${PACKAGE-default}
10124 yes) enable_fast_install=yes ;;
10125 no) enable_fast_install=no ;;
10127 enable_fast_install=no
10128 # Look at the argument we got. We use all the common list separators.
10129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10130 for pkg in $enableval; do
10132 if test "X$pkg" = "X$p"; then
10133 enable_fast_install=yes
10140 enable_fast_install=yes
10143 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10144 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10145 if test "${lt_cv_path_SED+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 # Loop through the user's path and test for sed and gsed.
10149 # Then use that list of sed's as ones to test for truncation.
10150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151 for as_dir in $PATH
10154 test -z "$as_dir" && as_dir=.
10155 for lt_ac_prog in sed gsed; do
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10158 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10165 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10166 # along with /bin/sed that truncates output.
10167 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10168 test ! -f $lt_ac_sed && break
10169 cat /dev/null > conftest.in
10171 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10172 # Check for GNU sed and select it if it is found.
10173 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10174 lt_cv_path_SED=$lt_ac_sed
10178 cat conftest.in conftest.in >conftest.tmp
10179 mv conftest.tmp conftest.in
10180 cp conftest.in conftest.nl
10182 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10183 cmp -s conftest.out conftest.nl || break
10184 # 10000 chars as input seems more than enough
10185 test $lt_ac_count -gt 10 && break
10186 lt_ac_count=`expr $lt_ac_count + 1`
10187 if test $lt_ac_count -gt $lt_ac_max; then
10188 lt_ac_max=$lt_ac_count
10189 lt_cv_path_SED=$lt_ac_sed
10196 SED=$lt_cv_path_SED
10197 echo "$as_me:$LINENO: result: $SED" >&5
10198 echo "${ECHO_T}$SED" >&6
10201 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10202 if test "${with_gnu_ld+set}" = set; then
10203 withval="$with_gnu_ld"
10204 test "$withval" = no || with_gnu_ld=yes
10209 if test "$GCC" = yes; then
10210 # Check if gcc -print-prog-name=ld gives a path.
10211 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10212 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10215 # gcc leaves a trailing carriage return which upsets mingw
10216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10221 # Accept absolute paths.
10223 re_direlt='/[^/][^/]*/\.\./'
10224 # Canonicalize the pathname of ld
10225 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10226 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10227 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10229 test -z "$LD" && LD="$ac_prog"
10232 # If it fails, then pretend we aren't using GCC.
10236 # If it is relative, then search for the first ld in PATH.
10237 with_gnu_ld=unknown
10240 elif test "$with_gnu_ld" = yes; then
10241 echo "$as_me:$LINENO: checking for GNU ld" >&5
10242 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10244 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10245 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10247 if test "${lt_cv_path_LD+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 if test -z "$LD"; then
10251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10252 for ac_dir in $PATH; do
10254 test -z "$ac_dir" && ac_dir=.
10255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10256 lt_cv_path_LD="$ac_dir/$ac_prog"
10257 # Check to see if the program is GNU ld. I'd rather use --version,
10258 # but apparently some GNU ld's only accept -v.
10259 # Break only if it was the GNU/non-GNU ld that we prefer.
10260 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10261 *GNU* | *'with BFD'*)
10262 test "$with_gnu_ld" != no && break
10265 test "$with_gnu_ld" != yes && break
10272 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10276 LD="$lt_cv_path_LD"
10277 if test -n "$LD"; then
10278 echo "$as_me:$LINENO: result: $LD" >&5
10279 echo "${ECHO_T}$LD" >&6
10281 echo "$as_me:$LINENO: result: no" >&5
10282 echo "${ECHO_T}no" >&6
10284 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10285 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10286 { (exit 1); exit 1; }; }
10287 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10288 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10289 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10293 case `$LD -v 2>&1 </dev/null` in
10294 *GNU* | *'with BFD'*)
10295 lt_cv_prog_gnu_ld=yes
10298 lt_cv_prog_gnu_ld=no
10302 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10303 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10304 with_gnu_ld=$lt_cv_prog_gnu_ld
10307 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10308 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10309 if test "${lt_cv_ld_reload_flag+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 lt_cv_ld_reload_flag='-r'
10314 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10315 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10316 reload_flag=$lt_cv_ld_reload_flag
10317 case $reload_flag in
10319 *) reload_flag=" $reload_flag" ;;
10321 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10324 if test "$GCC" = yes; then
10325 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10327 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10332 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10333 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10334 if test "${lt_cv_deplibs_check_method+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 lt_cv_file_magic_cmd='$MAGIC_CMD'
10338 lt_cv_file_magic_test_file=
10339 lt_cv_deplibs_check_method='unknown'
10340 # Need to set the preceding variable on all platforms that support
10341 # interlibrary dependencies.
10342 # 'none' -- dependencies not supported.
10343 # `unknown' -- same as none, but documents that we really don't know.
10344 # 'pass_all' -- all dependencies passed with no checks.
10345 # 'test_compile' -- check by making test program.
10346 # 'file_magic [[regex]]' -- check by looking for files in library path
10347 # which responds to the $file_magic_cmd with a given extended regex.
10348 # If you have `file' or equivalent on your system and you're not sure
10349 # whether `pass_all' will *always* work, you probably want this one.
10353 lt_cv_deplibs_check_method=pass_all
10357 lt_cv_deplibs_check_method=pass_all
10361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10362 lt_cv_file_magic_cmd='/usr/bin/file -L'
10363 lt_cv_file_magic_test_file=/shlib/libc.so
10367 # func_win32_libid is a shell function defined in ltmain.sh
10368 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10369 lt_cv_file_magic_cmd='func_win32_libid'
10373 # Base MSYS/MinGW do not provide the 'file' command needed by
10374 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10375 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10376 lt_cv_file_magic_cmd='$OBJDUMP -f'
10379 darwin* | rhapsody*)
10380 lt_cv_deplibs_check_method=pass_all
10383 freebsd* | kfreebsd*-gnu)
10384 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10387 # Not sure whether the presence of OpenBSD here was a mistake.
10388 # Let's accept both of them until this is cleared up.
10389 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10390 lt_cv_file_magic_cmd=/usr/bin/file
10391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10395 lt_cv_deplibs_check_method=pass_all
10400 lt_cv_deplibs_check_method=pass_all
10403 hpux10.20* | hpux11*)
10404 lt_cv_file_magic_cmd=/usr/bin/file
10405 case "$host_cpu" in
10407 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10408 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10411 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]'
10412 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10415 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10416 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10421 irix5* | irix6* | nonstopux*)
10423 *-32|*"-32 ") libmagic=32-bit;;
10424 *-n32|*"-n32 ") libmagic=N32;;
10425 *-64|*"-64 ") libmagic=64-bit;;
10426 *) libmagic=never-match;;
10428 lt_cv_deplibs_check_method=pass_all
10431 # This must be Linux ELF.
10433 lt_cv_deplibs_check_method=pass_all
10437 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10446 lt_cv_file_magic_cmd=/usr/bin/file
10447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10451 lt_cv_deplibs_check_method=unknown
10455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10462 osf3* | osf4* | osf5*)
10463 lt_cv_deplibs_check_method=pass_all
10467 lt_cv_deplibs_check_method=pass_all
10471 lt_cv_deplibs_check_method=pass_all
10474 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10475 case $host_vendor in
10477 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]'
10478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10481 lt_cv_deplibs_check_method=pass_all
10484 lt_cv_file_magic_cmd='/bin/file'
10485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10488 lt_cv_file_magic_cmd='/bin/file'
10489 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10490 lt_cv_file_magic_test_file=/lib/libc.so
10493 lt_cv_deplibs_check_method=pass_all
10498 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10499 lt_cv_deplibs_check_method=pass_all
10504 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10505 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10506 file_magic_cmd=$lt_cv_file_magic_cmd
10507 deplibs_check_method=$lt_cv_deplibs_check_method
10508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10512 # If no C compiler was specified, use CC.
10515 # Allow CC to be a program name with arguments.
10518 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10519 if test "${enable_libtool_lock+set}" = set; then
10520 enableval="$enable_libtool_lock"
10523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10525 # Some flags need to be propagated to the compiler or linker for good
10529 # Find out which ABI we are using.
10530 echo 'int i;' > conftest.$ac_ext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532 (eval $ac_compile) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; then
10536 case `/usr/bin/file conftest.$ac_objext` in
10538 HPUX_IA64_MODE="32"
10541 HPUX_IA64_MODE="64"
10548 # Find out which ABI we are using.
10549 echo '#line 10549 "configure"' > conftest.$ac_ext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551 (eval $ac_compile) 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; then
10555 if test "$lt_cv_prog_gnu_ld" = yes; then
10556 case `/usr/bin/file conftest.$ac_objext` in
10558 LD="${LD-ld} -melf32bsmip"
10561 LD="${LD-ld} -melf32bmipn32"
10564 LD="${LD-ld} -melf64bmip"
10568 case `/usr/bin/file conftest.$ac_objext` in
10584 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10585 # Find out which ABI we are using.
10586 echo 'int i;' > conftest.$ac_ext
10587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10588 (eval $ac_compile) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; then
10592 case "`/usr/bin/file conftest.o`" in
10596 LD="${LD-ld} -m elf_i386"
10598 ppc64-*linux*|powerpc64-*linux*)
10599 LD="${LD-ld} -m elf32ppclinux"
10602 LD="${LD-ld} -m elf_s390"
10605 LD="${LD-ld} -m elf32_sparc"
10612 LD="${LD-ld} -m elf_x86_64"
10614 ppc*-*linux*|powerpc*-*linux*)
10615 LD="${LD-ld} -m elf64ppc"
10618 LD="${LD-ld} -m elf64_s390"
10621 LD="${LD-ld} -m elf64_sparc"
10631 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10632 SAVE_CFLAGS="$CFLAGS"
10633 CFLAGS="$CFLAGS -belf"
10634 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10635 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10636 if test "${lt_cv_cc_needs_belf+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 ac_cpp='$CPP $CPPFLAGS'
10641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10645 cat >conftest.$ac_ext <<_ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 lt_cv_cc_needs_belf=yes
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 lt_cv_cc_needs_belf=no
10682 rm -f conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10685 ac_cpp='$CPP $CPPFLAGS'
10686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10691 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10692 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10693 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10694 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10695 CFLAGS="$SAVE_CFLAGS"
10701 need_locks="$enable_libtool_lock"
10706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10707 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10708 (test "X$CXX" != "Xg++"))) ; then
10710 ac_cpp='$CXXCPP $CPPFLAGS'
10711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10714 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10715 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10716 if test -z "$CXXCPP"; then
10717 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 # Double quotes because CXXCPP needs to be expanded
10721 for CXXCPP in "$CXX -E" "/lib/cpp"
10723 ac_preproc_ok=false
10724 for ac_cxx_preproc_warn_flag in '' yes
10726 # Use a header file that comes with gcc, so configuring glibc
10727 # with a fresh cross-compiler works.
10728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729 # <limits.h> exists even on freestanding compilers.
10730 # On the NeXT, cc -E runs the code through the compiler's parser,
10731 # not just through cpp. "Syntax error" is here to catch this case.
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10739 # include <limits.h>
10741 # include <assert.h>
10745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } >/dev/null; then
10753 if test -s conftest.err; then
10754 ac_cpp_err=$ac_cxx_preproc_warn_flag
10755 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10762 if test -z "$ac_cpp_err"; then
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 # Broken: fails on valid input.
10771 rm -f conftest.err conftest.$ac_ext
10773 # OK, works on sane cases. Now check whether non-existent headers
10774 # can be detected and how.
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <ac_nonexistent.h>
10783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null; then
10791 if test -s conftest.err; then
10792 ac_cpp_err=$ac_cxx_preproc_warn_flag
10793 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10800 if test -z "$ac_cpp_err"; then
10801 # Broken: success on invalid input.
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 # Passes both tests.
10811 rm -f conftest.err conftest.$ac_ext
10814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10815 rm -f conftest.err conftest.$ac_ext
10816 if $ac_preproc_ok; then
10821 ac_cv_prog_CXXCPP=$CXXCPP
10824 CXXCPP=$ac_cv_prog_CXXCPP
10826 ac_cv_prog_CXXCPP=$CXXCPP
10828 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10829 echo "${ECHO_T}$CXXCPP" >&6
10830 ac_preproc_ok=false
10831 for ac_cxx_preproc_warn_flag in '' yes
10833 # Use a header file that comes with gcc, so configuring glibc
10834 # with a fresh cross-compiler works.
10835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836 # <limits.h> exists even on freestanding compilers.
10837 # On the NeXT, cc -E runs the code through the compiler's parser,
10838 # not just through cpp. "Syntax error" is here to catch this case.
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 # include <limits.h>
10848 # include <assert.h>
10852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10855 grep -v '^ *+' conftest.er1 >conftest.err
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } >/dev/null; then
10860 if test -s conftest.err; then
10861 ac_cpp_err=$ac_cxx_preproc_warn_flag
10862 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10869 if test -z "$ac_cpp_err"; then
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 # Broken: fails on valid input.
10878 rm -f conftest.err conftest.$ac_ext
10880 # OK, works on sane cases. Now check whether non-existent headers
10881 # can be detected and how.
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 #include <ac_nonexistent.h>
10890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } >/dev/null; then
10898 if test -s conftest.err; then
10899 ac_cpp_err=$ac_cxx_preproc_warn_flag
10900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10907 if test -z "$ac_cpp_err"; then
10908 # Broken: success on invalid input.
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 # Passes both tests.
10918 rm -f conftest.err conftest.$ac_ext
10921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10922 rm -f conftest.err conftest.$ac_ext
10923 if $ac_preproc_ok; then
10926 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10927 See \`config.log' for more details." >&5
10928 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10929 See \`config.log' for more details." >&2;}
10930 { (exit 1); exit 1; }; }
10934 ac_cpp='$CXXCPP $CPPFLAGS'
10935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10943 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10944 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10946 if test -n "$ac_tool_prefix"; then
10947 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10951 echo "$as_me:$LINENO: checking for $ac_word" >&5
10952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10953 if test "${ac_cv_prog_F77+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 if test -n "$F77"; then
10957 ac_cv_prog_F77="$F77" # Let the user override the test.
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10966 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 F77=$ac_cv_prog_F77
10976 if test -n "$F77"; then
10977 echo "$as_me:$LINENO: result: $F77" >&5
10978 echo "${ECHO_T}$F77" >&6
10980 echo "$as_me:$LINENO: result: no" >&5
10981 echo "${ECHO_T}no" >&6
10984 test -n "$F77" && break
10987 if test -z "$F77"; then
10989 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10991 # Extract the first word of "$ac_prog", so it can be a program name with args.
10992 set dummy $ac_prog; ac_word=$2
10993 echo "$as_me:$LINENO: checking for $ac_word" >&5
10994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 if test -n "$ac_ct_F77"; then
10999 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008 ac_cv_prog_ac_ct_F77="$ac_prog"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11018 if test -n "$ac_ct_F77"; then
11019 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11020 echo "${ECHO_T}$ac_ct_F77" >&6
11022 echo "$as_me:$LINENO: result: no" >&5
11023 echo "${ECHO_T}no" >&6
11026 test -n "$ac_ct_F77" && break
11033 # Provide some information about the compiler.
11034 echo "$as_me:11034:" \
11035 "checking for Fortran 77 compiler version" >&5
11036 ac_compiler=`set X $ac_compile; echo $2`
11037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11038 (eval $ac_compiler --version </dev/null >&5) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }
11042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11043 (eval $ac_compiler -v </dev/null >&5) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }
11047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11048 (eval $ac_compiler -V </dev/null >&5) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }
11054 # If we don't use `.F' as extension, the preprocessor is not run on the
11055 # input file. (Note that this only needs to work for GNU compilers.)
11056 ac_save_ext=$ac_ext
11058 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11059 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11060 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 cat >conftest.$ac_ext <<_ACEOF
11071 rm -f conftest.$ac_objext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073 (eval $ac_compile) 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -z "$ac_f77_werror_flag"
11081 || test ! -s conftest.err'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try='test -s conftest.$ac_objext'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
11093 ac_compiler_gnu=yes
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11101 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11104 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11105 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11106 ac_ext=$ac_save_ext
11107 ac_test_FFLAGS=${FFLAGS+set}
11108 ac_save_FFLAGS=$FFLAGS
11110 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11111 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11112 if test "${ac_cv_prog_f77_g+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 cat >conftest.$ac_ext <<_ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 (eval $ac_compile) 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_f77_werror_flag"
11131 || test ! -s conftest.err'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_prog_f77_g=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_cv_prog_f77_g=no
11150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11154 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11155 if test "$ac_test_FFLAGS" = set; then
11156 FFLAGS=$ac_save_FFLAGS
11157 elif test $ac_cv_prog_f77_g = yes; then
11158 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11164 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11171 G77=`test $ac_compiler_gnu = yes && echo yes`
11173 ac_cpp='$CPP $CPPFLAGS'
11174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11180 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11182 # find the maximum length of command line arguments
11183 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11184 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11185 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 # On DJGPP, this test can blow up pretty badly due to problems in libc
11194 # (any single argument exceeding 2000 bytes causes a buffer overrun
11195 # during glob expansion). Even if it were fixed, the result of this
11196 # check would be larger than it should be.
11197 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11201 # Under GNU Hurd, this test is not required because there is
11202 # no limit to the length of command line arguments.
11203 # Libtool will interpret -1 as no limit whatsoever
11204 lt_cv_sys_max_cmd_len=-1;
11208 # On Win9x/ME, this test blows up -- it succeeds, but takes
11209 # about 5 minutes as the teststring grows exponentially.
11210 # Worse, since 9x/ME are not pre-emptively multitasking,
11211 # you end up with a "frozen" computer, even though with patience
11212 # the test eventually succeeds (with a max line length of 256k).
11213 # Instead, let's just punt: use the minimum linelength reported by
11214 # all of the supported platforms: 8192 (on NT/2K/XP).
11215 lt_cv_sys_max_cmd_len=8192;
11219 # On AmigaOS with pdksh, this test takes hours, literally.
11220 # So we just punt and use a minimum line length of 8192.
11221 lt_cv_sys_max_cmd_len=8192;
11224 netbsd* | freebsd* | openbsd* | darwin* )
11225 # This has been around since 386BSD, at least. Likely further.
11226 if test -x /sbin/sysctl; then
11227 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11228 elif test -x /usr/sbin/sysctl; then
11229 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11231 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11233 # And add a safety zone
11234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11238 # If test is not a shell built-in, we'll probably end up computing a
11239 # maximum length that is only half of the actual maximum length, but
11241 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11242 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11243 = "XX$teststring") >/dev/null 2>&1 &&
11244 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11245 lt_cv_sys_max_cmd_len=$new_result &&
11246 test $i != 17 # 1/2 MB should be enough
11249 teststring=$teststring$teststring
11252 # Add a significant safety factor because C++ compilers can tack on massive
11253 # amounts of additional arguments before passing them to the linker.
11254 # It appears as though 1/2 is a usable value.
11255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11261 if test -n $lt_cv_sys_max_cmd_len ; then
11262 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11263 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11265 echo "$as_me:$LINENO: result: none" >&5
11266 echo "${ECHO_T}none" >&6
11272 # Check for command to grab the raw symbol name followed by C symbol from nm.
11273 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11274 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11275 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 # These are sane defaults that work on at least a few old systems.
11280 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11282 # Character class describing NM global symbol codes.
11283 symcode='[BCDEGRST]'
11285 # Regexp to match symbols that can be accessed directly from C.
11286 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11288 # Transform the above into a raw symbol and a C symbol.
11289 symxfrm='\1 \2\3 \3'
11291 # Transform an extracted symbol line into a proper C declaration
11292 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11294 # Transform an extracted symbol line into symbol name and symbol address
11295 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'"
11297 # Define system-specific variables.
11302 cygwin* | mingw* | pw32*)
11303 symcode='[ABCDGISTW]'
11305 hpux*) # Its linker distinguishes data from code symbols
11306 if test "$host_cpu" = ia64; then
11307 symcode='[ABCDEGRST]'
11309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11310 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'"
11313 if test "$host_cpu" = ia64; then
11314 symcode='[ABCDGIRSTW]'
11315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11316 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'"
11319 irix* | nonstopux*)
11320 symcode='[BCDEGRST]'
11323 symcode='[BCDEGQRST]'
11333 # Handle CRLF in mingw tool chain
11337 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11341 # If we're using GNU nm, then use its standard symbol codes.
11342 case `$NM -V 2>&1` in
11343 *GNU* | *'with BFD'*)
11344 symcode='[ABCDGIRSTW]' ;;
11347 # Try without a prefix undercore, then with it.
11348 for ac_symprfx in "" "_"; do
11350 # Write the raw and C identifiers.
11351 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11353 # Check to see that the pipe works correctly.
11357 cat > conftest.$ac_ext <<EOF
11362 void nm_test_func(){}
11366 int main(){nm_test_var='a';nm_test_func();return(0);}
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; then
11374 # Now try to grab the symbols.
11376 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11377 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } && test -s "$nlist"; then
11381 # Try sorting and uniquifying the output.
11382 if sort "$nlist" | uniq > "$nlist"T; then
11383 mv -f "$nlist"T "$nlist"
11388 # Make sure that we snagged all the symbols we need.
11389 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11390 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11391 cat <<EOF > conftest.$ac_ext
11397 # Now generate the symbol file.
11398 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11400 cat <<EOF >> conftest.$ac_ext
11401 #if defined (__STDC__) && __STDC__
11402 # define lt_ptr_t void *
11404 # define lt_ptr_t char *
11408 /* The mapping between symbol names and symbols. */
11413 lt_preloaded_symbols[] =
11416 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11417 cat <<\EOF >> conftest.$ac_ext
11425 # Now try linking the two files.
11426 mv conftest.$ac_objext conftstm.$ac_objext
11427 lt_save_LIBS="$LIBS"
11428 lt_save_CFLAGS="$CFLAGS"
11429 LIBS="conftstm.$ac_objext"
11430 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432 (eval $ac_link) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11438 LIBS="$lt_save_LIBS"
11439 CFLAGS="$lt_save_CFLAGS"
11441 echo "cannot find nm_test_func in $nlist" >&5
11444 echo "cannot find nm_test_var in $nlist" >&5
11447 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11450 echo "$progname: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 rm -f conftest* conftst*
11455 # Do not use the global_symbol_pipe unless it works.
11456 if test "$pipe_works" = yes; then
11459 lt_cv_sys_global_symbol_pipe=
11465 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11466 lt_cv_sys_global_symbol_to_cdecl=
11468 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11469 echo "$as_me:$LINENO: result: failed" >&5
11470 echo "${ECHO_T}failed" >&6
11472 echo "$as_me:$LINENO: result: ok" >&5
11473 echo "${ECHO_T}ok" >&6
11476 echo "$as_me:$LINENO: checking for objdir" >&5
11477 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11478 if test "${lt_cv_objdir+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 rm -f .libs 2>/dev/null
11482 mkdir .libs 2>/dev/null
11483 if test -d .libs; then
11486 # MS-DOS does not allow filenames that begin with a dot.
11489 rmdir .libs 2>/dev/null
11491 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11492 echo "${ECHO_T}$lt_cv_objdir" >&6
11493 objdir=$lt_cv_objdir
11501 # AIX sometimes has problems with the GCC collect2 program. For some
11502 # reason, if we set the COLLECT_NAMES environment variable, the problems
11503 # vanish in a puff of smoke.
11504 if test "X${COLLECT_NAMES+set}" != Xset; then
11506 export COLLECT_NAMES
11511 # Sed substitution that helps us do robust quoting. It backslashifies
11512 # metacharacters that are still active within double-quoted strings.
11513 Xsed='sed -e s/^X//'
11514 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11516 # Same as above, but do not quote variable references.
11517 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11519 # Sed substitution to delay expansion of an escaped shell variable in a
11520 # double_quote_subst'ed string.
11521 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11523 # Sed substitution to avoid accidental globbing in evaled expressions
11524 no_glob_subst='s/\*/\\\*/g'
11529 # Global variables:
11530 default_ofile=mklib
11531 can_build_shared=yes
11533 # All known linkers require a `.a' archive for static linking (except M$VC,
11534 # which needs '.lib').
11536 ltmain="$ac_aux_dir/ltmain.sh"
11537 ofile="$default_ofile"
11538 with_gnu_ld="$lt_cv_prog_gnu_ld"
11540 if test -n "$ac_tool_prefix"; then
11541 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11542 set dummy ${ac_tool_prefix}ar; ac_word=$2
11543 echo "$as_me:$LINENO: checking for $ac_word" >&5
11544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11545 if test "${ac_cv_prog_AR+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 if test -n "$AR"; then
11549 ac_cv_prog_AR="$AR" # Let the user override the test.
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558 ac_cv_prog_AR="${ac_tool_prefix}ar"
11559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11568 if test -n "$AR"; then
11569 echo "$as_me:$LINENO: result: $AR" >&5
11570 echo "${ECHO_T}$AR" >&6
11572 echo "$as_me:$LINENO: result: no" >&5
11573 echo "${ECHO_T}no" >&6
11577 if test -z "$ac_cv_prog_AR"; then
11579 # Extract the first word of "ar", so it can be a program name with args.
11580 set dummy ar; ac_word=$2
11581 echo "$as_me:$LINENO: checking for $ac_word" >&5
11582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11583 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 if test -n "$ac_ct_AR"; then
11587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11596 ac_cv_prog_ac_ct_AR="ar"
11597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11606 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11607 if test -n "$ac_ct_AR"; then
11608 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11609 echo "${ECHO_T}$ac_ct_AR" >&6
11611 echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6
11617 AR="$ac_cv_prog_AR"
11620 if test -n "$ac_tool_prefix"; then
11621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11622 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11623 echo "$as_me:$LINENO: checking for $ac_word" >&5
11624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11625 if test "${ac_cv_prog_RANLIB+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 if test -n "$RANLIB"; then
11629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 RANLIB=$ac_cv_prog_RANLIB
11648 if test -n "$RANLIB"; then
11649 echo "$as_me:$LINENO: result: $RANLIB" >&5
11650 echo "${ECHO_T}$RANLIB" >&6
11652 echo "$as_me:$LINENO: result: no" >&5
11653 echo "${ECHO_T}no" >&6
11657 if test -z "$ac_cv_prog_RANLIB"; then
11658 ac_ct_RANLIB=$RANLIB
11659 # Extract the first word of "ranlib", so it can be a program name with args.
11660 set dummy ranlib; ac_word=$2
11661 echo "$as_me:$LINENO: checking for $ac_word" >&5
11662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11663 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 if test -n "$ac_ct_RANLIB"; then
11667 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670 for as_dir in $PATH
11673 test -z "$as_dir" && as_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676 ac_cv_prog_ac_ct_RANLIB="ranlib"
11677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11686 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11687 if test -n "$ac_ct_RANLIB"; then
11688 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11689 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11691 echo "$as_me:$LINENO: result: no" >&5
11692 echo "${ECHO_T}no" >&6
11695 RANLIB=$ac_ct_RANLIB
11697 RANLIB="$ac_cv_prog_RANLIB"
11700 if test -n "$ac_tool_prefix"; then
11701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11702 set dummy ${ac_tool_prefix}strip; ac_word=$2
11703 echo "$as_me:$LINENO: checking for $ac_word" >&5
11704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11705 if test "${ac_cv_prog_STRIP+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 if test -n "$STRIP"; then
11709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11715 test -z "$as_dir" && as_dir=.
11716 for ac_exec_ext in '' $ac_executable_extensions; do
11717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11718 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11727 STRIP=$ac_cv_prog_STRIP
11728 if test -n "$STRIP"; then
11729 echo "$as_me:$LINENO: result: $STRIP" >&5
11730 echo "${ECHO_T}$STRIP" >&6
11732 echo "$as_me:$LINENO: result: no" >&5
11733 echo "${ECHO_T}no" >&6
11737 if test -z "$ac_cv_prog_STRIP"; then
11739 # Extract the first word of "strip", so it can be a program name with args.
11740 set dummy strip; ac_word=$2
11741 echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 if test -n "$ac_ct_STRIP"; then
11747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_ac_ct_STRIP="strip"
11757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11767 if test -n "$ac_ct_STRIP"; then
11768 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11769 echo "${ECHO_T}$ac_ct_STRIP" >&6
11771 echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6
11777 STRIP="$ac_cv_prog_STRIP"
11782 old_CFLAGS="$CFLAGS"
11784 # Set sane defaults for various variables
11785 test -z "$AR" && AR=ar
11786 test -z "$AR_FLAGS" && AR_FLAGS=cru
11787 test -z "$AS" && AS=as
11788 test -z "$CC" && CC=cc
11789 test -z "$LTCC" && LTCC=$CC
11790 test -z "$DLLTOOL" && DLLTOOL=dlltool
11791 test -z "$LD" && LD=ld
11792 test -z "$LN_S" && LN_S="ln -s"
11793 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11794 test -z "$NM" && NM=nm
11795 test -z "$SED" && SED=sed
11796 test -z "$OBJDUMP" && OBJDUMP=objdump
11797 test -z "$RANLIB" && RANLIB=:
11798 test -z "$STRIP" && STRIP=:
11799 test -z "$ac_objext" && ac_objext=o
11801 # Determine commands to create old-style static archives.
11802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11803 old_postinstall_cmds='chmod 644 $oldlib'
11804 old_postuninstall_cmds=
11806 if test -n "$RANLIB"; then
11809 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11812 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11818 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11820 # Only perform the check for file, if the check method requires it
11821 case $deplibs_check_method in
11823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11824 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11825 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11834 lt_save_MAGIC_CMD="$MAGIC_CMD"
11835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11837 for ac_dir in $ac_dummy; do
11839 test -z "$ac_dir" && ac_dir=.
11840 if test -f $ac_dir/${ac_tool_prefix}file; then
11841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11842 if test -n "$file_magic_test_file"; then
11843 case $deplibs_check_method in
11845 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11848 $EGREP "$file_magic_regex" > /dev/null; then
11853 *** Warning: the command libtool uses to detect shared libraries,
11854 *** $file_magic_cmd, produces output that libtool cannot recognize.
11855 *** The result is that libtool may fail to recognize shared libraries
11856 *** as such. This will affect the creation of libtool libraries that
11857 *** depend on shared libraries, but programs linked with such libtool
11858 *** libraries will work regardless of this problem. Nevertheless, you
11859 *** may want to report the problem to your system manager and/or to
11860 *** bug-libtool@gnu.org
11870 MAGIC_CMD="$lt_save_MAGIC_CMD"
11875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11876 if test -n "$MAGIC_CMD"; then
11877 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11878 echo "${ECHO_T}$MAGIC_CMD" >&6
11880 echo "$as_me:$LINENO: result: no" >&5
11881 echo "${ECHO_T}no" >&6
11884 if test -z "$lt_cv_path_MAGIC_CMD"; then
11885 if test -n "$ac_tool_prefix"; then
11886 echo "$as_me:$LINENO: checking for file" >&5
11887 echo $ECHO_N "checking for file... $ECHO_C" >&6
11888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11896 lt_save_MAGIC_CMD="$MAGIC_CMD"
11897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11899 for ac_dir in $ac_dummy; do
11901 test -z "$ac_dir" && ac_dir=.
11902 if test -f $ac_dir/file; then
11903 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11904 if test -n "$file_magic_test_file"; then
11905 case $deplibs_check_method in
11907 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11910 $EGREP "$file_magic_regex" > /dev/null; then
11915 *** Warning: the command libtool uses to detect shared libraries,
11916 *** $file_magic_cmd, produces output that libtool cannot recognize.
11917 *** The result is that libtool may fail to recognize shared libraries
11918 *** as such. This will affect the creation of libtool libraries that
11919 *** depend on shared libraries, but programs linked with such libtool
11920 *** libraries will work regardless of this problem. Nevertheless, you
11921 *** may want to report the problem to your system manager and/or to
11922 *** bug-libtool@gnu.org
11932 MAGIC_CMD="$lt_save_MAGIC_CMD"
11937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11938 if test -n "$MAGIC_CMD"; then
11939 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11940 echo "${ECHO_T}$MAGIC_CMD" >&6
11942 echo "$as_me:$LINENO: result: no" >&5
11943 echo "${ECHO_T}no" >&6
11956 enable_win32_dll=no
11958 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11959 if test "${enable_libtool_lock+set}" = set; then
11960 enableval="$enable_libtool_lock"
11963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11966 # Check whether --with-pic or --without-pic was given.
11967 if test "${with_pic+set}" = set; then
11968 withval="$with_pic"
11969 pic_mode="$withval"
11973 test -z "$pic_mode" && pic_mode=default
11975 # Use C for the default configuration in the libtool script
11979 ac_cpp='$CPP $CPPFLAGS'
11980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11985 # Source file extension for C test sources.
11988 # Object file extension for compiled C test sources.
11992 # Code to be used in simple compile tests
11993 lt_simple_compile_test_code="int some_variable = 0;\n"
11995 # Code to be used in simple link tests
11996 lt_simple_link_test_code='int main(){return(0);}\n'
11999 # If no C compiler was specified, use CC.
12002 # Allow CC to be a program name with arguments.
12007 # Check for any special shared library compilation flags.
12010 if test "$GCC" = no; then
12013 lt_prog_cc_shlib='-belf'
12017 if test -n "$lt_prog_cc_shlib"; then
12018 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12019 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12020 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12022 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12023 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12024 lt_cv_prog_cc_can_build_shared=no
12030 # Check to make sure the static flag actually works.
12032 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12033 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12034 if test "${lt_prog_compiler_static_works+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 lt_prog_compiler_static_works=no
12038 save_LDFLAGS="$LDFLAGS"
12039 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12040 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12041 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12042 # The compiler can only warn and ignore the option if not recognized
12043 # So say no if there are warnings
12044 if test -s conftest.err; then
12045 # Append any errors to the config.log.
12046 cat conftest.err 1>&5
12048 lt_prog_compiler_static_works=yes
12052 LDFLAGS="$save_LDFLAGS"
12055 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12056 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12058 if test x"$lt_prog_compiler_static_works" = xyes; then
12061 lt_prog_compiler_static=
12067 lt_prog_compiler_no_builtin_flag=
12069 if test "$GCC" = yes; then
12070 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12073 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12074 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12075 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 lt_cv_prog_compiler_rtti_exceptions=no
12079 ac_outfile=conftest.$ac_objext
12080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12081 lt_compiler_flag="-fno-rtti -fno-exceptions"
12082 # Insert the option either (1) after the last *FLAGS variable, or
12083 # (2) before a word containing "conftest.", or (3) at the end.
12084 # Note that $ac_compile itself does not contain backslashes and begins
12085 # with a dollar sign (not a hyphen), so the echo should work correctly.
12086 # The option is referenced via a variable to avoid confusing sed.
12087 lt_compile=`echo "$ac_compile" | $SED \
12088 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12090 -e 's:$: $lt_compiler_flag:'`
12091 (eval echo "\"\$as_me:12091: $lt_compile\"" >&5)
12092 (eval "$lt_compile" 2>conftest.err)
12094 cat conftest.err >&5
12095 echo "$as_me:12095: \$? = $ac_status" >&5
12096 if (exit $ac_status) && test -s "$ac_outfile"; then
12097 # The compiler can only warn and ignore the option if not recognized
12098 # So say no if there are warnings
12099 if test ! -s conftest.err; then
12100 lt_cv_prog_compiler_rtti_exceptions=yes
12106 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12107 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12109 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12117 lt_prog_compiler_wl=
12118 lt_prog_compiler_pic=
12119 lt_prog_compiler_static=
12121 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12122 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12124 if test "$GCC" = yes; then
12125 lt_prog_compiler_wl='-Wl,'
12126 lt_prog_compiler_static='-static'
12130 # All AIX code is PIC.
12131 if test "$host_cpu" = ia64; then
12132 # AIX 5 now supports IA64 processor
12133 lt_prog_compiler_static='-Bstatic'
12138 # FIXME: we need at least 68020 code to build shared libraries, but
12139 # adding the `-m68020' flag to GCC prevents building anything better,
12141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12145 # PIC is the default for these OSes.
12148 mingw* | pw32* | os2*)
12149 # This hack is so that the source file can tell whether it is being
12150 # built for inclusion in a dll (and should export symbols for example).
12151 lt_prog_compiler_pic='-DDLL_EXPORT'
12154 darwin* | rhapsody*)
12155 # PIC is the default on this platform
12156 # Common symbols not allowed in MH_DYLIB files
12157 lt_prog_compiler_pic='-fno-common'
12161 # Just because we use GCC doesn't mean we suddenly get shared libraries
12162 # on systems that don't support them.
12163 lt_prog_compiler_can_build_shared=no
12168 if test -d /usr/nec; then
12169 lt_prog_compiler_pic=-Kconform_pic
12174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12175 # not for PA HP-UX.
12176 case "$host_cpu" in
12181 lt_prog_compiler_pic='-fPIC'
12187 lt_prog_compiler_pic='-fPIC'
12191 # PORTME Check for flag to pass linker flags through the system compiler.
12194 lt_prog_compiler_wl='-Wl,'
12195 if test "$host_cpu" = ia64; then
12196 # AIX 5 now supports IA64 processor
12197 lt_prog_compiler_static='-Bstatic'
12199 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12203 # PIC is the default on this platform
12204 # Common symbols not allowed in MH_DYLIB files
12205 case "$cc_basename" in
12207 lt_prog_compiler_pic='-qnocommon'
12208 lt_prog_compiler_wl='-Wl,'
12213 mingw* | pw32* | os2*)
12214 # This hack is so that the source file can tell whether it is being
12215 # built for inclusion in a dll (and should export symbols for example).
12216 lt_prog_compiler_pic='-DDLL_EXPORT'
12219 hpux9* | hpux10* | hpux11*)
12220 lt_prog_compiler_wl='-Wl,'
12221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12222 # not for PA HP-UX.
12223 case "$host_cpu" in
12228 lt_prog_compiler_pic='+Z'
12231 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12232 lt_prog_compiler_static='${wl}-a ${wl}archive'
12235 irix5* | irix6* | nonstopux*)
12236 lt_prog_compiler_wl='-Wl,'
12237 # PIC (with -KPIC) is the default.
12238 lt_prog_compiler_static='-non_shared'
12242 lt_prog_compiler_pic='-KPIC'
12243 lt_prog_compiler_static='-Bstatic'
12249 lt_prog_compiler_wl='-Wl,'
12250 lt_prog_compiler_pic='-KPIC'
12251 lt_prog_compiler_static='-static'
12254 lt_prog_compiler_wl='-Wl,'
12255 # All Alpha code is PIC.
12256 lt_prog_compiler_static='-non_shared'
12261 osf3* | osf4* | osf5*)
12262 lt_prog_compiler_wl='-Wl,'
12263 # All OSF/1 code is PIC.
12264 lt_prog_compiler_static='-non_shared'
12268 lt_prog_compiler_pic='-Kpic'
12269 lt_prog_compiler_static='-dn'
12273 lt_prog_compiler_wl='-Wl,'
12274 lt_prog_compiler_pic='-KPIC'
12275 lt_prog_compiler_static='-Bstatic'
12279 lt_prog_compiler_wl='-Qoption ld '
12280 lt_prog_compiler_pic='-PIC'
12281 lt_prog_compiler_static='-Bstatic'
12284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12285 lt_prog_compiler_wl='-Wl,'
12286 lt_prog_compiler_pic='-KPIC'
12287 lt_prog_compiler_static='-Bstatic'
12291 if test -d /usr/nec ;then
12292 lt_prog_compiler_pic='-Kconform_pic'
12293 lt_prog_compiler_static='-Bstatic'
12298 lt_prog_compiler_pic='-pic'
12299 lt_prog_compiler_static='-Bstatic'
12303 lt_prog_compiler_can_build_shared=no
12308 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12309 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12312 # Check to make sure the PIC flag actually works.
12314 if test -n "$lt_prog_compiler_pic"; then
12316 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12317 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12318 if test "${lt_prog_compiler_pic_works+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 lt_prog_compiler_pic_works=no
12322 ac_outfile=conftest.$ac_objext
12323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12324 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12325 # Insert the option either (1) after the last *FLAGS variable, or
12326 # (2) before a word containing "conftest.", or (3) at the end.
12327 # Note that $ac_compile itself does not contain backslashes and begins
12328 # with a dollar sign (not a hyphen), so the echo should work correctly.
12329 # The option is referenced via a variable to avoid confusing sed.
12330 lt_compile=`echo "$ac_compile" | $SED \
12331 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12333 -e 's:$: $lt_compiler_flag:'`
12334 (eval echo "\"\$as_me:12334: $lt_compile\"" >&5)
12335 (eval "$lt_compile" 2>conftest.err)
12337 cat conftest.err >&5
12338 echo "$as_me:12338: \$? = $ac_status" >&5
12339 if (exit $ac_status) && test -s "$ac_outfile"; then
12340 # The compiler can only warn and ignore the option if not recognized
12341 # So say no if there are warnings
12342 if test ! -s conftest.err; then
12343 lt_prog_compiler_pic_works=yes
12349 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12350 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12352 if test x"$lt_prog_compiler_pic_works" = xyes; then
12353 case $lt_prog_compiler_pic in
12355 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12358 lt_prog_compiler_pic=
12359 lt_prog_compiler_can_build_shared=no
12364 # For platforms which do not support PIC, -DPIC is meaningless:
12366 lt_prog_compiler_pic=
12369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12373 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12375 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 lt_cv_prog_compiler_c_o=no
12379 $rm -r conftest 2>/dev/null
12383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12385 lt_compiler_flag="-o out/conftest2.$ac_objext"
12386 # Insert the option either (1) after the last *FLAGS variable, or
12387 # (2) before a word containing "conftest.", or (3) at the end.
12388 # Note that $ac_compile itself does not contain backslashes and begins
12389 # with a dollar sign (not a hyphen), so the echo should work correctly.
12390 lt_compile=`echo "$ac_compile" | $SED \
12391 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12393 -e 's:$: $lt_compiler_flag:'`
12394 (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
12395 (eval "$lt_compile" 2>out/conftest.err)
12397 cat out/conftest.err >&5
12398 echo "$as_me:12398: \$? = $ac_status" >&5
12399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12401 # The compiler can only warn and ignore the option if not recognized
12402 # So say no if there are warnings
12403 if test ! -s out/conftest.err; then
12404 lt_cv_prog_compiler_c_o=yes
12409 # SGI C++ compiler will create directory out/ii_files/ for
12410 # template instantiation
12411 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12412 $rm out/* && rmdir out
12418 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12419 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12422 hard_links="nottested"
12423 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12424 # do not overwrite the value of need_locks provided by the user
12425 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12426 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12431 ln conftest.a conftest.b 2>&5 || hard_links=no
12432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12433 echo "$as_me:$LINENO: result: $hard_links" >&5
12434 echo "${ECHO_T}$hard_links" >&6
12435 if test "$hard_links" = no; then
12436 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12437 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12444 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12445 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12448 allow_undefined_flag=
12449 enable_shared_with_static_runtimes=no
12451 archive_expsym_cmds=
12452 old_archive_From_new_cmds=
12453 old_archive_from_expsyms_cmds=
12454 export_dynamic_flag_spec=
12455 whole_archive_flag_spec=
12456 thread_safe_flag_spec=
12457 hardcode_libdir_flag_spec=
12458 hardcode_libdir_flag_spec_ld=
12459 hardcode_libdir_separator=
12461 hardcode_minus_L=no
12462 hardcode_shlibpath_var=unsupported
12463 link_all_deplibs=unknown
12464 hardcode_automatic=no
12466 module_expsym_cmds=
12467 always_export_symbols=no
12468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12469 # include_expsyms should be a list of space-separated symbols to be *always*
12470 # included in the symbol list
12472 # exclude_expsyms can be an extended regexp of symbols to exclude
12473 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12474 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12475 # as well as any symbol that contains `d'.
12476 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12477 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12478 # platforms (ab)use it in PIC code, but their linkers get confused if
12479 # the symbol is explicitly referenced. Since portable code cannot
12480 # rely on this symbol name, it's probably fine to never include it in
12481 # preloaded symbol tables.
12482 extract_expsyms_cmds=
12485 cygwin* | mingw* | pw32*)
12486 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12487 # When not using gcc, we currently assume that we are using
12488 # Microsoft Visual C++.
12489 if test "$GCC" != yes; then
12499 if test "$with_gnu_ld" = yes; then
12500 # If archive_cmds runs LD, not CC, wlarc should be empty
12503 # See if GNU ld supports shared libraries.
12505 aix3* | aix4* | aix5*)
12506 # On AIX/PPC, the GNU linker is very broken
12507 if test "$host_cpu" != ia64; then
12511 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12512 *** to be unable to reliably create shared libraries on AIX.
12513 *** Therefore, libtool is disabling shared libraries support. If you
12514 *** really care for shared libraries, you may want to modify your PATH
12515 *** so that a non-GNU linker is found, and then restart.
12522 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)'
12523 hardcode_libdir_flag_spec='-L$libdir'
12524 hardcode_minus_L=yes
12526 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12527 # that the semantics of dynamic libraries on AmigaOS, at least up
12528 # to version 4, is to share data among multiple programs linked
12529 # with the same dynamic library. Since this doesn't match the
12530 # behavior of shared libraries on other platforms, we can't use
12536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12537 allow_undefined_flag=unsupported
12538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12539 # support --undefined. This deserves some investigation. FIXME
12540 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12546 cygwin* | mingw* | pw32*)
12547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12548 # as there is no search path for DLLs.
12549 hardcode_libdir_flag_spec='-L$libdir'
12550 allow_undefined_flag=unsupported
12551 always_export_symbols=no
12552 enable_shared_with_static_runtimes=yes
12553 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12555 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12557 # If the export-symbols file already is a .def file (1st line
12558 # is EXPORTS), use it as is; otherwise, prepend...
12559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12560 cp $export_symbols $output_objdir/$soname.def;
12562 echo EXPORTS > $output_objdir/$soname.def;
12563 cat $export_symbols >> $output_objdir/$soname.def;
12565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12573 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12582 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12587 *** create shared libraries on Solaris systems. Therefore, libtool
12588 *** is disabling shared libraries support. We urge you to upgrade GNU
12589 *** binutils to release 2.9.1 or newer. Another option is to modify
12590 *** your PATH or compiler configuration so that the native linker is
12591 *** used, and then restart.
12594 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12603 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12605 hardcode_direct=yes
12606 hardcode_shlibpath_var=no
12610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12611 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612 archive_cmds="$tmp_archive_cmds"
12613 supports_anon_versioning=no
12614 case `$LD -v 2>/dev/null` in
12615 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12616 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12617 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12618 *\ 2.11.*) ;; # other 2.11 versions
12619 *) supports_anon_versioning=yes ;;
12621 if test $supports_anon_versioning = yes; then
12622 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12624 $echo "local: *; };" >> $output_objdir/$libname.ver~
12625 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12627 archive_expsym_cmds="$tmp_archive_cmds"
12635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12644 if test "$ld_shlibs" = yes; then
12645 runpath_var=LD_RUN_PATH
12646 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12647 export_dynamic_flag_spec='${wl}--export-dynamic'
12648 # ancient GNU ld didn't support --whole-archive et. al.
12649 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12650 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12652 whole_archive_flag_spec=
12656 # PORTME fill in a description of your system's linker (not GNU ld)
12659 allow_undefined_flag=unsupported
12660 always_export_symbols=yes
12661 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'
12662 # Note: this linker hardcodes the directories in LIBPATH if there
12663 # are no directories specified by -L.
12664 hardcode_minus_L=yes
12665 if test "$GCC" = yes && test -z "$link_static_flag"; then
12666 # Neither direct hardcoding nor static linking is supported with a
12668 hardcode_direct=unsupported
12673 if test "$host_cpu" = ia64; then
12674 # On IA64, the linker does run time linking by default, so we don't
12675 # have to do anything special.
12676 aix_use_runtimelinking=no
12677 exp_sym_flag='-Bexport'
12680 # If we're using GNU nm, then we don't want the "-C" option.
12681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12682 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12683 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'
12685 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'
12687 aix_use_runtimelinking=no
12689 # Test if we are trying to use run time linking or normal
12690 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12691 # need to do runtime linking.
12692 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12693 for ld_flag in $LDFLAGS; do
12694 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12695 aix_use_runtimelinking=yes
12701 exp_sym_flag='-bexport'
12702 no_entry_flag='-bnoentry'
12705 # When large executables or shared objects are built, AIX ld can
12706 # have problems creating the table of contents. If linking a library
12707 # or program results in "error TOC overflow" add -mminimal-toc to
12708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12712 hardcode_direct=yes
12713 hardcode_libdir_separator=':'
12714 link_all_deplibs=yes
12716 if test "$GCC" = yes; then
12717 case $host_os in aix4.012|aix4.012.*)
12718 # We only want to do this on AIX 4.2 and lower, the check
12719 # below for broken collect2 doesn't work under 4.3+
12720 collect2name=`${CC} -print-prog-name=collect2`
12721 if test -f "$collect2name" && \
12722 strings "$collect2name" | grep resolve_lib_name >/dev/null
12724 # We have reworked collect2
12725 hardcode_direct=yes
12727 # We have old collect2
12728 hardcode_direct=unsupported
12729 # It fails to find uninstalled libraries when the uninstalled
12730 # path is not listed in the libpath. Setting hardcode_minus_L
12731 # to unsupported forces relinking
12732 hardcode_minus_L=yes
12733 hardcode_libdir_flag_spec='-L$libdir'
12734 hardcode_libdir_separator=
12737 shared_flag='-shared'
12740 if test "$host_cpu" = ia64; then
12741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12742 # chokes on -Wl,-G. The following line is correct:
12745 if test "$aix_use_runtimelinking" = yes; then
12746 shared_flag='${wl}-G'
12748 shared_flag='${wl}-bM:SRE'
12753 # It seems that -bexpall does not export symbols beginning with
12754 # underscore (_), so it is better to generate a list of symbols to export.
12755 always_export_symbols=yes
12756 if test "$aix_use_runtimelinking" = yes; then
12757 # Warning - without using the other runtime loading flags (-brtl),
12758 # -berok will link without error, but may produce a broken library.
12759 allow_undefined_flag='-berok'
12760 # Determine the default libpath from the value encoded in an empty executable.
12761 cat >conftest.$ac_ext <<_ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778 (eval $ac_link) 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_c_werror_flag"
12786 || test ! -s conftest.err'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12801 # Check for a 64-bit object if we didn't find anything.
12802 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; }
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12809 rm -f conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12813 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12814 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"
12816 if test "$host_cpu" = ia64; then
12817 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12818 allow_undefined_flag="-z nodefs"
12819 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"
12821 # Determine the default libpath from the value encoded in an empty executable.
12822 cat >conftest.$ac_ext <<_ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12837 rm -f conftest.$ac_objext conftest$ac_exeext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839 (eval $ac_link) 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag"
12847 || test ! -s conftest.err'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } &&
12853 { ac_try='test -s conftest$ac_exeext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12860 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12862 # Check for a 64-bit object if we didn't find anything.
12863 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; }
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12870 rm -f conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12875 # Warning - without using the other run time loading flags,
12876 # -berok will link without error, but may produce a broken library.
12877 no_undefined_flag=' ${wl}-bernotok'
12878 allow_undefined_flag=' ${wl}-berok'
12879 # -bexpall does not export symbols beginning with underscore (_)
12880 always_export_symbols=yes
12881 # Exported symbols can be pulled into shared objects from archives
12882 whole_archive_flag_spec=' '
12883 archive_cmds_need_lc=yes
12884 # This is similar to how AIX traditionally builds it's shared libraries.
12885 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'
12891 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)'
12892 hardcode_libdir_flag_spec='-L$libdir'
12893 hardcode_minus_L=yes
12894 # see comment about different semantics on the GNU ld section
12899 export_dynamic_flag_spec=-rdynamic
12902 cygwin* | mingw* | pw32*)
12903 # When not using gcc, we currently assume that we are using
12904 # Microsoft Visual C++.
12905 # hardcode_libdir_flag_spec is actually meaningless, as there is
12906 # no search path for DLLs.
12907 hardcode_libdir_flag_spec=' '
12908 allow_undefined_flag=unsupported
12909 # Tell ltmain to make .lib files, not .a files.
12911 # Tell ltmain to make .dll files, not .so files.
12913 # FIXME: Setting linknames here is a bad hack.
12914 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12915 # The linker will automatically build a .lib file if we build a DLL.
12916 old_archive_From_new_cmds='true'
12917 # FIXME: Should let the user specify the lib program.
12918 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12919 fix_srcfile_path='`cygpath -w "$srcfile"`'
12920 enable_shared_with_static_runtimes=yes
12923 darwin* | rhapsody*)
12925 rhapsody* | darwin1.[012])
12926 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12929 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12930 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12932 case ${MACOSX_DEPLOYMENT_TARGET} in
12934 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12937 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12943 archive_cmds_need_lc=no
12945 hardcode_automatic=yes
12946 hardcode_shlibpath_var=unsupported
12947 whole_archive_flag_spec=''
12948 link_all_deplibs=yes
12949 if test "$GCC" = yes ; then
12950 output_verbose_link_cmd='echo'
12951 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12952 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12953 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12954 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}'
12955 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}'
12957 case "$cc_basename" in
12959 output_verbose_link_cmd='echo'
12960 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12961 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12962 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12963 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}'
12964 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}'
12974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12975 hardcode_libdir_flag_spec='-L$libdir'
12976 hardcode_shlibpath_var=no
12983 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12984 # support. Future versions do this automatically, but an explicit c++rt0.o
12985 # does not break anything, and helps significantly (at the cost of a little
12988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12989 hardcode_libdir_flag_spec='-R$libdir'
12990 hardcode_direct=yes
12991 hardcode_shlibpath_var=no
12994 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12997 hardcode_direct=yes
12998 hardcode_minus_L=yes
12999 hardcode_shlibpath_var=no
13002 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13003 freebsd* | kfreebsd*-gnu)
13004 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13005 hardcode_libdir_flag_spec='-R$libdir'
13006 hardcode_direct=yes
13007 hardcode_shlibpath_var=no
13011 if test "$GCC" = yes; then
13012 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'
13014 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'
13016 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13017 hardcode_libdir_separator=:
13018 hardcode_direct=yes
13020 # hardcode_minus_L: Not really in the search PATH,
13021 # but as the default location of the library.
13022 hardcode_minus_L=yes
13023 export_dynamic_flag_spec='${wl}-E'
13027 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13028 case "$host_cpu" in
13030 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13033 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13037 case "$host_cpu" in
13039 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13046 if test "$with_gnu_ld" = no; then
13047 case "$host_cpu" in
13049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13050 hardcode_libdir_flag_spec_ld='+b $libdir'
13051 hardcode_libdir_separator=:
13053 hardcode_shlibpath_var=no
13056 hardcode_libdir_flag_spec='-L$libdir'
13058 hardcode_shlibpath_var=no
13060 # hardcode_minus_L: Not really in the search PATH,
13061 # but as the default location of the library.
13062 hardcode_minus_L=yes
13065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13066 hardcode_libdir_separator=:
13067 hardcode_direct=yes
13068 export_dynamic_flag_spec='${wl}-E'
13070 # hardcode_minus_L: Not really in the search PATH,
13071 # but as the default location of the library.
13072 hardcode_minus_L=yes
13078 irix5* | irix6* | nonstopux*)
13079 if test "$GCC" = yes; then
13080 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'
13082 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'
13083 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13086 hardcode_libdir_separator=:
13087 link_all_deplibs=yes
13091 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13094 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13096 hardcode_libdir_flag_spec='-R$libdir'
13097 hardcode_direct=yes
13098 hardcode_shlibpath_var=no
13102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13103 hardcode_direct=yes
13104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13105 hardcode_libdir_separator=:
13106 hardcode_shlibpath_var=no
13110 hardcode_direct=yes
13111 hardcode_shlibpath_var=no
13112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13113 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13114 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13115 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13116 export_dynamic_flag_spec='${wl}-E'
13119 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13121 hardcode_libdir_flag_spec='-R$libdir'
13124 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13125 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13132 hardcode_libdir_flag_spec='-L$libdir'
13133 hardcode_minus_L=yes
13134 allow_undefined_flag=unsupported
13135 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'
13136 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13140 if test "$GCC" = yes; then
13141 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13142 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'
13144 allow_undefined_flag=' -expect_unresolved \*'
13145 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'
13147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13148 hardcode_libdir_separator=:
13151 osf4* | osf5*) # as osf3* with the addition of -msym flag
13152 if test "$GCC" = yes; then
13153 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13154 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'
13155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13157 allow_undefined_flag=' -expect_unresolved \*'
13158 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'
13159 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13160 $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'
13162 # Both c and cxx compiler support -rpath directly
13163 hardcode_libdir_flag_spec='-rpath $libdir'
13165 hardcode_libdir_separator=:
13169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170 hardcode_shlibpath_var=no
13171 export_dynamic_flag_spec='${wl}-Bexport'
13172 runpath_var=LD_RUN_PATH
13173 hardcode_runpath_var=yes
13177 no_undefined_flag=' -z text'
13178 if test "$GCC" = yes; then
13179 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13180 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13181 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13183 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13184 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13185 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13187 hardcode_libdir_flag_spec='-R$libdir'
13188 hardcode_shlibpath_var=no
13190 solaris2.[0-5] | solaris2.[0-5].*) ;;
13191 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13194 link_all_deplibs=yes
13198 if test "x$host_vendor" = xsequent; then
13199 # Use $CC to link under sequent, because it throws in some extra .o
13200 # files that make .init and .fini sections work.
13201 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13203 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13205 hardcode_libdir_flag_spec='-L$libdir'
13206 hardcode_direct=yes
13207 hardcode_minus_L=yes
13208 hardcode_shlibpath_var=no
13212 case $host_vendor in
13214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13215 hardcode_direct=yes # is this really true???
13218 ## LD is ld it makes a PLAMLIB
13219 ## CC just makes a GrossModule.
13220 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13221 reload_cmds='$CC -r -o $output$reload_objs'
13225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13226 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13229 runpath_var='LD_RUN_PATH'
13230 hardcode_shlibpath_var=no
13234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13235 hardcode_shlibpath_var=no
13236 export_dynamic_flag_spec='-Bexport'
13240 if test -d /usr/nec; then
13241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242 hardcode_shlibpath_var=no
13243 runpath_var=LD_RUN_PATH
13244 hardcode_runpath_var=yes
13250 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_direct=yes
13252 hardcode_minus_L=no
13253 hardcode_shlibpath_var=no
13254 hardcode_runpath_var=yes
13255 runpath_var=LD_RUN_PATH
13258 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13259 no_undefined_flag='${wl}-z ${wl}text'
13260 if test "$GCC" = yes; then
13261 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13263 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13265 runpath_var='LD_RUN_PATH'
13266 hardcode_shlibpath_var=no
13270 no_undefined_flag=' -z text'
13271 # $CC -shared without GNU ld will not create a library from C++
13272 # object files and a static libstdc++, better avoid it by now
13273 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13274 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13276 hardcode_libdir_flag_spec=
13277 hardcode_shlibpath_var=no
13278 runpath_var='LD_RUN_PATH'
13282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13283 hardcode_libdir_flag_spec='-L$libdir'
13284 hardcode_shlibpath_var=no
13293 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13294 echo "${ECHO_T}$ld_shlibs" >&6
13295 test "$ld_shlibs" = no && can_build_shared=no
13297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13298 if test "$GCC" = yes; then
13299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13303 # Do we need to explicitly link libc?
13305 case "x$archive_cmds_need_lc" in
13307 # Assume -lc should be added
13308 archive_cmds_need_lc=yes
13310 if test "$enable_shared" = yes && test "$GCC" = yes; then
13311 case $archive_cmds in
13313 # FIXME: we may have to deal with multi-command sequences.
13316 # Test whether the compiler implicitly links with -lc since on some
13317 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13318 # to ld, don't add -lc before -lgcc.
13319 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13320 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } 2>conftest.err; then
13331 libobjs=conftest.$ac_objext
13333 wl=$lt_prog_compiler_wl
13339 lt_save_allow_undefined_flag=$allow_undefined_flag
13340 allow_undefined_flag=
13341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13342 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }
13347 archive_cmds_need_lc=no
13349 archive_cmds_need_lc=yes
13351 allow_undefined_flag=$lt_save_allow_undefined_flag
13353 cat conftest.err 1>&5
13356 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13357 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13366 library_names_spec=
13367 libname_spec='lib$name'
13371 postuninstall_cmds=
13375 shlibpath_overrides_runpath=unknown
13377 dynamic_linker="$host_os ld.so"
13378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13379 if test "$GCC" = yes; then
13380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13381 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13382 # if the path contains ";" then we assume it to be the separator
13383 # otherwise default to the standard path separator (i.e. ":") - it is
13384 # assumed that no part of a normal pathname contains ";" but that should
13385 # okay in the real world where ";" in dirpaths is itself problematic.
13386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13393 need_lib_prefix=unknown
13394 hardcode_into_libs=no
13396 # when you set need_version to no, make sure it does not cause -set_version
13397 # flags to be left without arguments
13398 need_version=unknown
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13404 shlibpath_var=LIBPATH
13406 # AIX 3 has no versioning support, so we append a major version to the name.
13407 soname_spec='${libname}${release}${shared_ext}$major'
13414 hardcode_into_libs=yes
13415 if test "$host_cpu" = ia64; then
13416 # AIX 5 supports IA64
13417 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13418 shlibpath_var=LD_LIBRARY_PATH
13420 # With GCC up to 2.95.x, collect2 would create an import file
13421 # for dependence libraries. The import file would start with
13422 # the line `#! .'. This would cause the generated library to
13423 # depend on `.', always an invalid library. This was fixed in
13424 # development snapshots of GCC prior to 3.0.
13426 aix4 | aix4.[01] | aix4.[01].*)
13427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13429 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13432 can_build_shared=no
13436 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13437 # soname into executable. Probably we can add versioning support to
13438 # collect2, so additional links can be useful in future.
13439 if test "$aix_use_runtimelinking" = yes; then
13440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13441 # instead of lib<name>.a to let people know that these are not
13442 # typical AIX shared libraries.
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 # We preserve .a as extension for shared libraries through AIX4.2
13446 # and later when we are not doing run time linking.
13447 library_names_spec='${libname}${release}.a $libname.a'
13448 soname_spec='${libname}${release}${shared_ext}$major'
13450 shlibpath_var=LIBPATH
13455 library_names_spec='$libname.ixlibrary $libname.a'
13456 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13457 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'
13461 library_names_spec='${libname}${shared_ext}'
13462 dynamic_linker="$host_os ld.so"
13463 shlibpath_var=LIBRARY_PATH
13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470 soname_spec='${libname}${release}${shared_ext}$major'
13471 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13472 shlibpath_var=LD_LIBRARY_PATH
13473 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13474 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13475 # the default ld.so.conf also contains /usr/contrib/lib and
13476 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13477 # libtool to hard-code these into programs
13480 cygwin* | mingw* | pw32*)
13481 version_type=windows
13486 case $GCC,$host_os in
13487 yes,cygwin* | yes,mingw* | yes,pw32*)
13488 library_names_spec='$libname.dll.a'
13489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13490 postinstall_cmds='base_file=`basename \${file}`~
13491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13492 dldir=$destdir/`dirname \$dlpath`~
13493 test -d \$dldir || mkdir -p \$dldir~
13494 $install_prog $dir/$dlname \$dldir/$dlname'
13495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13496 dlpath=$dir/\$dldll~
13498 shlibpath_overrides_runpath=yes
13502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13507 # MinGW DLLs use traditional 'lib' prefix
13508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13510 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13511 # It is most probably a Windows format PATH printed by
13512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13513 # path with ; separators, and with drive letters. We can handle the
13514 # drive letters (cygwin fileutils understands them), so leave them,
13515 # especially as we might pass files found there to a mingw objdump,
13516 # which wouldn't understand a cygwinified path. Ahh.
13517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13523 # pw32 DLLs use 'pw' prefix rather than 'lib'
13524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13533 dynamic_linker='Win32 ld.exe'
13534 # FIXME: first we should search . and the directory the executable is in
13538 darwin* | rhapsody*)
13539 dynamic_linker="$host_os dyld"
13540 version_type=darwin
13543 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13544 soname_spec='${libname}${release}${major}$shared_ext'
13545 shlibpath_overrides_runpath=yes
13546 shlibpath_var=DYLD_LIBRARY_PATH
13547 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13548 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13549 if test "$GCC" = yes; then
13550 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"`
13552 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13562 soname_spec='${libname}${release}${shared_ext}$major'
13563 shlibpath_var=LD_LIBRARY_PATH
13574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13575 soname_spec='${libname}${release}${shared_ext}$major'
13576 shlibpath_var=LD_LIBRARY_PATH
13577 shlibpath_overrides_runpath=no
13578 hardcode_into_libs=yes
13579 dynamic_linker='GNU ld.so'
13583 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13584 version_type=freebsd-$objformat
13585 case $version_type in
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13596 shlibpath_var=LD_LIBRARY_PATH
13599 shlibpath_overrides_runpath=yes
13601 freebsd3.01* | freebsdelf3.01*)
13602 shlibpath_overrides_runpath=yes
13603 hardcode_into_libs=yes
13606 shlibpath_overrides_runpath=no
13607 hardcode_into_libs=yes
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 shlibpath_var=LD_LIBRARY_PATH
13619 hardcode_into_libs=yes
13622 hpux9* | hpux10* | hpux11*)
13623 # Give a soname corresponding to the major version so that dld.sl refuses to
13624 # link against other versions.
13628 case "$host_cpu" in
13631 hardcode_into_libs=yes
13632 dynamic_linker="$host_os dld.so"
13633 shlibpath_var=LD_LIBRARY_PATH
13634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13637 if test "X$HPUX_IA64_MODE" = X32; then
13638 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13640 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13646 hardcode_into_libs=yes
13647 dynamic_linker="$host_os dld.sl"
13648 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13657 dynamic_linker="$host_os dld.sl"
13658 shlibpath_var=SHLIB_PATH
13659 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661 soname_spec='${libname}${release}${shared_ext}$major'
13664 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13665 postinstall_cmds='chmod 555 $lib'
13668 irix5* | irix6* | nonstopux*)
13670 nonstopux*) version_type=nonstopux ;;
13672 if test "$lt_cv_prog_gnu_ld" = yes; then
13680 soname_spec='${libname}${release}${shared_ext}$major'
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13683 irix5* | nonstopux*)
13684 libsuff= shlibsuff=
13687 case $LD in # libtool.m4 will add one of these switches to LD
13688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13689 libsuff= shlibsuff= libmagic=32-bit;;
13690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13691 libsuff=32 shlibsuff=N32 libmagic=N32;;
13692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13693 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13694 *) libsuff= shlibsuff= libmagic=never-match;;
13698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13699 shlibpath_overrides_runpath=no
13700 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13701 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13702 hardcode_into_libs=yes
13705 # No shared lib support for Linux oldld, aout, or coff.
13706 linux*oldld* | linux*aout* | linux*coff*)
13710 # This must be Linux ELF.
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
13717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 # This implies no fast_install, which is unacceptable.
13721 # Some rework will be needed to allow for fast_install
13722 # before this can be enabled.
13723 hardcode_into_libs=yes
13725 # Append ld.so.conf contents to the search path
13726 if test -f /etc/ld.so.conf; then
13727 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13728 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13731 # We used to test for /lib/ld.so.1 and disable shared libraries on
13732 # powerpc, because MkLinux only supported shared libraries with the
13733 # GNU dynamic linker. Since this was broken with cross compilers,
13734 # most powerpc-linux boxes support dynamic linking these days and
13735 # people can always --disable-shared, the test was removed, and we
13736 # assume the GNU/Linux dynamic linker is in use.
13737 dynamic_linker='GNU/Linux ld.so'
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 shlibpath_overrides_runpath=no
13748 hardcode_into_libs=yes
13749 dynamic_linker='GNU ld.so'
13756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13759 dynamic_linker='NetBSD (a.out) ld.so'
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13762 soname_spec='${libname}${release}${shared_ext}$major'
13763 dynamic_linker='NetBSD ld.elf_so'
13765 shlibpath_var=LD_LIBRARY_PATH
13766 shlibpath_overrides_runpath=yes
13767 hardcode_into_libs=yes
13772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 shlibpath_overrides_runpath=yes
13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13782 soname_spec='${libname}${release}${shared_ext}$major'
13783 shlibpath_var=LD_LIBRARY_PATH
13784 shlibpath_overrides_runpath=yes
13791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13793 shlibpath_var=LD_LIBRARY_PATH
13794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13796 openbsd2.[89] | openbsd2.[89].*)
13797 shlibpath_overrides_runpath=no
13800 shlibpath_overrides_runpath=yes
13804 shlibpath_overrides_runpath=yes
13809 libname_spec='$name'
13812 library_names_spec='$libname${shared_ext} $libname.a'
13813 dynamic_linker='OS/2 ld.exe'
13814 shlibpath_var=LIBPATH
13817 osf3* | osf4* | osf5*)
13821 soname_spec='${libname}${release}${shared_ext}$major'
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13823 shlibpath_var=LD_LIBRARY_PATH
13824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13825 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13830 soname_spec='${libname}${release}${shared_ext}$major'
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832 shlibpath_var=LD_LIBRARY_PATH
13839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840 soname_spec='${libname}${release}${shared_ext}$major'
13841 shlibpath_var=LD_LIBRARY_PATH
13842 shlibpath_overrides_runpath=yes
13843 hardcode_into_libs=yes
13844 # ldd complains unless libraries are executable
13845 postinstall_cmds='chmod +x $lib'
13850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13852 shlibpath_var=LD_LIBRARY_PATH
13853 shlibpath_overrides_runpath=yes
13854 if test "$with_gnu_ld" = yes; then
13860 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13863 soname_spec='${libname}${release}${shared_ext}$major'
13864 shlibpath_var=LD_LIBRARY_PATH
13865 case $host_vendor in
13867 shlibpath_overrides_runpath=no
13869 export_dynamic_flag_spec='${wl}-Blargedynsym'
13870 runpath_var=LD_RUN_PATH
13878 shlibpath_overrides_runpath=no
13879 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13885 if test -d /usr/nec ;then
13887 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13888 soname_spec='$libname${shared_ext}.$major'
13889 shlibpath_var=LD_LIBRARY_PATH
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13896 soname_spec='${libname}${release}${shared_ext}$major'
13897 shlibpath_var=LD_LIBRARY_PATH
13904 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13905 echo "${ECHO_T}$dynamic_linker" >&6
13906 test "$dynamic_linker" = no && can_build_shared=no
13908 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13909 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13911 if test -n "$hardcode_libdir_flag_spec" || \
13912 test -n "$runpath_var" || \
13913 test "X$hardcode_automatic" = "Xyes" ; then
13915 # We can hardcode non-existant directories.
13916 if test "$hardcode_direct" != no &&
13917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13918 # have to relink, otherwise we might link with an installed library
13919 # when we should be linking with a yet-to-be-installed one
13920 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13921 test "$hardcode_minus_L" != no; then
13922 # Linking always hardcodes the temporary library directory.
13923 hardcode_action=relink
13925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13926 hardcode_action=immediate
13929 # We cannot hardcode anything, or else we can only hardcode existing
13931 hardcode_action=unsupported
13933 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13934 echo "${ECHO_T}$hardcode_action" >&6
13936 if test "$hardcode_action" = relink; then
13937 # Fast installation is not supported
13938 enable_fast_install=no
13939 elif test "$shlibpath_overrides_runpath" = yes ||
13940 test "$enable_shared" = no; then
13941 # Fast installation is not necessary
13942 enable_fast_install=needless
13947 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13948 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13949 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13950 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13951 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13952 echo "$as_me:$LINENO: result: yes" >&5
13953 echo "${ECHO_T}yes" >&6
13955 # FIXME - insert some real tests, host_os isn't really good enough
13958 if test -n "$STRIP" ; then
13959 striplib="$STRIP -x"
13960 echo "$as_me:$LINENO: result: yes" >&5
13961 echo "${ECHO_T}yes" >&6
13963 echo "$as_me:$LINENO: result: no" >&5
13964 echo "${ECHO_T}no" >&6
13968 echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6
13974 if test "x$enable_dlopen" != xyes; then
13975 enable_dlopen=unknown
13976 enable_dlopen_self=unknown
13977 enable_dlopen_self_static=unknown
13984 lt_cv_dlopen="load_add_on"
13986 lt_cv_dlopen_self=yes
13990 lt_cv_dlopen="LoadLibrary"
13995 lt_cv_dlopen="dlopen"
14000 # if libdl is installed we need to link against it
14001 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14002 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14003 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 ac_check_lib_save_LIBS=$LIBS
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14015 /* Override any gcc2 internal prototype to avoid an error. */
14019 /* We use char because int might match the return type of a gcc2
14020 builtin and then its argument prototype would still apply. */
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -z "$ac_c_werror_flag"
14040 || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_cv_lib_dl_dlopen=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 ac_cv_lib_dl_dlopen=no
14059 rm -f conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 LIBS=$ac_check_lib_save_LIBS
14063 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14065 if test $ac_cv_lib_dl_dlopen = yes; then
14066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14069 lt_cv_dlopen="dyld"
14071 lt_cv_dlopen_self=yes
14078 echo "$as_me:$LINENO: checking for shl_load" >&5
14079 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14080 if test "${ac_cv_func_shl_load+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14091 #define shl_load innocuous_shl_load
14093 /* System header to define __stub macros and hopefully few prototypes,
14094 which can conflict with char shl_load (); below.
14095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14096 <limits.h> exists even on freestanding compilers. */
14099 # include <limits.h>
14101 # include <assert.h>
14106 /* Override any gcc2 internal prototype to avoid an error. */
14111 /* We use char because int might match the return type of a gcc2
14112 builtin and then its argument prototype would still apply. */
14114 /* The GNU C library defines this for functions which it implements
14115 to always fail with ENOSYS. Some functions are actually named
14116 something starting with __ and the normal name is an alias. */
14117 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14120 char (*f) () = shl_load;
14129 return f != shl_load;
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136 (eval $ac_link) 2>conftest.er1
14138 grep -v '^ *+' conftest.er1 >conftest.err
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
14143 { ac_try='test -z "$ac_c_werror_flag"
14144 || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest$ac_exeext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_func_shl_load=yes
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_func_shl_load=no
14163 rm -f conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14166 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14167 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14168 if test $ac_cv_func_shl_load = yes; then
14169 lt_cv_dlopen="shl_load"
14171 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14172 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14173 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 ac_check_lib_save_LIBS=$LIBS
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14185 /* Override any gcc2 internal prototype to avoid an error. */
14189 /* We use char because int might match the return type of a gcc2
14190 builtin and then its argument prototype would still apply. */
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14202 (eval $ac_link) 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try='test -z "$ac_c_werror_flag"
14210 || test ! -s conftest.err'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_lib_dld_shl_load=yes
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 ac_cv_lib_dld_shl_load=no
14229 rm -f conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS
14233 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14234 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14235 if test $ac_cv_lib_dld_shl_load = yes; then
14236 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14238 echo "$as_me:$LINENO: checking for dlopen" >&5
14239 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14240 if test "${ac_cv_func_dlopen+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 cat >conftest.$ac_ext <<_ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14249 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14251 #define dlopen innocuous_dlopen
14253 /* System header to define __stub macros and hopefully few prototypes,
14254 which can conflict with char dlopen (); below.
14255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14256 <limits.h> exists even on freestanding compilers. */
14259 # include <limits.h>
14261 # include <assert.h>
14266 /* Override any gcc2 internal prototype to avoid an error. */
14271 /* We use char because int might match the return type of a gcc2
14272 builtin and then its argument prototype would still apply. */
14274 /* The GNU C library defines this for functions which it implements
14275 to always fail with ENOSYS. Some functions are actually named
14276 something starting with __ and the normal name is an alias. */
14277 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14280 char (*f) () = dlopen;
14289 return f != dlopen;
14294 rm -f conftest.$ac_objext conftest$ac_exeext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14296 (eval $ac_link) 2>conftest.er1
14298 grep -v '^ *+' conftest.er1 >conftest.err
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try='test -z "$ac_c_werror_flag"
14304 || test ! -s conftest.err'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; } &&
14310 { ac_try='test -s conftest$ac_exeext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 ac_cv_func_dlopen=yes
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 ac_cv_func_dlopen=no
14323 rm -f conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14326 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14327 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14328 if test $ac_cv_func_dlopen = yes; then
14329 lt_cv_dlopen="dlopen"
14331 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14332 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14333 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 ac_check_lib_save_LIBS=$LIBS
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14345 /* Override any gcc2 internal prototype to avoid an error. */
14349 /* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14360 rm -f conftest.$ac_objext conftest$ac_exeext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362 (eval $ac_link) 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag"
14370 || test ! -s conftest.err'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest$ac_exeext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_lib_dl_dlopen=yes
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_cv_lib_dl_dlopen=no
14389 rm -f conftest.err conftest.$ac_objext \
14390 conftest$ac_exeext conftest.$ac_ext
14391 LIBS=$ac_check_lib_save_LIBS
14393 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14394 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14395 if test $ac_cv_lib_dl_dlopen = yes; then
14396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14398 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14399 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14400 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 ac_check_lib_save_LIBS=$LIBS
14404 LIBS="-lsvld $LIBS"
14405 cat >conftest.$ac_ext <<_ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14412 /* Override any gcc2 internal prototype to avoid an error. */
14416 /* We use char because int might match the return type of a gcc2
14417 builtin and then its argument prototype would still apply. */
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14429 (eval $ac_link) 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag"
14437 || test ! -s conftest.err'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest$ac_exeext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_cv_lib_svld_dlopen=yes
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14454 ac_cv_lib_svld_dlopen=no
14456 rm -f conftest.err conftest.$ac_objext \
14457 conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS
14460 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14461 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14462 if test $ac_cv_lib_svld_dlopen = yes; then
14463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14465 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14466 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14467 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 ac_check_lib_save_LIBS=$LIBS
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14479 /* Override any gcc2 internal prototype to avoid an error. */
14483 /* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496 (eval $ac_link) 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag"
14504 || test ! -s conftest.err'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; } &&
14510 { ac_try='test -s conftest$ac_exeext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_cv_lib_dld_dld_link=yes
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_cv_lib_dld_dld_link=no
14523 rm -f conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14525 LIBS=$ac_check_lib_save_LIBS
14527 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14528 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14529 if test $ac_cv_lib_dld_dld_link = yes; then
14530 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14551 if test "x$lt_cv_dlopen" != xno; then
14557 case $lt_cv_dlopen in
14559 save_CPPFLAGS="$CPPFLAGS"
14560 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14562 save_LDFLAGS="$LDFLAGS"
14563 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14566 LIBS="$lt_cv_dlopen_libs $LIBS"
14568 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14569 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14570 if test "${lt_cv_dlopen_self+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 if test "$cross_compiling" = yes; then :
14574 lt_cv_dlopen_self=cross
14576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14577 lt_status=$lt_dlunknown
14578 cat > conftest.$ac_ext <<EOF
14579 #line 14579 "configure"
14580 #include "confdefs.h"
14589 # define LT_DLGLOBAL RTLD_GLOBAL
14592 # define LT_DLGLOBAL DL_GLOBAL
14594 # define LT_DLGLOBAL 0
14598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14599 find out it does not work in some platform. */
14600 #ifndef LT_DLLAZY_OR_NOW
14602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14605 # define LT_DLLAZY_OR_NOW DL_LAZY
14608 # define LT_DLLAZY_OR_NOW RTLD_NOW
14611 # define LT_DLLAZY_OR_NOW DL_NOW
14613 # define LT_DLLAZY_OR_NOW 0
14621 extern "C" void exit (int);
14624 void fnord() { int i=42;}
14627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14628 int status = $lt_dlunknown;
14632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14633 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14634 /* dlclose (self); */
14640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641 (eval $ac_link) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14645 (./conftest; exit; ) 2>/dev/null
14647 case x$lt_status in
14648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14650 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14653 # compilation failed
14654 lt_cv_dlopen_self=no
14661 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14662 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14664 if test "x$lt_cv_dlopen_self" = xyes; then
14665 LDFLAGS="$LDFLAGS $link_static_flag"
14666 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14667 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14668 if test "${lt_cv_dlopen_self_static+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 if test "$cross_compiling" = yes; then :
14672 lt_cv_dlopen_self_static=cross
14674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14675 lt_status=$lt_dlunknown
14676 cat > conftest.$ac_ext <<EOF
14677 #line 14677 "configure"
14678 #include "confdefs.h"
14687 # define LT_DLGLOBAL RTLD_GLOBAL
14690 # define LT_DLGLOBAL DL_GLOBAL
14692 # define LT_DLGLOBAL 0
14696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14697 find out it does not work in some platform. */
14698 #ifndef LT_DLLAZY_OR_NOW
14700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14703 # define LT_DLLAZY_OR_NOW DL_LAZY
14706 # define LT_DLLAZY_OR_NOW RTLD_NOW
14709 # define LT_DLLAZY_OR_NOW DL_NOW
14711 # define LT_DLLAZY_OR_NOW 0
14719 extern "C" void exit (int);
14722 void fnord() { int i=42;}
14725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14726 int status = $lt_dlunknown;
14730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14732 /* dlclose (self); */
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739 (eval $ac_link) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14743 (./conftest; exit; ) 2>/dev/null
14745 case x$lt_status in
14746 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14747 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14748 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14751 # compilation failed
14752 lt_cv_dlopen_self_static=no
14759 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14760 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14763 CPPFLAGS="$save_CPPFLAGS"
14764 LDFLAGS="$save_LDFLAGS"
14769 case $lt_cv_dlopen_self in
14770 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14771 *) enable_dlopen_self=unknown ;;
14774 case $lt_cv_dlopen_self_static in
14775 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14776 *) enable_dlopen_self_static=unknown ;;
14781 # Report which librarie types wil actually be built
14782 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14783 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14784 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14785 echo "${ECHO_T}$can_build_shared" >&6
14787 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14788 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14789 test "$can_build_shared" = "no" && enable_shared=no
14791 # On AIX, shared libraries and static libraries use the same namespace, and
14792 # are all built from PIC.
14795 test "$enable_shared" = yes && enable_static=no
14796 if test -n "$RANLIB"; then
14797 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14798 postinstall_cmds='$RANLIB $lib'
14803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14804 test "$enable_shared" = yes && enable_static=no
14808 echo "$as_me:$LINENO: result: $enable_shared" >&5
14809 echo "${ECHO_T}$enable_shared" >&6
14811 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14812 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14813 # Make sure either enable_shared or enable_static is yes.
14814 test "$enable_shared" = yes || enable_static=yes
14815 echo "$as_me:$LINENO: result: $enable_static" >&5
14816 echo "${ECHO_T}$enable_static" >&6
14818 # The else clause should only fire when bootstrapping the
14819 # libtool distribution, otherwise you forgot to ship ltmain.sh
14820 # with your package, and you will get complaints that there are
14821 # no rules to generate ltmain.sh.
14822 if test -f "$ltmain"; then
14823 # See if we are running on zsh, and set the options which allow our commands through
14824 # without removal of \ escapes.
14825 if test -n "${ZSH_VERSION+set}" ; then
14826 setopt NO_GLOB_SUBST
14828 # Now quote all the things that may contain metacharacters while being
14829 # careful not to overquote the AC_SUBSTed values. We take copies of the
14830 # variables and quote the copies for generation of the libtool script.
14831 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14833 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14834 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14835 deplibs_check_method reload_flag reload_cmds need_locks \
14836 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14837 lt_cv_sys_global_symbol_to_c_name_address \
14838 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14839 old_postinstall_cmds old_postuninstall_cmds \
14843 lt_prog_compiler_wl \
14844 lt_prog_compiler_pic \
14845 lt_prog_compiler_static \
14846 lt_prog_compiler_no_builtin_flag \
14847 export_dynamic_flag_spec \
14848 thread_safe_flag_spec \
14849 whole_archive_flag_spec \
14850 enable_shared_with_static_runtimes \
14852 old_archive_from_new_cmds \
14857 compiler_lib_search_path \
14859 archive_expsym_cmds \
14861 postuninstall_cmds \
14862 old_archive_from_expsyms_cmds \
14863 allow_undefined_flag \
14864 no_undefined_flag \
14865 export_symbols_cmds \
14866 hardcode_libdir_flag_spec \
14867 hardcode_libdir_flag_spec_ld \
14868 hardcode_libdir_separator \
14869 hardcode_automatic \
14871 module_expsym_cmds \
14872 lt_cv_prog_compiler_c_o \
14874 include_expsyms; do
14877 old_archive_cmds | \
14878 old_archive_from_new_cmds | \
14880 archive_expsym_cmds | \
14882 module_expsym_cmds | \
14883 old_archive_from_expsyms_cmds | \
14884 export_symbols_cmds | \
14885 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14886 postinstall_cmds | postuninstall_cmds | \
14887 old_postinstall_cmds | old_postuninstall_cmds | \
14888 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14889 # Double-quote double-evaled strings.
14890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14899 *'\$0 --fallback-echo"')
14900 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14904 cfgfile="${ofile}T"
14905 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14907 { echo "$as_me:$LINENO: creating $ofile" >&5
14908 echo "$as_me: creating $ofile" >&6;}
14910 cat <<__EOF__ >> "$cfgfile"
14913 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14914 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14915 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14917 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14918 # Free Software Foundation, Inc.
14920 # This file is part of GNU Libtool:
14921 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14923 # This program is free software; you can redistribute it and/or modify
14924 # it under the terms of the GNU General Public License as published by
14925 # the Free Software Foundation; either version 2 of the License, or
14926 # (at your option) any later version.
14928 # This program is distributed in the hope that it will be useful, but
14929 # WITHOUT ANY WARRANTY; without even the implied warranty of
14930 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14931 # General Public License for more details.
14933 # You should have received a copy of the GNU General Public License
14934 # along with this program; if not, write to the Free Software
14935 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14937 # As a special exception to the GNU General Public License, if you
14938 # distribute this file as part of a program that contains a
14939 # configuration script generated by Autoconf, you may include it under
14940 # the same distribution terms that you use for the rest of that program.
14942 # A sed program that does not truncate output.
14945 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14946 Xsed="$SED -e s/^X//"
14948 # The HP-UX ksh and POSIX shell print the target directory to stdout
14949 # if CDPATH is set.
14950 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14952 # The names of the tagged configurations supported by this script.
14955 # ### BEGIN LIBTOOL CONFIG
14957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14959 # Shell to use when invoking shell scripts.
14962 # Whether or not to build shared libraries.
14963 build_libtool_libs=$enable_shared
14965 # Whether or not to build static libraries.
14966 build_old_libs=$enable_static
14968 # Whether or not to add -lc for building shared libraries.
14969 build_libtool_need_lc=$archive_cmds_need_lc
14971 # Whether or not to disallow shared libs when runtime libs are static
14972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14974 # Whether or not to optimize for fast installation.
14975 fast_install=$enable_fast_install
14978 host_alias=$host_alias
14981 # An echo program that does not interpret backslashes.
14986 AR_FLAGS=$lt_AR_FLAGS
14991 # A language-specific compiler.
14994 # Is the compiler the GNU C compiler?
15000 # The linker used to build libraries.
15003 # Whether we need hard or soft links.
15006 # A BSD-compatible nm program.
15009 # A symbol stripping program
15012 # Used to examine libraries when file_magic_cmd begins "file"
15013 MAGIC_CMD=$MAGIC_CMD
15015 # Used on cygwin: DLL creation program.
15018 # Used on cygwin: object dumper.
15021 # Used on cygwin: assembler.
15024 # The name of the directory that contains temporary libtool files.
15027 # How to create reloadable object files.
15028 reload_flag=$lt_reload_flag
15029 reload_cmds=$lt_reload_cmds
15031 # How to pass a linker flag through the compiler.
15032 wl=$lt_lt_prog_compiler_wl
15034 # Object file suffix (normally "o").
15035 objext="$ac_objext"
15037 # Old archive suffix (normally "a").
15040 # Shared library suffix (normally ".so").
15041 shrext_cmds='$shrext_cmds'
15043 # Executable file suffix (normally "").
15046 # Additional compiler flags for building library objects.
15047 pic_flag=$lt_lt_prog_compiler_pic
15050 # What is the maximum length of a command?
15051 max_cmd_len=$lt_cv_sys_max_cmd_len
15053 # Does compiler simultaneously support -c and -o options?
15054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15056 # Must we lock files when doing compilation ?
15057 need_locks=$lt_need_locks
15059 # Do we need the lib prefix for modules?
15060 need_lib_prefix=$need_lib_prefix
15062 # Do we need a version for libraries?
15063 need_version=$need_version
15065 # Whether dlopen is supported.
15066 dlopen_support=$enable_dlopen
15068 # Whether dlopen of programs is supported.
15069 dlopen_self=$enable_dlopen_self
15071 # Whether dlopen of statically linked programs is supported.
15072 dlopen_self_static=$enable_dlopen_self_static
15074 # Compiler flag to prevent dynamic linking.
15075 link_static_flag=$lt_lt_prog_compiler_static
15077 # Compiler flag to turn off builtin functions.
15078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15080 # Compiler flag to allow reflexive dlopens.
15081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15083 # Compiler flag to generate shared objects directly from archives.
15084 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15086 # Compiler flag to generate thread-safe objects.
15087 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15089 # Library versioning type.
15090 version_type=$version_type
15092 # Format of library name prefix.
15093 libname_spec=$lt_libname_spec
15095 # List of archive names. First name is the real one, the rest are links.
15096 # The last name is the one that the linker finds with -lNAME.
15097 library_names_spec=$lt_library_names_spec
15099 # The coded name of the library, if different from the real name.
15100 soname_spec=$lt_soname_spec
15102 # Commands used to build and install an old-style archive.
15104 old_archive_cmds=$lt_old_archive_cmds
15105 old_postinstall_cmds=$lt_old_postinstall_cmds
15106 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15108 # Create an old-style archive from a shared archive.
15109 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15111 # Create a temporary old-style archive to link instead of a shared archive.
15112 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15114 # Commands used to build and install a shared archive.
15115 archive_cmds=$lt_archive_cmds
15116 archive_expsym_cmds=$lt_archive_expsym_cmds
15117 postinstall_cmds=$lt_postinstall_cmds
15118 postuninstall_cmds=$lt_postuninstall_cmds
15120 # Commands used to build a loadable module (assumed same as above if empty)
15121 module_cmds=$lt_module_cmds
15122 module_expsym_cmds=$lt_module_expsym_cmds
15124 # Commands to strip libraries.
15125 old_striplib=$lt_old_striplib
15126 striplib=$lt_striplib
15128 # Dependencies to place before the objects being linked to create a
15130 predep_objects=$lt_predep_objects
15132 # Dependencies to place after the objects being linked to create a
15134 postdep_objects=$lt_postdep_objects
15136 # Dependencies to place before the objects being linked to create a
15138 predeps=$lt_predeps
15140 # Dependencies to place after the objects being linked to create a
15142 postdeps=$lt_postdeps
15144 # The library search path used internally by the compiler when linking
15145 # a shared library.
15146 compiler_lib_search_path=$lt_compiler_lib_search_path
15148 # Method to check whether dependent libraries are shared objects.
15149 deplibs_check_method=$lt_deplibs_check_method
15151 # Command to use when deplibs_check_method == file_magic.
15152 file_magic_cmd=$lt_file_magic_cmd
15154 # Flag that allows shared libraries with undefined symbols to be built.
15155 allow_undefined_flag=$lt_allow_undefined_flag
15157 # Flag that forces no undefined symbols.
15158 no_undefined_flag=$lt_no_undefined_flag
15160 # Commands used to finish a libtool library installation in a directory.
15161 finish_cmds=$lt_finish_cmds
15163 # Same as above, but a single script fragment to be evaled but not shown.
15164 finish_eval=$lt_finish_eval
15166 # Take the output of nm and produce a listing of raw symbols and C names.
15167 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15169 # Transform the output of nm in a proper C declaration
15170 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15172 # Transform the output of nm in a C name address pair
15173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15175 # This is the shared library runtime path variable.
15176 runpath_var=$runpath_var
15178 # This is the shared library path variable.
15179 shlibpath_var=$shlibpath_var
15181 # Is shlibpath searched before the hard-coded library search path?
15182 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15184 # How to hardcode a shared library path into an executable.
15185 hardcode_action=$hardcode_action
15187 # Whether we should hardcode library paths into libraries.
15188 hardcode_into_libs=$hardcode_into_libs
15190 # Flag to hardcode \$libdir into a binary during linking.
15191 # This must work even if \$libdir does not exist.
15192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15194 # If ld is used when linking, flag to hardcode \$libdir into
15195 # a binary during linking. This must work even if \$libdir does
15197 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15199 # Whether we need a single -rpath flag with a separated argument.
15200 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15202 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15203 # resulting binary.
15204 hardcode_direct=$hardcode_direct
15206 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15207 # resulting binary.
15208 hardcode_minus_L=$hardcode_minus_L
15210 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15211 # the resulting binary.
15212 hardcode_shlibpath_var=$hardcode_shlibpath_var
15214 # Set to yes if building a shared library automatically hardcodes DIR into the library
15215 # and all subsequent libraries and executables linked against it.
15216 hardcode_automatic=$hardcode_automatic
15218 # Variables whose values should be saved in libtool wrapper scripts and
15219 # restored at relink time.
15220 variables_saved_for_relink="$variables_saved_for_relink"
15222 # Whether libtool must link a program against all its dependency libraries.
15223 link_all_deplibs=$link_all_deplibs
15225 # Compile-time system search path for libraries
15226 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15228 # Run-time system search path for libraries
15229 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15231 # Fix the shell variable \$srcfile for the compiler.
15232 fix_srcfile_path="$fix_srcfile_path"
15234 # Set to yes if exported symbols are required.
15235 always_export_symbols=$always_export_symbols
15237 # The commands to list exported symbols.
15238 export_symbols_cmds=$lt_export_symbols_cmds
15240 # The commands to extract the exported symbol list from a shared archive.
15241 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15243 # Symbols that should not be listed in the preloaded symbols.
15244 exclude_expsyms=$lt_exclude_expsyms
15246 # Symbols that must always be exported.
15247 include_expsyms=$lt_include_expsyms
15249 # ### END LIBTOOL CONFIG
15256 cat <<\EOF >> "$cfgfile"
15258 # AIX sometimes has problems with the GCC collect2 program. For some
15259 # reason, if we set the COLLECT_NAMES environment variable, the problems
15260 # vanish in a puff of smoke.
15261 if test "X${COLLECT_NAMES+set}" != Xset; then
15263 export COLLECT_NAMES
15269 # We use sed instead of cat because bash on DJGPP gets confused if
15270 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15271 # text mode, it properly converts lines to CR/LF. This bash problem
15272 # is reportedly fixed, but why not run on old versions too?
15273 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15275 mv -f "$cfgfile" "$ofile" || \
15276 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15280 # If there is no Makefile yet, we rely on a make rule to execute
15281 # `config.status --recheck' to rerun these tests and create the
15282 # libtool script then.
15283 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15284 if test -f "$ltmain_in"; then
15285 test -f Makefile && make "$ltmain"
15291 ac_cpp='$CPP $CPPFLAGS'
15292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15299 # Check whether --with-tags or --without-tags was given.
15300 if test "${with_tags+set}" = set; then
15301 withval="$with_tags"
15302 tagnames="$withval"
15305 if test -f "$ltmain" && test -n "$tagnames"; then
15306 if test ! -f "${ofile}"; then
15307 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15308 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15311 if test -z "$LTCC"; then
15312 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15313 if test -z "$LTCC"; then
15314 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15315 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15318 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15322 # Extract list of available tagged configurations in $ofile.
15323 # Note that this assumes the entire list is on one line.
15324 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15327 for tagname in $tagnames; do
15329 # Check whether tagname contains only valid characters
15330 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15332 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15333 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15334 { (exit 1); exit 1; }; }
15338 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15340 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15341 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15342 { (exit 1); exit 1; }; }
15345 # Update the list of available tags.
15346 if test -n "$tagname"; then
15347 echo appending configuration tag "$tagname" to $ofile
15351 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15352 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15353 (test "X$CXX" != "Xg++"))) ; then
15355 ac_cpp='$CXXCPP $CPPFLAGS'
15356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15363 archive_cmds_need_lc_CXX=no
15364 allow_undefined_flag_CXX=
15365 always_export_symbols_CXX=no
15366 archive_expsym_cmds_CXX=
15367 export_dynamic_flag_spec_CXX=
15368 hardcode_direct_CXX=no
15369 hardcode_libdir_flag_spec_CXX=
15370 hardcode_libdir_flag_spec_ld_CXX=
15371 hardcode_libdir_separator_CXX=
15372 hardcode_minus_L_CXX=no
15373 hardcode_automatic_CXX=no
15375 module_expsym_cmds_CXX=
15376 link_all_deplibs_CXX=unknown
15377 old_archive_cmds_CXX=$old_archive_cmds
15378 no_undefined_flag_CXX=
15379 whole_archive_flag_spec_CXX=
15380 enable_shared_with_static_runtimes_CXX=no
15382 # Dependencies to place before and after the object being linked:
15383 predep_objects_CXX=
15384 postdep_objects_CXX=
15387 compiler_lib_search_path_CXX=
15389 # Source file extension for C++ test sources.
15392 # Object file extension for compiled C++ test sources.
15396 # Code to be used in simple compile tests
15397 lt_simple_compile_test_code="int some_variable = 0;\n"
15399 # Code to be used in simple link tests
15400 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15402 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15404 # If no C compiler was specified, use CC.
15407 # Allow CC to be a program name with arguments.
15411 # Allow CC to be a program name with arguments.
15416 lt_save_with_gnu_ld=$with_gnu_ld
15417 lt_save_path_LD=$lt_cv_path_LD
15418 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15419 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15421 unset lt_cv_prog_gnu_ld
15423 if test -n "${lt_cv_path_LDCXX+set}"; then
15424 lt_cv_path_LD=$lt_cv_path_LDCXX
15426 unset lt_cv_path_LD
15428 test -z "${LDCXX+set}" || LD=$LDCXX
15432 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15434 # We don't want -fno-exception wen compiling C++ code, so set the
15435 # no_builtin_flag separately
15436 if test "$GXX" = yes; then
15437 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15439 lt_prog_compiler_no_builtin_flag_CXX=
15442 if test "$GXX" = yes; then
15443 # Set up default GNU C++ configuration
15446 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15447 if test "${with_gnu_ld+set}" = set; then
15448 withval="$with_gnu_ld"
15449 test "$withval" = no || with_gnu_ld=yes
15454 if test "$GCC" = yes; then
15455 # Check if gcc -print-prog-name=ld gives a path.
15456 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15457 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15460 # gcc leaves a trailing carriage return which upsets mingw
15461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15466 # Accept absolute paths.
15468 re_direlt='/[^/][^/]*/\.\./'
15469 # Canonicalize the pathname of ld
15470 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15471 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15472 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15474 test -z "$LD" && LD="$ac_prog"
15477 # If it fails, then pretend we aren't using GCC.
15481 # If it is relative, then search for the first ld in PATH.
15482 with_gnu_ld=unknown
15485 elif test "$with_gnu_ld" = yes; then
15486 echo "$as_me:$LINENO: checking for GNU ld" >&5
15487 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15489 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15490 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15492 if test "${lt_cv_path_LD+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 if test -z "$LD"; then
15496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15497 for ac_dir in $PATH; do
15499 test -z "$ac_dir" && ac_dir=.
15500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15501 lt_cv_path_LD="$ac_dir/$ac_prog"
15502 # Check to see if the program is GNU ld. I'd rather use --version,
15503 # but apparently some GNU ld's only accept -v.
15504 # Break only if it was the GNU/non-GNU ld that we prefer.
15505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15506 *GNU* | *'with BFD'*)
15507 test "$with_gnu_ld" != no && break
15510 test "$with_gnu_ld" != yes && break
15517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15521 LD="$lt_cv_path_LD"
15522 if test -n "$LD"; then
15523 echo "$as_me:$LINENO: result: $LD" >&5
15524 echo "${ECHO_T}$LD" >&6
15526 echo "$as_me:$LINENO: result: no" >&5
15527 echo "${ECHO_T}no" >&6
15529 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15530 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15531 { (exit 1); exit 1; }; }
15532 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15533 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15534 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15538 case `$LD -v 2>&1 </dev/null` in
15539 *GNU* | *'with BFD'*)
15540 lt_cv_prog_gnu_ld=yes
15543 lt_cv_prog_gnu_ld=no
15547 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15548 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15549 with_gnu_ld=$lt_cv_prog_gnu_ld
15553 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15554 # archiving commands below assume that GNU ld is being used.
15555 if test "$with_gnu_ld" = yes; then
15556 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15557 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'
15559 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15562 # If archive_cmds runs LD, not CC, wlarc should be empty
15563 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15564 # investigate it a little bit more. (MM)
15567 # ancient GNU ld didn't support --whole-archive et. al.
15568 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15569 grep 'no-whole-archive' > /dev/null; then
15570 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15572 whole_archive_flag_spec_CXX=
15578 # A generic and very simple default shared library creation
15579 # command for GNU C++ for the case where it uses the native
15580 # linker, instead of GNU ld. If possible, this setting should
15581 # overridden to take advantage of the native linker features on
15582 # the platform it is being used on.
15583 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15586 # Commands to make compiler produce verbose output that lists
15587 # what "hidden" libraries, object files and flags are used when
15588 # linking a shared library.
15589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15597 # PORTME: fill in a description of your system's C++ link characteristics
15598 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15599 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15603 # FIXME: insert proper C++ library support
15607 if test "$host_cpu" = ia64; then
15608 # On IA64, the linker does run time linking by default, so we don't
15609 # have to do anything special.
15610 aix_use_runtimelinking=no
15611 exp_sym_flag='-Bexport'
15614 aix_use_runtimelinking=no
15616 # Test if we are trying to use run time linking or normal
15617 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15618 # need to do runtime linking.
15619 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15620 for ld_flag in $LDFLAGS; do
15623 aix_use_runtimelinking=yes
15630 exp_sym_flag='-bexport'
15631 no_entry_flag='-bnoentry'
15634 # When large executables or shared objects are built, AIX ld can
15635 # have problems creating the table of contents. If linking a library
15636 # or program results in "error TOC overflow" add -mminimal-toc to
15637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15640 archive_cmds_CXX=''
15641 hardcode_direct_CXX=yes
15642 hardcode_libdir_separator_CXX=':'
15643 link_all_deplibs_CXX=yes
15645 if test "$GXX" = yes; then
15646 case $host_os in aix4.012|aix4.012.*)
15647 # We only want to do this on AIX 4.2 and lower, the check
15648 # below for broken collect2 doesn't work under 4.3+
15649 collect2name=`${CC} -print-prog-name=collect2`
15650 if test -f "$collect2name" && \
15651 strings "$collect2name" | grep resolve_lib_name >/dev/null
15653 # We have reworked collect2
15654 hardcode_direct_CXX=yes
15656 # We have old collect2
15657 hardcode_direct_CXX=unsupported
15658 # It fails to find uninstalled libraries when the uninstalled
15659 # path is not listed in the libpath. Setting hardcode_minus_L
15660 # to unsupported forces relinking
15661 hardcode_minus_L_CXX=yes
15662 hardcode_libdir_flag_spec_CXX='-L$libdir'
15663 hardcode_libdir_separator_CXX=
15666 shared_flag='-shared'
15669 if test "$host_cpu" = ia64; then
15670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15671 # chokes on -Wl,-G. The following line is correct:
15674 if test "$aix_use_runtimelinking" = yes; then
15675 shared_flag='${wl}-G'
15677 shared_flag='${wl}-bM:SRE'
15682 # It seems that -bexpall does not export symbols beginning with
15683 # underscore (_), so it is better to generate a list of symbols to export.
15684 always_export_symbols_CXX=yes
15685 if test "$aix_use_runtimelinking" = yes; then
15686 # Warning - without using the other runtime loading flags (-brtl),
15687 # -berok will link without error, but may produce a broken library.
15688 allow_undefined_flag_CXX='-berok'
15689 # Determine the default libpath from the value encoded in an empty executable.
15690 cat >conftest.$ac_ext <<_ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15707 (eval $ac_link) 2>conftest.er1
15709 grep -v '^ *+' conftest.er1 >conftest.err
15711 cat conftest.err >&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } &&
15714 { ac_try='test -z "$ac_cxx_werror_flag"
15715 || test ! -s conftest.err'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; } &&
15721 { ac_try='test -s conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15730 # Check for a 64-bit object if we didn't find anything.
15731 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; }
15734 echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15738 rm -f conftest.err conftest.$ac_objext \
15739 conftest$ac_exeext conftest.$ac_ext
15740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15742 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15744 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"
15746 if test "$host_cpu" = ia64; then
15747 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15748 allow_undefined_flag_CXX="-z nodefs"
15749 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"
15751 # Determine the default libpath from the value encoded in an empty executable.
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769 (eval $ac_link) 2>conftest.er1
15771 grep -v '^ *+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try='test -z "$ac_cxx_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest$ac_exeext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15792 # Check for a 64-bit object if we didn't find anything.
15793 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; }
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15800 rm -f conftest.err conftest.$ac_objext \
15801 conftest$ac_exeext conftest.$ac_ext
15802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15804 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15805 # Warning - without using the other run time loading flags,
15806 # -berok will link without error, but may produce a broken library.
15807 no_undefined_flag_CXX=' ${wl}-bernotok'
15808 allow_undefined_flag_CXX=' ${wl}-berok'
15809 # -bexpall does not export symbols beginning with underscore (_)
15810 always_export_symbols_CXX=yes
15811 # Exported symbols can be pulled into shared objects from archives
15812 whole_archive_flag_spec_CXX=' '
15813 archive_cmds_need_lc_CXX=yes
15814 # This is similar to how AIX traditionally builds it's shared libraries.
15815 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'
15820 case $cc_basename in
15822 # FIXME: insert proper C++ library support
15829 cygwin* | mingw* | pw32*)
15830 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15831 # as there is no search path for DLLs.
15832 hardcode_libdir_flag_spec_CXX='-L$libdir'
15833 allow_undefined_flag_CXX=unsupported
15834 always_export_symbols_CXX=no
15835 enable_shared_with_static_runtimes_CXX=yes
15837 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15838 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'
15839 # If the export-symbols file already is a .def file (1st line
15840 # is EXPORTS), use it as is; otherwise, prepend...
15841 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15842 cp $export_symbols $output_objdir/$soname.def;
15844 echo EXPORTS > $output_objdir/$soname.def;
15845 cat $export_symbols >> $output_objdir/$soname.def;
15847 $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'
15852 darwin* | rhapsody*)
15854 rhapsody* | darwin1.[012])
15855 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15858 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15859 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15861 case ${MACOSX_DEPLOYMENT_TARGET} in
15863 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15866 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15872 archive_cmds_need_lc_CXX=no
15873 hardcode_direct_CXX=no
15874 hardcode_automatic_CXX=yes
15875 hardcode_shlibpath_var_CXX=unsupported
15876 whole_archive_flag_spec_CXX=''
15877 link_all_deplibs_CXX=yes
15879 if test "$GXX" = yes ; then
15880 lt_int_apple_cc_single_mod=no
15881 output_verbose_link_cmd='echo'
15882 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15883 lt_int_apple_cc_single_mod=yes
15885 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15886 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15888 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'
15890 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15891 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15892 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15893 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}'
15895 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}'
15897 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}'
15899 case "$cc_basename" in
15901 output_verbose_link_cmd='echo'
15902 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'
15903 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15905 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}'
15906 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}'
15916 case $cc_basename in
15918 # FIXME: insert proper C++ library support
15922 # Green Hills C++ Compiler
15923 # FIXME: insert proper C++ library support
15927 # FIXME: insert proper C++ library support
15933 # C++ shared libraries reported to be fairly broken before switch to ELF
15937 archive_cmds_need_lc_CXX=no
15939 freebsd* | kfreebsd*-gnu)
15940 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15947 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15948 hardcode_libdir_separator_CXX=:
15949 export_dynamic_flag_spec_CXX='${wl}-E'
15950 hardcode_direct_CXX=yes
15951 hardcode_minus_L_CXX=yes # Not in the search PATH,
15952 # but as the default
15953 # location of the library.
15955 case $cc_basename in
15957 # FIXME: insert proper C++ library support
15961 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'
15962 # Commands to make compiler produce verbose output that lists
15963 # what "hidden" libraries, object files and flags are used when
15964 # linking a shared library.
15966 # There doesn't appear to be a way to prevent this compiler from
15967 # explicitly linking system object files so we need to strip them
15968 # from the output so that they don't get included in the library
15970 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'
15973 if test "$GXX" = yes; then
15974 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'
15976 # FIXME: insert proper C++ library support
15983 if test $with_gnu_ld = no; then
15984 case "$host_cpu" in
15986 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15987 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15988 hardcode_libdir_separator_CXX=:
15991 hardcode_libdir_flag_spec_CXX='-L$libdir'
15994 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15995 hardcode_libdir_separator_CXX=:
15996 export_dynamic_flag_spec_CXX='${wl}-E'
16000 case "$host_cpu" in
16002 hardcode_direct_CXX=no
16003 hardcode_shlibpath_var_CXX=no
16006 hardcode_direct_CXX=no
16007 hardcode_shlibpath_var_CXX=no
16008 hardcode_minus_L_CXX=yes # Not in the search PATH,
16009 # but as the default
16010 # location of the library.
16013 hardcode_direct_CXX=yes
16014 hardcode_minus_L_CXX=yes # Not in the search PATH,
16015 # but as the default
16016 # location of the library.
16020 case $cc_basename in
16022 # FIXME: insert proper C++ library support
16026 case "$host_cpu" in
16028 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16034 # Commands to make compiler produce verbose output that lists
16035 # what "hidden" libraries, object files and flags are used when
16036 # linking a shared library.
16038 # There doesn't appear to be a way to prevent this compiler from
16039 # explicitly linking system object files so we need to strip them
16040 # from the output so that they don't get included in the library
16042 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'
16045 if test "$GXX" = yes; then
16046 if test $with_gnu_ld = no; then
16047 case "$host_cpu" in
16049 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16052 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'
16057 # FIXME: insert proper C++ library support
16064 case $cc_basename in
16067 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'
16069 # Archives containing C++ object files must be created using
16070 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16071 # necessary to make sure instantiated templates are included
16073 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16076 if test "$GXX" = yes; then
16077 if test "$with_gnu_ld" = no; then
16078 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'
16080 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'
16083 link_all_deplibs_CXX=yes
16086 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16087 hardcode_libdir_separator_CXX=:
16090 case $cc_basename in
16092 # Kuck and Associates, Inc. (KAI) C++ Compiler
16094 # KCC will only create a shared library if the output file
16095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096 # to its proper name (with version) after linking.
16097 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'
16098 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'
16099 # Commands to make compiler produce verbose output that lists
16100 # what "hidden" libraries, object files and flags are used when
16101 # linking a shared library.
16103 # There doesn't appear to be a way to prevent this compiler from
16104 # explicitly linking system object files so we need to strip them
16105 # from the output so that they don't get included in the library
16107 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'
16109 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16110 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16112 # Archives containing C++ object files must be created using
16113 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16114 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16119 # version 8.0 and above of icpc choke on multiply defined symbols
16120 # if we add $predep_objects and $postdep_objects, however 7.1 and
16121 # earlier do not add the objects themselves.
16122 case `$CC -V 2>&1` in
16124 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 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'
16127 *) # Version 8.0 or newer
16128 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16132 archive_cmds_need_lc_CXX=no
16133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16134 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16135 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16139 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140 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'
16142 runpath_var=LD_RUN_PATH
16143 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16144 hardcode_libdir_separator_CXX=:
16146 # Commands to make compiler produce verbose output that lists
16147 # what "hidden" libraries, object files and flags are used when
16148 # linking a shared library.
16150 # There doesn't appear to be a way to prevent this compiler from
16151 # explicitly linking system object files so we need to strip them
16152 # from the output so that they don't get included in the library
16154 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'
16159 # FIXME: insert proper C++ library support
16163 # FIXME: insert proper C++ library support
16167 case $cc_basename in
16169 # FIXME: insert proper C++ library support
16173 # FIXME: insert proper C++ library support
16179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16180 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16182 hardcode_libdir_flag_spec_CXX='-R$libdir'
16183 hardcode_direct_CXX=yes
16184 hardcode_shlibpath_var_CXX=no
16186 # Workaround some broken pre-1.5 toolchains
16187 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16190 # C++ shared libraries are fairly broken
16194 hardcode_direct_CXX=yes
16195 hardcode_shlibpath_var_CXX=no
16196 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16199 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16200 export_dynamic_flag_spec_CXX='${wl}-E'
16201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16203 output_verbose_link_cmd='echo'
16206 case $cc_basename in
16208 # Kuck and Associates, Inc. (KAI) C++ Compiler
16210 # KCC will only create a shared library if the output file
16211 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16212 # to its proper name (with version) after linking.
16213 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'
16215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16216 hardcode_libdir_separator_CXX=:
16218 # Archives containing C++ object files must be created using
16219 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16220 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16224 # Rational C++ 2.4.1
16225 # FIXME: insert proper C++ library support
16229 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16230 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'
16232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16233 hardcode_libdir_separator_CXX=:
16235 # Commands to make compiler produce verbose output that lists
16236 # what "hidden" libraries, object files and flags are used when
16237 # linking a shared library.
16239 # There doesn't appear to be a way to prevent this compiler from
16240 # explicitly linking system object files so we need to strip them
16241 # from the output so that they don't get included in the library
16243 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'
16246 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16247 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16248 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'
16250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16251 hardcode_libdir_separator_CXX=:
16253 # Commands to make compiler produce verbose output that lists
16254 # what "hidden" libraries, object files and flags are used when
16255 # linking a shared library.
16256 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16259 # FIXME: insert proper C++ library support
16266 case $cc_basename in
16268 # Kuck and Associates, Inc. (KAI) C++ Compiler
16270 # KCC will only create a shared library if the output file
16271 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16272 # to its proper name (with version) after linking.
16273 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'
16275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16276 hardcode_libdir_separator_CXX=:
16278 # Archives containing C++ object files must be created using
16279 # the KAI C++ compiler.
16280 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16283 # Rational C++ 2.4.1
16284 # FIXME: insert proper C++ library support
16288 allow_undefined_flag_CXX=' -expect_unresolved \*'
16289 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'
16290 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16291 echo "-hidden">> $lib.exp~
16292 $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~
16295 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16296 hardcode_libdir_separator_CXX=:
16298 # Commands to make compiler produce verbose output that lists
16299 # what "hidden" libraries, object files and flags are used when
16300 # linking a shared library.
16302 # There doesn't appear to be a way to prevent this compiler from
16303 # explicitly linking system object files so we need to strip them
16304 # from the output so that they don't get included in the library
16306 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'
16309 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16310 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16311 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'
16313 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16314 hardcode_libdir_separator_CXX=:
16316 # Commands to make compiler produce verbose output that lists
16317 # what "hidden" libraries, object files and flags are used when
16318 # linking a shared library.
16319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16322 # FIXME: insert proper C++ library support
16329 # FIXME: insert proper C++ library support
16333 archive_cmds_need_lc_CXX=no
16334 case $cc_basename in
16336 # FIXME: insert proper C++ library support
16340 # FIXME: insert proper C++ library support
16346 case $cc_basename in
16349 # FIXME: insert proper C++ library support
16354 # FIXME: insert proper C++ library support
16358 # FIXME: insert proper C++ library support
16364 case $cc_basename in
16366 # Sun C++ 4.2, 5.x and Centerline C++
16367 no_undefined_flag_CXX=' -zdefs'
16368 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16369 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16370 $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'
16372 hardcode_libdir_flag_spec_CXX='-R$libdir'
16373 hardcode_shlibpath_var_CXX=no
16375 solaris2.0-5 | solaris2.0-5.*) ;;
16377 # The C++ compiler is used as linker so we must use $wl
16378 # flag to pass the commands to the underlying system
16380 # Supported since Solaris 2.6 (maybe 2.5.1?)
16381 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16384 link_all_deplibs_CXX=yes
16386 # Commands to make compiler produce verbose output that lists
16387 # what "hidden" libraries, object files and flags are used when
16388 # linking a shared library.
16390 # There doesn't appear to be a way to prevent this compiler from
16391 # explicitly linking system object files so we need to strip them
16392 # from the output so that they don't get included in the library
16394 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'
16396 # Archives containing C++ object files must be created using
16397 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16398 # necessary to make sure instantiated templates are included
16400 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16403 # Green Hills C++ Compiler
16404 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16406 # The C++ compiler must be used to create the archive.
16407 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16410 # GNU C++ compiler with Solaris linker
16411 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16412 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16413 if $CC --version | grep -v '^2\.7' > /dev/null; then
16414 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16415 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16416 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16418 # Commands to make compiler produce verbose output that lists
16419 # what "hidden" libraries, object files and flags are used when
16420 # linking a shared library.
16421 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16423 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16425 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16426 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16427 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16429 # Commands to make compiler produce verbose output that lists
16430 # what "hidden" libraries, object files and flags are used when
16431 # linking a shared library.
16432 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16435 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16441 archive_cmds_need_lc_CXX=no
16444 case $cc_basename in
16446 # NonStop-UX NCC 3.20
16447 # FIXME: insert proper C++ library support
16451 # FIXME: insert proper C++ library support
16457 # FIXME: insert proper C++ library support
16461 # FIXME: insert proper C++ library support
16465 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16466 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16467 test "$ld_shlibs_CXX" = no && can_build_shared=no
16473 cat > conftest.$ac_ext <<EOF
16477 Foo (void) { a = 0; }
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; then
16488 # Parse the compiler output and extract the necessary
16489 # objects, libraries and library flags.
16491 # Sentinel used to keep track of whether or not we are before
16492 # the conftest object file.
16493 pre_test_object_deps_done=no
16495 # The `*' in the case matches for architectures that use `case' in
16496 # $output_verbose_cmd can trigger glob expansion during the loop
16497 # eval without this substitution.
16498 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16500 for p in `eval $output_verbose_link_cmd`; do
16504 # Some compilers place space between "-{L,R}" and the path.
16505 # Remove the space.
16506 if test $p = "-L" \
16507 || test $p = "-R"; then
16514 if test "$pre_test_object_deps_done" = no; then
16517 # Internal compiler library paths should come after those
16518 # provided the user. The postdeps already come after the
16519 # user supplied libs so there is no need to process them.
16520 if test -z "$compiler_lib_search_path_CXX"; then
16521 compiler_lib_search_path_CXX="${prev}${p}"
16523 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16526 # The "-l" case would never come before the object being
16527 # linked, so don't bother handling this case.
16530 if test -z "$postdeps_CXX"; then
16531 postdeps_CXX="${prev}${p}"
16533 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16539 # This assumes that the test object file only shows up
16540 # once in the compiler output.
16541 if test "$p" = "conftest.$objext"; then
16542 pre_test_object_deps_done=yes
16546 if test "$pre_test_object_deps_done" = no; then
16547 if test -z "$predep_objects_CXX"; then
16548 predep_objects_CXX="$p"
16550 predep_objects_CXX="$predep_objects_CXX $p"
16553 if test -z "$postdep_objects_CXX"; then
16554 postdep_objects_CXX="$p"
16556 postdep_objects_CXX="$postdep_objects_CXX $p"
16561 *) ;; # Ignore the rest.
16569 echo "libtool.m4: error: problem compiling CXX test program"
16572 $rm -f confest.$objext
16574 case " $postdeps_CXX " in
16575 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16578 lt_prog_compiler_wl_CXX=
16579 lt_prog_compiler_pic_CXX=
16580 lt_prog_compiler_static_CXX=
16582 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16583 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16585 # C++ specific cases for pic, static, wl, etc.
16586 if test "$GXX" = yes; then
16587 lt_prog_compiler_wl_CXX='-Wl,'
16588 lt_prog_compiler_static_CXX='-static'
16592 # All AIX code is PIC.
16593 if test "$host_cpu" = ia64; then
16594 # AIX 5 now supports IA64 processor
16595 lt_prog_compiler_static_CXX='-Bstatic'
16599 # FIXME: we need at least 68020 code to build shared libraries, but
16600 # adding the `-m68020' flag to GCC prevents building anything better,
16602 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16604 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16605 # PIC is the default for these OSes.
16607 mingw* | os2* | pw32*)
16608 # This hack is so that the source file can tell whether it is being
16609 # built for inclusion in a dll (and should export symbols for example).
16610 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16612 darwin* | rhapsody*)
16613 # PIC is the default on this platform
16614 # Common symbols not allowed in MH_DYLIB files
16615 lt_prog_compiler_pic_CXX='-fno-common'
16618 # DJGPP does not support shared libraries at all
16619 lt_prog_compiler_pic_CXX=
16622 if test -d /usr/nec; then
16623 lt_prog_compiler_pic_CXX=-Kconform_pic
16627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16628 # not for PA HP-UX.
16629 case "$host_cpu" in
16633 lt_prog_compiler_pic_CXX='-fPIC'
16638 lt_prog_compiler_pic_CXX='-fPIC'
16644 # All AIX code is PIC.
16645 if test "$host_cpu" = ia64; then
16646 # AIX 5 now supports IA64 processor
16647 lt_prog_compiler_static_CXX='-Bstatic'
16649 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16653 case $cc_basename in
16655 # Green Hills C++ Compiler
16656 # _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"
16661 # PIC is the default on this platform
16662 # Common symbols not allowed in MH_DYLIB files
16663 case "$cc_basename" in
16665 lt_prog_compiler_pic_CXX='-qnocommon'
16666 lt_prog_compiler_wl_CXX='-Wl,'
16671 case $cc_basename in
16673 lt_prog_compiler_pic_CXX='-KPIC'
16676 # Green Hills C++ Compiler
16677 lt_prog_compiler_pic_CXX='-pic'
16683 freebsd* | kfreebsd*-gnu)
16684 # FreeBSD uses GNU C++
16686 hpux9* | hpux10* | hpux11*)
16687 case $cc_basename in
16689 lt_prog_compiler_wl_CXX='-Wl,'
16690 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16691 if test "$host_cpu" != ia64; then
16692 lt_prog_compiler_pic_CXX='+Z'
16696 lt_prog_compiler_wl_CXX='-Wl,'
16697 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16698 case "$host_cpu" in
16703 lt_prog_compiler_pic_CXX='+Z'
16711 irix5* | irix6* | nonstopux*)
16712 case $cc_basename in
16714 lt_prog_compiler_wl_CXX='-Wl,'
16715 lt_prog_compiler_static_CXX='-non_shared'
16716 # CC pic flag -KPIC is the default.
16723 case $cc_basename in
16726 lt_prog_compiler_wl_CXX='--backend -Wl,'
16727 lt_prog_compiler_pic_CXX='-fPIC'
16731 lt_prog_compiler_wl_CXX='-Wl,'
16732 lt_prog_compiler_pic_CXX='-KPIC'
16733 lt_prog_compiler_static_CXX='-static'
16737 # Make sure the PIC flag is empty. It appears that all Alpha
16738 # Linux and Compaq Tru64 Unix objects are PIC.
16739 lt_prog_compiler_pic_CXX=
16740 lt_prog_compiler_static_CXX='-non_shared'
16751 case $cc_basename in
16753 lt_prog_compiler_pic_CXX='-W c,exportall'
16761 osf3* | osf4* | osf5*)
16762 case $cc_basename in
16764 lt_prog_compiler_wl_CXX='--backend -Wl,'
16767 # Rational C++ 2.4.1
16768 lt_prog_compiler_pic_CXX='-pic'
16771 # Digital/Compaq C++
16772 lt_prog_compiler_wl_CXX='-Wl,'
16773 # Make sure the PIC flag is empty. It appears that all Alpha
16774 # Linux and Compaq Tru64 Unix objects are PIC.
16775 lt_prog_compiler_pic_CXX=
16776 lt_prog_compiler_static_CXX='-non_shared'
16785 case $cc_basename in
16787 lt_prog_compiler_pic_CXX='-fPIC'
16794 case $cc_basename in
16796 # Sun C++ 4.2, 5.x and Centerline C++
16797 lt_prog_compiler_pic_CXX='-KPIC'
16798 lt_prog_compiler_static_CXX='-Bstatic'
16799 lt_prog_compiler_wl_CXX='-Qoption ld '
16802 # Green Hills C++ Compiler
16803 lt_prog_compiler_pic_CXX='-PIC'
16810 case $cc_basename in
16813 lt_prog_compiler_pic_CXX='-pic'
16814 lt_prog_compiler_static_CXX='-Bstatic'
16818 lt_prog_compiler_pic_CXX='-pic'
16825 case $cc_basename in
16827 # NonStop-UX NCC 3.20
16828 lt_prog_compiler_pic_CXX='-KPIC'
16839 lt_prog_compiler_can_build_shared_CXX=no
16844 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16845 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16848 # Check to make sure the PIC flag actually works.
16850 if test -n "$lt_prog_compiler_pic_CXX"; then
16852 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16853 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16854 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 lt_prog_compiler_pic_works_CXX=no
16858 ac_outfile=conftest.$ac_objext
16859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16860 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16861 # Insert the option either (1) after the last *FLAGS variable, or
16862 # (2) before a word containing "conftest.", or (3) at the end.
16863 # Note that $ac_compile itself does not contain backslashes and begins
16864 # with a dollar sign (not a hyphen), so the echo should work correctly.
16865 # The option is referenced via a variable to avoid confusing sed.
16866 lt_compile=`echo "$ac_compile" | $SED \
16867 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16869 -e 's:$: $lt_compiler_flag:'`
16870 (eval echo "\"\$as_me:16870: $lt_compile\"" >&5)
16871 (eval "$lt_compile" 2>conftest.err)
16873 cat conftest.err >&5
16874 echo "$as_me:16874: \$? = $ac_status" >&5
16875 if (exit $ac_status) && test -s "$ac_outfile"; then
16876 # The compiler can only warn and ignore the option if not recognized
16877 # So say no if there are warnings
16878 if test ! -s conftest.err; then
16879 lt_prog_compiler_pic_works_CXX=yes
16885 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16886 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16888 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16889 case $lt_prog_compiler_pic_CXX in
16891 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16894 lt_prog_compiler_pic_CXX=
16895 lt_prog_compiler_can_build_shared_CXX=no
16900 # For platforms which do not support PIC, -DPIC is meaningless:
16902 lt_prog_compiler_pic_CXX=
16905 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16909 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16910 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16911 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 lt_cv_prog_compiler_c_o_CXX=no
16915 $rm -r conftest 2>/dev/null
16919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16921 lt_compiler_flag="-o out/conftest2.$ac_objext"
16922 # Insert the option either (1) after the last *FLAGS variable, or
16923 # (2) before a word containing "conftest.", or (3) at the end.
16924 # Note that $ac_compile itself does not contain backslashes and begins
16925 # with a dollar sign (not a hyphen), so the echo should work correctly.
16926 lt_compile=`echo "$ac_compile" | $SED \
16927 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16929 -e 's:$: $lt_compiler_flag:'`
16930 (eval echo "\"\$as_me:16930: $lt_compile\"" >&5)
16931 (eval "$lt_compile" 2>out/conftest.err)
16933 cat out/conftest.err >&5
16934 echo "$as_me:16934: \$? = $ac_status" >&5
16935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16937 # The compiler can only warn and ignore the option if not recognized
16938 # So say no if there are warnings
16939 if test ! -s out/conftest.err; then
16940 lt_cv_prog_compiler_c_o_CXX=yes
16945 # SGI C++ compiler will create directory out/ii_files/ for
16946 # template instantiation
16947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16948 $rm out/* && rmdir out
16954 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16955 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16958 hard_links="nottested"
16959 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16960 # do not overwrite the value of need_locks provided by the user
16961 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16962 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16967 ln conftest.a conftest.b 2>&5 || hard_links=no
16968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16969 echo "$as_me:$LINENO: result: $hard_links" >&5
16970 echo "${ECHO_T}$hard_links" >&6
16971 if test "$hard_links" = no; then
16972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16973 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16980 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16981 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16986 # If we're using GNU nm, then we don't want the "-C" option.
16987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16989 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'
16991 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'
16995 export_symbols_cmds_CXX="$ltdll_cmds"
16998 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17001 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17005 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17006 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17007 test "$ld_shlibs_CXX" = no && can_build_shared=no
17009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17010 if test "$GCC" = yes; then
17011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17015 # Do we need to explicitly link libc?
17017 case "x$archive_cmds_need_lc_CXX" in
17019 # Assume -lc should be added
17020 archive_cmds_need_lc_CXX=yes
17022 if test "$enable_shared" = yes && test "$GCC" = yes; then
17023 case $archive_cmds_CXX in
17025 # FIXME: we may have to deal with multi-command sequences.
17028 # Test whether the compiler implicitly links with -lc since on some
17029 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17030 # to ld, don't add -lc before -lgcc.
17031 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17032 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17037 (eval $ac_compile) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } 2>conftest.err; then
17043 libobjs=conftest.$ac_objext
17045 wl=$lt_prog_compiler_wl_CXX
17051 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17052 allow_undefined_flag_CXX=
17053 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17054 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }
17059 archive_cmds_need_lc_CXX=no
17061 archive_cmds_need_lc_CXX=yes
17063 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17065 cat conftest.err 1>&5
17068 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17069 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17076 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17077 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17078 library_names_spec=
17079 libname_spec='lib$name'
17083 postuninstall_cmds=
17087 shlibpath_overrides_runpath=unknown
17089 dynamic_linker="$host_os ld.so"
17090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17091 if test "$GCC" = yes; then
17092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17093 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17094 # if the path contains ";" then we assume it to be the separator
17095 # otherwise default to the standard path separator (i.e. ":") - it is
17096 # assumed that no part of a normal pathname contains ";" but that should
17097 # okay in the real world where ";" in dirpaths is itself problematic.
17098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17105 need_lib_prefix=unknown
17106 hardcode_into_libs=no
17108 # when you set need_version to no, make sure it does not cause -set_version
17109 # flags to be left without arguments
17110 need_version=unknown
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17116 shlibpath_var=LIBPATH
17118 # AIX 3 has no versioning support, so we append a major version to the name.
17119 soname_spec='${libname}${release}${shared_ext}$major'
17126 hardcode_into_libs=yes
17127 if test "$host_cpu" = ia64; then
17128 # AIX 5 supports IA64
17129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17130 shlibpath_var=LD_LIBRARY_PATH
17132 # With GCC up to 2.95.x, collect2 would create an import file
17133 # for dependence libraries. The import file would start with
17134 # the line `#! .'. This would cause the generated library to
17135 # depend on `.', always an invalid library. This was fixed in
17136 # development snapshots of GCC prior to 3.0.
17138 aix4 | aix4.[01] | aix4.[01].*)
17139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17141 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17144 can_build_shared=no
17148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17149 # soname into executable. Probably we can add versioning support to
17150 # collect2, so additional links can be useful in future.
17151 if test "$aix_use_runtimelinking" = yes; then
17152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17153 # instead of lib<name>.a to let people know that these are not
17154 # typical AIX shared libraries.
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 # We preserve .a as extension for shared libraries through AIX4.2
17158 # and later when we are not doing run time linking.
17159 library_names_spec='${libname}${release}.a $libname.a'
17160 soname_spec='${libname}${release}${shared_ext}$major'
17162 shlibpath_var=LIBPATH
17167 library_names_spec='$libname.ixlibrary $libname.a'
17168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17169 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'
17173 library_names_spec='${libname}${shared_ext}'
17174 dynamic_linker="$host_os ld.so"
17175 shlibpath_var=LIBRARY_PATH
17181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17182 soname_spec='${libname}${release}${shared_ext}$major'
17183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17187 # the default ld.so.conf also contains /usr/contrib/lib and
17188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17189 # libtool to hard-code these into programs
17192 cygwin* | mingw* | pw32*)
17193 version_type=windows
17198 case $GCC,$host_os in
17199 yes,cygwin* | yes,mingw* | yes,pw32*)
17200 library_names_spec='$libname.dll.a'
17201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17202 postinstall_cmds='base_file=`basename \${file}`~
17203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17204 dldir=$destdir/`dirname \$dlpath`~
17205 test -d \$dldir || mkdir -p \$dldir~
17206 $install_prog $dir/$dlname \$dldir/$dlname'
17207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17208 dlpath=$dir/\$dldll~
17210 shlibpath_overrides_runpath=yes
17214 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17219 # MinGW DLLs use traditional 'lib' prefix
17220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17221 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17222 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17223 # It is most probably a Windows format PATH printed by
17224 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17225 # path with ; separators, and with drive letters. We can handle the
17226 # drive letters (cygwin fileutils understands them), so leave them,
17227 # especially as we might pass files found there to a mingw objdump,
17228 # which wouldn't understand a cygwinified path. Ahh.
17229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17235 # pw32 DLLs use 'pw' prefix rather than 'lib'
17236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17245 dynamic_linker='Win32 ld.exe'
17246 # FIXME: first we should search . and the directory the executable is in
17250 darwin* | rhapsody*)
17251 dynamic_linker="$host_os dyld"
17252 version_type=darwin
17255 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17256 soname_spec='${libname}${release}${major}$shared_ext'
17257 shlibpath_overrides_runpath=yes
17258 shlibpath_var=DYLD_LIBRARY_PATH
17259 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17260 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17261 if test "$GCC" = yes; then
17262 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"`
17264 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17266 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 shlibpath_var=LD_LIBRARY_PATH
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 shlibpath_overrides_runpath=no
17290 hardcode_into_libs=yes
17291 dynamic_linker='GNU ld.so'
17295 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17296 version_type=freebsd-$objformat
17297 case $version_type in
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17308 shlibpath_var=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath=yes
17313 freebsd3.01* | freebsdelf3.01*)
17314 shlibpath_overrides_runpath=yes
17315 hardcode_into_libs=yes
17318 shlibpath_overrides_runpath=no
17319 hardcode_into_libs=yes
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 hardcode_into_libs=yes
17334 hpux9* | hpux10* | hpux11*)
17335 # Give a soname corresponding to the major version so that dld.sl refuses to
17336 # link against other versions.
17340 case "$host_cpu" in
17343 hardcode_into_libs=yes
17344 dynamic_linker="$host_os dld.so"
17345 shlibpath_var=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 if test "X$HPUX_IA64_MODE" = X32; then
17350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17358 hardcode_into_libs=yes
17359 dynamic_linker="$host_os dld.sl"
17360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17369 dynamic_linker="$host_os dld.sl"
17370 shlibpath_var=SHLIB_PATH
17371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17377 postinstall_cmds='chmod 555 $lib'
17380 irix5* | irix6* | nonstopux*)
17382 nonstopux*) version_type=nonstopux ;;
17384 if test "$lt_cv_prog_gnu_ld" = yes; then
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17395 irix5* | nonstopux*)
17396 libsuff= shlibsuff=
17399 case $LD in # libtool.m4 will add one of these switches to LD
17400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17401 libsuff= shlibsuff= libmagic=32-bit;;
17402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17403 libsuff=32 shlibsuff=N32 libmagic=N32;;
17404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17406 *) libsuff= shlibsuff= libmagic=never-match;;
17410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17411 shlibpath_overrides_runpath=no
17412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17414 hardcode_into_libs=yes
17417 # No shared lib support for Linux oldld, aout, or coff.
17418 linux*oldld* | linux*aout* | linux*coff*)
17422 # This must be Linux ELF.
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 soname_spec='${libname}${release}${shared_ext}$major'
17429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=no
17432 # This implies no fast_install, which is unacceptable.
17433 # Some rework will be needed to allow for fast_install
17434 # before this can be enabled.
17435 hardcode_into_libs=yes
17437 # Append ld.so.conf contents to the search path
17438 if test -f /etc/ld.so.conf; then
17439 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17443 # We used to test for /lib/ld.so.1 and disable shared libraries on
17444 # powerpc, because MkLinux only supported shared libraries with the
17445 # GNU dynamic linker. Since this was broken with cross compilers,
17446 # most powerpc-linux boxes support dynamic linking these days and
17447 # people can always --disable-shared, the test was removed, and we
17448 # assume the GNU/Linux dynamic linker is in use.
17449 dynamic_linker='GNU/Linux ld.so'
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=no
17460 hardcode_into_libs=yes
17461 dynamic_linker='GNU ld.so'
17468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 dynamic_linker='NetBSD (a.out) ld.so'
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17474 soname_spec='${libname}${release}${shared_ext}$major'
17475 dynamic_linker='NetBSD ld.elf_so'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath=yes
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17505 shlibpath_var=LD_LIBRARY_PATH
17506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17508 openbsd2.[89] | openbsd2.[89].*)
17509 shlibpath_overrides_runpath=no
17512 shlibpath_overrides_runpath=yes
17516 shlibpath_overrides_runpath=yes
17521 libname_spec='$name'
17524 library_names_spec='$libname${shared_ext} $libname.a'
17525 dynamic_linker='OS/2 ld.exe'
17526 shlibpath_var=LIBPATH
17529 osf3* | osf4* | osf5*)
17533 soname_spec='${libname}${release}${shared_ext}$major'
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 shlibpath_var=LD_LIBRARY_PATH
17536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 shlibpath_var=LD_LIBRARY_PATH
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 shlibpath_overrides_runpath=yes
17555 hardcode_into_libs=yes
17556 # ldd complains unless libraries are executable
17557 postinstall_cmds='chmod +x $lib'
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17564 shlibpath_var=LD_LIBRARY_PATH
17565 shlibpath_overrides_runpath=yes
17566 if test "$with_gnu_ld" = yes; then
17572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575 soname_spec='${libname}${release}${shared_ext}$major'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 case $host_vendor in
17579 shlibpath_overrides_runpath=no
17581 export_dynamic_flag_spec='${wl}-Blargedynsym'
17582 runpath_var=LD_RUN_PATH
17590 shlibpath_overrides_runpath=no
17591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17597 if test -d /usr/nec ;then
17599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17600 soname_spec='$libname${shared_ext}.$major'
17601 shlibpath_var=LD_LIBRARY_PATH
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 shlibpath_var=LD_LIBRARY_PATH
17616 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17617 echo "${ECHO_T}$dynamic_linker" >&6
17618 test "$dynamic_linker" = no && can_build_shared=no
17620 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17621 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17622 hardcode_action_CXX=
17623 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17624 test -n "$runpath_var_CXX" || \
17625 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17627 # We can hardcode non-existant directories.
17628 if test "$hardcode_direct_CXX" != no &&
17629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17630 # have to relink, otherwise we might link with an installed library
17631 # when we should be linking with a yet-to-be-installed one
17632 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17633 test "$hardcode_minus_L_CXX" != no; then
17634 # Linking always hardcodes the temporary library directory.
17635 hardcode_action_CXX=relink
17637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17638 hardcode_action_CXX=immediate
17641 # We cannot hardcode anything, or else we can only hardcode existing
17643 hardcode_action_CXX=unsupported
17645 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17646 echo "${ECHO_T}$hardcode_action_CXX" >&6
17648 if test "$hardcode_action_CXX" = relink; then
17649 # Fast installation is not supported
17650 enable_fast_install=no
17651 elif test "$shlibpath_overrides_runpath" = yes ||
17652 test "$enable_shared" = no; then
17653 # Fast installation is not necessary
17654 enable_fast_install=needless
17659 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17660 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17661 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17662 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17663 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17664 echo "$as_me:$LINENO: result: yes" >&5
17665 echo "${ECHO_T}yes" >&6
17667 # FIXME - insert some real tests, host_os isn't really good enough
17670 if test -n "$STRIP" ; then
17671 striplib="$STRIP -x"
17672 echo "$as_me:$LINENO: result: yes" >&5
17673 echo "${ECHO_T}yes" >&6
17675 echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6
17680 echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6
17686 if test "x$enable_dlopen" != xyes; then
17687 enable_dlopen=unknown
17688 enable_dlopen_self=unknown
17689 enable_dlopen_self_static=unknown
17696 lt_cv_dlopen="load_add_on"
17698 lt_cv_dlopen_self=yes
17702 lt_cv_dlopen="LoadLibrary"
17707 lt_cv_dlopen="dlopen"
17712 # if libdl is installed we need to link against it
17713 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 ac_check_lib_save_LIBS=$LIBS
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17727 /* Override any gcc2 internal prototype to avoid an error. */
17731 /* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_cxx_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest$ac_exeext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_lib_dl_dlopen=yes
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 ac_cv_lib_dl_dlopen=no
17771 rm -f conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17773 LIBS=$ac_check_lib_save_LIBS
17775 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17777 if test $ac_cv_lib_dl_dlopen = yes; then
17778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17781 lt_cv_dlopen="dyld"
17783 lt_cv_dlopen_self=yes
17790 echo "$as_me:$LINENO: checking for shl_load" >&5
17791 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17792 if test "${ac_cv_func_shl_load+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 cat >conftest.$ac_ext <<_ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17801 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17803 #define shl_load innocuous_shl_load
17805 /* System header to define __stub macros and hopefully few prototypes,
17806 which can conflict with char shl_load (); below.
17807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17808 <limits.h> exists even on freestanding compilers. */
17811 # include <limits.h>
17813 # include <assert.h>
17818 /* Override any gcc2 internal prototype to avoid an error. */
17823 /* We use char because int might match the return type of a gcc2
17824 builtin and then its argument prototype would still apply. */
17826 /* The GNU C library defines this for functions which it implements
17827 to always fail with ENOSYS. Some functions are actually named
17828 something starting with __ and the normal name is an alias. */
17829 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17832 char (*f) () = shl_load;
17841 return f != shl_load;
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17848 (eval $ac_link) 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_cxx_werror_flag"
17856 || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest$ac_exeext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_func_shl_load=yes
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 ac_cv_func_shl_load=no
17875 rm -f conftest.err conftest.$ac_objext \
17876 conftest$ac_exeext conftest.$ac_ext
17878 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17879 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17880 if test $ac_cv_func_shl_load = yes; then
17881 lt_cv_dlopen="shl_load"
17883 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17884 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17885 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 ac_check_lib_save_LIBS=$LIBS
17890 cat >conftest.$ac_ext <<_ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17897 /* Override any gcc2 internal prototype to avoid an error. */
17901 /* We use char because int might match the return type of a gcc2
17902 builtin and then its argument prototype would still apply. */
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17914 (eval $ac_link) 2>conftest.er1
17916 grep -v '^ *+' conftest.er1 >conftest.err
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } &&
17921 { ac_try='test -z "$ac_cxx_werror_flag"
17922 || test ! -s conftest.err'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } &&
17928 { ac_try='test -s conftest$ac_exeext'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 ac_cv_lib_dld_shl_load=yes
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 ac_cv_lib_dld_shl_load=no
17941 rm -f conftest.err conftest.$ac_objext \
17942 conftest$ac_exeext conftest.$ac_ext
17943 LIBS=$ac_check_lib_save_LIBS
17945 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17946 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17947 if test $ac_cv_lib_dld_shl_load = yes; then
17948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17950 echo "$as_me:$LINENO: checking for dlopen" >&5
17951 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17952 if test "${ac_cv_func_dlopen+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 cat >conftest.$ac_ext <<_ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17963 #define dlopen innocuous_dlopen
17965 /* System header to define __stub macros and hopefully few prototypes,
17966 which can conflict with char dlopen (); below.
17967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17968 <limits.h> exists even on freestanding compilers. */
17971 # include <limits.h>
17973 # include <assert.h>
17978 /* Override any gcc2 internal prototype to avoid an error. */
17983 /* We use char because int might match the return type of a gcc2
17984 builtin and then its argument prototype would still apply. */
17986 /* The GNU C library defines this for functions which it implements
17987 to always fail with ENOSYS. Some functions are actually named
17988 something starting with __ and the normal name is an alias. */
17989 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17992 char (*f) () = dlopen;
18001 return f != dlopen;
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18008 (eval $ac_link) 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -z "$ac_cxx_werror_flag"
18016 || test ! -s conftest.err'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try='test -s conftest$ac_exeext'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 ac_cv_func_dlopen=yes
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 ac_cv_func_dlopen=no
18035 rm -f conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18038 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18039 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18040 if test $ac_cv_func_dlopen = yes; then
18041 lt_cv_dlopen="dlopen"
18043 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 ac_check_lib_save_LIBS=$LIBS
18050 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18057 /* Override any gcc2 internal prototype to avoid an error. */
18061 /* We use char because int might match the return type of a gcc2
18062 builtin and then its argument prototype would still apply. */
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074 (eval $ac_link) 2>conftest.er1
18076 grep -v '^ *+' conftest.er1 >conftest.err
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
18081 { ac_try='test -z "$ac_cxx_werror_flag"
18082 || test ! -s conftest.err'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; } &&
18088 { ac_try='test -s conftest$ac_exeext'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_lib_dl_dlopen=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18099 ac_cv_lib_dl_dlopen=no
18101 rm -f conftest.err conftest.$ac_objext \
18102 conftest$ac_exeext conftest.$ac_ext
18103 LIBS=$ac_check_lib_save_LIBS
18105 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18106 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18107 if test $ac_cv_lib_dl_dlopen = yes; then
18108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18110 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18111 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-lsvld $LIBS"
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18124 /* Override any gcc2 internal prototype to avoid an error. */
18128 /* We use char because int might match the return type of a gcc2
18129 builtin and then its argument prototype would still apply. */
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18141 (eval $ac_link) 2>conftest.er1
18143 grep -v '^ *+' conftest.er1 >conftest.err
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
18148 { ac_try='test -z "$ac_cxx_werror_flag"
18149 || test ! -s conftest.err'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_lib_svld_dlopen=yes
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18166 ac_cv_lib_svld_dlopen=no
18168 rm -f conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
18170 LIBS=$ac_check_lib_save_LIBS
18172 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18173 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18174 if test $ac_cv_lib_svld_dlopen = yes; then
18175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18177 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18178 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18179 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 ac_check_lib_save_LIBS=$LIBS
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18191 /* Override any gcc2 internal prototype to avoid an error. */
18195 /* We use char because int might match the return type of a gcc2
18196 builtin and then its argument prototype would still apply. */
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18208 (eval $ac_link) 2>conftest.er1
18210 grep -v '^ *+' conftest.er1 >conftest.err
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
18215 { ac_try='test -z "$ac_cxx_werror_flag"
18216 || test ! -s conftest.err'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_cv_lib_dld_dld_link=yes
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18233 ac_cv_lib_dld_dld_link=no
18235 rm -f conftest.err conftest.$ac_objext \
18236 conftest$ac_exeext conftest.$ac_ext
18237 LIBS=$ac_check_lib_save_LIBS
18239 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18240 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18241 if test $ac_cv_lib_dld_dld_link = yes; then
18242 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18263 if test "x$lt_cv_dlopen" != xno; then
18269 case $lt_cv_dlopen in
18271 save_CPPFLAGS="$CPPFLAGS"
18272 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18274 save_LDFLAGS="$LDFLAGS"
18275 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18278 LIBS="$lt_cv_dlopen_libs $LIBS"
18280 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18281 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18282 if test "${lt_cv_dlopen_self+set}" = set; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 if test "$cross_compiling" = yes; then :
18286 lt_cv_dlopen_self=cross
18288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18289 lt_status=$lt_dlunknown
18290 cat > conftest.$ac_ext <<EOF
18291 #line 18291 "configure"
18292 #include "confdefs.h"
18301 # define LT_DLGLOBAL RTLD_GLOBAL
18304 # define LT_DLGLOBAL DL_GLOBAL
18306 # define LT_DLGLOBAL 0
18310 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18311 find out it does not work in some platform. */
18312 #ifndef LT_DLLAZY_OR_NOW
18314 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18317 # define LT_DLLAZY_OR_NOW DL_LAZY
18320 # define LT_DLLAZY_OR_NOW RTLD_NOW
18323 # define LT_DLLAZY_OR_NOW DL_NOW
18325 # define LT_DLLAZY_OR_NOW 0
18333 extern "C" void exit (int);
18336 void fnord() { int i=42;}
18339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18340 int status = $lt_dlunknown;
18344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18345 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18346 /* dlclose (self); */
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18357 (./conftest; exit; ) 2>/dev/null
18359 case x$lt_status in
18360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18362 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18365 # compilation failed
18366 lt_cv_dlopen_self=no
18373 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18374 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18376 if test "x$lt_cv_dlopen_self" = xyes; then
18377 LDFLAGS="$LDFLAGS $link_static_flag"
18378 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18379 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18380 if test "${lt_cv_dlopen_self_static+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 if test "$cross_compiling" = yes; then :
18384 lt_cv_dlopen_self_static=cross
18386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18387 lt_status=$lt_dlunknown
18388 cat > conftest.$ac_ext <<EOF
18389 #line 18389 "configure"
18390 #include "confdefs.h"
18399 # define LT_DLGLOBAL RTLD_GLOBAL
18402 # define LT_DLGLOBAL DL_GLOBAL
18404 # define LT_DLGLOBAL 0
18408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18409 find out it does not work in some platform. */
18410 #ifndef LT_DLLAZY_OR_NOW
18412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18415 # define LT_DLLAZY_OR_NOW DL_LAZY
18418 # define LT_DLLAZY_OR_NOW RTLD_NOW
18421 # define LT_DLLAZY_OR_NOW DL_NOW
18423 # define LT_DLLAZY_OR_NOW 0
18431 extern "C" void exit (int);
18434 void fnord() { int i=42;}
18437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18438 int status = $lt_dlunknown;
18442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18444 /* dlclose (self); */
18450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18451 (eval $ac_link) 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18455 (./conftest; exit; ) 2>/dev/null
18457 case x$lt_status in
18458 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18459 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18460 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18463 # compilation failed
18464 lt_cv_dlopen_self_static=no
18471 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18472 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18475 CPPFLAGS="$save_CPPFLAGS"
18476 LDFLAGS="$save_LDFLAGS"
18481 case $lt_cv_dlopen_self in
18482 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18483 *) enable_dlopen_self=unknown ;;
18486 case $lt_cv_dlopen_self_static in
18487 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18488 *) enable_dlopen_self_static=unknown ;;
18493 # The else clause should only fire when bootstrapping the
18494 # libtool distribution, otherwise you forgot to ship ltmain.sh
18495 # with your package, and you will get complaints that there are
18496 # no rules to generate ltmain.sh.
18497 if test -f "$ltmain"; then
18498 # See if we are running on zsh, and set the options which allow our commands through
18499 # without removal of \ escapes.
18500 if test -n "${ZSH_VERSION+set}" ; then
18501 setopt NO_GLOB_SUBST
18503 # Now quote all the things that may contain metacharacters while being
18504 # careful not to overquote the AC_SUBSTed values. We take copies of the
18505 # variables and quote the copies for generation of the libtool script.
18506 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18508 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18509 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18510 deplibs_check_method reload_flag reload_cmds need_locks \
18511 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18512 lt_cv_sys_global_symbol_to_c_name_address \
18513 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18514 old_postinstall_cmds old_postuninstall_cmds \
18518 lt_prog_compiler_wl_CXX \
18519 lt_prog_compiler_pic_CXX \
18520 lt_prog_compiler_static_CXX \
18521 lt_prog_compiler_no_builtin_flag_CXX \
18522 export_dynamic_flag_spec_CXX \
18523 thread_safe_flag_spec_CXX \
18524 whole_archive_flag_spec_CXX \
18525 enable_shared_with_static_runtimes_CXX \
18526 old_archive_cmds_CXX \
18527 old_archive_from_new_cmds_CXX \
18528 predep_objects_CXX \
18529 postdep_objects_CXX \
18532 compiler_lib_search_path_CXX \
18534 archive_expsym_cmds_CXX \
18535 postinstall_cmds_CXX \
18536 postuninstall_cmds_CXX \
18537 old_archive_from_expsyms_cmds_CXX \
18538 allow_undefined_flag_CXX \
18539 no_undefined_flag_CXX \
18540 export_symbols_cmds_CXX \
18541 hardcode_libdir_flag_spec_CXX \
18542 hardcode_libdir_flag_spec_ld_CXX \
18543 hardcode_libdir_separator_CXX \
18544 hardcode_automatic_CXX \
18546 module_expsym_cmds_CXX \
18547 lt_cv_prog_compiler_c_o_CXX \
18548 exclude_expsyms_CXX \
18549 include_expsyms_CXX; do
18552 old_archive_cmds_CXX | \
18553 old_archive_from_new_cmds_CXX | \
18554 archive_cmds_CXX | \
18555 archive_expsym_cmds_CXX | \
18556 module_cmds_CXX | \
18557 module_expsym_cmds_CXX | \
18558 old_archive_from_expsyms_cmds_CXX | \
18559 export_symbols_cmds_CXX | \
18560 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18561 postinstall_cmds | postuninstall_cmds | \
18562 old_postinstall_cmds | old_postuninstall_cmds | \
18563 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18564 # Double-quote double-evaled strings.
18565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18568 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18574 *'\$0 --fallback-echo"')
18575 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18581 cat <<__EOF__ >> "$cfgfile"
18582 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18584 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18586 # Shell to use when invoking shell scripts.
18589 # Whether or not to build shared libraries.
18590 build_libtool_libs=$enable_shared
18592 # Whether or not to build static libraries.
18593 build_old_libs=$enable_static
18595 # Whether or not to add -lc for building shared libraries.
18596 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18598 # Whether or not to disallow shared libs when runtime libs are static
18599 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18601 # Whether or not to optimize for fast installation.
18602 fast_install=$enable_fast_install
18605 host_alias=$host_alias
18608 # An echo program that does not interpret backslashes.
18613 AR_FLAGS=$lt_AR_FLAGS
18618 # A language-specific compiler.
18619 CC=$lt_compiler_CXX
18621 # Is the compiler the GNU C compiler?
18627 # The linker used to build libraries.
18630 # Whether we need hard or soft links.
18633 # A BSD-compatible nm program.
18636 # A symbol stripping program
18639 # Used to examine libraries when file_magic_cmd begins "file"
18640 MAGIC_CMD=$MAGIC_CMD
18642 # Used on cygwin: DLL creation program.
18645 # Used on cygwin: object dumper.
18648 # Used on cygwin: assembler.
18651 # The name of the directory that contains temporary libtool files.
18654 # How to create reloadable object files.
18655 reload_flag=$lt_reload_flag
18656 reload_cmds=$lt_reload_cmds
18658 # How to pass a linker flag through the compiler.
18659 wl=$lt_lt_prog_compiler_wl_CXX
18661 # Object file suffix (normally "o").
18662 objext="$ac_objext"
18664 # Old archive suffix (normally "a").
18667 # Shared library suffix (normally ".so").
18668 shrext_cmds='$shrext_cmds'
18670 # Executable file suffix (normally "").
18673 # Additional compiler flags for building library objects.
18674 pic_flag=$lt_lt_prog_compiler_pic_CXX
18677 # What is the maximum length of a command?
18678 max_cmd_len=$lt_cv_sys_max_cmd_len
18680 # Does compiler simultaneously support -c and -o options?
18681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18683 # Must we lock files when doing compilation ?
18684 need_locks=$lt_need_locks
18686 # Do we need the lib prefix for modules?
18687 need_lib_prefix=$need_lib_prefix
18689 # Do we need a version for libraries?
18690 need_version=$need_version
18692 # Whether dlopen is supported.
18693 dlopen_support=$enable_dlopen
18695 # Whether dlopen of programs is supported.
18696 dlopen_self=$enable_dlopen_self
18698 # Whether dlopen of statically linked programs is supported.
18699 dlopen_self_static=$enable_dlopen_self_static
18701 # Compiler flag to prevent dynamic linking.
18702 link_static_flag=$lt_lt_prog_compiler_static_CXX
18704 # Compiler flag to turn off builtin functions.
18705 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18707 # Compiler flag to allow reflexive dlopens.
18708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18710 # Compiler flag to generate shared objects directly from archives.
18711 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18713 # Compiler flag to generate thread-safe objects.
18714 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18716 # Library versioning type.
18717 version_type=$version_type
18719 # Format of library name prefix.
18720 libname_spec=$lt_libname_spec
18722 # List of archive names. First name is the real one, the rest are links.
18723 # The last name is the one that the linker finds with -lNAME.
18724 library_names_spec=$lt_library_names_spec
18726 # The coded name of the library, if different from the real name.
18727 soname_spec=$lt_soname_spec
18729 # Commands used to build and install an old-style archive.
18731 old_archive_cmds=$lt_old_archive_cmds_CXX
18732 old_postinstall_cmds=$lt_old_postinstall_cmds
18733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18735 # Create an old-style archive from a shared archive.
18736 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18738 # Create a temporary old-style archive to link instead of a shared archive.
18739 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18741 # Commands used to build and install a shared archive.
18742 archive_cmds=$lt_archive_cmds_CXX
18743 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18744 postinstall_cmds=$lt_postinstall_cmds
18745 postuninstall_cmds=$lt_postuninstall_cmds
18747 # Commands used to build a loadable module (assumed same as above if empty)
18748 module_cmds=$lt_module_cmds_CXX
18749 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18751 # Commands to strip libraries.
18752 old_striplib=$lt_old_striplib
18753 striplib=$lt_striplib
18755 # Dependencies to place before the objects being linked to create a
18757 predep_objects=$lt_predep_objects_CXX
18759 # Dependencies to place after the objects being linked to create a
18761 postdep_objects=$lt_postdep_objects_CXX
18763 # Dependencies to place before the objects being linked to create a
18765 predeps=$lt_predeps_CXX
18767 # Dependencies to place after the objects being linked to create a
18769 postdeps=$lt_postdeps_CXX
18771 # The library search path used internally by the compiler when linking
18772 # a shared library.
18773 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18775 # Method to check whether dependent libraries are shared objects.
18776 deplibs_check_method=$lt_deplibs_check_method
18778 # Command to use when deplibs_check_method == file_magic.
18779 file_magic_cmd=$lt_file_magic_cmd
18781 # Flag that allows shared libraries with undefined symbols to be built.
18782 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18784 # Flag that forces no undefined symbols.
18785 no_undefined_flag=$lt_no_undefined_flag_CXX
18787 # Commands used to finish a libtool library installation in a directory.
18788 finish_cmds=$lt_finish_cmds
18790 # Same as above, but a single script fragment to be evaled but not shown.
18791 finish_eval=$lt_finish_eval
18793 # Take the output of nm and produce a listing of raw symbols and C names.
18794 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18796 # Transform the output of nm in a proper C declaration
18797 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18799 # Transform the output of nm in a C name address pair
18800 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18802 # This is the shared library runtime path variable.
18803 runpath_var=$runpath_var
18805 # This is the shared library path variable.
18806 shlibpath_var=$shlibpath_var
18808 # Is shlibpath searched before the hard-coded library search path?
18809 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18811 # How to hardcode a shared library path into an executable.
18812 hardcode_action=$hardcode_action_CXX
18814 # Whether we should hardcode library paths into libraries.
18815 hardcode_into_libs=$hardcode_into_libs
18817 # Flag to hardcode \$libdir into a binary during linking.
18818 # This must work even if \$libdir does not exist.
18819 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18821 # If ld is used when linking, flag to hardcode \$libdir into
18822 # a binary during linking. This must work even if \$libdir does
18824 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18826 # Whether we need a single -rpath flag with a separated argument.
18827 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18829 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18830 # resulting binary.
18831 hardcode_direct=$hardcode_direct_CXX
18833 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18834 # resulting binary.
18835 hardcode_minus_L=$hardcode_minus_L_CXX
18837 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18838 # the resulting binary.
18839 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18841 # Set to yes if building a shared library automatically hardcodes DIR into the library
18842 # and all subsequent libraries and executables linked against it.
18843 hardcode_automatic=$hardcode_automatic_CXX
18845 # Variables whose values should be saved in libtool wrapper scripts and
18846 # restored at relink time.
18847 variables_saved_for_relink="$variables_saved_for_relink"
18849 # Whether libtool must link a program against all its dependency libraries.
18850 link_all_deplibs=$link_all_deplibs_CXX
18852 # Compile-time system search path for libraries
18853 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18855 # Run-time system search path for libraries
18856 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18858 # Fix the shell variable \$srcfile for the compiler.
18859 fix_srcfile_path="$fix_srcfile_path_CXX"
18861 # Set to yes if exported symbols are required.
18862 always_export_symbols=$always_export_symbols_CXX
18864 # The commands to list exported symbols.
18865 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18867 # The commands to extract the exported symbol list from a shared archive.
18868 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18870 # Symbols that should not be listed in the preloaded symbols.
18871 exclude_expsyms=$lt_exclude_expsyms_CXX
18873 # Symbols that must always be exported.
18874 include_expsyms=$lt_include_expsyms_CXX
18876 # ### END LIBTOOL TAG CONFIG: $tagname
18882 # If there is no Makefile yet, we rely on a make rule to execute
18883 # `config.status --recheck' to rerun these tests and create the
18884 # libtool script then.
18885 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18886 if test -f "$ltmain_in"; then
18887 test -f Makefile && make "$ltmain"
18893 ac_cpp='$CPP $CPPFLAGS'
18894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18902 with_gnu_ldcxx=$with_gnu_ld
18903 with_gnu_ld=$lt_save_with_gnu_ld
18904 lt_cv_path_LDCXX=$lt_cv_path_LD
18905 lt_cv_path_LD=$lt_save_path_LD
18906 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18907 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18915 if test -n "$F77" && test "X$F77" != "Xno"; then
18918 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18919 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18923 archive_cmds_need_lc_F77=no
18924 allow_undefined_flag_F77=
18925 always_export_symbols_F77=no
18926 archive_expsym_cmds_F77=
18927 export_dynamic_flag_spec_F77=
18928 hardcode_direct_F77=no
18929 hardcode_libdir_flag_spec_F77=
18930 hardcode_libdir_flag_spec_ld_F77=
18931 hardcode_libdir_separator_F77=
18932 hardcode_minus_L_F77=no
18933 hardcode_automatic_F77=no
18935 module_expsym_cmds_F77=
18936 link_all_deplibs_F77=unknown
18937 old_archive_cmds_F77=$old_archive_cmds
18938 no_undefined_flag_F77=
18939 whole_archive_flag_spec_F77=
18940 enable_shared_with_static_runtimes_F77=no
18942 # Source file extension for f77 test sources.
18945 # Object file extension for compiled f77 test sources.
18949 # Code to be used in simple compile tests
18950 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18952 # Code to be used in simple link tests
18953 lt_simple_link_test_code=" program t\n end\n"
18955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18957 # If no C compiler was specified, use CC.
18960 # Allow CC to be a program name with arguments.
18964 # Allow CC to be a program name with arguments.
18969 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18971 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18972 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18973 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18974 echo "${ECHO_T}$can_build_shared" >&6
18976 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18977 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18978 test "$can_build_shared" = "no" && enable_shared=no
18980 # On AIX, shared libraries and static libraries use the same namespace, and
18981 # are all built from PIC.
18984 test "$enable_shared" = yes && enable_static=no
18985 if test -n "$RANLIB"; then
18986 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18987 postinstall_cmds='$RANLIB $lib'
18991 test "$enable_shared" = yes && enable_static=no
18994 echo "$as_me:$LINENO: result: $enable_shared" >&5
18995 echo "${ECHO_T}$enable_shared" >&6
18997 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18998 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18999 # Make sure either enable_shared or enable_static is yes.
19000 test "$enable_shared" = yes || enable_static=yes
19001 echo "$as_me:$LINENO: result: $enable_static" >&5
19002 echo "${ECHO_T}$enable_static" >&6
19004 test "$ld_shlibs_F77" = no && can_build_shared=no
19009 lt_prog_compiler_wl_F77=
19010 lt_prog_compiler_pic_F77=
19011 lt_prog_compiler_static_F77=
19013 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19014 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19016 if test "$GCC" = yes; then
19017 lt_prog_compiler_wl_F77='-Wl,'
19018 lt_prog_compiler_static_F77='-static'
19022 # All AIX code is PIC.
19023 if test "$host_cpu" = ia64; then
19024 # AIX 5 now supports IA64 processor
19025 lt_prog_compiler_static_F77='-Bstatic'
19030 # FIXME: we need at least 68020 code to build shared libraries, but
19031 # adding the `-m68020' flag to GCC prevents building anything better,
19033 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19036 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19037 # PIC is the default for these OSes.
19040 mingw* | pw32* | os2*)
19041 # This hack is so that the source file can tell whether it is being
19042 # built for inclusion in a dll (and should export symbols for example).
19043 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19046 darwin* | rhapsody*)
19047 # PIC is the default on this platform
19048 # Common symbols not allowed in MH_DYLIB files
19049 lt_prog_compiler_pic_F77='-fno-common'
19053 # Just because we use GCC doesn't mean we suddenly get shared libraries
19054 # on systems that don't support them.
19055 lt_prog_compiler_can_build_shared_F77=no
19060 if test -d /usr/nec; then
19061 lt_prog_compiler_pic_F77=-Kconform_pic
19066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19067 # not for PA HP-UX.
19068 case "$host_cpu" in
19073 lt_prog_compiler_pic_F77='-fPIC'
19079 lt_prog_compiler_pic_F77='-fPIC'
19083 # PORTME Check for flag to pass linker flags through the system compiler.
19086 lt_prog_compiler_wl_F77='-Wl,'
19087 if test "$host_cpu" = ia64; then
19088 # AIX 5 now supports IA64 processor
19089 lt_prog_compiler_static_F77='-Bstatic'
19091 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19095 # PIC is the default on this platform
19096 # Common symbols not allowed in MH_DYLIB files
19097 case "$cc_basename" in
19099 lt_prog_compiler_pic_F77='-qnocommon'
19100 lt_prog_compiler_wl_F77='-Wl,'
19105 mingw* | pw32* | os2*)
19106 # This hack is so that the source file can tell whether it is being
19107 # built for inclusion in a dll (and should export symbols for example).
19108 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19111 hpux9* | hpux10* | hpux11*)
19112 lt_prog_compiler_wl_F77='-Wl,'
19113 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19114 # not for PA HP-UX.
19115 case "$host_cpu" in
19120 lt_prog_compiler_pic_F77='+Z'
19123 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19124 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19127 irix5* | irix6* | nonstopux*)
19128 lt_prog_compiler_wl_F77='-Wl,'
19129 # PIC (with -KPIC) is the default.
19130 lt_prog_compiler_static_F77='-non_shared'
19134 lt_prog_compiler_pic_F77='-KPIC'
19135 lt_prog_compiler_static_F77='-Bstatic'
19141 lt_prog_compiler_wl_F77='-Wl,'
19142 lt_prog_compiler_pic_F77='-KPIC'
19143 lt_prog_compiler_static_F77='-static'
19146 lt_prog_compiler_wl_F77='-Wl,'
19147 # All Alpha code is PIC.
19148 lt_prog_compiler_static_F77='-non_shared'
19153 osf3* | osf4* | osf5*)
19154 lt_prog_compiler_wl_F77='-Wl,'
19155 # All OSF/1 code is PIC.
19156 lt_prog_compiler_static_F77='-non_shared'
19160 lt_prog_compiler_pic_F77='-Kpic'
19161 lt_prog_compiler_static_F77='-dn'
19165 lt_prog_compiler_wl_F77='-Wl,'
19166 lt_prog_compiler_pic_F77='-KPIC'
19167 lt_prog_compiler_static_F77='-Bstatic'
19171 lt_prog_compiler_wl_F77='-Qoption ld '
19172 lt_prog_compiler_pic_F77='-PIC'
19173 lt_prog_compiler_static_F77='-Bstatic'
19176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19177 lt_prog_compiler_wl_F77='-Wl,'
19178 lt_prog_compiler_pic_F77='-KPIC'
19179 lt_prog_compiler_static_F77='-Bstatic'
19183 if test -d /usr/nec ;then
19184 lt_prog_compiler_pic_F77='-Kconform_pic'
19185 lt_prog_compiler_static_F77='-Bstatic'
19190 lt_prog_compiler_pic_F77='-pic'
19191 lt_prog_compiler_static_F77='-Bstatic'
19195 lt_prog_compiler_can_build_shared_F77=no
19200 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19201 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19204 # Check to make sure the PIC flag actually works.
19206 if test -n "$lt_prog_compiler_pic_F77"; then
19208 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19209 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19210 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 lt_prog_compiler_pic_works_F77=no
19214 ac_outfile=conftest.$ac_objext
19215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19216 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19217 # Insert the option either (1) after the last *FLAGS variable, or
19218 # (2) before a word containing "conftest.", or (3) at the end.
19219 # Note that $ac_compile itself does not contain backslashes and begins
19220 # with a dollar sign (not a hyphen), so the echo should work correctly.
19221 # The option is referenced via a variable to avoid confusing sed.
19222 lt_compile=`echo "$ac_compile" | $SED \
19223 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19225 -e 's:$: $lt_compiler_flag:'`
19226 (eval echo "\"\$as_me:19226: $lt_compile\"" >&5)
19227 (eval "$lt_compile" 2>conftest.err)
19229 cat conftest.err >&5
19230 echo "$as_me:19230: \$? = $ac_status" >&5
19231 if (exit $ac_status) && test -s "$ac_outfile"; then
19232 # The compiler can only warn and ignore the option if not recognized
19233 # So say no if there are warnings
19234 if test ! -s conftest.err; then
19235 lt_prog_compiler_pic_works_F77=yes
19241 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19242 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19244 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19245 case $lt_prog_compiler_pic_F77 in
19247 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19250 lt_prog_compiler_pic_F77=
19251 lt_prog_compiler_can_build_shared_F77=no
19256 # For platforms which do not support PIC, -DPIC is meaningless:
19258 lt_prog_compiler_pic_F77=
19261 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19265 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19266 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19267 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 lt_cv_prog_compiler_c_o_F77=no
19271 $rm -r conftest 2>/dev/null
19275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19277 lt_compiler_flag="-o out/conftest2.$ac_objext"
19278 # Insert the option either (1) after the last *FLAGS variable, or
19279 # (2) before a word containing "conftest.", or (3) at the end.
19280 # Note that $ac_compile itself does not contain backslashes and begins
19281 # with a dollar sign (not a hyphen), so the echo should work correctly.
19282 lt_compile=`echo "$ac_compile" | $SED \
19283 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19285 -e 's:$: $lt_compiler_flag:'`
19286 (eval echo "\"\$as_me:19286: $lt_compile\"" >&5)
19287 (eval "$lt_compile" 2>out/conftest.err)
19289 cat out/conftest.err >&5
19290 echo "$as_me:19290: \$? = $ac_status" >&5
19291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19293 # The compiler can only warn and ignore the option if not recognized
19294 # So say no if there are warnings
19295 if test ! -s out/conftest.err; then
19296 lt_cv_prog_compiler_c_o_F77=yes
19301 # SGI C++ compiler will create directory out/ii_files/ for
19302 # template instantiation
19303 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19304 $rm out/* && rmdir out
19310 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19311 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19314 hard_links="nottested"
19315 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19316 # do not overwrite the value of need_locks provided by the user
19317 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19318 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19323 ln conftest.a conftest.b 2>&5 || hard_links=no
19324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19325 echo "$as_me:$LINENO: result: $hard_links" >&5
19326 echo "${ECHO_T}$hard_links" >&6
19327 if test "$hard_links" = no; then
19328 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19329 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19336 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19337 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19340 allow_undefined_flag_F77=
19341 enable_shared_with_static_runtimes_F77=no
19343 archive_expsym_cmds_F77=
19344 old_archive_From_new_cmds_F77=
19345 old_archive_from_expsyms_cmds_F77=
19346 export_dynamic_flag_spec_F77=
19347 whole_archive_flag_spec_F77=
19348 thread_safe_flag_spec_F77=
19349 hardcode_libdir_flag_spec_F77=
19350 hardcode_libdir_flag_spec_ld_F77=
19351 hardcode_libdir_separator_F77=
19352 hardcode_direct_F77=no
19353 hardcode_minus_L_F77=no
19354 hardcode_shlibpath_var_F77=unsupported
19355 link_all_deplibs_F77=unknown
19356 hardcode_automatic_F77=no
19358 module_expsym_cmds_F77=
19359 always_export_symbols_F77=no
19360 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19361 # include_expsyms should be a list of space-separated symbols to be *always*
19362 # included in the symbol list
19363 include_expsyms_F77=
19364 # exclude_expsyms can be an extended regexp of symbols to exclude
19365 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19366 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19367 # as well as any symbol that contains `d'.
19368 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19369 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19370 # platforms (ab)use it in PIC code, but their linkers get confused if
19371 # the symbol is explicitly referenced. Since portable code cannot
19372 # rely on this symbol name, it's probably fine to never include it in
19373 # preloaded symbol tables.
19374 extract_expsyms_cmds=
19377 cygwin* | mingw* | pw32*)
19378 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19379 # When not using gcc, we currently assume that we are using
19380 # Microsoft Visual C++.
19381 if test "$GCC" != yes; then
19391 if test "$with_gnu_ld" = yes; then
19392 # If archive_cmds runs LD, not CC, wlarc should be empty
19395 # See if GNU ld supports shared libraries.
19397 aix3* | aix4* | aix5*)
19398 # On AIX/PPC, the GNU linker is very broken
19399 if test "$host_cpu" != ia64; then
19403 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19404 *** to be unable to reliably create shared libraries on AIX.
19405 *** Therefore, libtool is disabling shared libraries support. If you
19406 *** really care for shared libraries, you may want to modify your PATH
19407 *** so that a non-GNU linker is found, and then restart.
19414 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)'
19415 hardcode_libdir_flag_spec_F77='-L$libdir'
19416 hardcode_minus_L_F77=yes
19418 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19419 # that the semantics of dynamic libraries on AmigaOS, at least up
19420 # to version 4, is to share data among multiple programs linked
19421 # with the same dynamic library. Since this doesn't match the
19422 # behavior of shared libraries on other platforms, we can't use
19428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19429 allow_undefined_flag_F77=unsupported
19430 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19431 # support --undefined. This deserves some investigation. FIXME
19432 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19438 cygwin* | mingw* | pw32*)
19439 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19440 # as there is no search path for DLLs.
19441 hardcode_libdir_flag_spec_F77='-L$libdir'
19442 allow_undefined_flag_F77=unsupported
19443 always_export_symbols_F77=no
19444 enable_shared_with_static_runtimes_F77=yes
19445 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19447 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19449 # If the export-symbols file already is a .def file (1st line
19450 # is EXPORTS), use it as is; otherwise, prepend...
19451 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19452 cp $export_symbols $output_objdir/$soname.def;
19454 echo EXPORTS > $output_objdir/$soname.def;
19455 cat $export_symbols >> $output_objdir/$soname.def;
19457 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19465 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19468 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19469 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19474 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19479 *** create shared libraries on Solaris systems. Therefore, libtool
19480 *** is disabling shared libraries support. We urge you to upgrade GNU
19481 *** binutils to release 2.9.1 or newer. Another option is to modify
19482 *** your PATH or compiler configuration so that the native linker is
19483 *** used, and then restart.
19486 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19495 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19497 hardcode_direct_F77=yes
19498 hardcode_shlibpath_var_F77=no
19502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19503 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19504 archive_cmds_F77="$tmp_archive_cmds"
19505 supports_anon_versioning=no
19506 case `$LD -v 2>/dev/null` in
19507 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19510 *\ 2.11.*) ;; # other 2.11 versions
19511 *) supports_anon_versioning=yes ;;
19513 if test $supports_anon_versioning = yes; then
19514 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19516 $echo "local: *; };" >> $output_objdir/$libname.ver~
19517 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19519 archive_expsym_cmds_F77="$tmp_archive_cmds"
19527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19528 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19529 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19536 if test "$ld_shlibs_F77" = yes; then
19537 runpath_var=LD_RUN_PATH
19538 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19539 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19540 # ancient GNU ld didn't support --whole-archive et. al.
19541 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19542 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19544 whole_archive_flag_spec_F77=
19548 # PORTME fill in a description of your system's linker (not GNU ld)
19551 allow_undefined_flag_F77=unsupported
19552 always_export_symbols_F77=yes
19553 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'
19554 # Note: this linker hardcodes the directories in LIBPATH if there
19555 # are no directories specified by -L.
19556 hardcode_minus_L_F77=yes
19557 if test "$GCC" = yes && test -z "$link_static_flag"; then
19558 # Neither direct hardcoding nor static linking is supported with a
19560 hardcode_direct_F77=unsupported
19565 if test "$host_cpu" = ia64; then
19566 # On IA64, the linker does run time linking by default, so we don't
19567 # have to do anything special.
19568 aix_use_runtimelinking=no
19569 exp_sym_flag='-Bexport'
19572 # If we're using GNU nm, then we don't want the "-C" option.
19573 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19574 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19575 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'
19577 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'
19579 aix_use_runtimelinking=no
19581 # Test if we are trying to use run time linking or normal
19582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19583 # need to do runtime linking.
19584 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19585 for ld_flag in $LDFLAGS; do
19586 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19587 aix_use_runtimelinking=yes
19593 exp_sym_flag='-bexport'
19594 no_entry_flag='-bnoentry'
19597 # When large executables or shared objects are built, AIX ld can
19598 # have problems creating the table of contents. If linking a library
19599 # or program results in "error TOC overflow" add -mminimal-toc to
19600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19603 archive_cmds_F77=''
19604 hardcode_direct_F77=yes
19605 hardcode_libdir_separator_F77=':'
19606 link_all_deplibs_F77=yes
19608 if test "$GCC" = yes; then
19609 case $host_os in aix4.012|aix4.012.*)
19610 # We only want to do this on AIX 4.2 and lower, the check
19611 # below for broken collect2 doesn't work under 4.3+
19612 collect2name=`${CC} -print-prog-name=collect2`
19613 if test -f "$collect2name" && \
19614 strings "$collect2name" | grep resolve_lib_name >/dev/null
19616 # We have reworked collect2
19617 hardcode_direct_F77=yes
19619 # We have old collect2
19620 hardcode_direct_F77=unsupported
19621 # It fails to find uninstalled libraries when the uninstalled
19622 # path is not listed in the libpath. Setting hardcode_minus_L
19623 # to unsupported forces relinking
19624 hardcode_minus_L_F77=yes
19625 hardcode_libdir_flag_spec_F77='-L$libdir'
19626 hardcode_libdir_separator_F77=
19629 shared_flag='-shared'
19632 if test "$host_cpu" = ia64; then
19633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19634 # chokes on -Wl,-G. The following line is correct:
19637 if test "$aix_use_runtimelinking" = yes; then
19638 shared_flag='${wl}-G'
19640 shared_flag='${wl}-bM:SRE'
19645 # It seems that -bexpall does not export symbols beginning with
19646 # underscore (_), so it is better to generate a list of symbols to export.
19647 always_export_symbols_F77=yes
19648 if test "$aix_use_runtimelinking" = yes; then
19649 # Warning - without using the other runtime loading flags (-brtl),
19650 # -berok will link without error, but may produce a broken library.
19651 allow_undefined_flag_F77='-berok'
19652 # Determine the default libpath from the value encoded in an empty executable.
19653 cat >conftest.$ac_ext <<_ACEOF
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19660 (eval $ac_link) 2>conftest.er1
19662 grep -v '^ *+' conftest.er1 >conftest.err
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -z "$ac_f77_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest$ac_exeext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19683 # Check for a 64-bit object if we didn't find anything.
19684 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; }
19687 echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19691 rm -f conftest.err conftest.$ac_objext \
19692 conftest$ac_exeext conftest.$ac_ext
19693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19695 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19696 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"
19698 if test "$host_cpu" = ia64; then
19699 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19700 allow_undefined_flag_F77="-z nodefs"
19701 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"
19703 # Determine the default libpath from the value encoded in an empty executable.
19704 cat >conftest.$ac_ext <<_ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19711 (eval $ac_link) 2>conftest.er1
19713 grep -v '^ *+' conftest.er1 >conftest.err
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_f77_werror_flag"
19719 || test ! -s conftest.err'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest$ac_exeext'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19734 # Check for a 64-bit object if we didn't find anything.
19735 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; }
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19742 rm -f conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19746 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19747 # Warning - without using the other run time loading flags,
19748 # -berok will link without error, but may produce a broken library.
19749 no_undefined_flag_F77=' ${wl}-bernotok'
19750 allow_undefined_flag_F77=' ${wl}-berok'
19751 # -bexpall does not export symbols beginning with underscore (_)
19752 always_export_symbols_F77=yes
19753 # Exported symbols can be pulled into shared objects from archives
19754 whole_archive_flag_spec_F77=' '
19755 archive_cmds_need_lc_F77=yes
19756 # This is similar to how AIX traditionally builds it's shared libraries.
19757 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'
19763 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)'
19764 hardcode_libdir_flag_spec_F77='-L$libdir'
19765 hardcode_minus_L_F77=yes
19766 # see comment about different semantics on the GNU ld section
19771 export_dynamic_flag_spec_F77=-rdynamic
19774 cygwin* | mingw* | pw32*)
19775 # When not using gcc, we currently assume that we are using
19776 # Microsoft Visual C++.
19777 # hardcode_libdir_flag_spec is actually meaningless, as there is
19778 # no search path for DLLs.
19779 hardcode_libdir_flag_spec_F77=' '
19780 allow_undefined_flag_F77=unsupported
19781 # Tell ltmain to make .lib files, not .a files.
19783 # Tell ltmain to make .dll files, not .so files.
19785 # FIXME: Setting linknames here is a bad hack.
19786 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19787 # The linker will automatically build a .lib file if we build a DLL.
19788 old_archive_From_new_cmds_F77='true'
19789 # FIXME: Should let the user specify the lib program.
19790 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19791 fix_srcfile_path='`cygpath -w "$srcfile"`'
19792 enable_shared_with_static_runtimes_F77=yes
19795 darwin* | rhapsody*)
19797 rhapsody* | darwin1.[012])
19798 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19801 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19802 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19804 case ${MACOSX_DEPLOYMENT_TARGET} in
19806 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19809 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19815 archive_cmds_need_lc_F77=no
19816 hardcode_direct_F77=no
19817 hardcode_automatic_F77=yes
19818 hardcode_shlibpath_var_F77=unsupported
19819 whole_archive_flag_spec_F77=''
19820 link_all_deplibs_F77=yes
19821 if test "$GCC" = yes ; then
19822 output_verbose_link_cmd='echo'
19823 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19824 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19826 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}'
19827 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}'
19829 case "$cc_basename" in
19831 output_verbose_link_cmd='echo'
19832 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19833 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19834 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19835 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}'
19836 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}'
19846 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19847 hardcode_libdir_flag_spec_F77='-L$libdir'
19848 hardcode_shlibpath_var_F77=no
19855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19856 # support. Future versions do this automatically, but an explicit c++rt0.o
19857 # does not break anything, and helps significantly (at the cost of a little
19860 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19861 hardcode_libdir_flag_spec_F77='-R$libdir'
19862 hardcode_direct_F77=yes
19863 hardcode_shlibpath_var_F77=no
19866 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19868 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19869 hardcode_direct_F77=yes
19870 hardcode_minus_L_F77=yes
19871 hardcode_shlibpath_var_F77=no
19874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19875 freebsd* | kfreebsd*-gnu)
19876 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19877 hardcode_libdir_flag_spec_F77='-R$libdir'
19878 hardcode_direct_F77=yes
19879 hardcode_shlibpath_var_F77=no
19883 if test "$GCC" = yes; then
19884 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'
19886 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'
19888 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19889 hardcode_libdir_separator_F77=:
19890 hardcode_direct_F77=yes
19892 # hardcode_minus_L: Not really in the search PATH,
19893 # but as the default location of the library.
19894 hardcode_minus_L_F77=yes
19895 export_dynamic_flag_spec_F77='${wl}-E'
19899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19900 case "$host_cpu" in
19902 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19905 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19909 case "$host_cpu" in
19911 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19914 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19918 if test "$with_gnu_ld" = no; then
19919 case "$host_cpu" in
19921 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19922 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19923 hardcode_libdir_separator_F77=:
19924 hardcode_direct_F77=no
19925 hardcode_shlibpath_var_F77=no
19928 hardcode_libdir_flag_spec_F77='-L$libdir'
19929 hardcode_direct_F77=no
19930 hardcode_shlibpath_var_F77=no
19932 # hardcode_minus_L: Not really in the search PATH,
19933 # but as the default location of the library.
19934 hardcode_minus_L_F77=yes
19937 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19938 hardcode_libdir_separator_F77=:
19939 hardcode_direct_F77=yes
19940 export_dynamic_flag_spec_F77='${wl}-E'
19942 # hardcode_minus_L: Not really in the search PATH,
19943 # but as the default location of the library.
19944 hardcode_minus_L_F77=yes
19950 irix5* | irix6* | nonstopux*)
19951 if test "$GCC" = yes; then
19952 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'
19954 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'
19955 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19957 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19958 hardcode_libdir_separator_F77=:
19959 link_all_deplibs_F77=yes
19963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19964 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19966 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19968 hardcode_libdir_flag_spec_F77='-R$libdir'
19969 hardcode_direct_F77=yes
19970 hardcode_shlibpath_var_F77=no
19974 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19975 hardcode_direct_F77=yes
19976 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19977 hardcode_libdir_separator_F77=:
19978 hardcode_shlibpath_var_F77=no
19982 hardcode_direct_F77=yes
19983 hardcode_shlibpath_var_F77=no
19984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19985 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19986 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19987 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19988 export_dynamic_flag_spec_F77='${wl}-E'
19991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19992 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19993 hardcode_libdir_flag_spec_F77='-R$libdir'
19996 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19997 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20004 hardcode_libdir_flag_spec_F77='-L$libdir'
20005 hardcode_minus_L_F77=yes
20006 allow_undefined_flag_F77=unsupported
20007 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'
20008 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20012 if test "$GCC" = yes; then
20013 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20014 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'
20016 allow_undefined_flag_F77=' -expect_unresolved \*'
20017 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'
20019 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20020 hardcode_libdir_separator_F77=:
20023 osf4* | osf5*) # as osf3* with the addition of -msym flag
20024 if test "$GCC" = yes; then
20025 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20026 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'
20027 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20029 allow_undefined_flag_F77=' -expect_unresolved \*'
20030 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'
20031 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~
20032 $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'
20034 # Both c and cxx compiler support -rpath directly
20035 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20037 hardcode_libdir_separator_F77=:
20041 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20042 hardcode_shlibpath_var_F77=no
20043 export_dynamic_flag_spec_F77='${wl}-Bexport'
20044 runpath_var=LD_RUN_PATH
20045 hardcode_runpath_var=yes
20049 no_undefined_flag_F77=' -z text'
20050 if test "$GCC" = yes; then
20051 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20052 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20053 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20059 hardcode_libdir_flag_spec_F77='-R$libdir'
20060 hardcode_shlibpath_var_F77=no
20062 solaris2.[0-5] | solaris2.[0-5].*) ;;
20063 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20064 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20066 link_all_deplibs_F77=yes
20070 if test "x$host_vendor" = xsequent; then
20071 # Use $CC to link under sequent, because it throws in some extra .o
20072 # files that make .init and .fini sections work.
20073 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20075 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20077 hardcode_libdir_flag_spec_F77='-L$libdir'
20078 hardcode_direct_F77=yes
20079 hardcode_minus_L_F77=yes
20080 hardcode_shlibpath_var_F77=no
20084 case $host_vendor in
20086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20087 hardcode_direct_F77=yes # is this really true???
20090 ## LD is ld it makes a PLAMLIB
20091 ## CC just makes a GrossModule.
20092 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20093 reload_cmds_F77='$CC -r -o $output$reload_objs'
20094 hardcode_direct_F77=no
20097 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20098 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20101 runpath_var='LD_RUN_PATH'
20102 hardcode_shlibpath_var_F77=no
20106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20107 hardcode_shlibpath_var_F77=no
20108 export_dynamic_flag_spec_F77='-Bexport'
20112 if test -d /usr/nec; then
20113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20114 hardcode_shlibpath_var_F77=no
20115 runpath_var=LD_RUN_PATH
20116 hardcode_runpath_var=yes
20122 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20123 hardcode_direct_F77=yes
20124 hardcode_minus_L_F77=no
20125 hardcode_shlibpath_var_F77=no
20126 hardcode_runpath_var=yes
20127 runpath_var=LD_RUN_PATH
20130 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20131 no_undefined_flag_F77='${wl}-z ${wl}text'
20132 if test "$GCC" = yes; then
20133 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20135 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20137 runpath_var='LD_RUN_PATH'
20138 hardcode_shlibpath_var_F77=no
20142 no_undefined_flag_F77=' -z text'
20143 # $CC -shared without GNU ld will not create a library from C++
20144 # object files and a static libstdc++, better avoid it by now
20145 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20146 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20148 hardcode_libdir_flag_spec_F77=
20149 hardcode_shlibpath_var_F77=no
20150 runpath_var='LD_RUN_PATH'
20154 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20155 hardcode_libdir_flag_spec_F77='-L$libdir'
20156 hardcode_shlibpath_var_F77=no
20165 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20166 echo "${ECHO_T}$ld_shlibs_F77" >&6
20167 test "$ld_shlibs_F77" = no && can_build_shared=no
20169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20170 if test "$GCC" = yes; then
20171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20175 # Do we need to explicitly link libc?
20177 case "x$archive_cmds_need_lc_F77" in
20179 # Assume -lc should be added
20180 archive_cmds_need_lc_F77=yes
20182 if test "$enable_shared" = yes && test "$GCC" = yes; then
20183 case $archive_cmds_F77 in
20185 # FIXME: we may have to deal with multi-command sequences.
20188 # Test whether the compiler implicitly links with -lc since on some
20189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20190 # to ld, don't add -lc before -lgcc.
20191 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } 2>conftest.err; then
20203 libobjs=conftest.$ac_objext
20205 wl=$lt_prog_compiler_wl_F77
20211 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20212 allow_undefined_flag_F77=
20213 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20214 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }
20219 archive_cmds_need_lc_F77=no
20221 archive_cmds_need_lc_F77=yes
20223 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20225 cat conftest.err 1>&5
20228 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20229 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20236 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20237 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20238 library_names_spec=
20239 libname_spec='lib$name'
20243 postuninstall_cmds=
20247 shlibpath_overrides_runpath=unknown
20249 dynamic_linker="$host_os ld.so"
20250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20251 if test "$GCC" = yes; then
20252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20253 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20254 # if the path contains ";" then we assume it to be the separator
20255 # otherwise default to the standard path separator (i.e. ":") - it is
20256 # assumed that no part of a normal pathname contains ";" but that should
20257 # okay in the real world where ";" in dirpaths is itself problematic.
20258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20265 need_lib_prefix=unknown
20266 hardcode_into_libs=no
20268 # when you set need_version to no, make sure it does not cause -set_version
20269 # flags to be left without arguments
20270 need_version=unknown
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20276 shlibpath_var=LIBPATH
20278 # AIX 3 has no versioning support, so we append a major version to the name.
20279 soname_spec='${libname}${release}${shared_ext}$major'
20286 hardcode_into_libs=yes
20287 if test "$host_cpu" = ia64; then
20288 # AIX 5 supports IA64
20289 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20290 shlibpath_var=LD_LIBRARY_PATH
20292 # With GCC up to 2.95.x, collect2 would create an import file
20293 # for dependence libraries. The import file would start with
20294 # the line `#! .'. This would cause the generated library to
20295 # depend on `.', always an invalid library. This was fixed in
20296 # development snapshots of GCC prior to 3.0.
20298 aix4 | aix4.[01] | aix4.[01].*)
20299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20301 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20304 can_build_shared=no
20308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20309 # soname into executable. Probably we can add versioning support to
20310 # collect2, so additional links can be useful in future.
20311 if test "$aix_use_runtimelinking" = yes; then
20312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20313 # instead of lib<name>.a to let people know that these are not
20314 # typical AIX shared libraries.
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20317 # We preserve .a as extension for shared libraries through AIX4.2
20318 # and later when we are not doing run time linking.
20319 library_names_spec='${libname}${release}.a $libname.a'
20320 soname_spec='${libname}${release}${shared_ext}$major'
20322 shlibpath_var=LIBPATH
20327 library_names_spec='$libname.ixlibrary $libname.a'
20328 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20329 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'
20333 library_names_spec='${libname}${shared_ext}'
20334 dynamic_linker="$host_os ld.so"
20335 shlibpath_var=LIBRARY_PATH
20341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20342 soname_spec='${libname}${release}${shared_ext}$major'
20343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20344 shlibpath_var=LD_LIBRARY_PATH
20345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20347 # the default ld.so.conf also contains /usr/contrib/lib and
20348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20349 # libtool to hard-code these into programs
20352 cygwin* | mingw* | pw32*)
20353 version_type=windows
20358 case $GCC,$host_os in
20359 yes,cygwin* | yes,mingw* | yes,pw32*)
20360 library_names_spec='$libname.dll.a'
20361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20362 postinstall_cmds='base_file=`basename \${file}`~
20363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20364 dldir=$destdir/`dirname \$dlpath`~
20365 test -d \$dldir || mkdir -p \$dldir~
20366 $install_prog $dir/$dlname \$dldir/$dlname'
20367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20368 dlpath=$dir/\$dldll~
20370 shlibpath_overrides_runpath=yes
20374 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20375 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20376 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20379 # MinGW DLLs use traditional 'lib' prefix
20380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20382 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20383 # It is most probably a Windows format PATH printed by
20384 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20385 # path with ; separators, and with drive letters. We can handle the
20386 # drive letters (cygwin fileutils understands them), so leave them,
20387 # especially as we might pass files found there to a mingw objdump,
20388 # which wouldn't understand a cygwinified path. Ahh.
20389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20395 # pw32 DLLs use 'pw' prefix rather than 'lib'
20396 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20402 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20405 dynamic_linker='Win32 ld.exe'
20406 # FIXME: first we should search . and the directory the executable is in
20410 darwin* | rhapsody*)
20411 dynamic_linker="$host_os dyld"
20412 version_type=darwin
20415 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20416 soname_spec='${libname}${release}${major}$shared_ext'
20417 shlibpath_overrides_runpath=yes
20418 shlibpath_var=DYLD_LIBRARY_PATH
20419 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20420 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20421 if test "$GCC" = yes; then
20422 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"`
20424 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 shlibpath_var=LD_LIBRARY_PATH
20446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20447 soname_spec='${libname}${release}${shared_ext}$major'
20448 shlibpath_var=LD_LIBRARY_PATH
20449 shlibpath_overrides_runpath=no
20450 hardcode_into_libs=yes
20451 dynamic_linker='GNU ld.so'
20455 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20456 version_type=freebsd-$objformat
20457 case $version_type in
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20468 shlibpath_var=LD_LIBRARY_PATH
20471 shlibpath_overrides_runpath=yes
20473 freebsd3.01* | freebsdelf3.01*)
20474 shlibpath_overrides_runpath=yes
20475 hardcode_into_libs=yes
20478 shlibpath_overrides_runpath=no
20479 hardcode_into_libs=yes
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 hardcode_into_libs=yes
20494 hpux9* | hpux10* | hpux11*)
20495 # Give a soname corresponding to the major version so that dld.sl refuses to
20496 # link against other versions.
20500 case "$host_cpu" in
20503 hardcode_into_libs=yes
20504 dynamic_linker="$host_os dld.so"
20505 shlibpath_var=LD_LIBRARY_PATH
20506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20508 soname_spec='${libname}${release}${shared_ext}$major'
20509 if test "X$HPUX_IA64_MODE" = X32; then
20510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20518 hardcode_into_libs=yes
20519 dynamic_linker="$host_os dld.sl"
20520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20529 dynamic_linker="$host_os dld.sl"
20530 shlibpath_var=SHLIB_PATH
20531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533 soname_spec='${libname}${release}${shared_ext}$major'
20536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20537 postinstall_cmds='chmod 555 $lib'
20540 irix5* | irix6* | nonstopux*)
20542 nonstopux*) version_type=nonstopux ;;
20544 if test "$lt_cv_prog_gnu_ld" = yes; then
20552 soname_spec='${libname}${release}${shared_ext}$major'
20553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20555 irix5* | nonstopux*)
20556 libsuff= shlibsuff=
20559 case $LD in # libtool.m4 will add one of these switches to LD
20560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20561 libsuff= shlibsuff= libmagic=32-bit;;
20562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20563 libsuff=32 shlibsuff=N32 libmagic=N32;;
20564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20566 *) libsuff= shlibsuff= libmagic=never-match;;
20570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20571 shlibpath_overrides_runpath=no
20572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20574 hardcode_into_libs=yes
20577 # No shared lib support for Linux oldld, aout, or coff.
20578 linux*oldld* | linux*aout* | linux*coff*)
20582 # This must be Linux ELF.
20587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20588 soname_spec='${libname}${release}${shared_ext}$major'
20589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20590 shlibpath_var=LD_LIBRARY_PATH
20591 shlibpath_overrides_runpath=no
20592 # This implies no fast_install, which is unacceptable.
20593 # Some rework will be needed to allow for fast_install
20594 # before this can be enabled.
20595 hardcode_into_libs=yes
20597 # Append ld.so.conf contents to the search path
20598 if test -f /etc/ld.so.conf; then
20599 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20600 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20603 # We used to test for /lib/ld.so.1 and disable shared libraries on
20604 # powerpc, because MkLinux only supported shared libraries with the
20605 # GNU dynamic linker. Since this was broken with cross compilers,
20606 # most powerpc-linux boxes support dynamic linking these days and
20607 # people can always --disable-shared, the test was removed, and we
20608 # assume the GNU/Linux dynamic linker is in use.
20609 dynamic_linker='GNU/Linux ld.so'
20616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20617 soname_spec='${libname}${release}${shared_ext}$major'
20618 shlibpath_var=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath=no
20620 hardcode_into_libs=yes
20621 dynamic_linker='GNU ld.so'
20628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20631 dynamic_linker='NetBSD (a.out) ld.so'
20633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20634 soname_spec='${libname}${release}${shared_ext}$major'
20635 dynamic_linker='NetBSD ld.elf_so'
20637 shlibpath_var=LD_LIBRARY_PATH
20638 shlibpath_overrides_runpath=yes
20639 hardcode_into_libs=yes
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 shlibpath_var=LD_LIBRARY_PATH
20646 shlibpath_overrides_runpath=yes
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20654 soname_spec='${libname}${release}${shared_ext}$major'
20655 shlibpath_var=LD_LIBRARY_PATH
20656 shlibpath_overrides_runpath=yes
20663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20665 shlibpath_var=LD_LIBRARY_PATH
20666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20668 openbsd2.[89] | openbsd2.[89].*)
20669 shlibpath_overrides_runpath=no
20672 shlibpath_overrides_runpath=yes
20676 shlibpath_overrides_runpath=yes
20681 libname_spec='$name'
20684 library_names_spec='$libname${shared_ext} $libname.a'
20685 dynamic_linker='OS/2 ld.exe'
20686 shlibpath_var=LIBPATH
20689 osf3* | osf4* | osf5*)
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 shlibpath_var=LD_LIBRARY_PATH
20696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20702 soname_spec='${libname}${release}${shared_ext}$major'
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704 shlibpath_var=LD_LIBRARY_PATH
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20712 soname_spec='${libname}${release}${shared_ext}$major'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 shlibpath_overrides_runpath=yes
20715 hardcode_into_libs=yes
20716 # ldd complains unless libraries are executable
20717 postinstall_cmds='chmod +x $lib'
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20723 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20724 shlibpath_var=LD_LIBRARY_PATH
20725 shlibpath_overrides_runpath=yes
20726 if test "$with_gnu_ld" = yes; then
20732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20735 soname_spec='${libname}${release}${shared_ext}$major'
20736 shlibpath_var=LD_LIBRARY_PATH
20737 case $host_vendor in
20739 shlibpath_overrides_runpath=no
20741 export_dynamic_flag_spec='${wl}-Blargedynsym'
20742 runpath_var=LD_RUN_PATH
20750 shlibpath_overrides_runpath=no
20751 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20757 if test -d /usr/nec ;then
20759 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20760 soname_spec='$libname${shared_ext}.$major'
20761 shlibpath_var=LD_LIBRARY_PATH
20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768 soname_spec='${libname}${release}${shared_ext}$major'
20769 shlibpath_var=LD_LIBRARY_PATH
20776 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20777 echo "${ECHO_T}$dynamic_linker" >&6
20778 test "$dynamic_linker" = no && can_build_shared=no
20780 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20781 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20782 hardcode_action_F77=
20783 if test -n "$hardcode_libdir_flag_spec_F77" || \
20784 test -n "$runpath_var_F77" || \
20785 test "X$hardcode_automatic_F77" = "Xyes" ; then
20787 # We can hardcode non-existant directories.
20788 if test "$hardcode_direct_F77" != no &&
20789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20790 # have to relink, otherwise we might link with an installed library
20791 # when we should be linking with a yet-to-be-installed one
20792 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20793 test "$hardcode_minus_L_F77" != no; then
20794 # Linking always hardcodes the temporary library directory.
20795 hardcode_action_F77=relink
20797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20798 hardcode_action_F77=immediate
20801 # We cannot hardcode anything, or else we can only hardcode existing
20803 hardcode_action_F77=unsupported
20805 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20806 echo "${ECHO_T}$hardcode_action_F77" >&6
20808 if test "$hardcode_action_F77" = relink; then
20809 # Fast installation is not supported
20810 enable_fast_install=no
20811 elif test "$shlibpath_overrides_runpath" = yes ||
20812 test "$enable_shared" = no; then
20813 # Fast installation is not necessary
20814 enable_fast_install=needless
20819 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20820 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20821 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20822 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20823 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20824 echo "$as_me:$LINENO: result: yes" >&5
20825 echo "${ECHO_T}yes" >&6
20827 # FIXME - insert some real tests, host_os isn't really good enough
20830 if test -n "$STRIP" ; then
20831 striplib="$STRIP -x"
20832 echo "$as_me:$LINENO: result: yes" >&5
20833 echo "${ECHO_T}yes" >&6
20835 echo "$as_me:$LINENO: result: no" >&5
20836 echo "${ECHO_T}no" >&6
20840 echo "$as_me:$LINENO: result: no" >&5
20841 echo "${ECHO_T}no" >&6
20848 # The else clause should only fire when bootstrapping the
20849 # libtool distribution, otherwise you forgot to ship ltmain.sh
20850 # with your package, and you will get complaints that there are
20851 # no rules to generate ltmain.sh.
20852 if test -f "$ltmain"; then
20853 # See if we are running on zsh, and set the options which allow our commands through
20854 # without removal of \ escapes.
20855 if test -n "${ZSH_VERSION+set}" ; then
20856 setopt NO_GLOB_SUBST
20858 # Now quote all the things that may contain metacharacters while being
20859 # careful not to overquote the AC_SUBSTed values. We take copies of the
20860 # variables and quote the copies for generation of the libtool script.
20861 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20863 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20864 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20865 deplibs_check_method reload_flag reload_cmds need_locks \
20866 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20867 lt_cv_sys_global_symbol_to_c_name_address \
20868 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20869 old_postinstall_cmds old_postuninstall_cmds \
20873 lt_prog_compiler_wl_F77 \
20874 lt_prog_compiler_pic_F77 \
20875 lt_prog_compiler_static_F77 \
20876 lt_prog_compiler_no_builtin_flag_F77 \
20877 export_dynamic_flag_spec_F77 \
20878 thread_safe_flag_spec_F77 \
20879 whole_archive_flag_spec_F77 \
20880 enable_shared_with_static_runtimes_F77 \
20881 old_archive_cmds_F77 \
20882 old_archive_from_new_cmds_F77 \
20883 predep_objects_F77 \
20884 postdep_objects_F77 \
20887 compiler_lib_search_path_F77 \
20889 archive_expsym_cmds_F77 \
20890 postinstall_cmds_F77 \
20891 postuninstall_cmds_F77 \
20892 old_archive_from_expsyms_cmds_F77 \
20893 allow_undefined_flag_F77 \
20894 no_undefined_flag_F77 \
20895 export_symbols_cmds_F77 \
20896 hardcode_libdir_flag_spec_F77 \
20897 hardcode_libdir_flag_spec_ld_F77 \
20898 hardcode_libdir_separator_F77 \
20899 hardcode_automatic_F77 \
20901 module_expsym_cmds_F77 \
20902 lt_cv_prog_compiler_c_o_F77 \
20903 exclude_expsyms_F77 \
20904 include_expsyms_F77; do
20907 old_archive_cmds_F77 | \
20908 old_archive_from_new_cmds_F77 | \
20909 archive_cmds_F77 | \
20910 archive_expsym_cmds_F77 | \
20911 module_cmds_F77 | \
20912 module_expsym_cmds_F77 | \
20913 old_archive_from_expsyms_cmds_F77 | \
20914 export_symbols_cmds_F77 | \
20915 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20916 postinstall_cmds | postuninstall_cmds | \
20917 old_postinstall_cmds | old_postuninstall_cmds | \
20918 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20919 # Double-quote double-evaled strings.
20920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20929 *'\$0 --fallback-echo"')
20930 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20936 cat <<__EOF__ >> "$cfgfile"
20937 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20939 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20941 # Shell to use when invoking shell scripts.
20944 # Whether or not to build shared libraries.
20945 build_libtool_libs=$enable_shared
20947 # Whether or not to build static libraries.
20948 build_old_libs=$enable_static
20950 # Whether or not to add -lc for building shared libraries.
20951 build_libtool_need_lc=$archive_cmds_need_lc_F77
20953 # Whether or not to disallow shared libs when runtime libs are static
20954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20956 # Whether or not to optimize for fast installation.
20957 fast_install=$enable_fast_install
20960 host_alias=$host_alias
20963 # An echo program that does not interpret backslashes.
20968 AR_FLAGS=$lt_AR_FLAGS
20973 # A language-specific compiler.
20974 CC=$lt_compiler_F77
20976 # Is the compiler the GNU C compiler?
20982 # The linker used to build libraries.
20985 # Whether we need hard or soft links.
20988 # A BSD-compatible nm program.
20991 # A symbol stripping program
20994 # Used to examine libraries when file_magic_cmd begins "file"
20995 MAGIC_CMD=$MAGIC_CMD
20997 # Used on cygwin: DLL creation program.
21000 # Used on cygwin: object dumper.
21003 # Used on cygwin: assembler.
21006 # The name of the directory that contains temporary libtool files.
21009 # How to create reloadable object files.
21010 reload_flag=$lt_reload_flag
21011 reload_cmds=$lt_reload_cmds
21013 # How to pass a linker flag through the compiler.
21014 wl=$lt_lt_prog_compiler_wl_F77
21016 # Object file suffix (normally "o").
21017 objext="$ac_objext"
21019 # Old archive suffix (normally "a").
21022 # Shared library suffix (normally ".so").
21023 shrext_cmds='$shrext_cmds'
21025 # Executable file suffix (normally "").
21028 # Additional compiler flags for building library objects.
21029 pic_flag=$lt_lt_prog_compiler_pic_F77
21032 # What is the maximum length of a command?
21033 max_cmd_len=$lt_cv_sys_max_cmd_len
21035 # Does compiler simultaneously support -c and -o options?
21036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21038 # Must we lock files when doing compilation ?
21039 need_locks=$lt_need_locks
21041 # Do we need the lib prefix for modules?
21042 need_lib_prefix=$need_lib_prefix
21044 # Do we need a version for libraries?
21045 need_version=$need_version
21047 # Whether dlopen is supported.
21048 dlopen_support=$enable_dlopen
21050 # Whether dlopen of programs is supported.
21051 dlopen_self=$enable_dlopen_self
21053 # Whether dlopen of statically linked programs is supported.
21054 dlopen_self_static=$enable_dlopen_self_static
21056 # Compiler flag to prevent dynamic linking.
21057 link_static_flag=$lt_lt_prog_compiler_static_F77
21059 # Compiler flag to turn off builtin functions.
21060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21062 # Compiler flag to allow reflexive dlopens.
21063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21065 # Compiler flag to generate shared objects directly from archives.
21066 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21068 # Compiler flag to generate thread-safe objects.
21069 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21071 # Library versioning type.
21072 version_type=$version_type
21074 # Format of library name prefix.
21075 libname_spec=$lt_libname_spec
21077 # List of archive names. First name is the real one, the rest are links.
21078 # The last name is the one that the linker finds with -lNAME.
21079 library_names_spec=$lt_library_names_spec
21081 # The coded name of the library, if different from the real name.
21082 soname_spec=$lt_soname_spec
21084 # Commands used to build and install an old-style archive.
21086 old_archive_cmds=$lt_old_archive_cmds_F77
21087 old_postinstall_cmds=$lt_old_postinstall_cmds
21088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21090 # Create an old-style archive from a shared archive.
21091 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21093 # Create a temporary old-style archive to link instead of a shared archive.
21094 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21096 # Commands used to build and install a shared archive.
21097 archive_cmds=$lt_archive_cmds_F77
21098 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21099 postinstall_cmds=$lt_postinstall_cmds
21100 postuninstall_cmds=$lt_postuninstall_cmds
21102 # Commands used to build a loadable module (assumed same as above if empty)
21103 module_cmds=$lt_module_cmds_F77
21104 module_expsym_cmds=$lt_module_expsym_cmds_F77
21106 # Commands to strip libraries.
21107 old_striplib=$lt_old_striplib
21108 striplib=$lt_striplib
21110 # Dependencies to place before the objects being linked to create a
21112 predep_objects=$lt_predep_objects_F77
21114 # Dependencies to place after the objects being linked to create a
21116 postdep_objects=$lt_postdep_objects_F77
21118 # Dependencies to place before the objects being linked to create a
21120 predeps=$lt_predeps_F77
21122 # Dependencies to place after the objects being linked to create a
21124 postdeps=$lt_postdeps_F77
21126 # The library search path used internally by the compiler when linking
21127 # a shared library.
21128 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21130 # Method to check whether dependent libraries are shared objects.
21131 deplibs_check_method=$lt_deplibs_check_method
21133 # Command to use when deplibs_check_method == file_magic.
21134 file_magic_cmd=$lt_file_magic_cmd
21136 # Flag that allows shared libraries with undefined symbols to be built.
21137 allow_undefined_flag=$lt_allow_undefined_flag_F77
21139 # Flag that forces no undefined symbols.
21140 no_undefined_flag=$lt_no_undefined_flag_F77
21142 # Commands used to finish a libtool library installation in a directory.
21143 finish_cmds=$lt_finish_cmds
21145 # Same as above, but a single script fragment to be evaled but not shown.
21146 finish_eval=$lt_finish_eval
21148 # Take the output of nm and produce a listing of raw symbols and C names.
21149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21151 # Transform the output of nm in a proper C declaration
21152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21154 # Transform the output of nm in a C name address pair
21155 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21157 # This is the shared library runtime path variable.
21158 runpath_var=$runpath_var
21160 # This is the shared library path variable.
21161 shlibpath_var=$shlibpath_var
21163 # Is shlibpath searched before the hard-coded library search path?
21164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21166 # How to hardcode a shared library path into an executable.
21167 hardcode_action=$hardcode_action_F77
21169 # Whether we should hardcode library paths into libraries.
21170 hardcode_into_libs=$hardcode_into_libs
21172 # Flag to hardcode \$libdir into a binary during linking.
21173 # This must work even if \$libdir does not exist.
21174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21176 # If ld is used when linking, flag to hardcode \$libdir into
21177 # a binary during linking. This must work even if \$libdir does
21179 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21181 # Whether we need a single -rpath flag with a separated argument.
21182 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21184 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21185 # resulting binary.
21186 hardcode_direct=$hardcode_direct_F77
21188 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21189 # resulting binary.
21190 hardcode_minus_L=$hardcode_minus_L_F77
21192 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21193 # the resulting binary.
21194 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21196 # Set to yes if building a shared library automatically hardcodes DIR into the library
21197 # and all subsequent libraries and executables linked against it.
21198 hardcode_automatic=$hardcode_automatic_F77
21200 # Variables whose values should be saved in libtool wrapper scripts and
21201 # restored at relink time.
21202 variables_saved_for_relink="$variables_saved_for_relink"
21204 # Whether libtool must link a program against all its dependency libraries.
21205 link_all_deplibs=$link_all_deplibs_F77
21207 # Compile-time system search path for libraries
21208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21210 # Run-time system search path for libraries
21211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21213 # Fix the shell variable \$srcfile for the compiler.
21214 fix_srcfile_path="$fix_srcfile_path_F77"
21216 # Set to yes if exported symbols are required.
21217 always_export_symbols=$always_export_symbols_F77
21219 # The commands to list exported symbols.
21220 export_symbols_cmds=$lt_export_symbols_cmds_F77
21222 # The commands to extract the exported symbol list from a shared archive.
21223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21225 # Symbols that should not be listed in the preloaded symbols.
21226 exclude_expsyms=$lt_exclude_expsyms_F77
21228 # Symbols that must always be exported.
21229 include_expsyms=$lt_include_expsyms_F77
21231 # ### END LIBTOOL TAG CONFIG: $tagname
21237 # If there is no Makefile yet, we rely on a make rule to execute
21238 # `config.status --recheck' to rerun these tests and create the
21239 # libtool script then.
21240 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21241 if test -f "$ltmain_in"; then
21242 test -f Makefile && make "$ltmain"
21248 ac_cpp='$CPP $CPPFLAGS'
21249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21263 ac_cpp='$CPP $CPPFLAGS'
21264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21269 # Source file extension for Java test sources.
21272 # Object file extension for compiled Java test sources.
21276 # Code to be used in simple compile tests
21277 lt_simple_compile_test_code="class foo {}\n"
21279 # Code to be used in simple link tests
21280 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21282 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21284 # If no C compiler was specified, use CC.
21287 # Allow CC to be a program name with arguments.
21291 # Allow CC to be a program name with arguments.
21297 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21298 archive_cmds_need_lc_GCJ=no
21301 lt_prog_compiler_no_builtin_flag_GCJ=
21303 if test "$GCC" = yes; then
21304 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21307 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21308 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21309 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21310 echo $ECHO_N "(cached) $ECHO_C" >&6
21312 lt_cv_prog_compiler_rtti_exceptions=no
21313 ac_outfile=conftest.$ac_objext
21314 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21315 lt_compiler_flag="-fno-rtti -fno-exceptions"
21316 # Insert the option either (1) after the last *FLAGS variable, or
21317 # (2) before a word containing "conftest.", or (3) at the end.
21318 # Note that $ac_compile itself does not contain backslashes and begins
21319 # with a dollar sign (not a hyphen), so the echo should work correctly.
21320 # The option is referenced via a variable to avoid confusing sed.
21321 lt_compile=`echo "$ac_compile" | $SED \
21322 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21324 -e 's:$: $lt_compiler_flag:'`
21325 (eval echo "\"\$as_me:21325: $lt_compile\"" >&5)
21326 (eval "$lt_compile" 2>conftest.err)
21328 cat conftest.err >&5
21329 echo "$as_me:21329: \$? = $ac_status" >&5
21330 if (exit $ac_status) && test -s "$ac_outfile"; then
21331 # The compiler can only warn and ignore the option if not recognized
21332 # So say no if there are warnings
21333 if test ! -s conftest.err; then
21334 lt_cv_prog_compiler_rtti_exceptions=yes
21340 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21341 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21343 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21344 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21351 lt_prog_compiler_wl_GCJ=
21352 lt_prog_compiler_pic_GCJ=
21353 lt_prog_compiler_static_GCJ=
21355 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21356 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21358 if test "$GCC" = yes; then
21359 lt_prog_compiler_wl_GCJ='-Wl,'
21360 lt_prog_compiler_static_GCJ='-static'
21364 # All AIX code is PIC.
21365 if test "$host_cpu" = ia64; then
21366 # AIX 5 now supports IA64 processor
21367 lt_prog_compiler_static_GCJ='-Bstatic'
21372 # FIXME: we need at least 68020 code to build shared libraries, but
21373 # adding the `-m68020' flag to GCC prevents building anything better,
21375 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21378 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21379 # PIC is the default for these OSes.
21382 mingw* | pw32* | os2*)
21383 # This hack is so that the source file can tell whether it is being
21384 # built for inclusion in a dll (and should export symbols for example).
21385 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21388 darwin* | rhapsody*)
21389 # PIC is the default on this platform
21390 # Common symbols not allowed in MH_DYLIB files
21391 lt_prog_compiler_pic_GCJ='-fno-common'
21395 # Just because we use GCC doesn't mean we suddenly get shared libraries
21396 # on systems that don't support them.
21397 lt_prog_compiler_can_build_shared_GCJ=no
21402 if test -d /usr/nec; then
21403 lt_prog_compiler_pic_GCJ=-Kconform_pic
21408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21409 # not for PA HP-UX.
21410 case "$host_cpu" in
21415 lt_prog_compiler_pic_GCJ='-fPIC'
21421 lt_prog_compiler_pic_GCJ='-fPIC'
21425 # PORTME Check for flag to pass linker flags through the system compiler.
21428 lt_prog_compiler_wl_GCJ='-Wl,'
21429 if test "$host_cpu" = ia64; then
21430 # AIX 5 now supports IA64 processor
21431 lt_prog_compiler_static_GCJ='-Bstatic'
21433 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21437 # PIC is the default on this platform
21438 # Common symbols not allowed in MH_DYLIB files
21439 case "$cc_basename" in
21441 lt_prog_compiler_pic_GCJ='-qnocommon'
21442 lt_prog_compiler_wl_GCJ='-Wl,'
21447 mingw* | pw32* | os2*)
21448 # This hack is so that the source file can tell whether it is being
21449 # built for inclusion in a dll (and should export symbols for example).
21450 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21453 hpux9* | hpux10* | hpux11*)
21454 lt_prog_compiler_wl_GCJ='-Wl,'
21455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21456 # not for PA HP-UX.
21457 case "$host_cpu" in
21462 lt_prog_compiler_pic_GCJ='+Z'
21465 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21466 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21469 irix5* | irix6* | nonstopux*)
21470 lt_prog_compiler_wl_GCJ='-Wl,'
21471 # PIC (with -KPIC) is the default.
21472 lt_prog_compiler_static_GCJ='-non_shared'
21476 lt_prog_compiler_pic_GCJ='-KPIC'
21477 lt_prog_compiler_static_GCJ='-Bstatic'
21483 lt_prog_compiler_wl_GCJ='-Wl,'
21484 lt_prog_compiler_pic_GCJ='-KPIC'
21485 lt_prog_compiler_static_GCJ='-static'
21488 lt_prog_compiler_wl_GCJ='-Wl,'
21489 # All Alpha code is PIC.
21490 lt_prog_compiler_static_GCJ='-non_shared'
21495 osf3* | osf4* | osf5*)
21496 lt_prog_compiler_wl_GCJ='-Wl,'
21497 # All OSF/1 code is PIC.
21498 lt_prog_compiler_static_GCJ='-non_shared'
21502 lt_prog_compiler_pic_GCJ='-Kpic'
21503 lt_prog_compiler_static_GCJ='-dn'
21507 lt_prog_compiler_wl_GCJ='-Wl,'
21508 lt_prog_compiler_pic_GCJ='-KPIC'
21509 lt_prog_compiler_static_GCJ='-Bstatic'
21513 lt_prog_compiler_wl_GCJ='-Qoption ld '
21514 lt_prog_compiler_pic_GCJ='-PIC'
21515 lt_prog_compiler_static_GCJ='-Bstatic'
21518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21519 lt_prog_compiler_wl_GCJ='-Wl,'
21520 lt_prog_compiler_pic_GCJ='-KPIC'
21521 lt_prog_compiler_static_GCJ='-Bstatic'
21525 if test -d /usr/nec ;then
21526 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21527 lt_prog_compiler_static_GCJ='-Bstatic'
21532 lt_prog_compiler_pic_GCJ='-pic'
21533 lt_prog_compiler_static_GCJ='-Bstatic'
21537 lt_prog_compiler_can_build_shared_GCJ=no
21542 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21543 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21546 # Check to make sure the PIC flag actually works.
21548 if test -n "$lt_prog_compiler_pic_GCJ"; then
21550 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21551 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21552 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 lt_prog_compiler_pic_works_GCJ=no
21556 ac_outfile=conftest.$ac_objext
21557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21558 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21559 # Insert the option either (1) after the last *FLAGS variable, or
21560 # (2) before a word containing "conftest.", or (3) at the end.
21561 # Note that $ac_compile itself does not contain backslashes and begins
21562 # with a dollar sign (not a hyphen), so the echo should work correctly.
21563 # The option is referenced via a variable to avoid confusing sed.
21564 lt_compile=`echo "$ac_compile" | $SED \
21565 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21567 -e 's:$: $lt_compiler_flag:'`
21568 (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
21569 (eval "$lt_compile" 2>conftest.err)
21571 cat conftest.err >&5
21572 echo "$as_me:21572: \$? = $ac_status" >&5
21573 if (exit $ac_status) && test -s "$ac_outfile"; then
21574 # The compiler can only warn and ignore the option if not recognized
21575 # So say no if there are warnings
21576 if test ! -s conftest.err; then
21577 lt_prog_compiler_pic_works_GCJ=yes
21583 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21584 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21586 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21587 case $lt_prog_compiler_pic_GCJ in
21589 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21592 lt_prog_compiler_pic_GCJ=
21593 lt_prog_compiler_can_build_shared_GCJ=no
21598 # For platforms which do not support PIC, -DPIC is meaningless:
21600 lt_prog_compiler_pic_GCJ=
21603 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21607 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21608 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21609 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 lt_cv_prog_compiler_c_o_GCJ=no
21613 $rm -r conftest 2>/dev/null
21617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21619 lt_compiler_flag="-o out/conftest2.$ac_objext"
21620 # Insert the option either (1) after the last *FLAGS variable, or
21621 # (2) before a word containing "conftest.", or (3) at the end.
21622 # Note that $ac_compile itself does not contain backslashes and begins
21623 # with a dollar sign (not a hyphen), so the echo should work correctly.
21624 lt_compile=`echo "$ac_compile" | $SED \
21625 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21627 -e 's:$: $lt_compiler_flag:'`
21628 (eval echo "\"\$as_me:21628: $lt_compile\"" >&5)
21629 (eval "$lt_compile" 2>out/conftest.err)
21631 cat out/conftest.err >&5
21632 echo "$as_me:21632: \$? = $ac_status" >&5
21633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21635 # The compiler can only warn and ignore the option if not recognized
21636 # So say no if there are warnings
21637 if test ! -s out/conftest.err; then
21638 lt_cv_prog_compiler_c_o_GCJ=yes
21643 # SGI C++ compiler will create directory out/ii_files/ for
21644 # template instantiation
21645 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21646 $rm out/* && rmdir out
21652 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21653 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21656 hard_links="nottested"
21657 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21658 # do not overwrite the value of need_locks provided by the user
21659 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21660 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21665 ln conftest.a conftest.b 2>&5 || hard_links=no
21666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21667 echo "$as_me:$LINENO: result: $hard_links" >&5
21668 echo "${ECHO_T}$hard_links" >&6
21669 if test "$hard_links" = no; then
21670 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21671 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21678 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21679 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21682 allow_undefined_flag_GCJ=
21683 enable_shared_with_static_runtimes_GCJ=no
21685 archive_expsym_cmds_GCJ=
21686 old_archive_From_new_cmds_GCJ=
21687 old_archive_from_expsyms_cmds_GCJ=
21688 export_dynamic_flag_spec_GCJ=
21689 whole_archive_flag_spec_GCJ=
21690 thread_safe_flag_spec_GCJ=
21691 hardcode_libdir_flag_spec_GCJ=
21692 hardcode_libdir_flag_spec_ld_GCJ=
21693 hardcode_libdir_separator_GCJ=
21694 hardcode_direct_GCJ=no
21695 hardcode_minus_L_GCJ=no
21696 hardcode_shlibpath_var_GCJ=unsupported
21697 link_all_deplibs_GCJ=unknown
21698 hardcode_automatic_GCJ=no
21700 module_expsym_cmds_GCJ=
21701 always_export_symbols_GCJ=no
21702 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21703 # include_expsyms should be a list of space-separated symbols to be *always*
21704 # included in the symbol list
21705 include_expsyms_GCJ=
21706 # exclude_expsyms can be an extended regexp of symbols to exclude
21707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21709 # as well as any symbol that contains `d'.
21710 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21712 # platforms (ab)use it in PIC code, but their linkers get confused if
21713 # the symbol is explicitly referenced. Since portable code cannot
21714 # rely on this symbol name, it's probably fine to never include it in
21715 # preloaded symbol tables.
21716 extract_expsyms_cmds=
21719 cygwin* | mingw* | pw32*)
21720 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21721 # When not using gcc, we currently assume that we are using
21722 # Microsoft Visual C++.
21723 if test "$GCC" != yes; then
21733 if test "$with_gnu_ld" = yes; then
21734 # If archive_cmds runs LD, not CC, wlarc should be empty
21737 # See if GNU ld supports shared libraries.
21739 aix3* | aix4* | aix5*)
21740 # On AIX/PPC, the GNU linker is very broken
21741 if test "$host_cpu" != ia64; then
21745 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21746 *** to be unable to reliably create shared libraries on AIX.
21747 *** Therefore, libtool is disabling shared libraries support. If you
21748 *** really care for shared libraries, you may want to modify your PATH
21749 *** so that a non-GNU linker is found, and then restart.
21756 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)'
21757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21758 hardcode_minus_L_GCJ=yes
21760 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21761 # that the semantics of dynamic libraries on AmigaOS, at least up
21762 # to version 4, is to share data among multiple programs linked
21763 # with the same dynamic library. Since this doesn't match the
21764 # behavior of shared libraries on other platforms, we can't use
21770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21771 allow_undefined_flag_GCJ=unsupported
21772 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21773 # support --undefined. This deserves some investigation. FIXME
21774 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21780 cygwin* | mingw* | pw32*)
21781 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21782 # as there is no search path for DLLs.
21783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21784 allow_undefined_flag_GCJ=unsupported
21785 always_export_symbols_GCJ=no
21786 enable_shared_with_static_runtimes_GCJ=yes
21787 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21789 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21790 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21791 # If the export-symbols file already is a .def file (1st line
21792 # is EXPORTS), use it as is; otherwise, prepend...
21793 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21794 cp $export_symbols $output_objdir/$soname.def;
21796 echo EXPORTS > $output_objdir/$soname.def;
21797 cat $export_symbols >> $output_objdir/$soname.def;
21799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21807 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21810 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21811 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21816 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21820 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21821 *** create shared libraries on Solaris systems. Therefore, libtool
21822 *** is disabling shared libraries support. We urge you to upgrade GNU
21823 *** binutils to release 2.9.1 or newer. Another option is to modify
21824 *** your PATH or compiler configuration so that the native linker is
21825 *** used, and then restart.
21828 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21829 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21830 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21837 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21839 hardcode_direct_GCJ=yes
21840 hardcode_shlibpath_var_GCJ=no
21844 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21845 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21846 archive_cmds_GCJ="$tmp_archive_cmds"
21847 supports_anon_versioning=no
21848 case `$LD -v 2>/dev/null` in
21849 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21850 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21851 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21852 *\ 2.11.*) ;; # other 2.11 versions
21853 *) supports_anon_versioning=yes ;;
21855 if test $supports_anon_versioning = yes; then
21856 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21858 $echo "local: *; };" >> $output_objdir/$libname.ver~
21859 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21861 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21870 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21871 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21878 if test "$ld_shlibs_GCJ" = yes; then
21879 runpath_var=LD_RUN_PATH
21880 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21881 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21882 # ancient GNU ld didn't support --whole-archive et. al.
21883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21884 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21886 whole_archive_flag_spec_GCJ=
21890 # PORTME fill in a description of your system's linker (not GNU ld)
21893 allow_undefined_flag_GCJ=unsupported
21894 always_export_symbols_GCJ=yes
21895 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'
21896 # Note: this linker hardcodes the directories in LIBPATH if there
21897 # are no directories specified by -L.
21898 hardcode_minus_L_GCJ=yes
21899 if test "$GCC" = yes && test -z "$link_static_flag"; then
21900 # Neither direct hardcoding nor static linking is supported with a
21902 hardcode_direct_GCJ=unsupported
21907 if test "$host_cpu" = ia64; then
21908 # On IA64, the linker does run time linking by default, so we don't
21909 # have to do anything special.
21910 aix_use_runtimelinking=no
21911 exp_sym_flag='-Bexport'
21914 # If we're using GNU nm, then we don't want the "-C" option.
21915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21916 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21917 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'
21919 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'
21921 aix_use_runtimelinking=no
21923 # Test if we are trying to use run time linking or normal
21924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21925 # need to do runtime linking.
21926 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21927 for ld_flag in $LDFLAGS; do
21928 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21929 aix_use_runtimelinking=yes
21935 exp_sym_flag='-bexport'
21936 no_entry_flag='-bnoentry'
21939 # When large executables or shared objects are built, AIX ld can
21940 # have problems creating the table of contents. If linking a library
21941 # or program results in "error TOC overflow" add -mminimal-toc to
21942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21945 archive_cmds_GCJ=''
21946 hardcode_direct_GCJ=yes
21947 hardcode_libdir_separator_GCJ=':'
21948 link_all_deplibs_GCJ=yes
21950 if test "$GCC" = yes; then
21951 case $host_os in aix4.012|aix4.012.*)
21952 # We only want to do this on AIX 4.2 and lower, the check
21953 # below for broken collect2 doesn't work under 4.3+
21954 collect2name=`${CC} -print-prog-name=collect2`
21955 if test -f "$collect2name" && \
21956 strings "$collect2name" | grep resolve_lib_name >/dev/null
21958 # We have reworked collect2
21959 hardcode_direct_GCJ=yes
21961 # We have old collect2
21962 hardcode_direct_GCJ=unsupported
21963 # It fails to find uninstalled libraries when the uninstalled
21964 # path is not listed in the libpath. Setting hardcode_minus_L
21965 # to unsupported forces relinking
21966 hardcode_minus_L_GCJ=yes
21967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21968 hardcode_libdir_separator_GCJ=
21971 shared_flag='-shared'
21974 if test "$host_cpu" = ia64; then
21975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21976 # chokes on -Wl,-G. The following line is correct:
21979 if test "$aix_use_runtimelinking" = yes; then
21980 shared_flag='${wl}-G'
21982 shared_flag='${wl}-bM:SRE'
21987 # It seems that -bexpall does not export symbols beginning with
21988 # underscore (_), so it is better to generate a list of symbols to export.
21989 always_export_symbols_GCJ=yes
21990 if test "$aix_use_runtimelinking" = yes; then
21991 # Warning - without using the other runtime loading flags (-brtl),
21992 # -berok will link without error, but may produce a broken library.
21993 allow_undefined_flag_GCJ='-berok'
21994 # Determine the default libpath from the value encoded in an empty executable.
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22010 rm -f conftest.$ac_objext conftest$ac_exeext
22011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22012 (eval $ac_link) 2>conftest.er1
22014 grep -v '^ *+' conftest.er1 >conftest.err
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } &&
22019 { ac_try='test -z "$ac_c_werror_flag"
22020 || test ! -s conftest.err'
22021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22022 (eval $ac_try) 2>&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22035 # Check for a 64-bit object if we didn't find anything.
22036 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; }
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22043 rm -f conftest.err conftest.$ac_objext \
22044 conftest$ac_exeext conftest.$ac_ext
22045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22047 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22048 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"
22050 if test "$host_cpu" = ia64; then
22051 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22052 allow_undefined_flag_GCJ="-z nodefs"
22053 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"
22055 # Determine the default libpath from the value encoded in an empty executable.
22056 cat >conftest.$ac_ext <<_ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22071 rm -f conftest.$ac_objext conftest$ac_exeext
22072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22073 (eval $ac_link) 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
22080 { ac_try='test -z "$ac_c_werror_flag"
22081 || test ! -s conftest.err'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; } &&
22087 { ac_try='test -s conftest$ac_exeext'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; }; then
22094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22096 # Check for a 64-bit object if we didn't find anything.
22097 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; }
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22104 rm -f conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22108 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22109 # Warning - without using the other run time loading flags,
22110 # -berok will link without error, but may produce a broken library.
22111 no_undefined_flag_GCJ=' ${wl}-bernotok'
22112 allow_undefined_flag_GCJ=' ${wl}-berok'
22113 # -bexpall does not export symbols beginning with underscore (_)
22114 always_export_symbols_GCJ=yes
22115 # Exported symbols can be pulled into shared objects from archives
22116 whole_archive_flag_spec_GCJ=' '
22117 archive_cmds_need_lc_GCJ=yes
22118 # This is similar to how AIX traditionally builds it's shared libraries.
22119 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'
22125 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)'
22126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22127 hardcode_minus_L_GCJ=yes
22128 # see comment about different semantics on the GNU ld section
22133 export_dynamic_flag_spec_GCJ=-rdynamic
22136 cygwin* | mingw* | pw32*)
22137 # When not using gcc, we currently assume that we are using
22138 # Microsoft Visual C++.
22139 # hardcode_libdir_flag_spec is actually meaningless, as there is
22140 # no search path for DLLs.
22141 hardcode_libdir_flag_spec_GCJ=' '
22142 allow_undefined_flag_GCJ=unsupported
22143 # Tell ltmain to make .lib files, not .a files.
22145 # Tell ltmain to make .dll files, not .so files.
22147 # FIXME: Setting linknames here is a bad hack.
22148 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22149 # The linker will automatically build a .lib file if we build a DLL.
22150 old_archive_From_new_cmds_GCJ='true'
22151 # FIXME: Should let the user specify the lib program.
22152 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22153 fix_srcfile_path='`cygpath -w "$srcfile"`'
22154 enable_shared_with_static_runtimes_GCJ=yes
22157 darwin* | rhapsody*)
22159 rhapsody* | darwin1.[012])
22160 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22163 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22164 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22166 case ${MACOSX_DEPLOYMENT_TARGET} in
22168 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22171 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22177 archive_cmds_need_lc_GCJ=no
22178 hardcode_direct_GCJ=no
22179 hardcode_automatic_GCJ=yes
22180 hardcode_shlibpath_var_GCJ=unsupported
22181 whole_archive_flag_spec_GCJ=''
22182 link_all_deplibs_GCJ=yes
22183 if test "$GCC" = yes ; then
22184 output_verbose_link_cmd='echo'
22185 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22186 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22188 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}'
22189 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}'
22191 case "$cc_basename" in
22193 output_verbose_link_cmd='echo'
22194 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22195 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22197 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}'
22198 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}'
22208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22210 hardcode_shlibpath_var_GCJ=no
22217 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22218 # support. Future versions do this automatically, but an explicit c++rt0.o
22219 # does not break anything, and helps significantly (at the cost of a little
22222 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22223 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22224 hardcode_direct_GCJ=yes
22225 hardcode_shlibpath_var_GCJ=no
22228 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22231 hardcode_direct_GCJ=yes
22232 hardcode_minus_L_GCJ=yes
22233 hardcode_shlibpath_var_GCJ=no
22236 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22237 freebsd* | kfreebsd*-gnu)
22238 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22240 hardcode_direct_GCJ=yes
22241 hardcode_shlibpath_var_GCJ=no
22245 if test "$GCC" = yes; then
22246 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'
22248 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'
22250 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22251 hardcode_libdir_separator_GCJ=:
22252 hardcode_direct_GCJ=yes
22254 # hardcode_minus_L: Not really in the search PATH,
22255 # but as the default location of the library.
22256 hardcode_minus_L_GCJ=yes
22257 export_dynamic_flag_spec_GCJ='${wl}-E'
22261 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22262 case "$host_cpu" in
22264 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22267 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22271 case "$host_cpu" in
22273 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22276 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22280 if test "$with_gnu_ld" = no; then
22281 case "$host_cpu" in
22283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22284 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22285 hardcode_libdir_separator_GCJ=:
22286 hardcode_direct_GCJ=no
22287 hardcode_shlibpath_var_GCJ=no
22290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22291 hardcode_direct_GCJ=no
22292 hardcode_shlibpath_var_GCJ=no
22294 # hardcode_minus_L: Not really in the search PATH,
22295 # but as the default location of the library.
22296 hardcode_minus_L_GCJ=yes
22299 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22300 hardcode_libdir_separator_GCJ=:
22301 hardcode_direct_GCJ=yes
22302 export_dynamic_flag_spec_GCJ='${wl}-E'
22304 # hardcode_minus_L: Not really in the search PATH,
22305 # but as the default location of the library.
22306 hardcode_minus_L_GCJ=yes
22312 irix5* | irix6* | nonstopux*)
22313 if test "$GCC" = yes; then
22314 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'
22316 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'
22317 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22319 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22320 hardcode_libdir_separator_GCJ=:
22321 link_all_deplibs_GCJ=yes
22325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22326 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22328 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22330 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22331 hardcode_direct_GCJ=yes
22332 hardcode_shlibpath_var_GCJ=no
22336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22337 hardcode_direct_GCJ=yes
22338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22339 hardcode_libdir_separator_GCJ=:
22340 hardcode_shlibpath_var_GCJ=no
22344 hardcode_direct_GCJ=yes
22345 hardcode_shlibpath_var_GCJ=no
22346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22347 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22348 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22349 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22350 export_dynamic_flag_spec_GCJ='${wl}-E'
22353 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22355 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22358 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22359 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22367 hardcode_minus_L_GCJ=yes
22368 allow_undefined_flag_GCJ=unsupported
22369 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'
22370 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22374 if test "$GCC" = yes; then
22375 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22376 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'
22378 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22379 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'
22381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22382 hardcode_libdir_separator_GCJ=:
22385 osf4* | osf5*) # as osf3* with the addition of -msym flag
22386 if test "$GCC" = yes; then
22387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22388 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'
22389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22391 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22392 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'
22393 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~
22394 $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'
22396 # Both c and cxx compiler support -rpath directly
22397 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22399 hardcode_libdir_separator_GCJ=:
22403 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22404 hardcode_shlibpath_var_GCJ=no
22405 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22406 runpath_var=LD_RUN_PATH
22407 hardcode_runpath_var=yes
22411 no_undefined_flag_GCJ=' -z text'
22412 if test "$GCC" = yes; then
22413 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22414 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22417 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22418 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22421 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22422 hardcode_shlibpath_var_GCJ=no
22424 solaris2.[0-5] | solaris2.[0-5].*) ;;
22425 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22426 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22428 link_all_deplibs_GCJ=yes
22432 if test "x$host_vendor" = xsequent; then
22433 # Use $CC to link under sequent, because it throws in some extra .o
22434 # files that make .init and .fini sections work.
22435 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22437 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22440 hardcode_direct_GCJ=yes
22441 hardcode_minus_L_GCJ=yes
22442 hardcode_shlibpath_var_GCJ=no
22446 case $host_vendor in
22448 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22449 hardcode_direct_GCJ=yes # is this really true???
22452 ## LD is ld it makes a PLAMLIB
22453 ## CC just makes a GrossModule.
22454 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22455 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22456 hardcode_direct_GCJ=no
22459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22460 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22463 runpath_var='LD_RUN_PATH'
22464 hardcode_shlibpath_var_GCJ=no
22468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469 hardcode_shlibpath_var_GCJ=no
22470 export_dynamic_flag_spec_GCJ='-Bexport'
22474 if test -d /usr/nec; then
22475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22476 hardcode_shlibpath_var_GCJ=no
22477 runpath_var=LD_RUN_PATH
22478 hardcode_runpath_var=yes
22484 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22485 hardcode_direct_GCJ=yes
22486 hardcode_minus_L_GCJ=no
22487 hardcode_shlibpath_var_GCJ=no
22488 hardcode_runpath_var=yes
22489 runpath_var=LD_RUN_PATH
22492 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22493 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22494 if test "$GCC" = yes; then
22495 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22497 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22499 runpath_var='LD_RUN_PATH'
22500 hardcode_shlibpath_var_GCJ=no
22504 no_undefined_flag_GCJ=' -z text'
22505 # $CC -shared without GNU ld will not create a library from C++
22506 # object files and a static libstdc++, better avoid it by now
22507 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22508 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22509 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22510 hardcode_libdir_flag_spec_GCJ=
22511 hardcode_shlibpath_var_GCJ=no
22512 runpath_var='LD_RUN_PATH'
22516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22518 hardcode_shlibpath_var_GCJ=no
22527 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22528 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22529 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22532 if test "$GCC" = yes; then
22533 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22537 # Do we need to explicitly link libc?
22539 case "x$archive_cmds_need_lc_GCJ" in
22541 # Assume -lc should be added
22542 archive_cmds_need_lc_GCJ=yes
22544 if test "$enable_shared" = yes && test "$GCC" = yes; then
22545 case $archive_cmds_GCJ in
22547 # FIXME: we may have to deal with multi-command sequences.
22550 # Test whether the compiler implicitly links with -lc since on some
22551 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22552 # to ld, don't add -lc before -lgcc.
22553 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22554 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22559 (eval $ac_compile) 2>&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } 2>conftest.err; then
22565 libobjs=conftest.$ac_objext
22567 wl=$lt_prog_compiler_wl_GCJ
22573 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22574 allow_undefined_flag_GCJ=
22575 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22576 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }
22581 archive_cmds_need_lc_GCJ=no
22583 archive_cmds_need_lc_GCJ=yes
22585 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22587 cat conftest.err 1>&5
22590 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22591 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22598 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22600 library_names_spec=
22601 libname_spec='lib$name'
22605 postuninstall_cmds=
22609 shlibpath_overrides_runpath=unknown
22611 dynamic_linker="$host_os ld.so"
22612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22613 if test "$GCC" = yes; then
22614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22616 # if the path contains ";" then we assume it to be the separator
22617 # otherwise default to the standard path separator (i.e. ":") - it is
22618 # assumed that no part of a normal pathname contains ";" but that should
22619 # okay in the real world where ";" in dirpaths is itself problematic.
22620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22627 need_lib_prefix=unknown
22628 hardcode_into_libs=no
22630 # when you set need_version to no, make sure it does not cause -set_version
22631 # flags to be left without arguments
22632 need_version=unknown
22637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22638 shlibpath_var=LIBPATH
22640 # AIX 3 has no versioning support, so we append a major version to the name.
22641 soname_spec='${libname}${release}${shared_ext}$major'
22648 hardcode_into_libs=yes
22649 if test "$host_cpu" = ia64; then
22650 # AIX 5 supports IA64
22651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22652 shlibpath_var=LD_LIBRARY_PATH
22654 # With GCC up to 2.95.x, collect2 would create an import file
22655 # for dependence libraries. The import file would start with
22656 # the line `#! .'. This would cause the generated library to
22657 # depend on `.', always an invalid library. This was fixed in
22658 # development snapshots of GCC prior to 3.0.
22660 aix4 | aix4.[01] | aix4.[01].*)
22661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22666 can_build_shared=no
22670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22671 # soname into executable. Probably we can add versioning support to
22672 # collect2, so additional links can be useful in future.
22673 if test "$aix_use_runtimelinking" = yes; then
22674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22675 # instead of lib<name>.a to let people know that these are not
22676 # typical AIX shared libraries.
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22679 # We preserve .a as extension for shared libraries through AIX4.2
22680 # and later when we are not doing run time linking.
22681 library_names_spec='${libname}${release}.a $libname.a'
22682 soname_spec='${libname}${release}${shared_ext}$major'
22684 shlibpath_var=LIBPATH
22689 library_names_spec='$libname.ixlibrary $libname.a'
22690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22691 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'
22695 library_names_spec='${libname}${shared_ext}'
22696 dynamic_linker="$host_os ld.so"
22697 shlibpath_var=LIBRARY_PATH
22703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22704 soname_spec='${libname}${release}${shared_ext}$major'
22705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22706 shlibpath_var=LD_LIBRARY_PATH
22707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22709 # the default ld.so.conf also contains /usr/contrib/lib and
22710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22711 # libtool to hard-code these into programs
22714 cygwin* | mingw* | pw32*)
22715 version_type=windows
22720 case $GCC,$host_os in
22721 yes,cygwin* | yes,mingw* | yes,pw32*)
22722 library_names_spec='$libname.dll.a'
22723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22724 postinstall_cmds='base_file=`basename \${file}`~
22725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22726 dldir=$destdir/`dirname \$dlpath`~
22727 test -d \$dldir || mkdir -p \$dldir~
22728 $install_prog $dir/$dlname \$dldir/$dlname'
22729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22730 dlpath=$dir/\$dldll~
22732 shlibpath_overrides_runpath=yes
22736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22737 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22738 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22741 # MinGW DLLs use traditional 'lib' prefix
22742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22744 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22745 # It is most probably a Windows format PATH printed by
22746 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22747 # path with ; separators, and with drive letters. We can handle the
22748 # drive letters (cygwin fileutils understands them), so leave them,
22749 # especially as we might pass files found there to a mingw objdump,
22750 # which wouldn't understand a cygwinified path. Ahh.
22751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22757 # pw32 DLLs use 'pw' prefix rather than 'lib'
22758 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22767 dynamic_linker='Win32 ld.exe'
22768 # FIXME: first we should search . and the directory the executable is in
22772 darwin* | rhapsody*)
22773 dynamic_linker="$host_os dyld"
22774 version_type=darwin
22777 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22778 soname_spec='${libname}${release}${major}$shared_ext'
22779 shlibpath_overrides_runpath=yes
22780 shlibpath_var=DYLD_LIBRARY_PATH
22781 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22782 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22783 if test "$GCC" = yes; then
22784 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"`
22786 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22796 soname_spec='${libname}${release}${shared_ext}$major'
22797 shlibpath_var=LD_LIBRARY_PATH
22808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22809 soname_spec='${libname}${release}${shared_ext}$major'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 shlibpath_overrides_runpath=no
22812 hardcode_into_libs=yes
22813 dynamic_linker='GNU ld.so'
22817 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22818 version_type=freebsd-$objformat
22819 case $version_type in
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22830 shlibpath_var=LD_LIBRARY_PATH
22833 shlibpath_overrides_runpath=yes
22835 freebsd3.01* | freebsdelf3.01*)
22836 shlibpath_overrides_runpath=yes
22837 hardcode_into_libs=yes
22840 shlibpath_overrides_runpath=no
22841 hardcode_into_libs=yes
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22851 soname_spec='${libname}${release}${shared_ext}$major'
22852 shlibpath_var=LD_LIBRARY_PATH
22853 hardcode_into_libs=yes
22856 hpux9* | hpux10* | hpux11*)
22857 # Give a soname corresponding to the major version so that dld.sl refuses to
22858 # link against other versions.
22862 case "$host_cpu" in
22865 hardcode_into_libs=yes
22866 dynamic_linker="$host_os dld.so"
22867 shlibpath_var=LD_LIBRARY_PATH
22868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22870 soname_spec='${libname}${release}${shared_ext}$major'
22871 if test "X$HPUX_IA64_MODE" = X32; then
22872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22880 hardcode_into_libs=yes
22881 dynamic_linker="$host_os dld.sl"
22882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22885 soname_spec='${libname}${release}${shared_ext}$major'
22886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22891 dynamic_linker="$host_os dld.sl"
22892 shlibpath_var=SHLIB_PATH
22893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895 soname_spec='${libname}${release}${shared_ext}$major'
22898 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22899 postinstall_cmds='chmod 555 $lib'
22902 irix5* | irix6* | nonstopux*)
22904 nonstopux*) version_type=nonstopux ;;
22906 if test "$lt_cv_prog_gnu_ld" = yes; then
22914 soname_spec='${libname}${release}${shared_ext}$major'
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22917 irix5* | nonstopux*)
22918 libsuff= shlibsuff=
22921 case $LD in # libtool.m4 will add one of these switches to LD
22922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22923 libsuff= shlibsuff= libmagic=32-bit;;
22924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22925 libsuff=32 shlibsuff=N32 libmagic=N32;;
22926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22928 *) libsuff= shlibsuff= libmagic=never-match;;
22932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22933 shlibpath_overrides_runpath=no
22934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22936 hardcode_into_libs=yes
22939 # No shared lib support for Linux oldld, aout, or coff.
22940 linux*oldld* | linux*aout* | linux*coff*)
22944 # This must be Linux ELF.
22949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 soname_spec='${libname}${release}${shared_ext}$major'
22951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22952 shlibpath_var=LD_LIBRARY_PATH
22953 shlibpath_overrides_runpath=no
22954 # This implies no fast_install, which is unacceptable.
22955 # Some rework will be needed to allow for fast_install
22956 # before this can be enabled.
22957 hardcode_into_libs=yes
22959 # Append ld.so.conf contents to the search path
22960 if test -f /etc/ld.so.conf; then
22961 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22962 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22965 # We used to test for /lib/ld.so.1 and disable shared libraries on
22966 # powerpc, because MkLinux only supported shared libraries with the
22967 # GNU dynamic linker. Since this was broken with cross compilers,
22968 # most powerpc-linux boxes support dynamic linking these days and
22969 # people can always --disable-shared, the test was removed, and we
22970 # assume the GNU/Linux dynamic linker is in use.
22971 dynamic_linker='GNU/Linux ld.so'
22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22979 soname_spec='${libname}${release}${shared_ext}$major'
22980 shlibpath_var=LD_LIBRARY_PATH
22981 shlibpath_overrides_runpath=no
22982 hardcode_into_libs=yes
22983 dynamic_linker='GNU ld.so'
22990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22993 dynamic_linker='NetBSD (a.out) ld.so'
22995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 dynamic_linker='NetBSD ld.elf_so'
22999 shlibpath_var=LD_LIBRARY_PATH
23000 shlibpath_overrides_runpath=yes
23001 hardcode_into_libs=yes
23006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007 shlibpath_var=LD_LIBRARY_PATH
23008 shlibpath_overrides_runpath=yes
23015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23016 soname_spec='${libname}${release}${shared_ext}$major'
23017 shlibpath_var=LD_LIBRARY_PATH
23018 shlibpath_overrides_runpath=yes
23025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23027 shlibpath_var=LD_LIBRARY_PATH
23028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23030 openbsd2.[89] | openbsd2.[89].*)
23031 shlibpath_overrides_runpath=no
23034 shlibpath_overrides_runpath=yes
23038 shlibpath_overrides_runpath=yes
23043 libname_spec='$name'
23046 library_names_spec='$libname${shared_ext} $libname.a'
23047 dynamic_linker='OS/2 ld.exe'
23048 shlibpath_var=LIBPATH
23051 osf3* | osf4* | osf5*)
23055 soname_spec='${libname}${release}${shared_ext}$major'
23056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23057 shlibpath_var=LD_LIBRARY_PATH
23058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066 shlibpath_var=LD_LIBRARY_PATH
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23074 soname_spec='${libname}${release}${shared_ext}$major'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 shlibpath_overrides_runpath=yes
23077 hardcode_into_libs=yes
23078 # ldd complains unless libraries are executable
23079 postinstall_cmds='chmod +x $lib'
23084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23086 shlibpath_var=LD_LIBRARY_PATH
23087 shlibpath_overrides_runpath=yes
23088 if test "$with_gnu_ld" = yes; then
23094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097 soname_spec='${libname}${release}${shared_ext}$major'
23098 shlibpath_var=LD_LIBRARY_PATH
23099 case $host_vendor in
23101 shlibpath_overrides_runpath=no
23103 export_dynamic_flag_spec='${wl}-Blargedynsym'
23104 runpath_var=LD_RUN_PATH
23112 shlibpath_overrides_runpath=no
23113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23119 if test -d /usr/nec ;then
23121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23122 soname_spec='$libname${shared_ext}.$major'
23123 shlibpath_var=LD_LIBRARY_PATH
23129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23130 soname_spec='${libname}${release}${shared_ext}$major'
23131 shlibpath_var=LD_LIBRARY_PATH
23138 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23139 echo "${ECHO_T}$dynamic_linker" >&6
23140 test "$dynamic_linker" = no && can_build_shared=no
23142 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23143 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23144 hardcode_action_GCJ=
23145 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23146 test -n "$runpath_var_GCJ" || \
23147 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23149 # We can hardcode non-existant directories.
23150 if test "$hardcode_direct_GCJ" != no &&
23151 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23152 # have to relink, otherwise we might link with an installed library
23153 # when we should be linking with a yet-to-be-installed one
23154 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23155 test "$hardcode_minus_L_GCJ" != no; then
23156 # Linking always hardcodes the temporary library directory.
23157 hardcode_action_GCJ=relink
23159 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23160 hardcode_action_GCJ=immediate
23163 # We cannot hardcode anything, or else we can only hardcode existing
23165 hardcode_action_GCJ=unsupported
23167 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23168 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23170 if test "$hardcode_action_GCJ" = relink; then
23171 # Fast installation is not supported
23172 enable_fast_install=no
23173 elif test "$shlibpath_overrides_runpath" = yes ||
23174 test "$enable_shared" = no; then
23175 # Fast installation is not necessary
23176 enable_fast_install=needless
23181 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23182 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23183 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23185 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23186 echo "$as_me:$LINENO: result: yes" >&5
23187 echo "${ECHO_T}yes" >&6
23189 # FIXME - insert some real tests, host_os isn't really good enough
23192 if test -n "$STRIP" ; then
23193 striplib="$STRIP -x"
23194 echo "$as_me:$LINENO: result: yes" >&5
23195 echo "${ECHO_T}yes" >&6
23197 echo "$as_me:$LINENO: result: no" >&5
23198 echo "${ECHO_T}no" >&6
23202 echo "$as_me:$LINENO: result: no" >&5
23203 echo "${ECHO_T}no" >&6
23208 if test "x$enable_dlopen" != xyes; then
23209 enable_dlopen=unknown
23210 enable_dlopen_self=unknown
23211 enable_dlopen_self_static=unknown
23218 lt_cv_dlopen="load_add_on"
23220 lt_cv_dlopen_self=yes
23224 lt_cv_dlopen="LoadLibrary"
23229 lt_cv_dlopen="dlopen"
23234 # if libdl is installed we need to link against it
23235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 ac_check_lib_save_LIBS=$LIBS
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23249 /* Override any gcc2 internal prototype to avoid an error. */
23253 /* We use char because int might match the return type of a gcc2
23254 builtin and then its argument prototype would still apply. */
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266 (eval $ac_link) 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag"
23274 || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ac_cv_lib_dl_dlopen=yes
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ac_cv_lib_dl_dlopen=no
23293 rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23299 if test $ac_cv_lib_dl_dlopen = yes; then
23300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23303 lt_cv_dlopen="dyld"
23305 lt_cv_dlopen_self=yes
23312 echo "$as_me:$LINENO: checking for shl_load" >&5
23313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23314 if test "${ac_cv_func_shl_load+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23325 #define shl_load innocuous_shl_load
23327 /* System header to define __stub macros and hopefully few prototypes,
23328 which can conflict with char shl_load (); below.
23329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23330 <limits.h> exists even on freestanding compilers. */
23333 # include <limits.h>
23335 # include <assert.h>
23340 /* Override any gcc2 internal prototype to avoid an error. */
23345 /* We use char because int might match the return type of a gcc2
23346 builtin and then its argument prototype would still apply. */
23348 /* The GNU C library defines this for functions which it implements
23349 to always fail with ENOSYS. Some functions are actually named
23350 something starting with __ and the normal name is an alias. */
23351 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23354 char (*f) () = shl_load;
23363 return f != shl_load;
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23370 (eval $ac_link) 2>conftest.er1
23372 grep -v '^ *+' conftest.er1 >conftest.err
23374 cat conftest.err >&5
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); } &&
23377 { ac_try='test -z "$ac_c_werror_flag"
23378 || test ! -s conftest.err'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } &&
23384 { ac_try='test -s conftest$ac_exeext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_func_shl_load=yes
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23395 ac_cv_func_shl_load=no
23397 rm -f conftest.err conftest.$ac_objext \
23398 conftest$ac_exeext conftest.$ac_ext
23400 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23401 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23402 if test $ac_cv_func_shl_load = yes; then
23403 lt_cv_dlopen="shl_load"
23405 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23406 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23407 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23410 ac_check_lib_save_LIBS=$LIBS
23412 cat >conftest.$ac_ext <<_ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23419 /* Override any gcc2 internal prototype to avoid an error. */
23423 /* We use char because int might match the return type of a gcc2
23424 builtin and then its argument prototype would still apply. */
23434 rm -f conftest.$ac_objext conftest$ac_exeext
23435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23436 (eval $ac_link) 2>conftest.er1
23438 grep -v '^ *+' conftest.er1 >conftest.err
23440 cat conftest.err >&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } &&
23443 { ac_try='test -z "$ac_c_werror_flag"
23444 || test ! -s conftest.err'
23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; } &&
23450 { ac_try='test -s conftest$ac_exeext'
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; }; then
23456 ac_cv_lib_dld_shl_load=yes
23458 echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23461 ac_cv_lib_dld_shl_load=no
23463 rm -f conftest.err conftest.$ac_objext \
23464 conftest$ac_exeext conftest.$ac_ext
23465 LIBS=$ac_check_lib_save_LIBS
23467 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23468 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23469 if test $ac_cv_lib_dld_shl_load = yes; then
23470 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23472 echo "$as_me:$LINENO: checking for dlopen" >&5
23473 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23474 if test "${ac_cv_func_dlopen+set}" = set; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 cat >conftest.$ac_ext <<_ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23483 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23485 #define dlopen innocuous_dlopen
23487 /* System header to define __stub macros and hopefully few prototypes,
23488 which can conflict with char dlopen (); below.
23489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23490 <limits.h> exists even on freestanding compilers. */
23493 # include <limits.h>
23495 # include <assert.h>
23500 /* Override any gcc2 internal prototype to avoid an error. */
23505 /* We use char because int might match the return type of a gcc2
23506 builtin and then its argument prototype would still apply. */
23508 /* The GNU C library defines this for functions which it implements
23509 to always fail with ENOSYS. Some functions are actually named
23510 something starting with __ and the normal name is an alias. */
23511 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23514 char (*f) () = dlopen;
23523 return f != dlopen;
23528 rm -f conftest.$ac_objext conftest$ac_exeext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23530 (eval $ac_link) 2>conftest.er1
23532 grep -v '^ *+' conftest.er1 >conftest.err
23534 cat conftest.err >&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } &&
23537 { ac_try='test -z "$ac_c_werror_flag"
23538 || test ! -s conftest.err'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; } &&
23544 { ac_try='test -s conftest$ac_exeext'
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; }; then
23550 ac_cv_func_dlopen=yes
23552 echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23555 ac_cv_func_dlopen=no
23557 rm -f conftest.err conftest.$ac_objext \
23558 conftest$ac_exeext conftest.$ac_ext
23560 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23561 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23562 if test $ac_cv_func_dlopen = yes; then
23563 lt_cv_dlopen="dlopen"
23565 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23570 ac_check_lib_save_LIBS=$LIBS
23572 cat >conftest.$ac_ext <<_ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23579 /* Override any gcc2 internal prototype to avoid an error. */
23583 /* We use char because int might match the return type of a gcc2
23584 builtin and then its argument prototype would still apply. */
23594 rm -f conftest.$ac_objext conftest$ac_exeext
23595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596 (eval $ac_link) 2>conftest.er1
23598 grep -v '^ *+' conftest.er1 >conftest.err
23600 cat conftest.err >&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } &&
23603 { ac_try='test -z "$ac_c_werror_flag"
23604 || test ! -s conftest.err'
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; } &&
23610 { ac_try='test -s conftest$ac_exeext'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; }; then
23616 ac_cv_lib_dl_dlopen=yes
23618 echo "$as_me: failed program was:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23621 ac_cv_lib_dl_dlopen=no
23623 rm -f conftest.err conftest.$ac_objext \
23624 conftest$ac_exeext conftest.$ac_ext
23625 LIBS=$ac_check_lib_save_LIBS
23627 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23628 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23629 if test $ac_cv_lib_dl_dlopen = yes; then
23630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23632 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23633 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23634 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 ac_check_lib_save_LIBS=$LIBS
23638 LIBS="-lsvld $LIBS"
23639 cat >conftest.$ac_ext <<_ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h. */
23646 /* Override any gcc2 internal prototype to avoid an error. */
23650 /* We use char because int might match the return type of a gcc2
23651 builtin and then its argument prototype would still apply. */
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23663 (eval $ac_link) 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } &&
23670 { ac_try='test -z "$ac_c_werror_flag"
23671 || test ! -s conftest.err'
23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }; } &&
23677 { ac_try='test -s conftest$ac_exeext'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; }; then
23683 ac_cv_lib_svld_dlopen=yes
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 ac_cv_lib_svld_dlopen=no
23690 rm -f conftest.err conftest.$ac_objext \
23691 conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23694 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23695 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23696 if test $ac_cv_lib_svld_dlopen = yes; then
23697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23699 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23700 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23701 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23704 ac_check_lib_save_LIBS=$LIBS
23706 cat >conftest.$ac_ext <<_ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23713 /* Override any gcc2 internal prototype to avoid an error. */
23717 /* We use char because int might match the return type of a gcc2
23718 builtin and then its argument prototype would still apply. */
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23730 (eval $ac_link) 2>conftest.er1
23732 grep -v '^ *+' conftest.er1 >conftest.err
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } &&
23737 { ac_try='test -z "$ac_c_werror_flag"
23738 || test ! -s conftest.err'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; } &&
23744 { ac_try='test -s conftest$ac_exeext'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }; then
23750 ac_cv_lib_dld_dld_link=yes
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 ac_cv_lib_dld_dld_link=no
23757 rm -f conftest.err conftest.$ac_objext \
23758 conftest$ac_exeext conftest.$ac_ext
23759 LIBS=$ac_check_lib_save_LIBS
23761 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23762 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23763 if test $ac_cv_lib_dld_dld_link = yes; then
23764 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23785 if test "x$lt_cv_dlopen" != xno; then
23791 case $lt_cv_dlopen in
23793 save_CPPFLAGS="$CPPFLAGS"
23794 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23796 save_LDFLAGS="$LDFLAGS"
23797 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23800 LIBS="$lt_cv_dlopen_libs $LIBS"
23802 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23803 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23804 if test "${lt_cv_dlopen_self+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 if test "$cross_compiling" = yes; then :
23808 lt_cv_dlopen_self=cross
23810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23811 lt_status=$lt_dlunknown
23812 cat > conftest.$ac_ext <<EOF
23813 #line 23813 "configure"
23814 #include "confdefs.h"
23823 # define LT_DLGLOBAL RTLD_GLOBAL
23826 # define LT_DLGLOBAL DL_GLOBAL
23828 # define LT_DLGLOBAL 0
23832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23833 find out it does not work in some platform. */
23834 #ifndef LT_DLLAZY_OR_NOW
23836 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23839 # define LT_DLLAZY_OR_NOW DL_LAZY
23842 # define LT_DLLAZY_OR_NOW RTLD_NOW
23845 # define LT_DLLAZY_OR_NOW DL_NOW
23847 # define LT_DLLAZY_OR_NOW 0
23855 extern "C" void exit (int);
23858 void fnord() { int i=42;}
23861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23862 int status = $lt_dlunknown;
23866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23868 /* dlclose (self); */
23874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875 (eval $ac_link) 2>&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23879 (./conftest; exit; ) 2>/dev/null
23881 case x$lt_status in
23882 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23883 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23884 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23887 # compilation failed
23888 lt_cv_dlopen_self=no
23895 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23896 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23898 if test "x$lt_cv_dlopen_self" = xyes; then
23899 LDFLAGS="$LDFLAGS $link_static_flag"
23900 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23901 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23902 if test "${lt_cv_dlopen_self_static+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 if test "$cross_compiling" = yes; then :
23906 lt_cv_dlopen_self_static=cross
23908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23909 lt_status=$lt_dlunknown
23910 cat > conftest.$ac_ext <<EOF
23911 #line 23911 "configure"
23912 #include "confdefs.h"
23921 # define LT_DLGLOBAL RTLD_GLOBAL
23924 # define LT_DLGLOBAL DL_GLOBAL
23926 # define LT_DLGLOBAL 0
23930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23931 find out it does not work in some platform. */
23932 #ifndef LT_DLLAZY_OR_NOW
23934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23937 # define LT_DLLAZY_OR_NOW DL_LAZY
23940 # define LT_DLLAZY_OR_NOW RTLD_NOW
23943 # define LT_DLLAZY_OR_NOW DL_NOW
23945 # define LT_DLLAZY_OR_NOW 0
23953 extern "C" void exit (int);
23956 void fnord() { int i=42;}
23959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23960 int status = $lt_dlunknown;
23964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23966 /* dlclose (self); */
23972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23973 (eval $ac_link) 2>&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23977 (./conftest; exit; ) 2>/dev/null
23979 case x$lt_status in
23980 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23981 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23982 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23985 # compilation failed
23986 lt_cv_dlopen_self_static=no
23993 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23994 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23997 CPPFLAGS="$save_CPPFLAGS"
23998 LDFLAGS="$save_LDFLAGS"
24003 case $lt_cv_dlopen_self in
24004 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24005 *) enable_dlopen_self=unknown ;;
24008 case $lt_cv_dlopen_self_static in
24009 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24010 *) enable_dlopen_self_static=unknown ;;
24015 # The else clause should only fire when bootstrapping the
24016 # libtool distribution, otherwise you forgot to ship ltmain.sh
24017 # with your package, and you will get complaints that there are
24018 # no rules to generate ltmain.sh.
24019 if test -f "$ltmain"; then
24020 # See if we are running on zsh, and set the options which allow our commands through
24021 # without removal of \ escapes.
24022 if test -n "${ZSH_VERSION+set}" ; then
24023 setopt NO_GLOB_SUBST
24025 # Now quote all the things that may contain metacharacters while being
24026 # careful not to overquote the AC_SUBSTed values. We take copies of the
24027 # variables and quote the copies for generation of the libtool script.
24028 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24030 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24031 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24032 deplibs_check_method reload_flag reload_cmds need_locks \
24033 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24034 lt_cv_sys_global_symbol_to_c_name_address \
24035 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24036 old_postinstall_cmds old_postuninstall_cmds \
24040 lt_prog_compiler_wl_GCJ \
24041 lt_prog_compiler_pic_GCJ \
24042 lt_prog_compiler_static_GCJ \
24043 lt_prog_compiler_no_builtin_flag_GCJ \
24044 export_dynamic_flag_spec_GCJ \
24045 thread_safe_flag_spec_GCJ \
24046 whole_archive_flag_spec_GCJ \
24047 enable_shared_with_static_runtimes_GCJ \
24048 old_archive_cmds_GCJ \
24049 old_archive_from_new_cmds_GCJ \
24050 predep_objects_GCJ \
24051 postdep_objects_GCJ \
24054 compiler_lib_search_path_GCJ \
24056 archive_expsym_cmds_GCJ \
24057 postinstall_cmds_GCJ \
24058 postuninstall_cmds_GCJ \
24059 old_archive_from_expsyms_cmds_GCJ \
24060 allow_undefined_flag_GCJ \
24061 no_undefined_flag_GCJ \
24062 export_symbols_cmds_GCJ \
24063 hardcode_libdir_flag_spec_GCJ \
24064 hardcode_libdir_flag_spec_ld_GCJ \
24065 hardcode_libdir_separator_GCJ \
24066 hardcode_automatic_GCJ \
24068 module_expsym_cmds_GCJ \
24069 lt_cv_prog_compiler_c_o_GCJ \
24070 exclude_expsyms_GCJ \
24071 include_expsyms_GCJ; do
24074 old_archive_cmds_GCJ | \
24075 old_archive_from_new_cmds_GCJ | \
24076 archive_cmds_GCJ | \
24077 archive_expsym_cmds_GCJ | \
24078 module_cmds_GCJ | \
24079 module_expsym_cmds_GCJ | \
24080 old_archive_from_expsyms_cmds_GCJ | \
24081 export_symbols_cmds_GCJ | \
24082 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24083 postinstall_cmds | postuninstall_cmds | \
24084 old_postinstall_cmds | old_postuninstall_cmds | \
24085 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24086 # Double-quote double-evaled strings.
24087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24096 *'\$0 --fallback-echo"')
24097 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24103 cat <<__EOF__ >> "$cfgfile"
24104 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24106 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24108 # Shell to use when invoking shell scripts.
24111 # Whether or not to build shared libraries.
24112 build_libtool_libs=$enable_shared
24114 # Whether or not to build static libraries.
24115 build_old_libs=$enable_static
24117 # Whether or not to add -lc for building shared libraries.
24118 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24120 # Whether or not to disallow shared libs when runtime libs are static
24121 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24123 # Whether or not to optimize for fast installation.
24124 fast_install=$enable_fast_install
24127 host_alias=$host_alias
24130 # An echo program that does not interpret backslashes.
24135 AR_FLAGS=$lt_AR_FLAGS
24140 # A language-specific compiler.
24141 CC=$lt_compiler_GCJ
24143 # Is the compiler the GNU C compiler?
24149 # The linker used to build libraries.
24152 # Whether we need hard or soft links.
24155 # A BSD-compatible nm program.
24158 # A symbol stripping program
24161 # Used to examine libraries when file_magic_cmd begins "file"
24162 MAGIC_CMD=$MAGIC_CMD
24164 # Used on cygwin: DLL creation program.
24167 # Used on cygwin: object dumper.
24170 # Used on cygwin: assembler.
24173 # The name of the directory that contains temporary libtool files.
24176 # How to create reloadable object files.
24177 reload_flag=$lt_reload_flag
24178 reload_cmds=$lt_reload_cmds
24180 # How to pass a linker flag through the compiler.
24181 wl=$lt_lt_prog_compiler_wl_GCJ
24183 # Object file suffix (normally "o").
24184 objext="$ac_objext"
24186 # Old archive suffix (normally "a").
24189 # Shared library suffix (normally ".so").
24190 shrext_cmds='$shrext_cmds'
24192 # Executable file suffix (normally "").
24195 # Additional compiler flags for building library objects.
24196 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24199 # What is the maximum length of a command?
24200 max_cmd_len=$lt_cv_sys_max_cmd_len
24202 # Does compiler simultaneously support -c and -o options?
24203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24205 # Must we lock files when doing compilation ?
24206 need_locks=$lt_need_locks
24208 # Do we need the lib prefix for modules?
24209 need_lib_prefix=$need_lib_prefix
24211 # Do we need a version for libraries?
24212 need_version=$need_version
24214 # Whether dlopen is supported.
24215 dlopen_support=$enable_dlopen
24217 # Whether dlopen of programs is supported.
24218 dlopen_self=$enable_dlopen_self
24220 # Whether dlopen of statically linked programs is supported.
24221 dlopen_self_static=$enable_dlopen_self_static
24223 # Compiler flag to prevent dynamic linking.
24224 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24226 # Compiler flag to turn off builtin functions.
24227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24229 # Compiler flag to allow reflexive dlopens.
24230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24232 # Compiler flag to generate shared objects directly from archives.
24233 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24235 # Compiler flag to generate thread-safe objects.
24236 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24238 # Library versioning type.
24239 version_type=$version_type
24241 # Format of library name prefix.
24242 libname_spec=$lt_libname_spec
24244 # List of archive names. First name is the real one, the rest are links.
24245 # The last name is the one that the linker finds with -lNAME.
24246 library_names_spec=$lt_library_names_spec
24248 # The coded name of the library, if different from the real name.
24249 soname_spec=$lt_soname_spec
24251 # Commands used to build and install an old-style archive.
24253 old_archive_cmds=$lt_old_archive_cmds_GCJ
24254 old_postinstall_cmds=$lt_old_postinstall_cmds
24255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24257 # Create an old-style archive from a shared archive.
24258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24260 # Create a temporary old-style archive to link instead of a shared archive.
24261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24263 # Commands used to build and install a shared archive.
24264 archive_cmds=$lt_archive_cmds_GCJ
24265 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24266 postinstall_cmds=$lt_postinstall_cmds
24267 postuninstall_cmds=$lt_postuninstall_cmds
24269 # Commands used to build a loadable module (assumed same as above if empty)
24270 module_cmds=$lt_module_cmds_GCJ
24271 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24273 # Commands to strip libraries.
24274 old_striplib=$lt_old_striplib
24275 striplib=$lt_striplib
24277 # Dependencies to place before the objects being linked to create a
24279 predep_objects=$lt_predep_objects_GCJ
24281 # Dependencies to place after the objects being linked to create a
24283 postdep_objects=$lt_postdep_objects_GCJ
24285 # Dependencies to place before the objects being linked to create a
24287 predeps=$lt_predeps_GCJ
24289 # Dependencies to place after the objects being linked to create a
24291 postdeps=$lt_postdeps_GCJ
24293 # The library search path used internally by the compiler when linking
24294 # a shared library.
24295 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24297 # Method to check whether dependent libraries are shared objects.
24298 deplibs_check_method=$lt_deplibs_check_method
24300 # Command to use when deplibs_check_method == file_magic.
24301 file_magic_cmd=$lt_file_magic_cmd
24303 # Flag that allows shared libraries with undefined symbols to be built.
24304 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24306 # Flag that forces no undefined symbols.
24307 no_undefined_flag=$lt_no_undefined_flag_GCJ
24309 # Commands used to finish a libtool library installation in a directory.
24310 finish_cmds=$lt_finish_cmds
24312 # Same as above, but a single script fragment to be evaled but not shown.
24313 finish_eval=$lt_finish_eval
24315 # Take the output of nm and produce a listing of raw symbols and C names.
24316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24318 # Transform the output of nm in a proper C declaration
24319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24321 # Transform the output of nm in a C name address pair
24322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24324 # This is the shared library runtime path variable.
24325 runpath_var=$runpath_var
24327 # This is the shared library path variable.
24328 shlibpath_var=$shlibpath_var
24330 # Is shlibpath searched before the hard-coded library search path?
24331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24333 # How to hardcode a shared library path into an executable.
24334 hardcode_action=$hardcode_action_GCJ
24336 # Whether we should hardcode library paths into libraries.
24337 hardcode_into_libs=$hardcode_into_libs
24339 # Flag to hardcode \$libdir into a binary during linking.
24340 # This must work even if \$libdir does not exist.
24341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24343 # If ld is used when linking, flag to hardcode \$libdir into
24344 # a binary during linking. This must work even if \$libdir does
24346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24348 # Whether we need a single -rpath flag with a separated argument.
24349 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24351 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24352 # resulting binary.
24353 hardcode_direct=$hardcode_direct_GCJ
24355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24356 # resulting binary.
24357 hardcode_minus_L=$hardcode_minus_L_GCJ
24359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24360 # the resulting binary.
24361 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24363 # Set to yes if building a shared library automatically hardcodes DIR into the library
24364 # and all subsequent libraries and executables linked against it.
24365 hardcode_automatic=$hardcode_automatic_GCJ
24367 # Variables whose values should be saved in libtool wrapper scripts and
24368 # restored at relink time.
24369 variables_saved_for_relink="$variables_saved_for_relink"
24371 # Whether libtool must link a program against all its dependency libraries.
24372 link_all_deplibs=$link_all_deplibs_GCJ
24374 # Compile-time system search path for libraries
24375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24377 # Run-time system search path for libraries
24378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24380 # Fix the shell variable \$srcfile for the compiler.
24381 fix_srcfile_path="$fix_srcfile_path_GCJ"
24383 # Set to yes if exported symbols are required.
24384 always_export_symbols=$always_export_symbols_GCJ
24386 # The commands to list exported symbols.
24387 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24389 # The commands to extract the exported symbol list from a shared archive.
24390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24392 # Symbols that should not be listed in the preloaded symbols.
24393 exclude_expsyms=$lt_exclude_expsyms_GCJ
24395 # Symbols that must always be exported.
24396 include_expsyms=$lt_include_expsyms_GCJ
24398 # ### END LIBTOOL TAG CONFIG: $tagname
24404 # If there is no Makefile yet, we rely on a make rule to execute
24405 # `config.status --recheck' to rerun these tests and create the
24406 # libtool script then.
24407 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24408 if test -f "$ltmain_in"; then
24409 test -f Makefile && make "$ltmain"
24415 ac_cpp='$CPP $CPPFLAGS'
24416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24429 ac_cpp='$CPP $CPPFLAGS'
24430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24435 # Source file extension for RC test sources.
24438 # Object file extension for compiled RC test sources.
24442 # Code to be used in simple compile tests
24443 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24445 # Code to be used in simple link tests
24446 lt_simple_link_test_code="$lt_simple_compile_test_code"
24448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24450 # If no C compiler was specified, use CC.
24453 # Allow CC to be a program name with arguments.
24457 # Allow CC to be a program name with arguments.
24462 lt_cv_prog_compiler_c_o_RC=yes
24464 # The else clause should only fire when bootstrapping the
24465 # libtool distribution, otherwise you forgot to ship ltmain.sh
24466 # with your package, and you will get complaints that there are
24467 # no rules to generate ltmain.sh.
24468 if test -f "$ltmain"; then
24469 # See if we are running on zsh, and set the options which allow our commands through
24470 # without removal of \ escapes.
24471 if test -n "${ZSH_VERSION+set}" ; then
24472 setopt NO_GLOB_SUBST
24474 # Now quote all the things that may contain metacharacters while being
24475 # careful not to overquote the AC_SUBSTed values. We take copies of the
24476 # variables and quote the copies for generation of the libtool script.
24477 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24479 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24480 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24481 deplibs_check_method reload_flag reload_cmds need_locks \
24482 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24483 lt_cv_sys_global_symbol_to_c_name_address \
24484 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24485 old_postinstall_cmds old_postuninstall_cmds \
24489 lt_prog_compiler_wl_RC \
24490 lt_prog_compiler_pic_RC \
24491 lt_prog_compiler_static_RC \
24492 lt_prog_compiler_no_builtin_flag_RC \
24493 export_dynamic_flag_spec_RC \
24494 thread_safe_flag_spec_RC \
24495 whole_archive_flag_spec_RC \
24496 enable_shared_with_static_runtimes_RC \
24497 old_archive_cmds_RC \
24498 old_archive_from_new_cmds_RC \
24499 predep_objects_RC \
24500 postdep_objects_RC \
24503 compiler_lib_search_path_RC \
24505 archive_expsym_cmds_RC \
24506 postinstall_cmds_RC \
24507 postuninstall_cmds_RC \
24508 old_archive_from_expsyms_cmds_RC \
24509 allow_undefined_flag_RC \
24510 no_undefined_flag_RC \
24511 export_symbols_cmds_RC \
24512 hardcode_libdir_flag_spec_RC \
24513 hardcode_libdir_flag_spec_ld_RC \
24514 hardcode_libdir_separator_RC \
24515 hardcode_automatic_RC \
24517 module_expsym_cmds_RC \
24518 lt_cv_prog_compiler_c_o_RC \
24519 exclude_expsyms_RC \
24520 include_expsyms_RC; do
24523 old_archive_cmds_RC | \
24524 old_archive_from_new_cmds_RC | \
24525 archive_cmds_RC | \
24526 archive_expsym_cmds_RC | \
24528 module_expsym_cmds_RC | \
24529 old_archive_from_expsyms_cmds_RC | \
24530 export_symbols_cmds_RC | \
24531 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24532 postinstall_cmds | postuninstall_cmds | \
24533 old_postinstall_cmds | old_postuninstall_cmds | \
24534 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24535 # Double-quote double-evaled strings.
24536 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24545 *'\$0 --fallback-echo"')
24546 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24552 cat <<__EOF__ >> "$cfgfile"
24553 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24555 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24557 # Shell to use when invoking shell scripts.
24560 # Whether or not to build shared libraries.
24561 build_libtool_libs=$enable_shared
24563 # Whether or not to build static libraries.
24564 build_old_libs=$enable_static
24566 # Whether or not to add -lc for building shared libraries.
24567 build_libtool_need_lc=$archive_cmds_need_lc_RC
24569 # Whether or not to disallow shared libs when runtime libs are static
24570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24572 # Whether or not to optimize for fast installation.
24573 fast_install=$enable_fast_install
24576 host_alias=$host_alias
24579 # An echo program that does not interpret backslashes.
24584 AR_FLAGS=$lt_AR_FLAGS
24589 # A language-specific compiler.
24592 # Is the compiler the GNU C compiler?
24598 # The linker used to build libraries.
24601 # Whether we need hard or soft links.
24604 # A BSD-compatible nm program.
24607 # A symbol stripping program
24610 # Used to examine libraries when file_magic_cmd begins "file"
24611 MAGIC_CMD=$MAGIC_CMD
24613 # Used on cygwin: DLL creation program.
24616 # Used on cygwin: object dumper.
24619 # Used on cygwin: assembler.
24622 # The name of the directory that contains temporary libtool files.
24625 # How to create reloadable object files.
24626 reload_flag=$lt_reload_flag
24627 reload_cmds=$lt_reload_cmds
24629 # How to pass a linker flag through the compiler.
24630 wl=$lt_lt_prog_compiler_wl_RC
24632 # Object file suffix (normally "o").
24633 objext="$ac_objext"
24635 # Old archive suffix (normally "a").
24638 # Shared library suffix (normally ".so").
24639 shrext_cmds='$shrext_cmds'
24641 # Executable file suffix (normally "").
24644 # Additional compiler flags for building library objects.
24645 pic_flag=$lt_lt_prog_compiler_pic_RC
24648 # What is the maximum length of a command?
24649 max_cmd_len=$lt_cv_sys_max_cmd_len
24651 # Does compiler simultaneously support -c and -o options?
24652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24654 # Must we lock files when doing compilation ?
24655 need_locks=$lt_need_locks
24657 # Do we need the lib prefix for modules?
24658 need_lib_prefix=$need_lib_prefix
24660 # Do we need a version for libraries?
24661 need_version=$need_version
24663 # Whether dlopen is supported.
24664 dlopen_support=$enable_dlopen
24666 # Whether dlopen of programs is supported.
24667 dlopen_self=$enable_dlopen_self
24669 # Whether dlopen of statically linked programs is supported.
24670 dlopen_self_static=$enable_dlopen_self_static
24672 # Compiler flag to prevent dynamic linking.
24673 link_static_flag=$lt_lt_prog_compiler_static_RC
24675 # Compiler flag to turn off builtin functions.
24676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24678 # Compiler flag to allow reflexive dlopens.
24679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24681 # Compiler flag to generate shared objects directly from archives.
24682 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24684 # Compiler flag to generate thread-safe objects.
24685 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24687 # Library versioning type.
24688 version_type=$version_type
24690 # Format of library name prefix.
24691 libname_spec=$lt_libname_spec
24693 # List of archive names. First name is the real one, the rest are links.
24694 # The last name is the one that the linker finds with -lNAME.
24695 library_names_spec=$lt_library_names_spec
24697 # The coded name of the library, if different from the real name.
24698 soname_spec=$lt_soname_spec
24700 # Commands used to build and install an old-style archive.
24702 old_archive_cmds=$lt_old_archive_cmds_RC
24703 old_postinstall_cmds=$lt_old_postinstall_cmds
24704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24706 # Create an old-style archive from a shared archive.
24707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24709 # Create a temporary old-style archive to link instead of a shared archive.
24710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24712 # Commands used to build and install a shared archive.
24713 archive_cmds=$lt_archive_cmds_RC
24714 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24715 postinstall_cmds=$lt_postinstall_cmds
24716 postuninstall_cmds=$lt_postuninstall_cmds
24718 # Commands used to build a loadable module (assumed same as above if empty)
24719 module_cmds=$lt_module_cmds_RC
24720 module_expsym_cmds=$lt_module_expsym_cmds_RC
24722 # Commands to strip libraries.
24723 old_striplib=$lt_old_striplib
24724 striplib=$lt_striplib
24726 # Dependencies to place before the objects being linked to create a
24728 predep_objects=$lt_predep_objects_RC
24730 # Dependencies to place after the objects being linked to create a
24732 postdep_objects=$lt_postdep_objects_RC
24734 # Dependencies to place before the objects being linked to create a
24736 predeps=$lt_predeps_RC
24738 # Dependencies to place after the objects being linked to create a
24740 postdeps=$lt_postdeps_RC
24742 # The library search path used internally by the compiler when linking
24743 # a shared library.
24744 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24746 # Method to check whether dependent libraries are shared objects.
24747 deplibs_check_method=$lt_deplibs_check_method
24749 # Command to use when deplibs_check_method == file_magic.
24750 file_magic_cmd=$lt_file_magic_cmd
24752 # Flag that allows shared libraries with undefined symbols to be built.
24753 allow_undefined_flag=$lt_allow_undefined_flag_RC
24755 # Flag that forces no undefined symbols.
24756 no_undefined_flag=$lt_no_undefined_flag_RC
24758 # Commands used to finish a libtool library installation in a directory.
24759 finish_cmds=$lt_finish_cmds
24761 # Same as above, but a single script fragment to be evaled but not shown.
24762 finish_eval=$lt_finish_eval
24764 # Take the output of nm and produce a listing of raw symbols and C names.
24765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24767 # Transform the output of nm in a proper C declaration
24768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24770 # Transform the output of nm in a C name address pair
24771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24773 # This is the shared library runtime path variable.
24774 runpath_var=$runpath_var
24776 # This is the shared library path variable.
24777 shlibpath_var=$shlibpath_var
24779 # Is shlibpath searched before the hard-coded library search path?
24780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24782 # How to hardcode a shared library path into an executable.
24783 hardcode_action=$hardcode_action_RC
24785 # Whether we should hardcode library paths into libraries.
24786 hardcode_into_libs=$hardcode_into_libs
24788 # Flag to hardcode \$libdir into a binary during linking.
24789 # This must work even if \$libdir does not exist.
24790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24792 # If ld is used when linking, flag to hardcode \$libdir into
24793 # a binary during linking. This must work even if \$libdir does
24795 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24797 # Whether we need a single -rpath flag with a separated argument.
24798 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24800 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24801 # resulting binary.
24802 hardcode_direct=$hardcode_direct_RC
24804 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24805 # resulting binary.
24806 hardcode_minus_L=$hardcode_minus_L_RC
24808 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24809 # the resulting binary.
24810 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24812 # Set to yes if building a shared library automatically hardcodes DIR into the library
24813 # and all subsequent libraries and executables linked against it.
24814 hardcode_automatic=$hardcode_automatic_RC
24816 # Variables whose values should be saved in libtool wrapper scripts and
24817 # restored at relink time.
24818 variables_saved_for_relink="$variables_saved_for_relink"
24820 # Whether libtool must link a program against all its dependency libraries.
24821 link_all_deplibs=$link_all_deplibs_RC
24823 # Compile-time system search path for libraries
24824 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24826 # Run-time system search path for libraries
24827 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24829 # Fix the shell variable \$srcfile for the compiler.
24830 fix_srcfile_path="$fix_srcfile_path_RC"
24832 # Set to yes if exported symbols are required.
24833 always_export_symbols=$always_export_symbols_RC
24835 # The commands to list exported symbols.
24836 export_symbols_cmds=$lt_export_symbols_cmds_RC
24838 # The commands to extract the exported symbol list from a shared archive.
24839 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24841 # Symbols that should not be listed in the preloaded symbols.
24842 exclude_expsyms=$lt_exclude_expsyms_RC
24844 # Symbols that must always be exported.
24845 include_expsyms=$lt_include_expsyms_RC
24847 # ### END LIBTOOL TAG CONFIG: $tagname
24853 # If there is no Makefile yet, we rely on a make rule to execute
24854 # `config.status --recheck' to rerun these tests and create the
24855 # libtool script then.
24856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24857 if test -f "$ltmain_in"; then
24858 test -f Makefile && make "$ltmain"
24864 ac_cpp='$CPP $CPPFLAGS'
24865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24874 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24875 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24876 { (exit 1); exit 1; }; }
24880 # Append the new tag name to the list of available tags.
24881 if test -n "$tagname" ; then
24882 available_tags="$available_tags $tagname"
24888 # Now substitute the updated list of available tags.
24889 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24890 mv "${ofile}T" "$ofile"
24894 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24895 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24896 { (exit 1); exit 1; }; }
24902 # This can be used to rebuild libtool when needed
24903 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24905 # Always use our own libtool.
24906 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24908 # Prevent multiple expansion
24930 if test "$lt_cv_dlopen_self" = "yes" ; then
24932 cat >>confdefs.h <<\_ACEOF
24933 #define CAN_DLOPEN_SELF 1
24938 etags_version=`$ETAGS --version 2>&1`
24939 case "$etags_version" in
24940 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24941 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24942 *) ETAGSFLAGS="" ;;
24944 ETAGSFLAGS=$ETAGSFLAGS
24947 if test "$WITH_LLVMGCCDIR" = "default" ; then
24948 LLVMGCC="llvm-gcc${EXEEXT}"
24949 LLVMGXX="llvm-g++${EXEEXT}"
24950 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24951 set dummy $LLVMGCC; ac_word=$2
24952 echo "$as_me:$LINENO: checking for $ac_word" >&5
24953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24954 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24955 echo $ECHO_N "(cached) $ECHO_C" >&6
24959 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24963 for as_dir in $PATH
24966 test -z "$as_dir" && as_dir=.
24967 for ac_exec_ext in '' $ac_executable_extensions; do
24968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24969 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24979 LLVMGCC=$ac_cv_path_LLVMGCC
24981 if test -n "$LLVMGCC"; then
24982 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24983 echo "${ECHO_T}$LLVMGCC" >&6
24985 echo "$as_me:$LINENO: result: no" >&5
24986 echo "${ECHO_T}no" >&6
24989 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24990 set dummy $LLVMGXX; ac_word=$2
24991 echo "$as_me:$LINENO: checking for $ac_word" >&5
24992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24993 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24998 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25002 for as_dir in $PATH
25005 test -z "$as_dir" && as_dir=.
25006 for ac_exec_ext in '' $ac_executable_extensions; do
25007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25008 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25018 LLVMGXX=$ac_cv_path_LLVMGXX
25020 if test -n "$LLVMGXX"; then
25021 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25022 echo "${ECHO_T}$LLVMGXX" >&6
25024 echo "$as_me:$LINENO: result: no" >&5
25025 echo "${ECHO_T}no" >&6
25029 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25030 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25037 echo "$as_me:$LINENO: checking tool compatibility" >&5
25038 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25051 if test "$GCC" != "yes" && test "$ICC" != "yes"
25053 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25054 echo "$as_me: error: gcc|icc required but not found" >&2;}
25055 { (exit 1); exit 1; }; }
25058 if test "$GXX" != "yes" && test "$IXX" != "yes"
25060 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25061 echo "$as_me: error: g++|icc required but not found" >&2;}
25062 { (exit 1); exit 1; }; }
25065 if test "$GCC" = "yes"
25067 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25068 if test "$gccmajor" -lt "3"
25070 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25071 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25072 { (exit 1); exit 1; }; }
25076 if test -z "$llvm_cv_gnu_make_command"
25078 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25079 echo "$as_me: error: GNU Make required but not found" >&2;}
25080 { (exit 1); exit 1; }; }
25083 echo "$as_me:$LINENO: result: ok" >&5
25084 echo "${ECHO_T}ok" >&6
25088 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25089 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25090 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25091 echo $ECHO_N "(cached) $ECHO_C" >&6
25093 ac_check_lib_save_LIBS=$LIBS
25095 cat >conftest.$ac_ext <<_ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h. */
25102 /* Override any gcc2 internal prototype to avoid an error. */
25106 /* We use char because int might match the return type of a gcc2
25107 builtin and then its argument prototype would still apply. */
25117 rm -f conftest.$ac_objext conftest$ac_exeext
25118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25119 (eval $ac_link) 2>conftest.er1
25121 grep -v '^ *+' conftest.er1 >conftest.err
25123 cat conftest.err >&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); } &&
25126 { ac_try='test -z "$ac_c_werror_flag"
25127 || test ! -s conftest.err'
25128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25129 (eval $ac_try) 2>&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); }; } &&
25133 { ac_try='test -s conftest$ac_exeext'
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; }; then
25139 ac_cv_lib_elf_elf_begin=yes
25141 echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25144 ac_cv_lib_elf_elf_begin=no
25146 rm -f conftest.err conftest.$ac_objext \
25147 conftest$ac_exeext conftest.$ac_ext
25148 LIBS=$ac_check_lib_save_LIBS
25150 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25151 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25152 if test $ac_cv_lib_elf_elf_begin = yes; then
25153 cat >>confdefs.h <<_ACEOF
25154 #define HAVE_LIBELF 1
25162 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25163 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25164 if test "${ac_cv_lib_m_sin+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25167 ac_check_lib_save_LIBS=$LIBS
25169 cat >conftest.$ac_ext <<_ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25176 /* Override any gcc2 internal prototype to avoid an error. */
25180 /* We use char because int might match the return type of a gcc2
25181 builtin and then its argument prototype would still apply. */
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193 (eval $ac_link) 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
25200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest$ac_exeext'
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_cv_lib_m_sin=yes
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25220 rm -f conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
25222 LIBS=$ac_check_lib_save_LIBS
25224 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25225 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25226 if test $ac_cv_lib_m_sin = yes; then
25227 cat >>confdefs.h <<_ACEOF
25228 #define HAVE_LIBM 1
25235 if test "$llvm_cv_os_type" == "MingW" ; then
25237 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25238 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25239 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25240 echo $ECHO_N "(cached) $ECHO_C" >&6
25242 ac_check_lib_save_LIBS=$LIBS
25243 LIBS="-limagehlp $LIBS"
25244 cat >conftest.$ac_ext <<_ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25260 rm -f conftest.$ac_objext conftest$ac_exeext
25261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25262 (eval $ac_link) 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_c_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_exeext'
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_lib_imagehlp_main=yes
25284 echo "$as_me: failed program was:" >&5
25285 sed 's/^/| /' conftest.$ac_ext >&5
25287 ac_cv_lib_imagehlp_main=no
25289 rm -f conftest.err conftest.$ac_objext \
25290 conftest$ac_exeext conftest.$ac_ext
25291 LIBS=$ac_check_lib_save_LIBS
25293 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25294 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25295 if test $ac_cv_lib_imagehlp_main = yes; then
25296 cat >>confdefs.h <<_ACEOF
25297 #define HAVE_LIBIMAGEHLP 1
25300 LIBS="-limagehlp $LIBS"
25305 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25306 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25307 if test "${ac_cv_lib_psapi_main+set}" = set; then
25308 echo $ECHO_N "(cached) $ECHO_C" >&6
25310 ac_check_lib_save_LIBS=$LIBS
25311 LIBS="-lpsapi $LIBS"
25312 cat >conftest.$ac_ext <<_ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h. */
25328 rm -f conftest.$ac_objext conftest$ac_exeext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25330 (eval $ac_link) 2>conftest.er1
25332 grep -v '^ *+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try='test -z "$ac_c_werror_flag"
25338 || test ! -s conftest.err'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; } &&
25344 { ac_try='test -s conftest$ac_exeext'
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; }; then
25350 ac_cv_lib_psapi_main=yes
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25355 ac_cv_lib_psapi_main=no
25357 rm -f conftest.err conftest.$ac_objext \
25358 conftest$ac_exeext conftest.$ac_ext
25359 LIBS=$ac_check_lib_save_LIBS
25361 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25362 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25363 if test $ac_cv_lib_psapi_main = yes; then
25364 cat >>confdefs.h <<_ACEOF
25365 #define HAVE_LIBPSAPI 1
25368 LIBS="-lpsapi $LIBS"
25374 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25375 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25376 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25379 ac_func_search_save_LIBS=$LIBS
25380 ac_cv_search_lt_dlopen=no
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25388 /* Override any gcc2 internal prototype to avoid an error. */
25392 /* We use char because int might match the return type of a gcc2
25393 builtin and then its argument prototype would still apply. */
25403 rm -f conftest.$ac_objext conftest$ac_exeext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25405 (eval $ac_link) 2>conftest.er1
25407 grep -v '^ *+' conftest.er1 >conftest.err
25409 cat conftest.err >&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } &&
25412 { ac_try='test -z "$ac_c_werror_flag"
25413 || test ! -s conftest.err'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; } &&
25419 { ac_try='test -s conftest$ac_exeext'
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; }; then
25425 ac_cv_search_lt_dlopen="none required"
25427 echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25431 rm -f conftest.err conftest.$ac_objext \
25432 conftest$ac_exeext conftest.$ac_ext
25433 if test "$ac_cv_search_lt_dlopen" = no; then
25434 for ac_lib in ltdl; do
25435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25436 cat >conftest.$ac_ext <<_ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25443 /* Override any gcc2 internal prototype to avoid an error. */
25447 /* We use char because int might match the return type of a gcc2
25448 builtin and then its argument prototype would still apply. */
25458 rm -f conftest.$ac_objext conftest$ac_exeext
25459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25460 (eval $ac_link) 2>conftest.er1
25462 grep -v '^ *+' conftest.er1 >conftest.err
25464 cat conftest.err >&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); } &&
25467 { ac_try='test -z "$ac_c_werror_flag"
25468 || test ! -s conftest.err'
25469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470 (eval $ac_try) 2>&5
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); }; } &&
25474 { ac_try='test -s conftest$ac_exeext'
25475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25476 (eval $ac_try) 2>&5
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); }; }; then
25480 ac_cv_search_lt_dlopen="-l$ac_lib"
25483 echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25487 rm -f conftest.err conftest.$ac_objext \
25488 conftest$ac_exeext conftest.$ac_ext
25491 LIBS=$ac_func_search_save_LIBS
25493 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25494 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25495 if test "$ac_cv_search_lt_dlopen" != no; then
25496 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25498 cat >>confdefs.h <<\_ACEOF
25499 #define HAVE_LT_DLOPEN 1
25503 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25504 not be available" >&5
25505 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25506 not be available" >&2;}
25510 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25511 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25512 if test "${ac_cv_search_dlopen+set}" = set; then
25513 echo $ECHO_N "(cached) $ECHO_C" >&6
25515 ac_func_search_save_LIBS=$LIBS
25516 ac_cv_search_dlopen=no
25517 cat >conftest.$ac_ext <<_ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h. */
25524 /* Override any gcc2 internal prototype to avoid an error. */
25528 /* We use char because int might match the return type of a gcc2
25529 builtin and then its argument prototype would still apply. */
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25541 (eval $ac_link) 2>conftest.er1
25543 grep -v '^ *+' conftest.er1 >conftest.err
25545 cat conftest.err >&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } &&
25548 { ac_try='test -z "$ac_c_werror_flag"
25549 || test ! -s conftest.err'
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; } &&
25555 { ac_try='test -s conftest$ac_exeext'
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; }; then
25561 ac_cv_search_dlopen="none required"
25563 echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25567 rm -f conftest.err conftest.$ac_objext \
25568 conftest$ac_exeext conftest.$ac_ext
25569 if test "$ac_cv_search_dlopen" = no; then
25570 for ac_lib in dl; do
25571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25572 cat >conftest.$ac_ext <<_ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25579 /* Override any gcc2 internal prototype to avoid an error. */
25583 /* We use char because int might match the return type of a gcc2
25584 builtin and then its argument prototype would still apply. */
25594 rm -f conftest.$ac_objext conftest$ac_exeext
25595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25596 (eval $ac_link) 2>conftest.er1
25598 grep -v '^ *+' conftest.er1 >conftest.err
25600 cat conftest.err >&5
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } &&
25603 { ac_try='test -z "$ac_c_werror_flag"
25604 || test ! -s conftest.err'
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; } &&
25610 { ac_try='test -s conftest$ac_exeext'
25611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612 (eval $ac_try) 2>&5
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; }; then
25616 ac_cv_search_dlopen="-l$ac_lib"
25619 echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25623 rm -f conftest.err conftest.$ac_objext \
25624 conftest$ac_exeext conftest.$ac_ext
25627 LIBS=$ac_func_search_save_LIBS
25629 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25630 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25631 if test "$ac_cv_search_dlopen" != no; then
25632 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25634 cat >>confdefs.h <<\_ACEOF
25635 #define HAVE_DLOPEN 1
25639 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25640 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25644 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25645 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25646 if test "${ac_cv_search_mallinfo+set}" = set; then
25647 echo $ECHO_N "(cached) $ECHO_C" >&6
25649 ac_func_search_save_LIBS=$LIBS
25650 ac_cv_search_mallinfo=no
25651 cat >conftest.$ac_ext <<_ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25658 /* Override any gcc2 internal prototype to avoid an error. */
25662 /* We use char because int might match the return type of a gcc2
25663 builtin and then its argument prototype would still apply. */
25673 rm -f conftest.$ac_objext conftest$ac_exeext
25674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25675 (eval $ac_link) 2>conftest.er1
25677 grep -v '^ *+' conftest.er1 >conftest.err
25679 cat conftest.err >&5
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } &&
25682 { ac_try='test -z "$ac_c_werror_flag"
25683 || test ! -s conftest.err'
25684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25685 (eval $ac_try) 2>&5
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); }; } &&
25689 { ac_try='test -s conftest$ac_exeext'
25690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25691 (eval $ac_try) 2>&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); }; }; then
25695 ac_cv_search_mallinfo="none required"
25697 echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25701 rm -f conftest.err conftest.$ac_objext \
25702 conftest$ac_exeext conftest.$ac_ext
25703 if test "$ac_cv_search_mallinfo" = no; then
25704 for ac_lib in malloc; do
25705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25706 cat >conftest.$ac_ext <<_ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25713 /* Override any gcc2 internal prototype to avoid an error. */
25717 /* We use char because int might match the return type of a gcc2
25718 builtin and then its argument prototype would still apply. */
25728 rm -f conftest.$ac_objext conftest$ac_exeext
25729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25730 (eval $ac_link) 2>conftest.er1
25732 grep -v '^ *+' conftest.er1 >conftest.err
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } &&
25737 { ac_try='test -z "$ac_c_werror_flag"
25738 || test ! -s conftest.err'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; } &&
25744 { ac_try='test -s conftest$ac_exeext'
25745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746 (eval $ac_try) 2>&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 ac_cv_search_mallinfo="-l$ac_lib"
25753 echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25757 rm -f conftest.err conftest.$ac_objext \
25758 conftest$ac_exeext conftest.$ac_ext
25761 LIBS=$ac_func_search_save_LIBS
25763 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25764 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25765 if test "$ac_cv_search_mallinfo" != no; then
25766 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25768 cat >>confdefs.h <<\_ACEOF
25769 #define HAVE_MALLINFO 1
25775 if test "$ENABLE_THREADS" -eq 1 ; then
25777 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25778 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25779 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25780 echo $ECHO_N "(cached) $ECHO_C" >&6
25782 ac_check_lib_save_LIBS=$LIBS
25783 LIBS="-lpthread $LIBS"
25784 cat >conftest.$ac_ext <<_ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h. */
25791 /* Override any gcc2 internal prototype to avoid an error. */
25795 /* We use char because int might match the return type of a gcc2
25796 builtin and then its argument prototype would still apply. */
25797 char pthread_mutex_init ();
25801 pthread_mutex_init ();
25806 rm -f conftest.$ac_objext conftest$ac_exeext
25807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25808 (eval $ac_link) 2>conftest.er1
25810 grep -v '^ *+' conftest.er1 >conftest.err
25812 cat conftest.err >&5
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } &&
25815 { ac_try='test -z "$ac_c_werror_flag"
25816 || test ! -s conftest.err'
25817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818 (eval $ac_try) 2>&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); }; } &&
25822 { ac_try='test -s conftest$ac_exeext'
25823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25824 (eval $ac_try) 2>&5
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); }; }; then
25828 ac_cv_lib_pthread_pthread_mutex_init=yes
25830 echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25833 ac_cv_lib_pthread_pthread_mutex_init=no
25835 rm -f conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
25837 LIBS=$ac_check_lib_save_LIBS
25839 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25840 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25841 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25842 cat >>confdefs.h <<_ACEOF
25843 #define HAVE_LIBPTHREAD 1
25846 LIBS="-lpthread $LIBS"
25850 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25851 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25852 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25855 ac_func_search_save_LIBS=$LIBS
25856 ac_cv_search_pthread_mutex_lock=no
25857 cat >conftest.$ac_ext <<_ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h. */
25864 /* Override any gcc2 internal prototype to avoid an error. */
25868 /* We use char because int might match the return type of a gcc2
25869 builtin and then its argument prototype would still apply. */
25870 char pthread_mutex_lock ();
25874 pthread_mutex_lock ();
25879 rm -f conftest.$ac_objext conftest$ac_exeext
25880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25881 (eval $ac_link) 2>conftest.er1
25883 grep -v '^ *+' conftest.er1 >conftest.err
25885 cat conftest.err >&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } &&
25888 { ac_try='test -z "$ac_c_werror_flag"
25889 || test ! -s conftest.err'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; } &&
25895 { ac_try='test -s conftest$ac_exeext'
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
25901 ac_cv_search_pthread_mutex_lock="none required"
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25907 rm -f conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
25909 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25910 for ac_lib in pthread; do
25911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25912 cat >conftest.$ac_ext <<_ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25919 /* Override any gcc2 internal prototype to avoid an error. */
25923 /* We use char because int might match the return type of a gcc2
25924 builtin and then its argument prototype would still apply. */
25925 char pthread_mutex_lock ();
25929 pthread_mutex_lock ();
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25936 (eval $ac_link) 2>conftest.er1
25938 grep -v '^ *+' conftest.er1 >conftest.err
25940 cat conftest.err >&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } &&
25943 { ac_try='test -z "$ac_c_werror_flag"
25944 || test ! -s conftest.err'
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); }; } &&
25950 { ac_try='test -s conftest$ac_exeext'
25951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25959 echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25963 rm -f conftest.err conftest.$ac_objext \
25964 conftest$ac_exeext conftest.$ac_ext
25967 LIBS=$ac_func_search_save_LIBS
25969 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25970 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25971 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25972 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25974 cat >>confdefs.h <<\_ACEOF
25975 #define HAVE_PTHREAD_MUTEX_LOCK 1
25988 ac_header_dirent=no
25989 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25990 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25991 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25992 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 cat >conftest.$ac_ext <<_ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h. */
26002 #include <sys/types.h>
26014 rm -f conftest.$ac_objext
26015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26016 (eval $ac_compile) 2>conftest.er1
26018 grep -v '^ *+' conftest.er1 >conftest.err
26020 cat conftest.err >&5
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); } &&
26023 { ac_try='test -z "$ac_c_werror_flag"
26024 || test ! -s conftest.err'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; } &&
26030 { ac_try='test -s conftest.$ac_objext'
26031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032 (eval $ac_try) 2>&5
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); }; }; then
26036 eval "$as_ac_Header=yes"
26038 echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26041 eval "$as_ac_Header=no"
26043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26048 cat >>confdefs.h <<_ACEOF
26049 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26052 ac_header_dirent=$ac_hdr; break
26056 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26057 if test $ac_header_dirent = dirent.h; then
26058 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26059 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26060 if test "${ac_cv_search_opendir+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26063 ac_func_search_save_LIBS=$LIBS
26064 ac_cv_search_opendir=no
26065 cat >conftest.$ac_ext <<_ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h. */
26072 /* Override any gcc2 internal prototype to avoid an error. */
26076 /* We use char because int might match the return type of a gcc2
26077 builtin and then its argument prototype would still apply. */
26087 rm -f conftest.$ac_objext conftest$ac_exeext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26089 (eval $ac_link) 2>conftest.er1
26091 grep -v '^ *+' conftest.er1 >conftest.err
26093 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } &&
26096 { ac_try='test -z "$ac_c_werror_flag"
26097 || test ! -s conftest.err'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; } &&
26103 { ac_try='test -s conftest$ac_exeext'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
26109 ac_cv_search_opendir="none required"
26111 echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26115 rm -f conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
26117 if test "$ac_cv_search_opendir" = no; then
26118 for ac_lib in dir; do
26119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26120 cat >conftest.$ac_ext <<_ACEOF
26123 cat confdefs.h >>conftest.$ac_ext
26124 cat >>conftest.$ac_ext <<_ACEOF
26125 /* end confdefs.h. */
26127 /* Override any gcc2 internal prototype to avoid an error. */
26131 /* We use char because int might match the return type of a gcc2
26132 builtin and then its argument prototype would still apply. */
26142 rm -f conftest.$ac_objext conftest$ac_exeext
26143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26144 (eval $ac_link) 2>conftest.er1
26146 grep -v '^ *+' conftest.er1 >conftest.err
26148 cat conftest.err >&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } &&
26151 { ac_try='test -z "$ac_c_werror_flag"
26152 || test ! -s conftest.err'
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; } &&
26158 { ac_try='test -s conftest$ac_exeext'
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; }; then
26164 ac_cv_search_opendir="-l$ac_lib"
26167 echo "$as_me: failed program was:" >&5
26168 sed 's/^/| /' conftest.$ac_ext >&5
26171 rm -f conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
26175 LIBS=$ac_func_search_save_LIBS
26177 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26178 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26179 if test "$ac_cv_search_opendir" != no; then
26180 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26185 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26186 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26187 if test "${ac_cv_search_opendir+set}" = set; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26190 ac_func_search_save_LIBS=$LIBS
26191 ac_cv_search_opendir=no
26192 cat >conftest.$ac_ext <<_ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26199 /* Override any gcc2 internal prototype to avoid an error. */
26203 /* We use char because int might match the return type of a gcc2
26204 builtin and then its argument prototype would still apply. */
26214 rm -f conftest.$ac_objext conftest$ac_exeext
26215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26216 (eval $ac_link) 2>conftest.er1
26218 grep -v '^ *+' conftest.er1 >conftest.err
26220 cat conftest.err >&5
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); } &&
26223 { ac_try='test -z "$ac_c_werror_flag"
26224 || test ! -s conftest.err'
26225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226 (eval $ac_try) 2>&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); }; } &&
26230 { ac_try='test -s conftest$ac_exeext'
26231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232 (eval $ac_try) 2>&5
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; }; then
26236 ac_cv_search_opendir="none required"
26238 echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26242 rm -f conftest.err conftest.$ac_objext \
26243 conftest$ac_exeext conftest.$ac_ext
26244 if test "$ac_cv_search_opendir" = no; then
26245 for ac_lib in x; do
26246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26247 cat >conftest.$ac_ext <<_ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h. */
26254 /* Override any gcc2 internal prototype to avoid an error. */
26258 /* We use char because int might match the return type of a gcc2
26259 builtin and then its argument prototype would still apply. */
26269 rm -f conftest.$ac_objext conftest$ac_exeext
26270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26271 (eval $ac_link) 2>conftest.er1
26273 grep -v '^ *+' conftest.er1 >conftest.err
26275 cat conftest.err >&5
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } &&
26278 { ac_try='test -z "$ac_c_werror_flag"
26279 || test ! -s conftest.err'
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; } &&
26285 { ac_try='test -s conftest$ac_exeext'
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; }; then
26291 ac_cv_search_opendir="-l$ac_lib"
26294 echo "$as_me: failed program was:" >&5
26295 sed 's/^/| /' conftest.$ac_ext >&5
26298 rm -f conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext conftest.$ac_ext
26302 LIBS=$ac_func_search_save_LIBS
26304 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26305 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26306 if test "$ac_cv_search_opendir" != no; then
26307 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26313 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26314 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26315 if test "${ac_cv_header_mmap_anon+set}" = set; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
26319 ac_cpp='$CPP $CPPFLAGS'
26320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26324 cat >conftest.$ac_ext <<_ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h. */
26330 #include <sys/mman.h>
26331 #include <unistd.h>
26336 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26341 rm -f conftest.$ac_objext
26342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26343 (eval $ac_compile) 2>conftest.er1
26345 grep -v '^ *+' conftest.er1 >conftest.err
26347 cat conftest.err >&5
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); } &&
26350 { ac_try='test -z "$ac_c_werror_flag"
26351 || test ! -s conftest.err'
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; } &&
26357 { ac_try='test -s conftest.$ac_objext'
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; }; then
26363 ac_cv_header_mmap_anon=yes
26365 echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26368 ac_cv_header_mmap_anon=no
26370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26372 ac_cpp='$CPP $CPPFLAGS'
26373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26379 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26380 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26381 if test "$ac_cv_header_mmap_anon" = yes; then
26383 cat >>confdefs.h <<\_ACEOF
26384 #define HAVE_MMAP_ANONYMOUS 1
26389 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26390 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26391 if test "${ac_cv_header_stat_broken+set}" = set; then
26392 echo $ECHO_N "(cached) $ECHO_C" >&6
26394 cat >conftest.$ac_ext <<_ACEOF
26397 cat confdefs.h >>conftest.$ac_ext
26398 cat >>conftest.$ac_ext <<_ACEOF
26399 /* end confdefs.h. */
26400 #include <sys/types.h>
26401 #include <sys/stat.h>
26403 #if defined(S_ISBLK) && defined(S_IFDIR)
26404 # if S_ISBLK (S_IFDIR)
26409 #if defined(S_ISBLK) && defined(S_IFCHR)
26410 # if S_ISBLK (S_IFCHR)
26415 #if defined(S_ISLNK) && defined(S_IFREG)
26416 # if S_ISLNK (S_IFREG)
26421 #if defined(S_ISSOCK) && defined(S_IFREG)
26422 # if S_ISSOCK (S_IFREG)
26428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26429 $EGREP "You lose" >/dev/null 2>&1; then
26430 ac_cv_header_stat_broken=yes
26432 ac_cv_header_stat_broken=no
26437 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26438 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26439 if test $ac_cv_header_stat_broken = yes; then
26441 cat >>confdefs.h <<\_ACEOF
26442 #define STAT_MACROS_BROKEN 1
26447 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26448 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26449 if test "${ac_cv_header_stdc+set}" = set; then
26450 echo $ECHO_N "(cached) $ECHO_C" >&6
26452 cat >conftest.$ac_ext <<_ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h. */
26458 #include <stdlib.h>
26459 #include <stdarg.h>
26460 #include <string.h>
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>conftest.er1
26475 grep -v '^ *+' conftest.er1 >conftest.err
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_cv_header_stdc=yes
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26498 ac_cv_header_stdc=no
26500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26502 if test $ac_cv_header_stdc = yes; then
26503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26504 cat >conftest.$ac_ext <<_ACEOF
26507 cat confdefs.h >>conftest.$ac_ext
26508 cat >>conftest.$ac_ext <<_ACEOF
26509 /* end confdefs.h. */
26510 #include <string.h>
26513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26514 $EGREP "memchr" >/dev/null 2>&1; then
26517 ac_cv_header_stdc=no
26523 if test $ac_cv_header_stdc = yes; then
26524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26525 cat >conftest.$ac_ext <<_ACEOF
26528 cat confdefs.h >>conftest.$ac_ext
26529 cat >>conftest.$ac_ext <<_ACEOF
26530 /* end confdefs.h. */
26531 #include <stdlib.h>
26534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26535 $EGREP "free" >/dev/null 2>&1; then
26538 ac_cv_header_stdc=no
26544 if test $ac_cv_header_stdc = yes; then
26545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26546 if test "$cross_compiling" = yes; then
26549 cat >conftest.$ac_ext <<_ACEOF
26552 cat confdefs.h >>conftest.$ac_ext
26553 cat >>conftest.$ac_ext <<_ACEOF
26554 /* end confdefs.h. */
26556 #if ((' ' & 0x0FF) == 0x020)
26557 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26558 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26560 # define ISLOWER(c) \
26561 (('a' <= (c) && (c) <= 'i') \
26562 || ('j' <= (c) && (c) <= 'r') \
26563 || ('s' <= (c) && (c) <= 'z'))
26564 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26567 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26572 for (i = 0; i < 256; i++)
26573 if (XOR (islower (i), ISLOWER (i))
26574 || toupper (i) != TOUPPER (i))
26579 rm -f conftest$ac_exeext
26580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26581 (eval $ac_link) 2>&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586 (eval $ac_try) 2>&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); }; }; then
26592 echo "$as_me: program exited with status $ac_status" >&5
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26596 ( exit $ac_status )
26597 ac_cv_header_stdc=no
26599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26603 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26604 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26605 if test $ac_cv_header_stdc = yes; then
26607 cat >>confdefs.h <<\_ACEOF
26608 #define STDC_HEADERS 1
26613 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26614 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26615 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26618 cat >conftest.$ac_ext <<_ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h. */
26624 #include <sys/types.h>
26625 #include <sys/wait.h>
26626 #ifndef WEXITSTATUS
26627 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26630 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26638 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26643 rm -f conftest.$ac_objext
26644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26645 (eval $ac_compile) 2>conftest.er1
26647 grep -v '^ *+' conftest.er1 >conftest.err
26649 cat conftest.err >&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } &&
26652 { ac_try='test -z "$ac_c_werror_flag"
26653 || test ! -s conftest.err'
26654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655 (eval $ac_try) 2>&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); }; } &&
26659 { ac_try='test -s conftest.$ac_objext'
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; }; then
26665 ac_cv_header_sys_wait_h=yes
26667 echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26670 ac_cv_header_sys_wait_h=no
26672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26674 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26675 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26676 if test $ac_cv_header_sys_wait_h = yes; then
26678 cat >>confdefs.h <<\_ACEOF
26679 #define HAVE_SYS_WAIT_H 1
26684 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26685 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26686 if test "${ac_cv_header_time+set}" = set; then
26687 echo $ECHO_N "(cached) $ECHO_C" >&6
26689 cat >conftest.$ac_ext <<_ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h. */
26695 #include <sys/types.h>
26696 #include <sys/time.h>
26702 if ((struct tm *) 0)
26708 rm -f conftest.$ac_objext
26709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26710 (eval $ac_compile) 2>conftest.er1
26712 grep -v '^ *+' conftest.er1 >conftest.err
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } &&
26717 { ac_try='test -z "$ac_c_werror_flag"
26718 || test ! -s conftest.err'
26719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26720 (eval $ac_try) 2>&5
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); }; } &&
26724 { ac_try='test -s conftest.$ac_objext'
26725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726 (eval $ac_try) 2>&5
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); }; }; then
26730 ac_cv_header_time=yes
26732 echo "$as_me: failed program was:" >&5
26733 sed 's/^/| /' conftest.$ac_ext >&5
26735 ac_cv_header_time=no
26737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26739 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26740 echo "${ECHO_T}$ac_cv_header_time" >&6
26741 if test $ac_cv_header_time = yes; then
26743 cat >>confdefs.h <<\_ACEOF
26744 #define TIME_WITH_SYS_TIME 1
26756 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26760 echo "$as_me:$LINENO: checking for $ac_header" >&5
26761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26763 echo $ECHO_N "(cached) $ECHO_C" >&6
26765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26768 # Is the header compilable?
26769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26771 cat >conftest.$ac_ext <<_ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h. */
26777 $ac_includes_default
26778 #include <$ac_header>
26780 rm -f conftest.$ac_objext
26781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26782 (eval $ac_compile) 2>conftest.er1
26784 grep -v '^ *+' conftest.er1 >conftest.err
26786 cat conftest.err >&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } &&
26789 { ac_try='test -z "$ac_c_werror_flag"
26790 || test ! -s conftest.err'
26791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792 (eval $ac_try) 2>&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; } &&
26796 { ac_try='test -s conftest.$ac_objext'
26797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798 (eval $ac_try) 2>&5
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); }; }; then
26802 ac_header_compiler=yes
26804 echo "$as_me: failed program was:" >&5
26805 sed 's/^/| /' conftest.$ac_ext >&5
26807 ac_header_compiler=no
26809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26811 echo "${ECHO_T}$ac_header_compiler" >&6
26813 # Is the header present?
26814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26816 cat >conftest.$ac_ext <<_ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26822 #include <$ac_header>
26824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26827 grep -v '^ *+' conftest.er1 >conftest.err
26829 cat conftest.err >&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); } >/dev/null; then
26832 if test -s conftest.err; then
26833 ac_cpp_err=$ac_c_preproc_warn_flag
26834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26841 if test -z "$ac_cpp_err"; then
26842 ac_header_preproc=yes
26844 echo "$as_me: failed program was:" >&5
26845 sed 's/^/| /' conftest.$ac_ext >&5
26847 ac_header_preproc=no
26849 rm -f conftest.err conftest.$ac_ext
26850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26851 echo "${ECHO_T}$ac_header_preproc" >&6
26853 # So? What about this header?
26854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26860 ac_header_preproc=yes
26863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26877 ## ----------------------------------- ##
26878 ## Report this to llvmbugs@cs.uiuc.edu ##
26879 ## ----------------------------------- ##
26882 sed "s/^/$as_me: WARNING: /" >&2
26885 echo "$as_me:$LINENO: checking for $ac_header" >&5
26886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26888 echo $ECHO_N "(cached) $ECHO_C" >&6
26890 eval "$as_ac_Header=\$ac_header_preproc"
26892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26897 cat >>confdefs.h <<_ACEOF
26898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26911 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
26913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26915 echo "$as_me:$LINENO: checking for $ac_header" >&5
26916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26918 echo $ECHO_N "(cached) $ECHO_C" >&6
26920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26923 # Is the header compilable?
26924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26926 cat >conftest.$ac_ext <<_ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h. */
26932 $ac_includes_default
26933 #include <$ac_header>
26935 rm -f conftest.$ac_objext
26936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26937 (eval $ac_compile) 2>conftest.er1
26939 grep -v '^ *+' conftest.er1 >conftest.err
26941 cat conftest.err >&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); } &&
26944 { ac_try='test -z "$ac_c_werror_flag"
26945 || test ! -s conftest.err'
26946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947 (eval $ac_try) 2>&5
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; } &&
26951 { ac_try='test -s conftest.$ac_objext'
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; }; then
26957 ac_header_compiler=yes
26959 echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26962 ac_header_compiler=no
26964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26966 echo "${ECHO_T}$ac_header_compiler" >&6
26968 # Is the header present?
26969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26971 cat >conftest.$ac_ext <<_ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26977 #include <$ac_header>
26979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26982 grep -v '^ *+' conftest.er1 >conftest.err
26984 cat conftest.err >&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); } >/dev/null; then
26987 if test -s conftest.err; then
26988 ac_cpp_err=$ac_c_preproc_warn_flag
26989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26996 if test -z "$ac_cpp_err"; then
26997 ac_header_preproc=yes
26999 echo "$as_me: failed program was:" >&5
27000 sed 's/^/| /' conftest.$ac_ext >&5
27002 ac_header_preproc=no
27004 rm -f conftest.err conftest.$ac_ext
27005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27006 echo "${ECHO_T}$ac_header_preproc" >&6
27008 # So? What about this header?
27009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27015 ac_header_preproc=yes
27018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27032 ## ----------------------------------- ##
27033 ## Report this to llvmbugs@cs.uiuc.edu ##
27034 ## ----------------------------------- ##
27037 sed "s/^/$as_me: WARNING: /" >&2
27040 echo "$as_me:$LINENO: checking for $ac_header" >&5
27041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27043 echo $ECHO_N "(cached) $ECHO_C" >&6
27045 eval "$as_ac_Header=\$ac_header_preproc"
27047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27052 cat >>confdefs.h <<_ACEOF
27053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27065 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27069 echo "$as_me:$LINENO: checking for $ac_header" >&5
27070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27077 # Is the header compilable?
27078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27080 cat >conftest.$ac_ext <<_ACEOF
27083 cat confdefs.h >>conftest.$ac_ext
27084 cat >>conftest.$ac_ext <<_ACEOF
27085 /* end confdefs.h. */
27086 $ac_includes_default
27087 #include <$ac_header>
27089 rm -f conftest.$ac_objext
27090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27091 (eval $ac_compile) 2>conftest.er1
27093 grep -v '^ *+' conftest.er1 >conftest.err
27095 cat conftest.err >&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } &&
27098 { ac_try='test -z "$ac_c_werror_flag"
27099 || test ! -s conftest.err'
27100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101 (eval $ac_try) 2>&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); }; } &&
27105 { ac_try='test -s conftest.$ac_objext'
27106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107 (eval $ac_try) 2>&5
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); }; }; then
27111 ac_header_compiler=yes
27113 echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27116 ac_header_compiler=no
27118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27120 echo "${ECHO_T}$ac_header_compiler" >&6
27122 # Is the header present?
27123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27125 cat >conftest.$ac_ext <<_ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h. */
27131 #include <$ac_header>
27133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27136 grep -v '^ *+' conftest.er1 >conftest.err
27138 cat conftest.err >&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } >/dev/null; then
27141 if test -s conftest.err; then
27142 ac_cpp_err=$ac_c_preproc_warn_flag
27143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27150 if test -z "$ac_cpp_err"; then
27151 ac_header_preproc=yes
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_header_preproc=no
27158 rm -f conftest.err conftest.$ac_ext
27159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27160 echo "${ECHO_T}$ac_header_preproc" >&6
27162 # So? What about this header?
27163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27169 ac_header_preproc=yes
27172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27186 ## ----------------------------------- ##
27187 ## Report this to llvmbugs@cs.uiuc.edu ##
27188 ## ----------------------------------- ##
27191 sed "s/^/$as_me: WARNING: /" >&2
27194 echo "$as_me:$LINENO: checking for $ac_header" >&5
27195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27197 echo $ECHO_N "(cached) $ECHO_C" >&6
27199 eval "$as_ac_Header=\$ac_header_preproc"
27201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27206 cat >>confdefs.h <<_ACEOF
27207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27216 for ac_header in sys/types.h malloc/malloc.h
27218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27220 echo "$as_me:$LINENO: checking for $ac_header" >&5
27221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27223 echo $ECHO_N "(cached) $ECHO_C" >&6
27225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27228 # Is the header compilable?
27229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27231 cat >conftest.$ac_ext <<_ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h. */
27237 $ac_includes_default
27238 #include <$ac_header>
27240 rm -f conftest.$ac_objext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27242 (eval $ac_compile) 2>conftest.er1
27244 grep -v '^ *+' conftest.er1 >conftest.err
27246 cat conftest.err >&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
27249 { ac_try='test -z "$ac_c_werror_flag"
27250 || test ! -s conftest.err'
27251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252 (eval $ac_try) 2>&5
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; } &&
27256 { ac_try='test -s conftest.$ac_objext'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 ac_header_compiler=yes
27264 echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 ac_header_compiler=no
27269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27271 echo "${ECHO_T}$ac_header_compiler" >&6
27273 # Is the header present?
27274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27276 cat >conftest.$ac_ext <<_ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h. */
27282 #include <$ac_header>
27284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27287 grep -v '^ *+' conftest.er1 >conftest.err
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } >/dev/null; then
27292 if test -s conftest.err; then
27293 ac_cpp_err=$ac_c_preproc_warn_flag
27294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27301 if test -z "$ac_cpp_err"; then
27302 ac_header_preproc=yes
27304 echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27307 ac_header_preproc=no
27309 rm -f conftest.err conftest.$ac_ext
27310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27311 echo "${ECHO_T}$ac_header_preproc" >&6
27313 # So? What about this header?
27314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27320 ac_header_preproc=yes
27323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27337 ## ----------------------------------- ##
27338 ## Report this to llvmbugs@cs.uiuc.edu ##
27339 ## ----------------------------------- ##
27342 sed "s/^/$as_me: WARNING: /" >&2
27345 echo "$as_me:$LINENO: checking for $ac_header" >&5
27346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27350 eval "$as_ac_Header=\$ac_header_preproc"
27352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27357 cat >>confdefs.h <<_ACEOF
27358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27365 if test "$ENABLE_THREADS" -eq 1 ; then
27367 for ac_header in pthread.h
27369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27371 echo "$as_me:$LINENO: checking for $ac_header" >&5
27372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27374 echo $ECHO_N "(cached) $ECHO_C" >&6
27376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27379 # Is the header compilable?
27380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27382 cat >conftest.$ac_ext <<_ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 $ac_includes_default
27389 #include <$ac_header>
27391 rm -f conftest.$ac_objext
27392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27393 (eval $ac_compile) 2>conftest.er1
27395 grep -v '^ *+' conftest.er1 >conftest.err
27397 cat conftest.err >&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); } &&
27400 { ac_try='test -z "$ac_c_werror_flag"
27401 || test ! -s conftest.err'
27402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403 (eval $ac_try) 2>&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; } &&
27407 { ac_try='test -s conftest.$ac_objext'
27408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; }; then
27413 ac_header_compiler=yes
27415 echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27418 ac_header_compiler=no
27420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27422 echo "${ECHO_T}$ac_header_compiler" >&6
27424 # Is the header present?
27425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27427 cat >conftest.$ac_ext <<_ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27433 #include <$ac_header>
27435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27438 grep -v '^ *+' conftest.er1 >conftest.err
27440 cat conftest.err >&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); } >/dev/null; then
27443 if test -s conftest.err; then
27444 ac_cpp_err=$ac_c_preproc_warn_flag
27445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27452 if test -z "$ac_cpp_err"; then
27453 ac_header_preproc=yes
27455 echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27458 ac_header_preproc=no
27460 rm -f conftest.err conftest.$ac_ext
27461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27462 echo "${ECHO_T}$ac_header_preproc" >&6
27464 # So? What about this header?
27465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27471 ac_header_preproc=yes
27474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27488 ## ----------------------------------- ##
27489 ## Report this to llvmbugs@cs.uiuc.edu ##
27490 ## ----------------------------------- ##
27493 sed "s/^/$as_me: WARNING: /" >&2
27496 echo "$as_me:$LINENO: checking for $ac_header" >&5
27497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27501 eval "$as_ac_Header=\$ac_header_preproc"
27503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27508 cat >>confdefs.h <<_ACEOF
27509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27519 echo "$as_me:$LINENO: checking for pid_t" >&5
27520 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27521 if test "${ac_cv_type_pid_t+set}" = set; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 cat >conftest.$ac_ext <<_ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h. */
27530 $ac_includes_default
27536 if (sizeof (pid_t))
27542 rm -f conftest.$ac_objext
27543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27544 (eval $ac_compile) 2>conftest.er1
27546 grep -v '^ *+' conftest.er1 >conftest.err
27548 cat conftest.err >&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } &&
27551 { ac_try='test -z "$ac_c_werror_flag"
27552 || test ! -s conftest.err'
27553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554 (eval $ac_try) 2>&5
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); }; } &&
27558 { ac_try='test -s conftest.$ac_objext'
27559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27560 (eval $ac_try) 2>&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); }; }; then
27564 ac_cv_type_pid_t=yes
27566 echo "$as_me: failed program was:" >&5
27567 sed 's/^/| /' conftest.$ac_ext >&5
27569 ac_cv_type_pid_t=no
27571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27573 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27574 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27575 if test $ac_cv_type_pid_t = yes; then
27579 cat >>confdefs.h <<_ACEOF
27585 echo "$as_me:$LINENO: checking for size_t" >&5
27586 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27587 if test "${ac_cv_type_size_t+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27590 cat >conftest.$ac_ext <<_ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h. */
27596 $ac_includes_default
27602 if (sizeof (size_t))
27608 rm -f conftest.$ac_objext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27610 (eval $ac_compile) 2>conftest.er1
27612 grep -v '^ *+' conftest.er1 >conftest.err
27614 cat conftest.err >&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
27617 { ac_try='test -z "$ac_c_werror_flag"
27618 || test ! -s conftest.err'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; } &&
27624 { ac_try='test -s conftest.$ac_objext'
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; }; then
27630 ac_cv_type_size_t=yes
27632 echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27635 ac_cv_type_size_t=no
27637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27639 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27640 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27641 if test $ac_cv_type_size_t = yes; then
27645 cat >>confdefs.h <<_ACEOF
27646 #define size_t unsigned
27651 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27652 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27653 if test "${ac_cv_type_signal+set}" = set; then
27654 echo $ECHO_N "(cached) $ECHO_C" >&6
27656 cat >conftest.$ac_ext <<_ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27662 #include <sys/types.h>
27663 #include <signal.h>
27668 extern "C" void (*signal (int, void (*)(int)))(int);
27670 void (*signal ()) ();
27681 rm -f conftest.$ac_objext
27682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27683 (eval $ac_compile) 2>conftest.er1
27685 grep -v '^ *+' conftest.er1 >conftest.err
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
27690 { ac_try='test -z "$ac_c_werror_flag"
27691 || test ! -s conftest.err'
27692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693 (eval $ac_try) 2>&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; } &&
27697 { ac_try='test -s conftest.$ac_objext'
27698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699 (eval $ac_try) 2>&5
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); }; }; then
27703 ac_cv_type_signal=void
27705 echo "$as_me: failed program was:" >&5
27706 sed 's/^/| /' conftest.$ac_ext >&5
27708 ac_cv_type_signal=int
27710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27712 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27713 echo "${ECHO_T}$ac_cv_type_signal" >&6
27715 cat >>confdefs.h <<_ACEOF
27716 #define RETSIGTYPE $ac_cv_type_signal
27720 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27721 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27722 if test "${ac_cv_struct_tm+set}" = set; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27725 cat >conftest.$ac_ext <<_ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h. */
27731 #include <sys/types.h>
27737 struct tm *tp; tp->tm_sec;
27742 rm -f conftest.$ac_objext
27743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27744 (eval $ac_compile) 2>conftest.er1
27746 grep -v '^ *+' conftest.er1 >conftest.err
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } &&
27751 { ac_try='test -z "$ac_c_werror_flag"
27752 || test ! -s conftest.err'
27753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754 (eval $ac_try) 2>&5
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); }; } &&
27758 { ac_try='test -s conftest.$ac_objext'
27759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760 (eval $ac_try) 2>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
27764 ac_cv_struct_tm=time.h
27766 echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27769 ac_cv_struct_tm=sys/time.h
27771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27773 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27774 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27775 if test $ac_cv_struct_tm = sys/time.h; then
27777 cat >>confdefs.h <<\_ACEOF
27778 #define TM_IN_SYS_TIME 1
27783 echo "$as_me:$LINENO: checking for int64_t" >&5
27784 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27785 if test "${ac_cv_type_int64_t+set}" = set; then
27786 echo $ECHO_N "(cached) $ECHO_C" >&6
27788 cat >conftest.$ac_ext <<_ACEOF
27791 cat confdefs.h >>conftest.$ac_ext
27792 cat >>conftest.$ac_ext <<_ACEOF
27793 /* end confdefs.h. */
27794 $ac_includes_default
27800 if (sizeof (int64_t))
27806 rm -f conftest.$ac_objext
27807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27808 (eval $ac_compile) 2>conftest.er1
27810 grep -v '^ *+' conftest.er1 >conftest.err
27812 cat conftest.err >&5
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } &&
27815 { ac_try='test -z "$ac_c_werror_flag"
27816 || test ! -s conftest.err'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; } &&
27822 { ac_try='test -s conftest.$ac_objext'
27823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; }; then
27828 ac_cv_type_int64_t=yes
27830 echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27833 ac_cv_type_int64_t=no
27835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27837 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27838 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27839 if test $ac_cv_type_int64_t = yes; then
27841 cat >>confdefs.h <<_ACEOF
27842 #define HAVE_INT64_T 1
27847 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27848 echo "$as_me: error: Type int64_t required but not found" >&2;}
27849 { (exit 1); exit 1; }; }
27852 echo "$as_me:$LINENO: checking for uint64_t" >&5
27853 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27854 if test "${ac_cv_type_uint64_t+set}" = set; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27857 cat >conftest.$ac_ext <<_ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h. */
27863 $ac_includes_default
27867 if ((uint64_t *) 0)
27869 if (sizeof (uint64_t))
27875 rm -f conftest.$ac_objext
27876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27877 (eval $ac_compile) 2>conftest.er1
27879 grep -v '^ *+' conftest.er1 >conftest.err
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
27884 { ac_try='test -z "$ac_c_werror_flag"
27885 || test ! -s conftest.err'
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; } &&
27891 { ac_try='test -s conftest.$ac_objext'
27892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
27897 ac_cv_type_uint64_t=yes
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27902 ac_cv_type_uint64_t=no
27904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27906 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27907 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27908 if test $ac_cv_type_uint64_t = yes; then
27910 cat >>confdefs.h <<_ACEOF
27911 #define HAVE_UINT64_T 1
27916 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27917 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27918 if test "${ac_cv_type_u_int64_t+set}" = set; then
27919 echo $ECHO_N "(cached) $ECHO_C" >&6
27921 cat >conftest.$ac_ext <<_ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h. */
27927 $ac_includes_default
27931 if ((u_int64_t *) 0)
27933 if (sizeof (u_int64_t))
27939 rm -f conftest.$ac_objext
27940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27941 (eval $ac_compile) 2>conftest.er1
27943 grep -v '^ *+' conftest.er1 >conftest.err
27945 cat conftest.err >&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } &&
27948 { ac_try='test -z "$ac_c_werror_flag"
27949 || test ! -s conftest.err'
27950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951 (eval $ac_try) 2>&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; } &&
27955 { ac_try='test -s conftest.$ac_objext'
27956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; }; then
27961 ac_cv_type_u_int64_t=yes
27963 echo "$as_me: failed program was:" >&5
27964 sed 's/^/| /' conftest.$ac_ext >&5
27966 ac_cv_type_u_int64_t=no
27968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27970 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27971 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27972 if test $ac_cv_type_u_int64_t = yes; then
27974 cat >>confdefs.h <<_ACEOF
27975 #define HAVE_U_INT64_T 1
27980 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27981 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27982 { (exit 1); exit 1; }; }
27996 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27999 echo "$as_me:$LINENO: checking for $ac_func" >&5
28000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28001 if eval "test \"\${$as_ac_var+set}\" = set"; then
28002 echo $ECHO_N "(cached) $ECHO_C" >&6
28004 cat >conftest.$ac_ext <<_ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h. */
28010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28012 #define $ac_func innocuous_$ac_func
28014 /* System header to define __stub macros and hopefully few prototypes,
28015 which can conflict with char $ac_func (); below.
28016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28017 <limits.h> exists even on freestanding compilers. */
28020 # include <limits.h>
28022 # include <assert.h>
28027 /* Override any gcc2 internal prototype to avoid an error. */
28032 /* We use char because int might match the return type of a gcc2
28033 builtin and then its argument prototype would still apply. */
28035 /* The GNU C library defines this for functions which it implements
28036 to always fail with ENOSYS. Some functions are actually named
28037 something starting with __ and the normal name is an alias. */
28038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28041 char (*f) () = $ac_func;
28050 return f != $ac_func;
28055 rm -f conftest.$ac_objext conftest$ac_exeext
28056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28057 (eval $ac_link) 2>conftest.er1
28059 grep -v '^ *+' conftest.er1 >conftest.err
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } &&
28064 { ac_try='test -z "$ac_c_werror_flag"
28065 || test ! -s conftest.err'
28066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067 (eval $ac_try) 2>&5
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; } &&
28071 { ac_try='test -s conftest$ac_exeext'
28072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073 (eval $ac_try) 2>&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; }; then
28077 eval "$as_ac_var=yes"
28079 echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28082 eval "$as_ac_var=no"
28084 rm -f conftest.err conftest.$ac_objext \
28085 conftest$ac_exeext conftest.$ac_ext
28087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28089 if test `eval echo '${'$as_ac_var'}'` = yes; then
28090 cat >>confdefs.h <<_ACEOF
28091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28103 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28106 echo "$as_me:$LINENO: checking for $ac_func" >&5
28107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28108 if eval "test \"\${$as_ac_var+set}\" = set"; then
28109 echo $ECHO_N "(cached) $ECHO_C" >&6
28111 cat >conftest.$ac_ext <<_ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h. */
28117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28119 #define $ac_func innocuous_$ac_func
28121 /* System header to define __stub macros and hopefully few prototypes,
28122 which can conflict with char $ac_func (); below.
28123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28124 <limits.h> exists even on freestanding compilers. */
28127 # include <limits.h>
28129 # include <assert.h>
28134 /* Override any gcc2 internal prototype to avoid an error. */
28139 /* We use char because int might match the return type of a gcc2
28140 builtin and then its argument prototype would still apply. */
28142 /* The GNU C library defines this for functions which it implements
28143 to always fail with ENOSYS. Some functions are actually named
28144 something starting with __ and the normal name is an alias. */
28145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28148 char (*f) () = $ac_func;
28157 return f != $ac_func;
28162 rm -f conftest.$ac_objext conftest$ac_exeext
28163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28164 (eval $ac_link) 2>conftest.er1
28166 grep -v '^ *+' conftest.er1 >conftest.err
28168 cat conftest.err >&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } &&
28171 { ac_try='test -z "$ac_c_werror_flag"
28172 || test ! -s conftest.err'
28173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174 (eval $ac_try) 2>&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; } &&
28178 { ac_try='test -s conftest$ac_exeext'
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28184 eval "$as_ac_var=yes"
28186 echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28189 eval "$as_ac_var=no"
28191 rm -f conftest.err conftest.$ac_objext \
28192 conftest$ac_exeext conftest.$ac_ext
28194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28196 if test `eval echo '${'$as_ac_var'}'` = yes; then
28197 cat >>confdefs.h <<_ACEOF
28198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28211 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28214 echo "$as_me:$LINENO: checking for $ac_func" >&5
28215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28216 if eval "test \"\${$as_ac_var+set}\" = set"; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28219 cat >conftest.$ac_ext <<_ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h. */
28225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28227 #define $ac_func innocuous_$ac_func
28229 /* System header to define __stub macros and hopefully few prototypes,
28230 which can conflict with char $ac_func (); below.
28231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28232 <limits.h> exists even on freestanding compilers. */
28235 # include <limits.h>
28237 # include <assert.h>
28242 /* Override any gcc2 internal prototype to avoid an error. */
28247 /* We use char because int might match the return type of a gcc2
28248 builtin and then its argument prototype would still apply. */
28250 /* The GNU C library defines this for functions which it implements
28251 to always fail with ENOSYS. Some functions are actually named
28252 something starting with __ and the normal name is an alias. */
28253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28256 char (*f) () = $ac_func;
28265 return f != $ac_func;
28270 rm -f conftest.$ac_objext conftest$ac_exeext
28271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28272 (eval $ac_link) 2>conftest.er1
28274 grep -v '^ *+' conftest.er1 >conftest.err
28276 cat conftest.err >&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); } &&
28279 { ac_try='test -z "$ac_c_werror_flag"
28280 || test ! -s conftest.err'
28281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282 (eval $ac_try) 2>&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; } &&
28286 { ac_try='test -s conftest$ac_exeext'
28287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28288 (eval $ac_try) 2>&5
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
28292 eval "$as_ac_var=yes"
28294 echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28297 eval "$as_ac_var=no"
28299 rm -f conftest.err conftest.$ac_objext \
28300 conftest$ac_exeext conftest.$ac_ext
28302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28304 if test `eval echo '${'$as_ac_var'}'` = yes; then
28305 cat >>confdefs.h <<_ACEOF
28306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28316 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28319 echo "$as_me:$LINENO: checking for $ac_func" >&5
28320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28321 if eval "test \"\${$as_ac_var+set}\" = set"; then
28322 echo $ECHO_N "(cached) $ECHO_C" >&6
28324 cat >conftest.$ac_ext <<_ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h. */
28330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28332 #define $ac_func innocuous_$ac_func
28334 /* System header to define __stub macros and hopefully few prototypes,
28335 which can conflict with char $ac_func (); below.
28336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28337 <limits.h> exists even on freestanding compilers. */
28340 # include <limits.h>
28342 # include <assert.h>
28347 /* Override any gcc2 internal prototype to avoid an error. */
28352 /* We use char because int might match the return type of a gcc2
28353 builtin and then its argument prototype would still apply. */
28355 /* The GNU C library defines this for functions which it implements
28356 to always fail with ENOSYS. Some functions are actually named
28357 something starting with __ and the normal name is an alias. */
28358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28361 char (*f) () = $ac_func;
28370 return f != $ac_func;
28375 rm -f conftest.$ac_objext conftest$ac_exeext
28376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28377 (eval $ac_link) 2>conftest.er1
28379 grep -v '^ *+' conftest.er1 >conftest.err
28381 cat conftest.err >&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } &&
28384 { ac_try='test -z "$ac_c_werror_flag"
28385 || test ! -s conftest.err'
28386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387 (eval $ac_try) 2>&5
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; } &&
28391 { ac_try='test -s conftest$ac_exeext'
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; }; then
28397 eval "$as_ac_var=yes"
28399 echo "$as_me: failed program was:" >&5
28400 sed 's/^/| /' conftest.$ac_ext >&5
28402 eval "$as_ac_var=no"
28404 rm -f conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
28407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28409 if test `eval echo '${'$as_ac_var'}'` = yes; then
28410 cat >>confdefs.h <<_ACEOF
28411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28423 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28426 echo "$as_me:$LINENO: checking for $ac_func" >&5
28427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28428 if eval "test \"\${$as_ac_var+set}\" = set"; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
28431 cat >conftest.$ac_ext <<_ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h. */
28437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28439 #define $ac_func innocuous_$ac_func
28441 /* System header to define __stub macros and hopefully few prototypes,
28442 which can conflict with char $ac_func (); below.
28443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28444 <limits.h> exists even on freestanding compilers. */
28447 # include <limits.h>
28449 # include <assert.h>
28454 /* Override any gcc2 internal prototype to avoid an error. */
28459 /* We use char because int might match the return type of a gcc2
28460 builtin and then its argument prototype would still apply. */
28462 /* The GNU C library defines this for functions which it implements
28463 to always fail with ENOSYS. Some functions are actually named
28464 something starting with __ and the normal name is an alias. */
28465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28468 char (*f) () = $ac_func;
28477 return f != $ac_func;
28482 rm -f conftest.$ac_objext conftest$ac_exeext
28483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28484 (eval $ac_link) 2>conftest.er1
28486 grep -v '^ *+' conftest.er1 >conftest.err
28488 cat conftest.err >&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); } &&
28491 { ac_try='test -z "$ac_c_werror_flag"
28492 || test ! -s conftest.err'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; } &&
28498 { ac_try='test -s conftest$ac_exeext'
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28504 eval "$as_ac_var=yes"
28506 echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28509 eval "$as_ac_var=no"
28511 rm -f conftest.err conftest.$ac_objext \
28512 conftest$ac_exeext conftest.$ac_ext
28514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28516 if test `eval echo '${'$as_ac_var'}'` = yes; then
28517 cat >>confdefs.h <<_ACEOF
28518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28524 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28525 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28526 if test "${llvm_cv_c_printf_a+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28530 ac_cpp='$CPP $CPPFLAGS'
28531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28535 if test "$cross_compiling" = yes; then
28536 llvmac_cv_c_printf_a=no
28538 cat >conftest.$ac_ext <<_ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h. */
28547 #include <stdlib.h>
28553 volatile double A, B;
28557 sprintf(Buffer, "%a", A);
28561 if (A != 0x1.999999999999ap-4)
28568 rm -f conftest$ac_exeext
28569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28570 (eval $ac_link) 2>&5
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
28579 llvm_cv_c_printf_a=yes
28581 echo "$as_me: program exited with status $ac_status" >&5
28582 echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28585 ( exit $ac_status )
28586 llvmac_cv_c_printf_a=no
28588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28591 ac_cpp='$CPP $CPPFLAGS'
28592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28597 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28598 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28599 if test "$llvm_cv_c_printf_a" = "yes"; then
28601 cat >>confdefs.h <<\_ACEOF
28602 #define HAVE_PRINTF_A 1
28607 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28608 # for constant arguments. Useless!
28609 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28610 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28611 if test "${ac_cv_working_alloca_h+set}" = set; then
28612 echo $ECHO_N "(cached) $ECHO_C" >&6
28614 cat >conftest.$ac_ext <<_ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h. */
28620 #include <alloca.h>
28624 char *p = (char *) alloca (2 * sizeof (int));
28629 rm -f conftest.$ac_objext conftest$ac_exeext
28630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28631 (eval $ac_link) 2>conftest.er1
28633 grep -v '^ *+' conftest.er1 >conftest.err
28635 cat conftest.err >&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } &&
28638 { ac_try='test -z "$ac_c_werror_flag"
28639 || test ! -s conftest.err'
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; } &&
28645 { ac_try='test -s conftest$ac_exeext'
28646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647 (eval $ac_try) 2>&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
28651 ac_cv_working_alloca_h=yes
28653 echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28656 ac_cv_working_alloca_h=no
28658 rm -f conftest.err conftest.$ac_objext \
28659 conftest$ac_exeext conftest.$ac_ext
28661 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28662 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28663 if test $ac_cv_working_alloca_h = yes; then
28665 cat >>confdefs.h <<\_ACEOF
28666 #define HAVE_ALLOCA_H 1
28671 echo "$as_me:$LINENO: checking for alloca" >&5
28672 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28673 if test "${ac_cv_func_alloca_works+set}" = set; then
28674 echo $ECHO_N "(cached) $ECHO_C" >&6
28676 cat >conftest.$ac_ext <<_ACEOF
28679 cat confdefs.h >>conftest.$ac_ext
28680 cat >>conftest.$ac_ext <<_ACEOF
28681 /* end confdefs.h. */
28683 # define alloca __builtin_alloca
28686 # include <malloc.h>
28687 # define alloca _alloca
28690 # include <alloca.h>
28695 # ifndef alloca /* predefined by HP cc +Olibcalls */
28706 char *p = (char *) alloca (1);
28711 rm -f conftest.$ac_objext conftest$ac_exeext
28712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28713 (eval $ac_link) 2>conftest.er1
28715 grep -v '^ *+' conftest.er1 >conftest.err
28717 cat conftest.err >&5
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); } &&
28720 { ac_try='test -z "$ac_c_werror_flag"
28721 || test ! -s conftest.err'
28722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723 (eval $ac_try) 2>&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; } &&
28727 { ac_try='test -s conftest$ac_exeext'
28728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729 (eval $ac_try) 2>&5
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 ac_cv_func_alloca_works=yes
28735 echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28738 ac_cv_func_alloca_works=no
28740 rm -f conftest.err conftest.$ac_objext \
28741 conftest$ac_exeext conftest.$ac_ext
28743 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28744 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28746 if test $ac_cv_func_alloca_works = yes; then
28748 cat >>confdefs.h <<\_ACEOF
28749 #define HAVE_ALLOCA 1
28753 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28754 # that cause trouble. Some versions do not even contain alloca or
28755 # contain a buggy version. If you still want to use their alloca,
28756 # use ar to extract alloca.o from them instead of compiling alloca.c.
28758 ALLOCA=alloca.$ac_objext
28760 cat >>confdefs.h <<\_ACEOF
28765 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28766 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28767 if test "${ac_cv_os_cray+set}" = set; then
28768 echo $ECHO_N "(cached) $ECHO_C" >&6
28770 cat >conftest.$ac_ext <<_ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h. */
28776 #if defined(CRAY) && ! defined(CRAY2)
28783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28784 $EGREP "webecray" >/dev/null 2>&1; then
28792 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28793 echo "${ECHO_T}$ac_cv_os_cray" >&6
28794 if test $ac_cv_os_cray = yes; then
28795 for ac_func in _getb67 GETB67 getb67; do
28796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28797 echo "$as_me:$LINENO: checking for $ac_func" >&5
28798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28799 if eval "test \"\${$as_ac_var+set}\" = set"; then
28800 echo $ECHO_N "(cached) $ECHO_C" >&6
28802 cat >conftest.$ac_ext <<_ACEOF
28805 cat confdefs.h >>conftest.$ac_ext
28806 cat >>conftest.$ac_ext <<_ACEOF
28807 /* end confdefs.h. */
28808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28810 #define $ac_func innocuous_$ac_func
28812 /* System header to define __stub macros and hopefully few prototypes,
28813 which can conflict with char $ac_func (); below.
28814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28815 <limits.h> exists even on freestanding compilers. */
28818 # include <limits.h>
28820 # include <assert.h>
28825 /* Override any gcc2 internal prototype to avoid an error. */
28830 /* We use char because int might match the return type of a gcc2
28831 builtin and then its argument prototype would still apply. */
28833 /* The GNU C library defines this for functions which it implements
28834 to always fail with ENOSYS. Some functions are actually named
28835 something starting with __ and the normal name is an alias. */
28836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28839 char (*f) () = $ac_func;
28848 return f != $ac_func;
28853 rm -f conftest.$ac_objext conftest$ac_exeext
28854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28855 (eval $ac_link) 2>conftest.er1
28857 grep -v '^ *+' conftest.er1 >conftest.err
28859 cat conftest.err >&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
28862 { ac_try='test -z "$ac_c_werror_flag"
28863 || test ! -s conftest.err'
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; } &&
28869 { ac_try='test -s conftest$ac_exeext'
28870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871 (eval $ac_try) 2>&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; }; then
28875 eval "$as_ac_var=yes"
28877 echo "$as_me: failed program was:" >&5
28878 sed 's/^/| /' conftest.$ac_ext >&5
28880 eval "$as_ac_var=no"
28882 rm -f conftest.err conftest.$ac_objext \
28883 conftest$ac_exeext conftest.$ac_ext
28885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28887 if test `eval echo '${'$as_ac_var'}'` = yes; then
28889 cat >>confdefs.h <<_ACEOF
28890 #define CRAY_STACKSEG_END $ac_func
28899 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28900 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28901 if test "${ac_cv_c_stack_direction+set}" = set; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28904 if test "$cross_compiling" = yes; then
28905 ac_cv_c_stack_direction=0
28907 cat >conftest.$ac_ext <<_ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h. */
28914 find_stack_direction ()
28916 static char *addr = 0;
28921 return find_stack_direction ();
28924 return (&dummy > addr) ? 1 : -1;
28930 exit (find_stack_direction () < 0);
28933 rm -f conftest$ac_exeext
28934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28935 (eval $ac_link) 2>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; }; then
28944 ac_cv_c_stack_direction=1
28946 echo "$as_me: program exited with status $ac_status" >&5
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28950 ( exit $ac_status )
28951 ac_cv_c_stack_direction=-1
28953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28956 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28957 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28959 cat >>confdefs.h <<_ACEOF
28960 #define STACK_DIRECTION $ac_cv_c_stack_direction
28967 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28968 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28969 if test "${ac_cv_func_rand48+set}" = set; then
28970 echo $ECHO_N "(cached) $ECHO_C" >&6
28973 ac_cpp='$CXXCPP $CPPFLAGS'
28974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28978 cat >conftest.$ac_ext <<_ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h. */
28984 #include <stdlib.h>
28988 srand48(0);lrand48();drand48();
28993 rm -f conftest.$ac_objext
28994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28995 (eval $ac_compile) 2>conftest.er1
28997 grep -v '^ *+' conftest.er1 >conftest.err
28999 cat conftest.err >&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } &&
29002 { ac_try='test -z "$ac_cxx_werror_flag"
29003 || test ! -s conftest.err'
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; } &&
29009 { ac_try='test -s conftest.$ac_objext'
29010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011 (eval $ac_try) 2>&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 ac_cv_func_rand48=yes
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 ac_cv_func_rand48=no
29022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29024 ac_cpp='$CPP $CPPFLAGS'
29025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29030 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29031 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29033 if test "$ac_cv_func_rand48" = "yes" ; then
29035 cat >>confdefs.h <<\_ACEOF
29036 #define HAVE_RAND48 1
29042 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29043 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29044 if test "${ac_cv_cxx_namespaces+set}" = set; then
29045 echo $ECHO_N "(cached) $ECHO_C" >&6
29048 ac_cpp='$CXXCPP $CPPFLAGS'
29049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29053 cat >conftest.$ac_ext <<_ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29059 namespace Outer { namespace Inner { int i = 0; }}
29063 using namespace Outer::Inner; return i;
29068 rm -f conftest.$ac_objext
29069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29070 (eval $ac_compile) 2>conftest.er1
29072 grep -v '^ *+' conftest.er1 >conftest.err
29074 cat conftest.err >&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); } &&
29077 { ac_try='test -z "$ac_cxx_werror_flag"
29078 || test ! -s conftest.err'
29079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29080 (eval $ac_try) 2>&5
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); }; } &&
29084 { ac_try='test -s conftest.$ac_objext'
29085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29086 (eval $ac_try) 2>&5
29088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089 (exit $ac_status); }; }; then
29090 ac_cv_cxx_namespaces=yes
29092 echo "$as_me: failed program was:" >&5
29093 sed 's/^/| /' conftest.$ac_ext >&5
29095 ac_cv_cxx_namespaces=no
29097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29099 ac_cpp='$CPP $CPPFLAGS'
29100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29106 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29107 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29108 if test "$ac_cv_cxx_namespaces" = yes; then
29110 cat >>confdefs.h <<\_ACEOF
29111 #define HAVE_NAMESPACES
29116 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29117 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29118 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29119 echo $ECHO_N "(cached) $ECHO_C" >&6
29123 ac_cpp='$CXXCPP $CPPFLAGS'
29124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29128 cat >conftest.$ac_ext <<_ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h. */
29134 #include <ext/hash_map>
29135 #ifdef HAVE_NAMESPACES
29136 using namespace std;
29141 hash_map<int, int> t;
29146 rm -f conftest.$ac_objext
29147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29148 (eval $ac_compile) 2>conftest.er1
29150 grep -v '^ *+' conftest.er1 >conftest.err
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
29155 { ac_try='test -z "$ac_cxx_werror_flag"
29156 || test ! -s conftest.err'
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest.$ac_objext'
29163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168 ac_cv_cxx_have_std_ext_hash_map=yes
29170 echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29173 ac_cv_cxx_have_std_ext_hash_map=no
29175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29177 ac_cpp='$CPP $CPPFLAGS'
29178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29183 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29184 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29185 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29188 cat >>confdefs.h <<\_ACEOF
29189 #define HAVE_STD_EXT_HASH_MAP 1
29194 cat >>confdefs.h <<\_ACEOF
29195 #define HAVE_STD_EXT_HASH_MAP 0
29200 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29201 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29202 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29207 ac_cpp='$CXXCPP $CPPFLAGS'
29208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29212 cat >conftest.$ac_ext <<_ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h. */
29218 #include <ext/hash_map>
29219 #ifdef HAVE_NAMESPACES
29220 using namespace __gnu_cxx;
29225 hash_map<int,int> t;
29230 rm -f conftest.$ac_objext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29232 (eval $ac_compile) 2>conftest.er1
29234 grep -v '^ *+' conftest.er1 >conftest.err
29236 cat conftest.err >&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
29239 { ac_try='test -z "$ac_cxx_werror_flag"
29240 || test ! -s conftest.err'
29241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest.$ac_objext'
29247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248 (eval $ac_try) 2>&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
29252 ac_cv_cxx_have_gnu_ext_hash_map=yes
29254 echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29257 ac_cv_cxx_have_gnu_ext_hash_map=no
29259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29261 ac_cpp='$CPP $CPPFLAGS'
29262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29267 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29268 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29269 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29272 cat >>confdefs.h <<\_ACEOF
29273 #define HAVE_GNU_EXT_HASH_MAP 1
29278 cat >>confdefs.h <<\_ACEOF
29279 #define HAVE_GNU_EXT_HASH_MAP 0
29284 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29285 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29286 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29291 ac_cpp='$CXXCPP $CPPFLAGS'
29292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29296 cat >conftest.$ac_ext <<_ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h. */
29302 #include <hash_map>
29306 hash_map<int,int> t;
29311 rm -f conftest.$ac_objext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29313 (eval $ac_compile) 2>conftest.er1
29315 grep -v '^ *+' conftest.er1 >conftest.err
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
29320 { ac_try='test -z "$ac_cxx_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest.$ac_objext'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ac_cv_cxx_have_global_hash_map=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_cv_cxx_have_global_hash_map=no
29340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29342 ac_cpp='$CPP $CPPFLAGS'
29343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29348 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29349 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29350 if test "$ac_cv_cxx_have_global_hash_map" = yes
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_GLOBAL_HASH_MAP 1
29359 cat >>confdefs.h <<\_ACEOF
29360 #define HAVE_GLOBAL_HASH_MAP 0
29365 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29366 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29367 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29372 ac_cpp='$CXXCPP $CPPFLAGS'
29373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29377 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29383 #include <ext/hash_set>
29384 #ifdef HAVE_NAMESPACES
29385 using namespace std;
29395 rm -f conftest.$ac_objext
29396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29397 (eval $ac_compile) 2>conftest.er1
29399 grep -v '^ *+' conftest.er1 >conftest.err
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
29404 { ac_try='test -z "$ac_cxx_werror_flag"
29405 || test ! -s conftest.err'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; } &&
29411 { ac_try='test -s conftest.$ac_objext'
29412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413 (eval $ac_try) 2>&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
29417 ac_cv_cxx_have_std_ext_hash_set=yes
29419 echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29422 ac_cv_cxx_have_std_ext_hash_set=no
29424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29426 ac_cpp='$CPP $CPPFLAGS'
29427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29432 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29433 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29434 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29437 cat >>confdefs.h <<\_ACEOF
29438 #define HAVE_STD_EXT_HASH_SET 1
29443 cat >>confdefs.h <<\_ACEOF
29444 #define HAVE_STD_EXT_HASH_SET 0
29449 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29450 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29451 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
29456 ac_cpp='$CXXCPP $CPPFLAGS'
29457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29461 cat >conftest.$ac_ext <<_ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29467 #include <ext/hash_set>
29468 #ifdef HAVE_NAMESPACES
29469 using namespace __gnu_cxx;
29479 rm -f conftest.$ac_objext
29480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29481 (eval $ac_compile) 2>conftest.er1
29483 grep -v '^ *+' conftest.er1 >conftest.err
29485 cat conftest.err >&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } &&
29488 { ac_try='test -z "$ac_cxx_werror_flag"
29489 || test ! -s conftest.err'
29490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29491 (eval $ac_try) 2>&5
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); }; } &&
29495 { ac_try='test -s conftest.$ac_objext'
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_cv_cxx_have_gnu_ext_hash_set=yes
29503 echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.$ac_ext >&5
29506 ac_cv_cxx_have_gnu_ext_hash_set=no
29508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29510 ac_cpp='$CPP $CPPFLAGS'
29511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29516 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29517 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29518 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29521 cat >>confdefs.h <<\_ACEOF
29522 #define HAVE_GNU_EXT_HASH_SET 1
29527 cat >>confdefs.h <<\_ACEOF
29528 #define HAVE_GNU_EXT_HASH_SET 0
29533 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29534 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29535 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29536 echo $ECHO_N "(cached) $ECHO_C" >&6
29540 ac_cpp='$CXXCPP $CPPFLAGS'
29541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29545 cat >conftest.$ac_ext <<_ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h. */
29551 #include <hash_set>
29555 hash_set<int> t; return 0;
29560 rm -f conftest.$ac_objext
29561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29562 (eval $ac_compile) 2>conftest.er1
29564 grep -v '^ *+' conftest.er1 >conftest.err
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
29569 { ac_try='test -z "$ac_cxx_werror_flag"
29570 || test ! -s conftest.err'
29571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572 (eval $ac_try) 2>&5
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; } &&
29576 { ac_try='test -s conftest.$ac_objext'
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29582 ac_cv_cxx_have_global_hash_set=yes
29584 echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29587 ac_cv_cxx_have_global_hash_set=no
29589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29591 ac_cpp='$CPP $CPPFLAGS'
29592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29597 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29598 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29599 if test "$ac_cv_cxx_have_global_hash_set" = yes
29602 cat >>confdefs.h <<\_ACEOF
29603 #define HAVE_GLOBAL_HASH_SET 1
29608 cat >>confdefs.h <<\_ACEOF
29609 #define HAVE_GLOBAL_HASH_SET 0
29614 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29615 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29616 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29617 echo $ECHO_N "(cached) $ECHO_C" >&6
29621 ac_cpp='$CXXCPP $CPPFLAGS'
29622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29626 cat >conftest.$ac_ext <<_ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h. */
29632 #include <iterator>
29633 #ifdef HAVE_NAMESPACES
29634 using namespace std;
29639 iterator<int,int,int> t; return 0;
29644 rm -f conftest.$ac_objext
29645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29646 (eval $ac_compile) 2>conftest.er1
29648 grep -v '^ *+' conftest.er1 >conftest.err
29650 cat conftest.err >&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); } &&
29653 { ac_try='test -z "$ac_cxx_werror_flag"
29654 || test ! -s conftest.err'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; } &&
29660 { ac_try='test -s conftest.$ac_objext'
29661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662 (eval $ac_try) 2>&5
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; }; then
29666 ac_cv_cxx_have_std_iterator=yes
29668 echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29671 ac_cv_cxx_have_std_iterator=no
29673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29675 ac_cpp='$CPP $CPPFLAGS'
29676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29682 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29683 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29684 if test "$ac_cv_cxx_have_std_iterator" = yes
29687 cat >>confdefs.h <<\_ACEOF
29688 #define HAVE_STD_ITERATOR 1
29693 cat >>confdefs.h <<\_ACEOF
29694 #define HAVE_STD_ITERATOR 0
29699 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29700 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29701 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29702 echo $ECHO_N "(cached) $ECHO_C" >&6
29706 ac_cpp='$CXXCPP $CPPFLAGS'
29707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29711 cat >conftest.$ac_ext <<_ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h. */
29717 #include <iterator>
29718 #ifdef HAVE_NAMESPACES
29719 using namespace std;
29724 bidirectional_iterator<int,int> t; return 0;
29729 rm -f conftest.$ac_objext
29730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29731 (eval $ac_compile) 2>conftest.er1
29733 grep -v '^ *+' conftest.er1 >conftest.err
29735 cat conftest.err >&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); } &&
29738 { ac_try='test -z "$ac_cxx_werror_flag"
29739 || test ! -s conftest.err'
29740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29741 (eval $ac_try) 2>&5
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; } &&
29745 { ac_try='test -s conftest.$ac_objext'
29746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; }; then
29751 ac_cv_cxx_have_bi_iterator=yes
29753 echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29756 ac_cv_cxx_have_bi_iterator=no
29758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29760 ac_cpp='$CPP $CPPFLAGS'
29761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29767 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29768 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29769 if test "$ac_cv_cxx_have_bi_iterator" = yes
29772 cat >>confdefs.h <<\_ACEOF
29773 #define HAVE_BI_ITERATOR 1
29778 cat >>confdefs.h <<\_ACEOF
29779 #define HAVE_BI_ITERATOR 0
29784 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29785 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29786 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29791 ac_cpp='$CXXCPP $CPPFLAGS'
29792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29796 cat >conftest.$ac_ext <<_ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h. */
29802 #include <iterator>
29803 #ifdef HAVE_NAMESPACES
29804 using namespace std;
29809 forward_iterator<int,int> t; return 0;
29814 rm -f conftest.$ac_objext
29815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29816 (eval $ac_compile) 2>conftest.er1
29818 grep -v '^ *+' conftest.er1 >conftest.err
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } &&
29823 { ac_try='test -z "$ac_cxx_werror_flag"
29824 || test ! -s conftest.err'
29825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29826 (eval $ac_try) 2>&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; } &&
29830 { ac_try='test -s conftest.$ac_objext'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836 ac_cv_cxx_have_fwd_iterator=yes
29838 echo "$as_me: failed program was:" >&5
29839 sed 's/^/| /' conftest.$ac_ext >&5
29841 ac_cv_cxx_have_fwd_iterator=no
29843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29845 ac_cpp='$CPP $CPPFLAGS'
29846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29852 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29853 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29854 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29857 cat >>confdefs.h <<\_ACEOF
29858 #define HAVE_FWD_ITERATOR 1
29863 cat >>confdefs.h <<\_ACEOF
29864 #define HAVE_FWD_ITERATOR 0
29870 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29871 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29872 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29873 echo $ECHO_N "(cached) $ECHO_C" >&6
29876 ac_cpp='$CXXCPP $CPPFLAGS'
29877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29881 cat >conftest.$ac_ext <<_ACEOF
29884 cat confdefs.h >>conftest.$ac_ext
29885 cat >>conftest.$ac_ext <<_ACEOF
29886 /* end confdefs.h. */
29896 rm -f conftest.$ac_objext
29897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29898 (eval $ac_compile) 2>conftest.er1
29900 grep -v '^ *+' conftest.er1 >conftest.err
29902 cat conftest.err >&5
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); } &&
29905 { ac_try='test -z "$ac_cxx_werror_flag"
29906 || test ! -s conftest.err'
29907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29908 (eval $ac_try) 2>&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; } &&
29912 { ac_try='test -s conftest.$ac_objext'
29913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; }; then
29918 ac_cv_func_isnan_in_math_h=yes
29920 echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29923 ac_cv_func_isnan_in_math_h=no
29925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29927 ac_cpp='$CPP $CPPFLAGS'
29928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29933 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29934 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29937 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29939 cat >>confdefs.h <<\_ACEOF
29940 #define HAVE_ISNAN_IN_MATH_H 1
29945 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29946 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29947 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29951 ac_cpp='$CXXCPP $CPPFLAGS'
29952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29956 cat >conftest.$ac_ext <<_ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h. */
29971 rm -f conftest.$ac_objext
29972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29973 (eval $ac_compile) 2>conftest.er1
29975 grep -v '^ *+' conftest.er1 >conftest.err
29977 cat conftest.err >&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); } &&
29980 { ac_try='test -z "$ac_cxx_werror_flag"
29981 || test ! -s conftest.err'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; } &&
29987 { ac_try='test -s conftest.$ac_objext'
29988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989 (eval $ac_try) 2>&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29993 ac_cv_func_isnan_in_cmath=yes
29995 echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29998 ac_cv_func_isnan_in_cmath=no
30000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30002 ac_cpp='$CPP $CPPFLAGS'
30003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30008 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30009 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30011 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30013 cat >>confdefs.h <<\_ACEOF
30014 #define HAVE_ISNAN_IN_CMATH 1
30019 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30020 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30021 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30025 ac_cpp='$CXXCPP $CPPFLAGS'
30026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30030 cat >conftest.$ac_ext <<_ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h. */
30040 float f; std::isnan(f);
30045 rm -f conftest.$ac_objext
30046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30047 (eval $ac_compile) 2>conftest.er1
30049 grep -v '^ *+' conftest.er1 >conftest.err
30051 cat conftest.err >&5
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); } &&
30054 { ac_try='test -z "$ac_cxx_werror_flag"
30055 || test ! -s conftest.err'
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; } &&
30061 { ac_try='test -s conftest.$ac_objext'
30062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063 (eval $ac_try) 2>&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); }; }; then
30067 ac_cv_func_std_isnan_in_cmath=yes
30069 echo "$as_me: failed program was:" >&5
30070 sed 's/^/| /' conftest.$ac_ext >&5
30072 ac_cv_func_std_isnan_in_cmath=no
30074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30076 ac_cpp='$CPP $CPPFLAGS'
30077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30082 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30083 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30085 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30087 cat >>confdefs.h <<\_ACEOF
30088 #define HAVE_STD_ISNAN_IN_CMATH 1
30094 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30095 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30096 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30097 echo $ECHO_N "(cached) $ECHO_C" >&6
30100 ac_cpp='$CXXCPP $CPPFLAGS'
30101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30105 cat >conftest.$ac_ext <<_ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h. */
30120 rm -f conftest.$ac_objext
30121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30122 (eval $ac_compile) 2>conftest.er1
30124 grep -v '^ *+' conftest.er1 >conftest.err
30126 cat conftest.err >&5
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); } &&
30129 { ac_try='test -z "$ac_cxx_werror_flag"
30130 || test ! -s conftest.err'
30131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30132 (eval $ac_try) 2>&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); }; } &&
30136 { ac_try='test -s conftest.$ac_objext'
30137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30138 (eval $ac_try) 2>&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); }; }; then
30142 ac_cv_func_isinf_in_math_h=yes
30144 echo "$as_me: failed program was:" >&5
30145 sed 's/^/| /' conftest.$ac_ext >&5
30147 ac_cv_func_isinf_in_math_h=no
30149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30151 ac_cpp='$CPP $CPPFLAGS'
30152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30157 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30158 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30160 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30162 cat >>confdefs.h <<\_ACEOF
30163 #define HAVE_ISINF_IN_MATH_H 1
30168 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30169 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30170 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30171 echo $ECHO_N "(cached) $ECHO_C" >&6
30174 ac_cpp='$CXXCPP $CPPFLAGS'
30175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30179 cat >conftest.$ac_ext <<_ACEOF
30182 cat confdefs.h >>conftest.$ac_ext
30183 cat >>conftest.$ac_ext <<_ACEOF
30184 /* end confdefs.h. */
30194 rm -f conftest.$ac_objext
30195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30196 (eval $ac_compile) 2>conftest.er1
30198 grep -v '^ *+' conftest.er1 >conftest.err
30200 cat conftest.err >&5
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); } &&
30203 { ac_try='test -z "$ac_cxx_werror_flag"
30204 || test ! -s conftest.err'
30205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206 (eval $ac_try) 2>&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; } &&
30210 { ac_try='test -s conftest.$ac_objext'
30211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212 (eval $ac_try) 2>&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
30216 ac_cv_func_isinf_in_cmath=yes
30218 echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30221 ac_cv_func_isinf_in_cmath=no
30223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30225 ac_cpp='$CPP $CPPFLAGS'
30226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30231 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30232 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30234 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30236 cat >>confdefs.h <<\_ACEOF
30237 #define HAVE_ISINF_IN_CMATH 1
30242 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30243 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30244 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30245 echo $ECHO_N "(cached) $ECHO_C" >&6
30248 ac_cpp='$CXXCPP $CPPFLAGS'
30249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30253 cat >conftest.$ac_ext <<_ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30263 float f; std::isinf(f)}
30268 rm -f conftest.$ac_objext
30269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30270 (eval $ac_compile) 2>conftest.er1
30272 grep -v '^ *+' conftest.er1 >conftest.err
30274 cat conftest.err >&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } &&
30277 { ac_try='test -z "$ac_cxx_werror_flag"
30278 || test ! -s conftest.err'
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; } &&
30284 { ac_try='test -s conftest.$ac_objext'
30285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30286 (eval $ac_try) 2>&5
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; }; then
30290 ac_cv_func_std_isinf_in_cmath=yes
30292 echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30295 ac_cv_func_std_isinf_in_cmath=no
30297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30299 ac_cpp='$CPP $CPPFLAGS'
30300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30305 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30306 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30308 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30310 cat >>confdefs.h <<\_ACEOF
30311 #define HAVE_STD_ISINF_IN_CMATH 1
30316 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30317 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30318 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30319 echo $ECHO_N "(cached) $ECHO_C" >&6
30322 ac_cpp='$CXXCPP $CPPFLAGS'
30323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30327 cat >conftest.$ac_ext <<_ACEOF
30330 cat confdefs.h >>conftest.$ac_ext
30331 cat >>conftest.$ac_ext <<_ACEOF
30332 /* end confdefs.h. */
30333 #include <ieeefp.h>
30337 float f; finite(f);
30342 rm -f conftest.$ac_objext
30343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30344 (eval $ac_compile) 2>conftest.er1
30346 grep -v '^ *+' conftest.er1 >conftest.err
30348 cat conftest.err >&5
30349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350 (exit $ac_status); } &&
30351 { ac_try='test -z "$ac_cxx_werror_flag"
30352 || test ! -s conftest.err'
30353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354 (eval $ac_try) 2>&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; } &&
30358 { ac_try='test -s conftest.$ac_objext'
30359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30360 (eval $ac_try) 2>&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); }; }; then
30364 ac_cv_func_finite_in_ieeefp_h=yes
30366 echo "$as_me: failed program was:" >&5
30367 sed 's/^/| /' conftest.$ac_ext >&5
30369 ac_cv_func_finite_in_ieeefp_h=no
30371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30373 ac_cpp='$CPP $CPPFLAGS'
30374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30379 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30380 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30382 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30384 cat >>confdefs.h <<\_ACEOF
30385 #define HAVE_FINITE_IN_IEEEFP_H 1
30394 for ac_header in stdlib.h unistd.h
30396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30398 echo "$as_me:$LINENO: checking for $ac_header" >&5
30399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30401 echo $ECHO_N "(cached) $ECHO_C" >&6
30403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30406 # Is the header compilable?
30407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30409 cat >conftest.$ac_ext <<_ACEOF
30412 cat confdefs.h >>conftest.$ac_ext
30413 cat >>conftest.$ac_ext <<_ACEOF
30414 /* end confdefs.h. */
30415 $ac_includes_default
30416 #include <$ac_header>
30418 rm -f conftest.$ac_objext
30419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30420 (eval $ac_compile) 2>conftest.er1
30422 grep -v '^ *+' conftest.er1 >conftest.err
30424 cat conftest.err >&5
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); } &&
30427 { ac_try='test -z "$ac_c_werror_flag"
30428 || test ! -s conftest.err'
30429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430 (eval $ac_try) 2>&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; } &&
30434 { ac_try='test -s conftest.$ac_objext'
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 ac_header_compiler=yes
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30445 ac_header_compiler=no
30447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30449 echo "${ECHO_T}$ac_header_compiler" >&6
30451 # Is the header present?
30452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30454 cat >conftest.$ac_ext <<_ACEOF
30457 cat confdefs.h >>conftest.$ac_ext
30458 cat >>conftest.$ac_ext <<_ACEOF
30459 /* end confdefs.h. */
30460 #include <$ac_header>
30462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30465 grep -v '^ *+' conftest.er1 >conftest.err
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } >/dev/null; then
30470 if test -s conftest.err; then
30471 ac_cpp_err=$ac_c_preproc_warn_flag
30472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30479 if test -z "$ac_cpp_err"; then
30480 ac_header_preproc=yes
30482 echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30485 ac_header_preproc=no
30487 rm -f conftest.err conftest.$ac_ext
30488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30489 echo "${ECHO_T}$ac_header_preproc" >&6
30491 # So? What about this header?
30492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30498 ac_header_preproc=yes
30501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30515 ## ----------------------------------- ##
30516 ## Report this to llvmbugs@cs.uiuc.edu ##
30517 ## ----------------------------------- ##
30520 sed "s/^/$as_me: WARNING: /" >&2
30523 echo "$as_me:$LINENO: checking for $ac_header" >&5
30524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30526 echo $ECHO_N "(cached) $ECHO_C" >&6
30528 eval "$as_ac_Header=\$ac_header_preproc"
30530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30535 cat >>confdefs.h <<_ACEOF
30536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30544 for ac_func in getpagesize
30546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30547 echo "$as_me:$LINENO: checking for $ac_func" >&5
30548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30549 if eval "test \"\${$as_ac_var+set}\" = set"; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30552 cat >conftest.$ac_ext <<_ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h. */
30558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30560 #define $ac_func innocuous_$ac_func
30562 /* System header to define __stub macros and hopefully few prototypes,
30563 which can conflict with char $ac_func (); below.
30564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30565 <limits.h> exists even on freestanding compilers. */
30568 # include <limits.h>
30570 # include <assert.h>
30575 /* Override any gcc2 internal prototype to avoid an error. */
30580 /* We use char because int might match the return type of a gcc2
30581 builtin and then its argument prototype would still apply. */
30583 /* The GNU C library defines this for functions which it implements
30584 to always fail with ENOSYS. Some functions are actually named
30585 something starting with __ and the normal name is an alias. */
30586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30589 char (*f) () = $ac_func;
30598 return f != $ac_func;
30603 rm -f conftest.$ac_objext conftest$ac_exeext
30604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30605 (eval $ac_link) 2>conftest.er1
30607 grep -v '^ *+' conftest.er1 >conftest.err
30609 cat conftest.err >&5
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); } &&
30612 { ac_try='test -z "$ac_c_werror_flag"
30613 || test ! -s conftest.err'
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; } &&
30619 { ac_try='test -s conftest$ac_exeext'
30620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621 (eval $ac_try) 2>&5
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); }; }; then
30625 eval "$as_ac_var=yes"
30627 echo "$as_me: failed program was:" >&5
30628 sed 's/^/| /' conftest.$ac_ext >&5
30630 eval "$as_ac_var=no"
30632 rm -f conftest.err conftest.$ac_objext \
30633 conftest$ac_exeext conftest.$ac_ext
30635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30637 if test `eval echo '${'$as_ac_var'}'` = yes; then
30638 cat >>confdefs.h <<_ACEOF
30639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30645 echo "$as_me:$LINENO: checking for working mmap" >&5
30646 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30648 echo $ECHO_N "(cached) $ECHO_C" >&6
30650 if test "$cross_compiling" = yes; then
30651 ac_cv_func_mmap_fixed_mapped=no
30653 cat >conftest.$ac_ext <<_ACEOF
30656 cat confdefs.h >>conftest.$ac_ext
30657 cat >>conftest.$ac_ext <<_ACEOF
30658 /* end confdefs.h. */
30659 $ac_includes_default
30660 /* malloc might have been renamed as rpl_malloc. */
30663 /* Thanks to Mike Haertel and Jim Avera for this test.
30664 Here is a matrix of mmap possibilities:
30665 mmap private not fixed
30666 mmap private fixed at somewhere currently unmapped
30667 mmap private fixed at somewhere already mapped
30668 mmap shared not fixed
30669 mmap shared fixed at somewhere currently unmapped
30670 mmap shared fixed at somewhere already mapped
30671 For private mappings, we should verify that changes cannot be read()
30672 back from the file, nor mmap's back from the file at a different
30673 address. (There have been systems where private was not correctly
30674 implemented like the infamous i386 svr4.0, and systems where the
30675 VM page cache was not coherent with the file system buffer cache
30676 like early versions of FreeBSD and possibly contemporary NetBSD.)
30677 For shared mappings, we should conversely verify that changes get
30678 propagated back to all the places they're supposed to be.
30680 Grep wants private fixed already mapped.
30681 The main things grep needs to know about mmap are:
30682 * does it exist and is it safe to write into the mmap'd area
30683 * how to use it (BSD variants) */
30686 #include <sys/mman.h>
30688 #if !STDC_HEADERS && !HAVE_STDLIB_H
30692 /* This mess was copied from the GNU getpagesize.h. */
30693 #if !HAVE_GETPAGESIZE
30694 /* Assume that all systems that can run configure have sys/param.h. */
30695 # if !HAVE_SYS_PARAM_H
30696 # define HAVE_SYS_PARAM_H 1
30699 # ifdef _SC_PAGESIZE
30700 # define getpagesize() sysconf(_SC_PAGESIZE)
30701 # else /* no _SC_PAGESIZE */
30702 # if HAVE_SYS_PARAM_H
30703 # include <sys/param.h>
30704 # ifdef EXEC_PAGESIZE
30705 # define getpagesize() EXEC_PAGESIZE
30706 # else /* no EXEC_PAGESIZE */
30708 # define getpagesize() NBPG * CLSIZE
30711 # endif /* no CLSIZE */
30712 # else /* no NBPG */
30714 # define getpagesize() NBPC
30715 # else /* no NBPC */
30717 # define getpagesize() PAGESIZE
30718 # endif /* PAGESIZE */
30719 # endif /* no NBPC */
30720 # endif /* no NBPG */
30721 # endif /* no EXEC_PAGESIZE */
30722 # else /* no HAVE_SYS_PARAM_H */
30723 # define getpagesize() 8192 /* punt totally */
30724 # endif /* no HAVE_SYS_PARAM_H */
30725 # endif /* no _SC_PAGESIZE */
30727 #endif /* no HAVE_GETPAGESIZE */
30732 char *data, *data2, *data3;
30736 pagesize = getpagesize ();
30738 /* First, make a file with some known garbage in it. */
30739 data = (char *) malloc (pagesize);
30742 for (i = 0; i < pagesize; ++i)
30743 *(data + i) = rand ();
30745 fd = creat ("conftest.mmap", 0600);
30748 if (write (fd, data, pagesize) != pagesize)
30752 /* Next, try to mmap the file at a fixed address which already has
30753 something else allocated at it. If we can, also make sure that
30754 we see the same garbage. */
30755 fd = open ("conftest.mmap", O_RDWR);
30758 data2 = (char *) malloc (2 * pagesize);
30761 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30762 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30763 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30765 for (i = 0; i < pagesize; ++i)
30766 if (*(data + i) != *(data2 + i))
30769 /* Finally, make sure that changes to the mapped area do not
30770 percolate back to the file as seen by read(). (This is a bug on
30771 some variants of i386 svr4.0.) */
30772 for (i = 0; i < pagesize; ++i)
30773 *(data2 + i) = *(data2 + i) + 1;
30774 data3 = (char *) malloc (pagesize);
30777 if (read (fd, data3, pagesize) != pagesize)
30779 for (i = 0; i < pagesize; ++i)
30780 if (*(data + i) != *(data3 + i))
30786 rm -f conftest$ac_exeext
30787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30788 (eval $ac_link) 2>&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; }; then
30797 ac_cv_func_mmap_fixed_mapped=yes
30799 echo "$as_me: program exited with status $ac_status" >&5
30800 echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30803 ( exit $ac_status )
30804 ac_cv_func_mmap_fixed_mapped=no
30806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30809 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30810 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30811 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30813 cat >>confdefs.h <<\_ACEOF
30814 #define HAVE_MMAP 1
30818 rm -f conftest.mmap
30820 echo "$as_me:$LINENO: checking for mmap of files" >&5
30821 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30822 if test "${ac_cv_func_mmap_file+set}" = set; then
30823 echo $ECHO_N "(cached) $ECHO_C" >&6
30826 ac_cpp='$CPP $CPPFLAGS'
30827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30831 if test "$cross_compiling" = yes; then
30832 ac_cv_func_mmap_file=no
30834 cat >conftest.$ac_ext <<_ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h. */
30842 #include <sys/types.h>
30843 #include <sys/mman.h>
30851 fd = creat ("foo",0777);
30852 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30854 return (fd != (int) MAP_FAILED);
30859 rm -f conftest$ac_exeext
30860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30861 (eval $ac_link) 2>&5
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866 (eval $ac_try) 2>&5
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
30870 ac_cv_func_mmap_file=yes
30872 echo "$as_me: program exited with status $ac_status" >&5
30873 echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30876 ( exit $ac_status )
30877 ac_cv_func_mmap_file=no
30879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30882 ac_cpp='$CPP $CPPFLAGS'
30883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30889 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30890 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30891 if test "$ac_cv_func_mmap_file" = yes; then
30893 cat >>confdefs.h <<\_ACEOF
30894 #define HAVE_MMAP_FILE
30901 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30902 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30903 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30906 if test "$llvm_cv_os_type" = "Interix" ; then
30907 ac_cv_need_dev_zero_for_mmap=yes
30909 ac_cv_need_dev_zero_for_mmap=no
30913 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30914 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30915 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30917 cat >>confdefs.h <<\_ACEOF
30918 #define NEED_DEV_ZERO_FOR_MMAP 1
30922 echo "$as_me:$LINENO: checking for mprotect" >&5
30923 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30924 if test "${ac_cv_func_mprotect+set}" = set; then
30925 echo $ECHO_N "(cached) $ECHO_C" >&6
30927 cat >conftest.$ac_ext <<_ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30933 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30935 #define mprotect innocuous_mprotect
30937 /* System header to define __stub macros and hopefully few prototypes,
30938 which can conflict with char mprotect (); below.
30939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30940 <limits.h> exists even on freestanding compilers. */
30943 # include <limits.h>
30945 # include <assert.h>
30950 /* Override any gcc2 internal prototype to avoid an error. */
30955 /* We use char because int might match the return type of a gcc2
30956 builtin and then its argument prototype would still apply. */
30958 /* The GNU C library defines this for functions which it implements
30959 to always fail with ENOSYS. Some functions are actually named
30960 something starting with __ and the normal name is an alias. */
30961 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30964 char (*f) () = mprotect;
30973 return f != mprotect;
30978 rm -f conftest.$ac_objext conftest$ac_exeext
30979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30980 (eval $ac_link) 2>conftest.er1
30982 grep -v '^ *+' conftest.er1 >conftest.err
30984 cat conftest.err >&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } &&
30987 { ac_try='test -z "$ac_c_werror_flag"
30988 || test ! -s conftest.err'
30989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990 (eval $ac_try) 2>&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; } &&
30994 { ac_try='test -s conftest$ac_exeext'
30995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996 (eval $ac_try) 2>&5
30998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999 (exit $ac_status); }; }; then
31000 ac_cv_func_mprotect=yes
31002 echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31005 ac_cv_func_mprotect=no
31007 rm -f conftest.err conftest.$ac_objext \
31008 conftest$ac_exeext conftest.$ac_ext
31010 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31011 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31012 if test $ac_cv_func_mprotect = yes; then
31015 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31016 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31017 { (exit 1); exit 1; }; }
31021 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31023 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31024 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31026 if test "$ac_cv_func_mmap_file" = "no"
31028 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31029 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31033 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31034 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31035 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31038 llvm_cv_llvmgcc_sanity="no"
31039 if test -x "$LLVMGCC" ; then
31040 cp /dev/null conftest.c
31041 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31042 if test $? -eq 0 ; then
31043 llvm_cv_llvmgcc_sanity="yes"
31048 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31049 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31051 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31052 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31053 LLVMCC1=$llvmcc1path
31055 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31056 LLVMCC1PLUS=$llvmcc1pluspath
31058 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31059 LLVMGCCDIR=$llvmgccdir
31061 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31062 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31063 LLVMGCC_VERSION=$llvmgccversion
31065 LLVMGCC_MAJVERS=$llvmgccmajvers
31069 SHLIBEXT=$libltdl_cv_shlibext
31072 # Translate the various configuration directories and other basic
31073 # information into substitutions that will end up in Makefile.config.in
31074 # that these configured values can be used by the makefiles
31075 if test "${prefix}" == "NONE" ; then
31076 prefix="/usr/local"
31078 eval LLVM_PREFIX="${prefix}";
31079 eval LLVM_BINDIR="${prefix}/bin";
31080 eval LLVM_LIBDIR="${prefix}/lib";
31081 eval LLVM_DATADIR="${prefix}/share/llvm";
31082 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31083 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31084 eval LLVM_INCLUDEDIR="${prefix}/include";
31085 eval LLVM_INFODIR="${prefix}/info";
31086 eval LLVM_MANDIR="${prefix}/man";
31087 LLVM_CONFIGTIME=`date`
31099 # Place the various directores into the config.h file as #defines so that we
31100 # can know about the installation paths within LLVM.
31102 cat >>confdefs.h <<_ACEOF
31103 #define LLVM_PREFIX "$LLVM_PREFIX"
31107 cat >>confdefs.h <<_ACEOF
31108 #define LLVM_BINDIR "$LLVM_BINDIR"
31112 cat >>confdefs.h <<_ACEOF
31113 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31117 cat >>confdefs.h <<_ACEOF
31118 #define LLVM_DATADIR "$LLVM_DATADIR"
31122 cat >>confdefs.h <<_ACEOF
31123 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31127 cat >>confdefs.h <<_ACEOF
31128 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31132 cat >>confdefs.h <<_ACEOF
31133 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31137 cat >>confdefs.h <<_ACEOF
31138 #define LLVM_INFODIR "$LLVM_INFODIR"
31142 cat >>confdefs.h <<_ACEOF
31143 #define LLVM_MANDIR "$LLVM_MANDIR"
31147 cat >>confdefs.h <<_ACEOF
31148 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31153 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31155 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31157 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31159 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31161 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31164 ac_config_files="$ac_config_files Makefile.config"
31167 ac_config_files="$ac_config_files docs/doxygen.cfg"
31170 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31173 ac_config_commands="$ac_config_commands setup"
31175 ac_config_commands="$ac_config_commands Makefile"
31178 ac_config_commands="$ac_config_commands Makefile.common"
31181 ac_config_commands="$ac_config_commands examples/Makefile"
31184 ac_config_commands="$ac_config_commands lib/Makefile"
31187 ac_config_commands="$ac_config_commands runtime/Makefile"
31190 ac_config_commands="$ac_config_commands test/Makefile"
31193 ac_config_commands="$ac_config_commands test/Makefile.tests"
31196 ac_config_commands="$ac_config_commands tools/Makefile"
31199 ac_config_commands="$ac_config_commands utils/Makefile"
31202 ac_config_commands="$ac_config_commands projects/Makefile"
31206 cat >confcache <<\_ACEOF
31207 # This file is a shell script that caches the results of configure
31208 # tests run on this system so they can be shared between configure
31209 # scripts and configure runs, see configure's option --config-cache.
31210 # It is not useful on other systems. If it contains results you don't
31211 # want to keep, you may remove or edit it.
31213 # config.status only pays attention to the cache file if you give it
31214 # the --recheck option to rerun configure.
31216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31218 # following values.
31222 # The following way of writing the cache mishandles newlines in values,
31223 # but we know of no workaround that is simple, portable, and efficient.
31224 # So, don't put newlines in cache variables' values.
31225 # Ultrix sh set writes to stderr and can't be redirected directly,
31226 # and sets the high bit in the cache file unless we assign to the vars.
31229 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31231 # `set' does not quote correctly, so add quotes (double-quote
31232 # substitution turns \\\\ into \\, and sed turns \\ into \).
31235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31238 # `set' quotes correctly as required by POSIX, so do not add quotes.
31240 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31249 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31251 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31252 if test -w $cache_file; then
31253 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31254 cat confcache >$cache_file
31256 echo "not updating unwritable cache $cache_file"
31261 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31262 # Let make expand exec_prefix.
31263 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31267 # trailing colons and then remove the whole line if VPATH becomes empty
31268 # (actually we leave an empty line to preserve line numbers).
31269 if test "x$srcdir" = x.; then
31270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31271 s/:*\$(srcdir):*/:/;
31272 s/:*\${srcdir}:*/:/;
31274 s/^\([^=]*=[ ]*\):*/\1/;
31280 DEFS=-DHAVE_CONFIG_H
31284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31285 # 1. Remove the extension, and $U if already installed.
31286 ac_i=`echo "$ac_i" |
31287 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31289 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31290 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31292 LIBOBJS=$ac_libobjs
31294 LTLIBOBJS=$ac_ltlibobjs
31297 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31298 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31299 Usually this means the macro was only invoked conditionally." >&5
31300 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31301 Usually this means the macro was only invoked conditionally." >&2;}
31302 { (exit 1); exit 1; }; }
31304 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31305 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31306 Usually this means the macro was only invoked conditionally." >&5
31307 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31308 Usually this means the macro was only invoked conditionally." >&2;}
31309 { (exit 1); exit 1; }; }
31312 : ${CONFIG_STATUS=./config.status}
31313 ac_clean_files_save=$ac_clean_files
31314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31317 cat >$CONFIG_STATUS <<_ACEOF
31319 # Generated by $as_me.
31320 # Run this file to recreate the current configuration.
31321 # Compiler output produced by configure, useful for debugging
31322 # configure, is in config.log if it exists.
31325 ac_cs_recheck=false
31327 SHELL=\${CONFIG_SHELL-$SHELL}
31330 cat >>$CONFIG_STATUS <<\_ACEOF
31331 ## --------------------- ##
31332 ## M4sh Initialization. ##
31333 ## --------------------- ##
31335 # Be Bourne compatible
31336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31339 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31340 # is contrary to our usage. Disable this feature.
31341 alias -g '${1+"$@"}'='"$@"'
31342 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31345 DUALCASE=1; export DUALCASE # for MKS sh
31347 # Support unset when possible.
31348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31355 # Work around bugs in pre-3.0 UWIN ksh.
31356 $as_unset ENV MAIL MAILPATH
31363 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31364 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31365 LC_TELEPHONE LC_TIME
31367 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31368 eval $as_var=C; export $as_var
31374 # Required to use basename.
31375 if expr a : '\(a\)' >/dev/null 2>&1; then
31381 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31382 as_basename=basename
31388 # Name of the executable.
31389 as_me=`$as_basename "$0" ||
31390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31391 X"$0" : 'X\(//\)$' \| \
31392 X"$0" : 'X\(/\)$' \| \
31393 . : '\(.\)' 2>/dev/null ||
31395 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31396 /^X\/\(\/\/\)$/{ s//\1/; q; }
31397 /^X\/\(\/\).*/{ s//\1/; q; }
31401 # PATH needs CR, and LINENO needs CR and PATH.
31402 # Avoid depending upon Character Ranges.
31403 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31404 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31405 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31406 as_cr_digits='0123456789'
31407 as_cr_alnum=$as_cr_Letters$as_cr_digits
31409 # The user is always right.
31410 if test "${PATH_SEPARATOR+set}" != set; then
31411 echo "#! /bin/sh" >conf$$.sh
31412 echo "exit 0" >>conf$$.sh
31414 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31423 as_lineno_1=$LINENO
31424 as_lineno_2=$LINENO
31425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31426 test "x$as_lineno_1" != "x$as_lineno_2" &&
31427 test "x$as_lineno_3" = "x$as_lineno_2" || {
31428 # Find who we are. Look in the path if we contain no path at all
31431 *[\\/]* ) as_myself=$0 ;;
31432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31433 for as_dir in $PATH
31436 test -z "$as_dir" && as_dir=.
31437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31442 # We did not find ourselves, most probably we were run as `sh COMMAND'
31443 # in which case we are not to be found in the path.
31444 if test "x$as_myself" = x; then
31447 if test ! -f "$as_myself"; then
31448 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31449 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31450 { (exit 1); exit 1; }; }
31452 case $CONFIG_SHELL in
31454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31455 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31458 test -z "$as_dir" && as_dir=.
31459 for as_base in sh bash ksh sh5; do
31462 if ("$as_dir/$as_base" -c '
31463 as_lineno_1=$LINENO
31464 as_lineno_2=$LINENO
31465 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31466 test "x$as_lineno_1" != "x$as_lineno_2" &&
31467 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31468 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31469 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31470 CONFIG_SHELL=$as_dir/$as_base
31471 export CONFIG_SHELL
31472 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31480 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31481 # uniformly replaced by the line number. The first 'sed' inserts a
31482 # line-number line before each line; the second 'sed' does the real
31483 # work. The second script uses 'N' to pair each line-number line
31484 # with the numbered line, and appends trailing '-' during
31485 # substitution so that $LINENO is not a special case at line end.
31486 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31487 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31488 sed '=' <$as_myself |
31493 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31496 s,^['$as_cr_digits']*\n,,
31497 ' >$as_me.lineno &&
31498 chmod +x $as_me.lineno ||
31499 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31500 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31501 { (exit 1); exit 1; }; }
31503 # Don't try to exec as it changes $[0], causing all sort of problems
31504 # (the dirname of $[0] is not the place where we might find the
31505 # original and so on. Autoconf is especially sensible to this).
31507 # Exit status is that of the last command.
31512 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31513 *c*,-n*) ECHO_N= ECHO_C='
31515 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31516 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31519 if expr a : '\(a\)' >/dev/null 2>&1; then
31525 rm -f conf$$ conf$$.exe conf$$.file
31527 if ln -s conf$$.file conf$$ 2>/dev/null; then
31528 # We could just check for DJGPP; but this test a) works b) is more generic
31529 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31530 if test -f conf$$.exe; then
31531 # Don't use ln at all; we don't have any links
31536 elif ln conf$$.file conf$$ 2>/dev/null; then
31541 rm -f conf$$ conf$$.exe conf$$.file
31543 if mkdir -p . 2>/dev/null; then
31546 test -d ./-p && rmdir ./-p
31550 as_executable_p="test -f"
31552 # Sed expression to map a string onto a valid CPP name.
31553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31555 # Sed expression to map a string onto a valid variable name.
31556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31560 # We need space, tab and new line, in precisely that order.
31570 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31571 # report actual input values of CONFIG_FILES etc. instead of their
31572 # values after options handling. Logging --version etc. is OK.
31576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31577 ## Running $as_me. ##
31582 This file was extended by llvm $as_me 1.8cvs, which was
31583 generated by GNU Autoconf 2.59. Invocation command line was
31585 CONFIG_FILES = $CONFIG_FILES
31586 CONFIG_HEADERS = $CONFIG_HEADERS
31587 CONFIG_LINKS = $CONFIG_LINKS
31588 CONFIG_COMMANDS = $CONFIG_COMMANDS
31592 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31596 # Files that config.status was made for.
31597 if test -n "$ac_config_files"; then
31598 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31601 if test -n "$ac_config_headers"; then
31602 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31605 if test -n "$ac_config_links"; then
31606 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31609 if test -n "$ac_config_commands"; then
31610 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31613 cat >>$CONFIG_STATUS <<\_ACEOF
31616 \`$as_me' instantiates files from templates according to the
31617 current configuration.
31619 Usage: $0 [OPTIONS] [FILE]...
31621 -h, --help print this help, then exit
31622 -V, --version print version number, then exit
31623 -q, --quiet do not print progress messages
31624 -d, --debug don't remove temporary files
31625 --recheck update $as_me by reconfiguring in the same conditions
31626 --file=FILE[:TEMPLATE]
31627 instantiate the configuration file FILE
31628 --header=FILE[:TEMPLATE]
31629 instantiate the configuration header FILE
31631 Configuration files:
31634 Configuration headers:
31637 Configuration commands:
31640 Report bugs to <bug-autoconf@gnu.org>."
31643 cat >>$CONFIG_STATUS <<_ACEOF
31645 llvm config.status 1.8cvs
31646 configured by $0, generated by GNU Autoconf 2.59,
31647 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31649 Copyright (C) 2003 Free Software Foundation, Inc.
31650 This config.status script is free software; the Free Software Foundation
31651 gives unlimited permission to copy, distribute and modify it."
31656 cat >>$CONFIG_STATUS <<\_ACEOF
31657 # If no file are specified by the user, then we need to provide default
31658 # value. By we need to know if files were specified by the user.
31664 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31665 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31673 *) # This is not an option, so the user has probably given explicit
31676 ac_need_defaults=false;;
31680 # Handling of the options.
31682 cat >>$CONFIG_STATUS <<\_ACEOF
31683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31685 --version | --vers* | -V )
31686 echo "$ac_cs_version"; exit 0 ;;
31688 # Conflict between --help and --header
31689 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31690 Try \`$0 --help' for more information." >&5
31691 echo "$as_me: error: ambiguous option: $1
31692 Try \`$0 --help' for more information." >&2;}
31693 { (exit 1); exit 1; }; };;
31694 --help | --hel | -h )
31695 echo "$ac_cs_usage"; exit 0 ;;
31696 --debug | --d* | -d )
31698 --file | --fil | --fi | --f )
31700 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31701 ac_need_defaults=false;;
31702 --header | --heade | --head | --hea )
31704 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31705 ac_need_defaults=false;;
31706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31710 # This is an error.
31711 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31712 Try \`$0 --help' for more information." >&5
31713 echo "$as_me: error: unrecognized option: $1
31714 Try \`$0 --help' for more information." >&2;}
31715 { (exit 1); exit 1; }; } ;;
31717 *) ac_config_targets="$ac_config_targets $1" ;;
31723 ac_configure_extra_args=
31725 if $ac_cs_silent; then
31727 ac_configure_extra_args="$ac_configure_extra_args --silent"
31731 cat >>$CONFIG_STATUS <<_ACEOF
31732 if \$ac_cs_recheck; then
31733 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31734 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31739 cat >>$CONFIG_STATUS <<_ACEOF
31741 # INIT-COMMANDS section.
31744 llvm_src="${srcdir}"
31750 cat >>$CONFIG_STATUS <<\_ACEOF
31751 for ac_config_target in $ac_config_targets
31753 case "$ac_config_target" in
31754 # Handling of arguments.
31755 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31756 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31757 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31758 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31759 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31760 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31761 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31762 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31763 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31764 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31765 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31766 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31767 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31768 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31769 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31770 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31771 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31772 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31773 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31774 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31775 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31776 { (exit 1); exit 1; }; };;
31780 # If the user did not use the arguments to specify the items to instantiate,
31781 # then the envvar interface is used. Set only those that are not.
31782 # We use the long form for the default assignment because of an extremely
31783 # bizarre bug on SunOS 4.1.3.
31784 if $ac_need_defaults; then
31785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31790 # Have a temporary directory for convenience. Make it in the build tree
31791 # simply because there is no reason to put it here, and in addition,
31792 # creating and moving files from /tmp can sometimes cause problems.
31793 # Create a temporary directory, and hook for its removal unless debugging.
31796 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31797 trap '{ (exit 1); exit 1; }' 1 2 13 15
31800 # Create a (secure) tmp directory for tmp files.
31803 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31804 test -n "$tmp" && test -d "$tmp"
31807 tmp=./confstat$$-$RANDOM
31808 (umask 077 && mkdir $tmp)
31811 echo "$me: cannot create a temporary directory in ." >&2
31812 { (exit 1); exit 1; }
31817 cat >>$CONFIG_STATUS <<_ACEOF
31820 # CONFIG_FILES section.
31823 # No need to generate the scripts if there are no CONFIG_FILES.
31824 # This happens for instance when ./config.status config.h
31825 if test -n "\$CONFIG_FILES"; then
31826 # Protect against being on the right side of a sed subst in config.status.
31827 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31828 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31829 s,@SHELL@,$SHELL,;t t
31830 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31831 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31832 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31833 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31834 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31835 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31836 s,@exec_prefix@,$exec_prefix,;t t
31837 s,@prefix@,$prefix,;t t
31838 s,@program_transform_name@,$program_transform_name,;t t
31839 s,@bindir@,$bindir,;t t
31840 s,@sbindir@,$sbindir,;t t
31841 s,@libexecdir@,$libexecdir,;t t
31842 s,@datadir@,$datadir,;t t
31843 s,@sysconfdir@,$sysconfdir,;t t
31844 s,@sharedstatedir@,$sharedstatedir,;t t
31845 s,@localstatedir@,$localstatedir,;t t
31846 s,@libdir@,$libdir,;t t
31847 s,@includedir@,$includedir,;t t
31848 s,@oldincludedir@,$oldincludedir,;t t
31849 s,@infodir@,$infodir,;t t
31850 s,@mandir@,$mandir,;t t
31851 s,@build_alias@,$build_alias,;t t
31852 s,@host_alias@,$host_alias,;t t
31853 s,@target_alias@,$target_alias,;t t
31854 s,@DEFS@,$DEFS,;t t
31855 s,@ECHO_C@,$ECHO_C,;t t
31856 s,@ECHO_N@,$ECHO_N,;t t
31857 s,@ECHO_T@,$ECHO_T,;t t
31858 s,@LIBS@,$LIBS,;t t
31859 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31860 s,@subdirs@,$subdirs,;t t
31861 s,@build@,$build,;t t
31862 s,@build_cpu@,$build_cpu,;t t
31863 s,@build_vendor@,$build_vendor,;t t
31864 s,@build_os@,$build_os,;t t
31865 s,@host@,$host,;t t
31866 s,@host_cpu@,$host_cpu,;t t
31867 s,@host_vendor@,$host_vendor,;t t
31868 s,@host_os@,$host_os,;t t
31869 s,@target@,$target,;t t
31870 s,@target_cpu@,$target_cpu,;t t
31871 s,@target_vendor@,$target_vendor,;t t
31872 s,@target_os@,$target_os,;t t
31874 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31875 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31876 s,@ARCH@,$ARCH,;t t
31877 s,@ENDIAN@,$ENDIAN,;t t
31879 s,@CFLAGS@,$CFLAGS,;t t
31880 s,@LDFLAGS@,$LDFLAGS,;t t
31881 s,@CPPFLAGS@,$CPPFLAGS,;t t
31882 s,@ac_ct_CC@,$ac_ct_CC,;t t
31883 s,@EXEEXT@,$EXEEXT,;t t
31884 s,@OBJEXT@,$OBJEXT,;t t
31885 s,@CVSBUILD@,$CVSBUILD,;t t
31886 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31887 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31888 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31890 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31891 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31892 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31893 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31896 s,@CXXFLAGS@,$CXXFLAGS,;t t
31897 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31899 s,@LEXLIB@,$LEXLIB,;t t
31900 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31901 s,@FLEX@,$FLEX,;t t
31902 s,@YACC@,$YACC,;t t
31903 s,@BISON@,$BISON,;t t
31904 s,@ifGNUmake@,$ifGNUmake,;t t
31905 s,@LN_S@,$LN_S,;t t
31908 s,@DATE@,$DATE,;t t
31909 s,@FIND@,$FIND,;t t
31910 s,@GREP@,$GREP,;t t
31911 s,@MKDIR@,$MKDIR,;t t
31913 s,@RANLIB@,$RANLIB,;t t
31914 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31918 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31921 s,@DOTTY@,$DOTTY,;t t
31922 s,@PERL@,$PERL,;t t
31923 s,@HAVE_PERL@,$HAVE_PERL,;t t
31924 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31925 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31926 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31927 s,@BZIP2@,$BZIP2,;t t
31928 s,@DOXYGEN@,$DOXYGEN,;t t
31929 s,@ETAGS@,$ETAGS,;t t
31930 s,@GROFF@,$GROFF,;t t
31931 s,@GZIP@,$GZIP,;t t
31932 s,@POD2HTML@,$POD2HTML,;t t
31933 s,@POD2MAN@,$POD2MAN,;t t
31934 s,@RUNTEST@,$RUNTEST,;t t
31935 s,@TCLSH@,$TCLSH,;t t
31937 s,@EGREP@,$EGREP,;t t
31938 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31939 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31940 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31941 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31942 s,@LIBADD_DL@,$LIBADD_DL,;t t
31943 s,@ECHO@,$ECHO,;t t
31945 s,@ac_ct_AR@,$ac_ct_AR,;t t
31946 s,@STRIP@,$STRIP,;t t
31947 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31948 s,@CXXCPP@,$CXXCPP,;t t
31950 s,@FFLAGS@,$FFLAGS,;t t
31951 s,@ac_ct_F77@,$ac_ct_F77,;t t
31952 s,@LIBTOOL@,$LIBTOOL,;t t
31953 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31954 s,@LLVMGCC@,$LLVMGCC,;t t
31955 s,@LLVMGXX@,$LLVMGXX,;t t
31956 s,@ALLOCA@,$ALLOCA,;t t
31957 s,@MMAP_FILE@,$MMAP_FILE,;t t
31958 s,@LLVMCC1@,$LLVMCC1,;t t
31959 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31960 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31961 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31962 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31963 s,@SHLIBEXT@,$SHLIBEXT,;t t
31964 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31965 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31966 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31967 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31968 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31969 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31970 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31971 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31972 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31973 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31974 s,@LIBOBJS@,$LIBOBJS,;t t
31975 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31980 cat >>$CONFIG_STATUS <<\_ACEOF
31981 # Split the substitutions into bite-sized pieces for seds with
31982 # small command number limits, like on Digital OSF/1 and HP-UX.
31983 ac_max_sed_lines=48
31984 ac_sed_frag=1 # Number of current file.
31985 ac_beg=1 # First line for current file.
31986 ac_end=$ac_max_sed_lines # Line after last line for current file.
31989 while $ac_more_lines; do
31990 if test $ac_beg -gt 1; then
31991 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31993 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31995 if test ! -s $tmp/subs.frag; then
31996 ac_more_lines=false
31998 # The purpose of the label and of the branching condition is to
31999 # speed up the sed processing (if there are no `@' at all, there
32000 # is no need to browse any of the substitutions).
32001 # These are the two extra sed commands mentioned above.
32003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32004 if test -z "$ac_sed_cmds"; then
32005 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32007 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32009 ac_sed_frag=`expr $ac_sed_frag + 1`
32011 ac_end=`expr $ac_end + $ac_max_sed_lines`
32014 if test -z "$ac_sed_cmds"; then
32017 fi # test -n "$CONFIG_FILES"
32020 cat >>$CONFIG_STATUS <<\_ACEOF
32021 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32024 - | *:- | *:-:* ) # input from stdin
32026 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32028 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32029 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32030 * ) ac_file_in=$ac_file.in ;;
32033 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32034 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32036 X"$ac_file" : 'X\(//\)[^/]' \| \
32037 X"$ac_file" : 'X\(//\)$' \| \
32038 X"$ac_file" : 'X\(/\)' \| \
32039 . : '\(.\)' 2>/dev/null ||
32041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32043 /^X\(\/\/\)$/{ s//\1/; q; }
32044 /^X\(\/\).*/{ s//\1/; q; }
32046 { if $as_mkdir_p; then
32051 while test ! -d "$as_dir"; do
32052 as_dirs="$as_dir $as_dirs"
32053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32055 X"$as_dir" : 'X\(//\)[^/]' \| \
32056 X"$as_dir" : 'X\(//\)$' \| \
32057 X"$as_dir" : 'X\(/\)' \| \
32058 . : '\(.\)' 2>/dev/null ||
32060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32062 /^X\(\/\/\)$/{ s//\1/; q; }
32063 /^X\(\/\).*/{ s//\1/; q; }
32066 test ! -n "$as_dirs" || mkdir $as_dirs
32067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32069 { (exit 1); exit 1; }; }; }
32073 if test "$ac_dir" != .; then
32074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32075 # A "../" for each directory in $ac_dir_suffix.
32076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32078 ac_dir_suffix= ac_top_builddir=
32082 .) # No --srcdir option. We are building in place.
32084 if test -z "$ac_top_builddir"; then
32087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32089 [\\/]* | ?:[\\/]* ) # Absolute path.
32090 ac_srcdir=$srcdir$ac_dir_suffix;
32091 ac_top_srcdir=$srcdir ;;
32092 *) # Relative path.
32093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32097 # Do not use `cd foo && pwd` to compute absolute paths, because
32098 # the directories may not exist.
32100 .) ac_abs_builddir="$ac_dir";;
32103 .) ac_abs_builddir=`pwd`;;
32104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32108 case $ac_abs_builddir in
32109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32111 case ${ac_top_builddir}. in
32112 .) ac_abs_top_builddir=$ac_abs_builddir;;
32113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32117 case $ac_abs_builddir in
32118 .) ac_abs_srcdir=$ac_srcdir;;
32121 .) ac_abs_srcdir=$ac_abs_builddir;;
32122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32126 case $ac_abs_builddir in
32127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32129 case $ac_top_srcdir in
32130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32138 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32139 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32142 if test x"$ac_file" != x-; then
32143 { echo "$as_me:$LINENO: creating $ac_file" >&5
32144 echo "$as_me: creating $ac_file" >&6;}
32147 # Let's still pretend it is `configure' which instantiates (i.e., don't
32148 # use $as_me), people would be surprised to read:
32149 # /* config.h. Generated by config.status. */
32150 if test x"$ac_file" = x-; then
32153 configure_input="$ac_file. "
32155 configure_input=$configure_input"Generated from `echo $ac_file_in |
32156 sed 's,.*/,,'` by configure."
32158 # First look for the input files in the build tree, otherwise in the
32160 ac_file_inputs=`IFS=:
32161 for f in $ac_file_in; do
32163 -) echo $tmp/stdin ;;
32165 # Absolute (can't be DOS-style, as IFS=:)
32166 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32167 echo "$as_me: error: cannot find input file: $f" >&2;}
32168 { (exit 1); exit 1; }; }
32171 if test -f "$f"; then
32174 elif test -f "$srcdir/$f"; then
32179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32180 echo "$as_me: error: cannot find input file: $f" >&2;}
32181 { (exit 1); exit 1; }; }
32184 done` || { (exit 1); exit 1; }
32186 cat >>$CONFIG_STATUS <<_ACEOF
32190 cat >>$CONFIG_STATUS <<\_ACEOF
32192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32193 s,@configure_input@,$configure_input,;t t
32194 s,@srcdir@,$ac_srcdir,;t t
32195 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32196 s,@top_srcdir@,$ac_top_srcdir,;t t
32197 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32198 s,@builddir@,$ac_builddir,;t t
32199 s,@abs_builddir@,$ac_abs_builddir,;t t
32200 s,@top_builddir@,$ac_top_builddir,;t t
32201 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32202 s,@INSTALL@,$ac_INSTALL,;t t
32203 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32205 if test x"$ac_file" != x-; then
32206 mv $tmp/out $ac_file
32214 cat >>$CONFIG_STATUS <<\_ACEOF
32217 # CONFIG_HEADER section.
32220 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32221 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32223 # ac_d sets the value in "#define NAME VALUE" lines.
32224 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32225 ac_dB='[ ].*$,\1#\2'
32228 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32229 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32230 ac_uB='$,\1#\2define\3'
32234 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32235 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32237 - | *:- | *:-:* ) # input from stdin
32239 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32241 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32242 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32243 * ) ac_file_in=$ac_file.in ;;
32246 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32247 echo "$as_me: creating $ac_file" >&6;}
32249 # First look for the input files in the build tree, otherwise in the
32251 ac_file_inputs=`IFS=:
32252 for f in $ac_file_in; do
32254 -) echo $tmp/stdin ;;
32256 # Absolute (can't be DOS-style, as IFS=:)
32257 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32258 echo "$as_me: error: cannot find input file: $f" >&2;}
32259 { (exit 1); exit 1; }; }
32260 # Do quote $f, to prevent DOS paths from being IFS'd.
32263 if test -f "$f"; then
32266 elif test -f "$srcdir/$f"; then
32271 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32272 echo "$as_me: error: cannot find input file: $f" >&2;}
32273 { (exit 1); exit 1; }; }
32276 done` || { (exit 1); exit 1; }
32277 # Remove the trailing spaces.
32278 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32282 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32283 # `conftest.undefs', that substitutes the proper values into
32284 # config.h.in to produce config.h. The first handles `#define'
32285 # templates, and the second `#undef' templates.
32286 # And first: Protect against being on the right side of a sed subst in
32287 # config.status. Protect against being in an unquoted here document
32288 # in config.status.
32289 rm -f conftest.defines conftest.undefs
32290 # Using a here document instead of a string reduces the quoting nightmare.
32291 # Putting comments in sed scripts is not portable.
32293 # `end' is used to avoid that the second main sed command (meant for
32294 # 0-ary CPP macros) applies to n-ary macro definitions.
32295 # See the Autoconf documentation for `clear'.
32296 cat >confdef2sed.sed <<\_ACEOF
32301 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32303 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32306 # If some macros were called several times there might be several times
32307 # the same #defines, which is useless. Nevertheless, we may not want to
32308 # sort them, since we want the *last* AC-DEFINE to be honored.
32309 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32310 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32311 rm -f confdef2sed.sed
32313 # This sed command replaces #undef with comments. This is necessary, for
32314 # example, in the case of _POSIX_SOURCE, which is predefined and required
32315 # on some systems where configure will not decide to define it.
32316 cat >>conftest.undefs <<\_ACEOF
32317 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32320 # Break up conftest.defines because some shells have a limit on the size
32321 # of here documents, and old seds have small limits too (100 cmds).
32322 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32323 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32324 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32325 echo ' :' >>$CONFIG_STATUS
32326 rm -f conftest.tail
32327 while grep . conftest.defines >/dev/null
32329 # Write a limited-size here document to $tmp/defines.sed.
32330 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32331 # Speed up: don't consider the non `#define' lines.
32332 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32333 # Work around the forget-to-reset-the-flag bug.
32334 echo 't clr' >>$CONFIG_STATUS
32335 echo ': clr' >>$CONFIG_STATUS
32336 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32338 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32340 mv $tmp/out $tmp/in
32342 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32343 rm -f conftest.defines
32344 mv conftest.tail conftest.defines
32346 rm -f conftest.defines
32347 echo ' fi # grep' >>$CONFIG_STATUS
32348 echo >>$CONFIG_STATUS
32350 # Break up conftest.undefs because some shells have a limit on the size
32351 # of here documents, and old seds have small limits too (100 cmds).
32352 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32353 rm -f conftest.tail
32354 while grep . conftest.undefs >/dev/null
32356 # Write a limited-size here document to $tmp/undefs.sed.
32357 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32358 # Speed up: don't consider the non `#undef'
32359 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32360 # Work around the forget-to-reset-the-flag bug.
32361 echo 't clr' >>$CONFIG_STATUS
32362 echo ': clr' >>$CONFIG_STATUS
32363 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32365 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32367 mv $tmp/out $tmp/in
32369 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32370 rm -f conftest.undefs
32371 mv conftest.tail conftest.undefs
32373 rm -f conftest.undefs
32375 cat >>$CONFIG_STATUS <<\_ACEOF
32376 # Let's still pretend it is `configure' which instantiates (i.e., don't
32377 # use $as_me), people would be surprised to read:
32378 # /* config.h. Generated by config.status. */
32379 if test x"$ac_file" = x-; then
32380 echo "/* Generated by configure. */" >$tmp/config.h
32382 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32384 cat $tmp/in >>$tmp/config.h
32386 if test x"$ac_file" != x-; then
32387 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32389 echo "$as_me: $ac_file is unchanged" >&6;}
32391 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32393 X"$ac_file" : 'X\(//\)[^/]' \| \
32394 X"$ac_file" : 'X\(//\)$' \| \
32395 X"$ac_file" : 'X\(/\)' \| \
32396 . : '\(.\)' 2>/dev/null ||
32398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32400 /^X\(\/\/\)$/{ s//\1/; q; }
32401 /^X\(\/\).*/{ s//\1/; q; }
32403 { if $as_mkdir_p; then
32408 while test ! -d "$as_dir"; do
32409 as_dirs="$as_dir $as_dirs"
32410 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32412 X"$as_dir" : 'X\(//\)[^/]' \| \
32413 X"$as_dir" : 'X\(//\)$' \| \
32414 X"$as_dir" : 'X\(/\)' \| \
32415 . : '\(.\)' 2>/dev/null ||
32417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32419 /^X\(\/\/\)$/{ s//\1/; q; }
32420 /^X\(\/\).*/{ s//\1/; q; }
32423 test ! -n "$as_dirs" || mkdir $as_dirs
32424 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32425 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32426 { (exit 1); exit 1; }; }; }
32429 mv $tmp/config.h $ac_file
32433 rm -f $tmp/config.h
32437 cat >>$CONFIG_STATUS <<\_ACEOF
32440 # CONFIG_COMMANDS section.
32442 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32443 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32444 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32445 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32446 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32447 X"$ac_dest" : 'X\(//\)[^/]' \| \
32448 X"$ac_dest" : 'X\(//\)$' \| \
32449 X"$ac_dest" : 'X\(/\)' \| \
32450 . : '\(.\)' 2>/dev/null ||
32452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32454 /^X\(\/\/\)$/{ s//\1/; q; }
32455 /^X\(\/\).*/{ s//\1/; q; }
32457 { if $as_mkdir_p; then
32462 while test ! -d "$as_dir"; do
32463 as_dirs="$as_dir $as_dirs"
32464 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32466 X"$as_dir" : 'X\(//\)[^/]' \| \
32467 X"$as_dir" : 'X\(//\)$' \| \
32468 X"$as_dir" : 'X\(/\)' \| \
32469 . : '\(.\)' 2>/dev/null ||
32471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32473 /^X\(\/\/\)$/{ s//\1/; q; }
32474 /^X\(\/\).*/{ s//\1/; q; }
32477 test ! -n "$as_dirs" || mkdir $as_dirs
32478 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32479 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32480 { (exit 1); exit 1; }; }; }
32484 if test "$ac_dir" != .; then
32485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32486 # A "../" for each directory in $ac_dir_suffix.
32487 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32489 ac_dir_suffix= ac_top_builddir=
32493 .) # No --srcdir option. We are building in place.
32495 if test -z "$ac_top_builddir"; then
32498 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32500 [\\/]* | ?:[\\/]* ) # Absolute path.
32501 ac_srcdir=$srcdir$ac_dir_suffix;
32502 ac_top_srcdir=$srcdir ;;
32503 *) # Relative path.
32504 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32505 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32508 # Do not use `cd foo && pwd` to compute absolute paths, because
32509 # the directories may not exist.
32511 .) ac_abs_builddir="$ac_dir";;
32514 .) ac_abs_builddir=`pwd`;;
32515 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32516 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32519 case $ac_abs_builddir in
32520 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32522 case ${ac_top_builddir}. in
32523 .) ac_abs_top_builddir=$ac_abs_builddir;;
32524 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32525 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32528 case $ac_abs_builddir in
32529 .) ac_abs_srcdir=$ac_srcdir;;
32532 .) ac_abs_srcdir=$ac_abs_builddir;;
32533 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32534 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32537 case $ac_abs_builddir in
32538 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32540 case $ac_top_srcdir in
32541 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32542 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32543 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32548 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32549 echo "$as_me: executing $ac_dest commands" >&6;}
32551 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32552 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32553 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32554 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32555 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32556 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32557 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32558 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32559 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32560 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32561 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32562 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32563 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32564 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32565 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32566 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32567 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32568 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32569 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32570 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32575 cat >>$CONFIG_STATUS <<\_ACEOF
32577 { (exit 0); exit 0; }
32579 chmod +x $CONFIG_STATUS
32580 ac_clean_files=$ac_clean_files_save
32583 # configure is writing to config.log, and then calls config.status.
32584 # config.status does its own redirection, appending to config.log.
32585 # Unfortunately, on DOS this fails, as config.log is still kept open
32586 # by configure, so config.status won't be able to write to it; its
32587 # output is simply discarded. So we exec the FD to /dev/null,
32588 # effectively closing config.log, so it can be properly (re)opened and
32589 # appended to by config.status. When coming back to configure, we
32590 # need to make the FD available again.
32591 if test "$no_create" != yes; then
32593 ac_config_status_args=
32594 test "$silent" = yes &&
32595 ac_config_status_args="$ac_config_status_args --quiet"
32597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32600 # would make configure fail if this is the last instruction.
32601 $ac_cs_success || { (exit 1); exit 1; }
32605 # CONFIG_SUBDIRS section.
32607 if test "$no_recursion" != yes; then
32609 # Remove --cache-file and --srcdir arguments so they do not pile up.
32610 ac_sub_configure_args=
32612 for ac_arg in $ac_configure_args; do
32613 if test -n "$ac_prev"; then
32618 -cache-file | --cache-file | --cache-fil | --cache-fi \
32619 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32620 ac_prev=cache_file ;;
32621 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32622 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32625 --config-cache | -C)
32627 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32629 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32631 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32633 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32635 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32639 # Always prepend --prefix to ensure using the same prefix
32640 # in subdir configurations.
32641 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32644 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32646 # Do not complain, so a configure script can configure whichever
32647 # parts of a large source tree are present.
32648 test -d $srcdir/$ac_dir || continue
32650 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32651 echo "$as_me: configuring in $ac_dir" >&6;}
32652 { if $as_mkdir_p; then
32657 while test ! -d "$as_dir"; do
32658 as_dirs="$as_dir $as_dirs"
32659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32661 X"$as_dir" : 'X\(//\)[^/]' \| \
32662 X"$as_dir" : 'X\(//\)$' \| \
32663 X"$as_dir" : 'X\(/\)' \| \
32664 . : '\(.\)' 2>/dev/null ||
32666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32668 /^X\(\/\/\)$/{ s//\1/; q; }
32669 /^X\(\/\).*/{ s//\1/; q; }
32672 test ! -n "$as_dirs" || mkdir $as_dirs
32673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32675 { (exit 1); exit 1; }; }; }
32679 if test "$ac_dir" != .; then
32680 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32681 # A "../" for each directory in $ac_dir_suffix.
32682 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32684 ac_dir_suffix= ac_top_builddir=
32688 .) # No --srcdir option. We are building in place.
32690 if test -z "$ac_top_builddir"; then
32693 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32695 [\\/]* | ?:[\\/]* ) # Absolute path.
32696 ac_srcdir=$srcdir$ac_dir_suffix;
32697 ac_top_srcdir=$srcdir ;;
32698 *) # Relative path.
32699 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32700 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32703 # Do not use `cd foo && pwd` to compute absolute paths, because
32704 # the directories may not exist.
32706 .) ac_abs_builddir="$ac_dir";;
32709 .) ac_abs_builddir=`pwd`;;
32710 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32711 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32714 case $ac_abs_builddir in
32715 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32717 case ${ac_top_builddir}. in
32718 .) ac_abs_top_builddir=$ac_abs_builddir;;
32719 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32720 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32723 case $ac_abs_builddir in
32724 .) ac_abs_srcdir=$ac_srcdir;;
32727 .) ac_abs_srcdir=$ac_abs_builddir;;
32728 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32729 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32732 case $ac_abs_builddir in
32733 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32735 case $ac_top_srcdir in
32736 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32737 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32738 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32745 # Check for guested configure; otherwise get Cygnus style configure.
32746 if test -f $ac_srcdir/configure.gnu; then
32747 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32748 elif test -f $ac_srcdir/configure; then
32749 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32750 elif test -f $ac_srcdir/configure.in; then
32751 ac_sub_configure=$ac_configure
32753 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32754 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32758 # The recursion is here.
32759 if test -n "$ac_sub_configure"; then
32760 # Make the cache file name correct relative to the subdirectory.
32761 case $cache_file in
32762 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32763 *) # Relative path.
32764 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32767 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32768 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32769 # The eval makes quoting arguments work.
32770 eval $ac_sub_configure $ac_sub_configure_args \
32771 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32772 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32773 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32774 { (exit 1); exit 1; }; }
32782 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32783 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32784 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32785 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32786 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32787 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32788 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32789 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32790 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32791 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32792 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}